blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9fbcb3c385d6dd8c791291ee2840d9d6d4675511 | f994bb440186c27db6a49831d544b896aae3afba | /examples/gaussian_to_excel/qRRHO_Pbeta.py | 7f635878324b50ba39b701f60eb6178a1ed6b965 | [
"MIT"
] | permissive | mbkumar/PyMuTT | 339388a419b112274f2e936fe6e62aedd2731218 | 15e19809f7cf87158862041c48aa3d55e4ffecfa | refs/heads/master | 2020-03-27T04:18:20.293872 | 2018-08-27T19:53:13 | 2018-08-27T19:53:13 | 145,929,161 | 1 | 0 | null | 2018-08-24T01:58:56 | 2018-08-24T01:58:56 | null | UTF-8 | Python | false | false | 13,882 | py | #!/usr/bin/env python
# The format to execute this file is qRRO_Pbeta.py #1 #2 #3. #1 is the filename, #2 and #3 are desired T & P.
import sys
import os
import ast
import shutil as sh
from argparse import ArgumentParser as AP
import re
import numpy as np
import math
parser = AP(description='Extract thermal correctio... | [
"[email protected]"
] | |
c58cf0b2ae63d589ad451462013553658103e025 | d9c95cd0efad0788bf17672f6a4ec3b29cfd2e86 | /disturbance/migrations/0030_auto_20200511_1512.py | 3641eaa61a3cdb5c1c1646462aae2f39bb6cec30 | [
"Apache-2.0"
] | permissive | Djandwich/disturbance | cb1d25701b23414cd91e3ac5b0207618cd03a7e5 | b1ba1404b9ca7c941891ea42c00b9ff9bcc41237 | refs/heads/master | 2023-05-05T19:52:36.124923 | 2021-06-03T06:37:53 | 2021-06-03T06:37:53 | 259,816,629 | 1 | 1 | NOASSERTION | 2021-06-03T09:46:46 | 2020-04-29T03:39:33 | Python | UTF-8 | Python | false | false | 1,710 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2020-05-11 07:12
from __future__ import unicode_literals
import disturbance.components.compliances.models
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('disturbanc... | [
"[email protected]"
] | |
f0d7131ecae8c4c754c7dd19a9a5c1ff2121cb3d | 95540a155c043dd84ea6c0fb7d59ba06dc78b875 | /python/算法和数据结构/queue.py | 5c7170aaa244a59b0964dfc397b87b675c7a5cb7 | [] | no_license | Lilenn/must | 41b95d8e80f48a6b82febb222936bbc3502cc01f | a510a8d0e58fde1bc97ab7ad9bd2738158dcba5e | refs/heads/master | 2020-04-09T23:09:20.116439 | 2018-12-06T09:02:09 | 2018-12-06T09:02:09 | 160,648,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | class Queue(object):
'''队列'''
def __init__(self):
self.items = []
def is_pmpty(self):
return self.items == []
def enqueue(self,item):
'''建造队列'''
self.items.insert(1,item)
def dequeue(self):
'''出队列'''
return self.items.pop()
def size(self):
... | [
"[email protected]"
] | |
f34f79c26e98c1d38d207de9b6cffc1f0ae6857e | 4503a3bfd940dce760b5f70e90e6fe2fe0cc4881 | /week10/health.py | 64a500edefc57c9f812bbfd48accca1bbc735e97 | [] | no_license | RicardoLima17/lecture | dba7de5c61507f51d51e3abc5c7c4c22ecda504f | b41f1201ab938fe0cab85566998390166c7fa7d8 | refs/heads/main | 2023-04-18T11:12:39.769760 | 2021-04-21T18:36:09 | 2021-04-21T18:36:09 | 334,456,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | # use person module
# Author: Andrew Beatty
from personmodule import *
import datetime as dt
person1 = {
'firstname': 'andrew',
'lastname': 'beatty',
'dob': dt.date(2010, 1, 1),
'height': 180,
'width': 100
}
# call the functions in the module
# I used import * so these have been imported
# so I c... | [
"[email protected]"
] | |
80d7750f7f977b876f0ce61427fcd1932f7c6f2f | 2fd6c260b8db490ed9dc594f2a6578bb736cb9ad | /src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_16.py | a4184ef2423b5b02d1874dbcd0e40ca97546c89f | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | pornin/openweave-core | 6891a89b493566e24c4e413f6425ecbf59663a43 | b6ac50aad6eb69c7a81c9916707f3c7ef098ec63 | refs/heads/master | 2020-04-02T00:55:05.328569 | 2018-10-19T17:28:34 | 2018-10-19T17:28:34 | 153,828,148 | 1 | 0 | Apache-2.0 | 2018-10-19T18:52:53 | 2018-10-19T18:52:53 | null | UTF-8 | Python | false | false | 3,051 | py | #!/usr/bin/env python
#
# Copyright (c) 2016-2017 Nest Labs, Inc.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/lice... | [
"[email protected]"
] | |
f3e465d8abf97925aafc78f1129a2bbb9ec13c39 | 71877e3f343e3899da77878937362191fdc02a0f | /topo_management/make_topos.py | 4b1690d7c294a97ec079d7d60e92469cc7f79f95 | [] | no_license | micahjohnson150/scripts | 2a9007ae6d2ad3eec3596aff6e016f6d13fb0652 | 32a8322cab7463dbcc4d6042e7d53a03c2ee2654 | refs/heads/master | 2023-05-26T04:48:27.005338 | 2023-01-21T14:08:51 | 2023-01-21T14:08:51 | 144,737,605 | 0 | 0 | null | 2023-05-22T21:36:55 | 2018-08-14T15:17:16 | Python | UTF-8 | Python | false | false | 4,085 | py | #!/usr/bin/env python3
from os import listdir, walk, system
from os.path import isfile, isdir, basename, abspath, expanduser, split
from subprocess import check_output, Popen
import argparse
from basin_setup.basin_setup import Messages
"""
Every basin in my basin folder has a make file and each is constructed similar... | [
"[email protected]"
] | |
2a8953a9839de6581e4caa79cda9cb3036c84a36 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03834/s172653587.py | 5c52cb64a75d2d12e1141735e2cd2b29c9007926 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | a = input()
b = a.replace(",", " ")
print(b) | [
"[email protected]"
] | |
578c5a1a6ff22e80aa35320182614bae82dfd05a | c51b70a06a7bef9bd96f06bd91a0ec289b68c7c4 | /src/Snakemake/rules/Imbalance/Imbalance.smk | 3d777e988559e4db91c171cc36dc8db59f4b607b | [] | no_license | clinical-genomics-uppsala/TSO500 | 3227a65931c17dd2799dbce93fe8a47f56a8c337 | b0de1d2496b6c650434116494cef721bdc295528 | refs/heads/master | 2023-01-10T01:41:51.764849 | 2020-11-05T14:11:25 | 2020-11-05T14:11:25 | 218,708,783 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 390 | smk |
rule imbalance :
input:
bams = ["RNA_TST170/bam_files/" + s + ".bam" for s in config["RNA_Samples"]]
output:
imbalance_all = "Results/RNA/Imbalance/imbalance_all_gene.txt",
imbalance = "Results/RNA/Imbalance/imbalance_called_gene.txt"
run:
import subprocess
subproces... | [
"[email protected]"
] | |
15cea4f928a57a80bc4a8c891bbc166135746b2c | 4201d4aff2f2d877fa75d6d971f7826d5d1369e3 | /product_onepage/settings.py | 91b09b1db1c82f31bfb8318f86917bf8e21a21ab | [
"MIT"
] | permissive | emencia/emencia-product-onepage | 4f5fb72cc47ca8725bc01c9c69a583126e7b8514 | 09cff26e97641412b297f977ca8c8045983bbf97 | refs/heads/master | 2020-04-13T09:31:04.787009 | 2015-01-13T01:14:00 | 2015-01-13T01:14:00 | 28,994,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,778 | py | # Dummy gettext
gettext = lambda s: s
# Plugins template choices
ONEPAGE_TAB_TEMPLATE_CHOICES = (
("product_onepage/tab.html", gettext("Default")),
)
ONEPAGE_SPEC_TEMPLATE_CHOICES = (
("product_onepage/spec.html", gettext("Default")),
)
ONEPAGE_BLURB_TEMPLATE_CHOICES = (
("product_onepage/blurb.html", ge... | [
"[email protected]"
] | |
20fcd5d4e9c68f072f12665f4282389755541b28 | 50de76eb887892c2085e1aa898987962a5d75380 | /_1_PythonBasic/Reactive/5.2B_distinct_with_mapping.py | bd179c9d1443ceb29fd6932f737d2d033d35e7f2 | [] | no_license | cyrsis/TensorflowPY36CPU | cac423252e0da98038388cf95a3f0b4e62d1a888 | 6ada50adf63078ba28464c59808234bca3fcc9b7 | refs/heads/master | 2023-06-26T06:57:00.836225 | 2021-01-30T04:37:35 | 2021-01-30T04:37:35 | 114,089,170 | 5 | 2 | null | 2023-05-25T17:08:43 | 2017-12-13T07:33:57 | Jupyter Notebook | UTF-8 | Python | false | false | 163 | py | from rx import Observable
Observable.from_(["Alpha", "Beta", "Gamma", "Delta", "Epsilon"]) \
.distinct(lambda s: len(s)) \
.subscribe(lambda i: print(i))
| [
"[email protected]"
] | |
ccf5e0fbc0904ccbc4c7291540962c2be04e1e27 | d785e993ed65049c82607a1482b45bddb2a03dda | /nano2017/cfg2018/GluGluToContinToZZTo4e_cfg.py | b03efa62bd937ed3a42f2270aeed36b10cdf53de | [] | no_license | PKUHEPEWK/ssww | eec02ad7650014646e1bcb0e8787cf1514aaceca | a507a289935b51b8abf819b1b4b05476a05720dc | refs/heads/master | 2020-05-14T04:15:35.474981 | 2019-06-28T23:48:15 | 2019-06-28T23:48:15 | 181,696,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | from WMCore.Configuration import Configuration
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = Configuration()
config.section_("General")
config.General.requestName = 'GluGluToContinToZZTo4e_2018'
config.General.transferLogs= False
config.section_("JobType")
config.JobType.pluginName = 'An... | [
"[email protected]"
] | |
9462a18277d9b4f90b25c5ab35a7baf388d7aba4 | b953909018be86cf8cdf328e2b13395c1dbe28c0 | /apps/xadmin/plugins/inline.py | cdc764aa4faeabe0c94f3cdcb5e6bb2bc7eb78b8 | [] | no_license | wangyong240/mes | 06ce26d146aebe0b0103dda4fdd198c3cefc6014 | 12d7321c1b96ae0fdd8f26029462e1943a500c01 | refs/heads/master | 2023-01-01T13:29:29.853063 | 2020-09-19T01:19:22 | 2020-09-19T01:19:22 | 296,762,233 | 1 | 0 | null | 2020-09-19T01:20:05 | 2020-09-19T01:20:04 | null | UTF-8 | Python | false | false | 16,489 | py | import copy
import inspect
from django import forms
from django.forms.formsets import all_valid, DELETION_FIELD_NAME
from django.forms.models import inlineformset_factory, BaseInlineFormSet
from django.contrib.contenttypes.generic import BaseGenericInlineFormSet, generic_inlineformset_factory
from django.template impor... | [
"[email protected]"
] | |
f2110dbbd89d74b18d31ba38453abe0f7578aebb | 60fa442ae76b960ab21b10fb527c0eac85cdc587 | /phenix/crawl_refines_print_Rfactor.py | 3865946eb9d8dfc4cf54c28e0f99554fc655a411 | [] | no_license | pjanowski/Pawel_PhD_Scripts | 8e6c2b92b492f9cacf425327a01faaceb27bb87d | 5f9b1735ca6da8fdf0946d6748f3da7d3d723d5e | refs/heads/master | 2021-01-10T06:15:30.287053 | 2015-11-16T04:04:07 | 2015-11-16T04:04:07 | 46,250,317 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | import os
import glob
dbase="/media/My Book/Marco/rigi_145392/p6522"
ds = next(os.walk(dbase))[1]
ds = [i for i in ds if i.startswith('Refine')]
f = lambda x: (x,int(x.split('_')[-1]))
ds = map(f,ds)
ds.sort(key=lambda x: x[-1])
ds = [ i[0] for i in ds ]
for d in ds:
logfile = glob.glob('%s/%s/*log' %(dbase,d))
i... | [
"[email protected]"
] | |
d21273618c0ba3f88d15e8539600718e99a08407 | 298b5c5d4d103f6fb2ff6510342d9e302111573e | /seaborn/colors/__init__.py | 3d0bf1d56bdc5c0e724c8eeb95200297884337cc | [
"BSD-3-Clause"
] | permissive | mwaskom/seaborn | a8ea9e8f3932a6324b196862cc6593f69df2d459 | 67a777a54dd1064c3f9038733b1ed71c6d50a6af | refs/heads/master | 2023-08-24T06:22:32.609915 | 2023-08-24T01:09:05 | 2023-08-24T01:09:05 | 4,704,710 | 10,793 | 2,316 | BSD-3-Clause | 2023-09-11T05:04:46 | 2012-06-18T18:41:19 | Python | UTF-8 | Python | false | false | 88 | py | from .xkcd_rgb import xkcd_rgb # noqa: F401
from .crayons import crayons # noqa: F401
| [
"[email protected]"
] | |
7e5655692f68542ff5bdf487192f36808cc0e71f | 11e93d33fbc1e1ce37b14969276f13ad1ba1823b | /cef_paths.gypi | cb4bf53b504675bb2cf66d164bdb87552e331f76 | [
"BSD-3-Clause"
] | permissive | chorusg/cef | 671ff2ffd92a361fe4b62649317687b22c062295 | 1ffa5528b3e3640751e19cf47d8bcb615151907b | refs/heads/master | 2023-06-19T08:26:02.558559 | 2021-07-19T15:55:43 | 2021-07-19T15:55:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,714 | gypi | # Copyright (c) 2021 The Chromium Embedded Framework Authors. All rights
# reserved. Use of this source code is governed by a BSD-style license that
# can be found in the LICENSE file.
#
# ---------------------------------------------------------------------------
#
# This file was generated by the CEF translator tool ... | [
"[email protected]"
] | |
8b53aa085bd20e81eb42d40797d09b3746a16116 | 130215e73cd45824fc5b7b2bc85949ce03115f20 | /py/syn10m02m.py | 320e65ea39115ace48776945eb23d5a8a2a61ab1 | [] | no_license | felicitygong/MINLPinstances | 062634bf709a782a860234ec2daa7e6bf374371e | 1cd9c799c5758baa0818394c07adea84659c064c | refs/heads/master | 2022-12-06T11:58:14.141832 | 2022-12-01T17:17:35 | 2022-12-01T17:17:35 | 119,295,560 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,238 | py | # MINLP written by GAMS Convert at 11/10/17 15:35:28
#
# Equation counts
# Total E G L N X C B
# 199 15 50 134 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | [
"[email protected]"
] | |
0ec3a612342b6999c627497f0a8788d608044816 | 8c2de4da068ba3ed3ce1adf0a113877385b7783c | /hyp_utils/kaldi/steps/nnet3/report/summarize_compute_debug_timing.py | 5c74eaf128c5da16eeba7964877e3bae00778d07 | [
"Apache-2.0"
] | permissive | hyperion-ml/hyperion | a024c718c4552ba3a03aae2c2ca1b8674eaebc76 | c4c9eee0acab1ba572843373245da12d00dfffaa | refs/heads/master | 2023-08-28T22:28:37.624139 | 2022-03-25T16:28:08 | 2022-03-25T16:28:08 | 175,275,679 | 55 | 20 | Apache-2.0 | 2023-09-13T15:35:46 | 2019-03-12T18:40:19 | Python | UTF-8 | Python | false | false | 4,357 | py | #!/usr/bin/env python
# Copyright 2016 Vijayaditya Peddinti.
# Apache 2.0.
# we're using python 3.x style print but want it to work in python 2.x,
from __future__ import print_function
from __future__ import division
import sys
import re
import argparse
# expects the output of nnet3*train with --computation-debug=... | [
"[email protected]"
] | |
0451ab6c75d806bc370d17a1356de4bb5437faf0 | 1e0ae1f039668a65e480065d671235fc0fff9b52 | /django19day/app01/views/home.py | 50e254c58f308631dd25e2745daad307c072c79f | [] | no_license | aixocm/svndata | a4da91c3c9e1d376abfd46e7cecc3c5c2e340e83 | ee205301f3a1ce11acef98bba927877cb7c4fb0b | refs/heads/master | 2021-01-21T04:39:41.607117 | 2016-07-01T01:48:36 | 2016-07-01T01:48:36 | 47,066,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from django.shortcuts import render
from app01.forms import home as HomeForm
from app01 import models
def index(request):
# models.UserInfo.objects.all().delete()
# models.UserInfo.objects.create(name="JJJJJ")
#
# after = models.UserInfo.objec... | [
"[email protected]"
] | |
4eadce987312cc642bf7d10d5855eca2fdd2a8f7 | ddd35c693194aefb9c009fe6b88c52de7fa7c444 | /Live 10.1.18/novation/transport.py | cc9566884eb4863f6ff57a14a5556297de25949c | [] | no_license | notelba/midi-remote-scripts | 819372d9c22573877c7912091bd8359fdd42585d | e3ec6846470eed7da8a4d4f78562ed49dc00727b | refs/heads/main | 2022-07-30T00:18:33.296376 | 2020-10-04T00:00:12 | 2020-10-04T00:00:12 | 301,003,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,052 | py | # uncompyle6 version 3.7.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.8.5 (default, Aug 12 2020, 00:00:00)
# [GCC 10.2.1 20200723 (Red Hat 10.2.1-1)]
# Embedded file name: c:\Jenkins\live\output\Live\win_64_static\Release\python-bundle\MIDI Remote Scripts\novation\transport.py
# Compiled at: 2020-05-05 ... | [
"[email protected]"
] | |
55ef072d9d3d47d8603357377794fa880d8688c0 | e57d7785276053332c633b57f6925c90ad660580 | /sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_tag_rules_operations.py | 8b601798141f717456f67ee5e23423c1c3b0e2ff | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | adriananeci/azure-sdk-for-python | 0d560308497616a563b6afecbb494a88535da4c5 | b2bdfe659210998d6d479e73b133b6c51eb2c009 | refs/heads/main | 2023-08-18T11:12:21.271042 | 2021-09-10T18:48:44 | 2021-09-10T18:48:44 | 405,684,423 | 1 | 0 | MIT | 2021-09-12T15:51:51 | 2021-09-12T15:51:50 | null | UTF-8 | Python | false | false | 15,827 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"[email protected]"
] | |
fd46cde2226a90b53793bb9f7121bb66dbeb6c8e | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnwretch.py | fe95b845f09eef13e6cbc0d05e65b9e23f9a92cb | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 2,136 | py | ii = [('BentJDO2.py', 3), ('CookGHP3.py', 3), ('MarrFDI.py', 2), ('CoolWHM2.py', 8), ('KembFFF.py', 2), ('GodwWSL2.py', 48), ('ChanWS.py', 2), ('SadlMLP.py', 22), ('FerrSDO3.py', 19), ('WilbRLW.py', 8), ('WilbRLW4.py', 9), ('RennJIT.py', 1), ('AubePRP2.py', 3), ('CookGHP.py', 5), ('MartHSI2.py', 2), ('LeakWTI2.py', 3),... | [
"[email protected]"
] | |
22181b9fe8464921c05932796d73ede088aef55e | e82102580a5bd76e97ed607da7180faf9928cf7b | /barati/customers/views_cluster/save_main_preferences.py | 7d3a3cd1956fe2e4caf75ee317701323bfa60ada | [
"Apache-2.0"
] | permissive | aditi73/barati | 393d02de0e292a0e5a73c988944486396cb0ece1 | 09e1a0a1342aa8e9cf1e97f073f4a6472c5af415 | refs/heads/master | 2021-01-12T10:42:44.322211 | 2016-06-11T12:02:10 | 2016-06-11T12:02:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,586 | py | from django.shortcuts import render
from django.template import RequestContext
from django.views.generic import View
from django.http import HttpResponse
from customers import models as m
import sys, json, datetime
class Save_Main_Preferences(View):
try:
def __init__(self):
#self.template_name = ''
... | [
"[email protected]"
] | |
3d663d37b03f7370f829e314ff592048da8baadc | 2360cee220fa1d4df735e663c2324f6716800a4c | /allauth/facebook/migrations/0002_auto__add_facebookaccesstoken__add_unique_facebookaccesstoken_app_acco.py | b1a780d35611b2a2d0a1fcb44c5feb7d8c27a289 | [
"MIT"
] | permissive | sachingupta006/django-allauth | 709036a6a20f03fb7fb1d9ee555822526847e658 | 04a510f6b873cb3a54feca59cdd0c3e3ff9b9b5e | refs/heads/master | 2021-01-17T22:11:38.164739 | 2012-06-09T16:58:47 | 2012-06-09T16:58:47 | 3,551,445 | 5 | 5 | null | null | null | null | UTF-8 | Python | false | false | 7,146 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'FacebookAccessToken'
db.create_table('facebook_facebookaccesstoken', (
('id', ... | [
"[email protected]"
] | |
fbd3495eb1889511b26d78ebe8fb5d8f63fa8a5a | 5e11cbf593a9793359e1ca4f8e4a18af38e32738 | /backend/mobilech_dev_14269/wsgi.py | 15db35e2d85f5f7d4d97682b4b31b7671c76cc1e | [] | no_license | crowdbotics-apps/mobilech-dev-14269 | 6c76edca03e7d48c428d081afc055a9cba358d04 | 50752c0b633d7077ced903c9caccd2aec2f04520 | refs/heads/master | 2023-01-01T15:59:38.895266 | 2020-10-30T17:51:48 | 2020-10-30T17:51:48 | 308,691,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
WSGI config for mobilech_dev_14269 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('D... | [
"[email protected]"
] | |
da3ae45886b2907ae82b1cfa4a5950a21bdd6b21 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_25090.py | f38847da08bed8417de659027272d8e0da3b17e8 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | # Django and postgres: Not connecting
postgresql.conf
| [
"[email protected]"
] | |
14e95b30fef502d2d37a1c6b893748e10fd62be7 | c361a25acecd016677bbd0c6d9fc56de79cf03ed | /PTM/CassandraHost.py | ab3d48ce871b5a763384f888edaa60579991175f | [] | no_license | danielmellado/zephyr | f8931633045959e7e9a974de8b700a287a1ae94e | dc6f85b78b50e599504966154b927fe198d7402d | refs/heads/master | 2021-01-12T22:31:24.479814 | 2015-10-14T05:39:04 | 2015-10-14T06:24:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,469 | py | __author__ = 'micucci'
# Copyright 2015 Midokura SARL
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | [
"[email protected]"
] | |
17057251ad5e6a6db3b8bbf55d6daf24d7be92ef | 434ec954a1c481f17dbb41d82f814405c2bd1e6e | /__init__.py | 9dcc5b7d4b2f8a9eb1377764f50e3d764a314fc5 | [] | no_license | pytsite/plugin-comments_odm | 83ae106529c68e995ff3f9414ffb8b76d64b9704 | d07906d2c57ff0b750cb580c5f2c0e3867b04ac6 | refs/heads/master | 2022-02-11T21:56:59.371544 | 2019-08-06T00:31:59 | 2019-08-06T00:31:59 | 82,923,156 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | """PytSite ODM Comments Plugin
"""
__author__ = 'Oleksandr Shepetko'
__email__ = '[email protected]'
__license__ = 'MIT'
from . import _widget as widget
def plugin_load():
"""Hook
"""
from pytsite import events
from plugins import comments, odm
from . import _model, _driver, _eh
# Register ODM ... | [
"[email protected]"
] | |
a419f17e8f448960359d04f1206ecd8b48fac4f7 | 88c8dc51713753b7a36dce80ca936b2933575845 | /week07/class_code/w7_creative_task_code_start.py | 8c1fdb2f9546ee089a3f5c20570395591fc0e5fc | [] | no_license | previtus/cci_python | 210e9e4314fb65c2b5542131167a75ece07ad2a9 | ddab2697fc960355ac9e5fac7fc7d462db8b50f4 | refs/heads/master | 2021-05-23T13:25:46.661735 | 2020-01-15T18:11:33 | 2020-01-15T18:11:33 | 253,309,644 | 1 | 0 | null | 2020-04-05T18:57:21 | 2020-04-05T18:57:20 | null | UTF-8 | Python | false | false | 571 | py | infile = open("dracula.txt", "r")
filestring = infile.read()
infile.close()
# in words ==========================================
words = filestring.split()
#for word in words:
# print(word)
# in sentences ==========================================
sentences = filestring.split(".")
# dark magicks!
#import re
#s... | [
"[email protected]"
] | |
1ca21c5fbe3c345731bc9b168b49f3f7ab94392d | bde6ed092b7b29703737e11c5a5ff90934af3d74 | /hackerrank/data-structures/array/sparse-arrays.py | e092d90c7f10b803449a5336206aab0c80288509 | [] | no_license | takecian/ProgrammingStudyLog | 2ab7ea601e0996b3fa502b81ec141bc3772442b6 | 94485d131c0cc9842f1f4799da2d861dbf09b12a | refs/heads/master | 2023-04-28T16:56:18.943574 | 2023-04-18T06:34:58 | 2023-04-18T06:34:58 | 128,525,713 | 4 | 0 | null | 2022-12-09T06:15:19 | 2018-04-07T12:21:29 | Python | UTF-8 | Python | false | false | 792 | py | # https://www.hackerrank.com/challenges/sparse-arrays/problem
#!/bin/python3
import math
import os
import random
import re
import sys
# Complete the matchingStrings function below.
def matchingStrings(strings, queries):
return [strings.count(query) for query in queries]
if __name__ == '__main__':
fptr = ope... | [
"[email protected]"
] | |
b34f356a30af80027d2c29078af6a0f66263e7db | dc8a337ea1d8a285577d33e5cfd4dbbe846ee1a0 | /src/main/scala/MinCostToConnectAllPoints.py | dea7dced11cb113cb91c76a28ba30e756b63194f | [] | no_license | joestalker1/leetcode | 8a5cdda17abd33c3eef859732f75d7bec77a9d0e | ae392ddbc7eb56cb814b9e9715043c98a89a6314 | refs/heads/master | 2023-04-13T22:09:54.407864 | 2023-04-09T19:22:54 | 2023-04-09T19:22:54 | 131,803,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,434 | py | class UnionFind:
def __init__(self, n):
self.par = [i for i in range(n)]
self.rank = [0] * n
def find(self, p):
if self.par[p] != p:
self.par[p] = self.find(self.par[p])
return self.par[p]
def union(self, n1, n2):
p1 = self.find(n1)
p2 = self.fin... | [
"[email protected]"
] | |
0f782922b34c17a3438dc8c3bef2ffb403a6b2d4 | b5dd8d1b798c94731a84c02d98aafb9147200a85 | /sentence_classification/SABaselineSYNTree/data/Dataloader.py | 8cf5123e195ed3ba7bddf8695827662dae8e3f59 | [] | no_license | zhangmeishan/DepSAWR | 1ae348dd04ec5e46bc5a75c8972b4bc4008528fe | 104f44fd962a42fdee9b1a9332997d35e8461ff4 | refs/heads/master | 2021-07-09T20:56:56.897774 | 2020-10-27T05:41:08 | 2020-10-27T05:41:08 | 206,974,879 | 15 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,903 | py | from collections import Counter
from data.Vocab import *
from data.SA import *
import numpy as np
import torch
def read_corpus(file_path):
data = []
with open(file_path, 'r') as infile:
for line in infile:
divides = line.strip().split('|||')
section_num = len(divides)
... | [
"[email protected]"
] | |
90fa9d60a31619b8f6dcc62b48a721e9613e2b11 | 596e92d0d484b6e7eee6d322e72e52748fdeaa5d | /test/test_nba_odds_betting_market.py | f8b473cf4cf0f70b059897d47f0677fe275d8489 | [] | no_license | scottypate/sportsdata | f5f61ddc7eb482883f93737c6ce73dd814ed4336 | a07955ab50bf4fff1ce114ed9895095ff770c473 | refs/heads/main | 2023-08-18T16:51:56.452678 | 2021-10-22T12:44:08 | 2021-10-22T12:44:08 | 420,062,350 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | # coding: utf-8
"""
NBA v3 Odds
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unitt... | [
"[email protected]"
] | |
42485305a6f8fb5ff0005ce27a19470c43a61309 | 08ae1e5065ce3c3931356f4db6b54a82a5da1ebe | /other/cj_project/Pra_tools/week_return_可变基准临时版.py | 44ad917629fd9bace508512ac140bb879a7a7042 | [] | no_license | superman666ai/cj_data | d1f527b9bc49a38f2cc99ef3849d13408b271f2d | f4b0e9ec3be02c8900d0300e09df8e52088efc68 | refs/heads/master | 2020-06-21T14:57:30.285849 | 2019-07-22T00:54:15 | 2019-07-22T00:54:15 | 197,486,121 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21,300 | py | # encoding=utf-8
"""周收益率相关查询"""
from sql import sql_oracle
from time_tool import Time_tool
import logging
import math
import pandas as pd
import numpy as np
from sklearn.linear_model import LinearRegression
from season_label import SeasonLabel
sl = SeasonLabel()
class Week_return:
"""周收益率相关类
对外接口:
zho... | [
"[email protected]"
] | |
d8a784d4cc3814c72d3f1c2f31291a37067a93cc | bf902add6952d7f7decdb2296bb136eea55bf441 | /YOLO/.history/pytorch-yolo-v3/video_demo_v1_20201106013910.py | 956c4cf76b2215cc7d0d756950fe68064a06bcd4 | [
"MIT"
] | permissive | jphacks/D_2003 | c78fb2b4d05739dbd60eb9224845eb78579afa6f | 60a5684d549862e85bdf758069518702d9925a48 | refs/heads/master | 2023-01-08T16:17:54.977088 | 2020-11-07T06:41:33 | 2020-11-07T06:41:33 | 304,576,949 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 16,591 | py | from __future__ import division
import time
import torch
import torch.nn as nn
from torch.autograd import Variable
import numpy as np
import cv2
from util import *
from darknet import Darknet
from preprocess import prep_image, inp_to_image
import pandas as pd
import random
import argparse
import pickle as pkl
import r... | [
"[email protected]"
] | |
6b1a21e187c9c79f07f14c5b2f5a3a03fcf94808 | c7b4baa2779a0fc02e363f07c88b4d1d8cc33ffe | /gahtc/website/migrations/0017_auto_20151121_2057.py | 000afaafe3f0c79142b2d2f5dc90553177043f8f | [] | no_license | NiJeLorg/GAHTC | 6d5c8b2d4b9244c8874ad60c16cd7d55a3535075 | 8ba3360f6e2a8ad0b937a60c3c022eaac4a7cd46 | refs/heads/master | 2022-12-08T19:26:05.800635 | 2018-06-07T02:31:43 | 2018-06-07T02:31:43 | 41,111,268 | 2 | 0 | null | 2022-11-22T01:43:36 | 2015-08-20T18:07:02 | HTML | UTF-8 | Python | false | false | 1,262 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('website', '0016_bundlelecturesegments'),
]
operations = [
migrations.AlterField(
model_name='lecturedocuments',
... | [
"[email protected]"
] | |
bdd3bf6fba4bd626f99d89450d76ac05362a99e1 | a0afdd22430c9324278e21cb2ec71172fa9d9136 | /mango/notification.py | 036c84e556a09be80caaae29c9b60e7b56373f54 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | jeromeku/mango-explorer | 8e00cdc5f9154184004afb02637dd10bb98be089 | 5d26b782e25886d794b1f90cbf761fb9ce3100b7 | refs/heads/master | 2023-07-18T05:08:21.882520 | 2021-08-16T21:42:38 | 2021-08-16T21:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,379 | py | # # ⚠ Warning
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
# LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
# NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIA... | [
"[email protected]"
] | |
1fbca8a60b71a90686126ab10fe2745039344b6c | 84a5c4c2e0977d42425771098f5f881c750da7f0 | /neomodel_constraints/fetcher/constraints/v4_1.py | 3bb76bcc8e48273575a33bd210c5b02c050d2956 | [] | no_license | SSripilaipong/neomodel-constraints | 6c3023ba156275e48f5f7ebcbdd283ce8d41f9a1 | 4b91185ba9eec993c58e9ae770fd3d0e90f915ae | refs/heads/main | 2023-07-15T09:58:41.451631 | 2021-08-29T13:19:38 | 2021-08-29T13:19:38 | 390,312,509 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,883 | py | import re
from typing import List, Dict
from neomodel_constraints.connection import ConnectionAbstract
from neomodel_constraints.constraint import ConstraintSet, TypeMapperAbstract
from neomodel_constraints.fetcher.abstract import FetcherAbstract
from .data import Neo4jConstraintQueryRecord
from .util import convert_... | [
"[email protected]"
] | |
cc344ab268871e68262997bb1a4edd0560a0baf8 | 9467f3a54b19098766a3b0341eaac51617fc321b | /utils/build_batch.py | 7fafcc95dbe491be9a2c7c8f0a11100d7a88fc38 | [] | no_license | liangjies/Sentiment-Analysis | 1eedaa583d68536f92944b59ee6f8b6dedbc4a99 | beca6c6612cc3b38b28d711eb39eb72424bdde00 | refs/heads/master | 2020-11-24T05:25:56.081258 | 2019-12-19T08:21:32 | 2019-12-19T08:21:32 | 227,983,207 | 0 | 0 | null | 2019-12-14T07:24:42 | 2019-12-14T07:24:41 | null | UTF-8 | Python | false | false | 6,387 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@version: python3.6
@author: 'zenRRan'
@license: Apache Licence
@contact: [email protected]
@software: PyCharm
@file: build_batch.py
@time: 2018/10/15 10:44
"""
import random
class Build_Batch:
def __init__(self, features, opts, batch_size, pad_idx, c... | [
"[email protected]"
] | |
5aa0c3741468196957ffba57ea37b13e03fee079 | 1eab574606dffb14a63195de994ee7c2355989b1 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/capture/currentpacket/stack/stack.py | 584e79fdba6258677a42f35e8cbaf4e10d7896e7 | [
"MIT"
] | permissive | steiler/ixnetwork_restpy | 56b3f08726301e9938aaea26f6dcd20ebf53c806 | dd7ec0d311b74cefb1fe310d57b5c8a65d6d4ff9 | refs/heads/master | 2020-09-04T12:10:18.387184 | 2019-11-05T11:29:43 | 2019-11-05T11:29:43 | 219,728,796 | 0 | 0 | null | 2019-11-05T11:28:29 | 2019-11-05T11:28:26 | null | UTF-8 | Python | false | false | 3,235 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"[email protected]"
] | |
1259b25afb75ee0bfcc7c6e204f0ba8394d94744 | 1e82a5c6145fbd6861b863f95613e9406f434559 | /function_scheduling_distributed_framework/publishers/base_publisher.py | 8febd4bc61059b4b42707d4b0f36cee56e8a3ab1 | [
"Apache-2.0"
] | permissive | leiyugithub/distributed_framework | e6c83cf09faa5ee0d6d0ccc1e38fb6729a260c9b | 7a9c74e807f51680c25a9956e49ab319a8943a37 | refs/heads/master | 2020-12-07T13:23:24.354917 | 2020-01-08T08:18:47 | 2020-01-08T08:18:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,941 | py | # -*- coding: utf-8 -*-
# @Author : ydf
# @Time : 2019/8/8 0008 11:57
import abc
import atexit
import json
import uuid
import time
import typing
from functools import wraps
from threading import Lock
import amqpstorm
from pika.exceptions import AMQPError as PikaAMQPError
from function_scheduling_distributed_framew... | [
"[email protected]"
] | |
37251f91b138c8ef98d57d8e1e0107a83c10e7d2 | 361756a29c63961fd02bd335aca629322b7989a7 | /Week 3/code/q1/spark-app.py | 459713353fa52e4fc715b7874ad7111b09db3b46 | [] | no_license | bbengfort/introduction-to-hadoop-and-spark | 67eadf923028cd53cfcec21fd1a521f6d5fe3569 | 14b9ebd87984277b2a02cdffad0db27082b4d3e9 | refs/heads/master | 2022-12-02T08:00:46.975122 | 2015-12-01T20:37:59 | 2015-12-01T20:37:59 | 46,567,192 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,402 | py | #!/usr/bin/env python
# spark-app.py
# A Spark application that computes the MSE of a linear model on test data.
#
# Author: Benjamin Bengfort <[email protected]>
# Created: Thu Nov 12 07:29:58 2015 -0500
"""
A Spark application that computes the MSE of a linear model on test data.
"""
########################... | [
"[email protected]"
] | |
4ed043179eca6f4607079e4daf5b02187ec1c8c9 | 0a8bcc7ffdc143d82a351c84f46676a7b4564d1c | /app/config/settings.py | 9f887d232fa278cc393cb78be4e73a11b8807bb1 | [] | no_license | orca9s/ex_class | 354339aaddd882f4f294c3941784d3378769d084 | 0e4c76326226f6bb397c16d94c37aa45ec2973a6 | refs/heads/master | 2020-04-16T01:23:12.751879 | 2019-01-19T09:35:43 | 2019-01-19T09:35:43 | 165,171,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,095 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# ... | [
"[email protected]"
] | |
bc6fc44f74c3620fd9e7b7d0a2ee996258b7e087 | 2346aac932096d7161591afc8f07105eba6de558 | /chapter25_maskrcnn/object_detection_example.py | ea42017f0adf198b95c31e44d4fdb41ffd878eae | [] | no_license | cheeyeo/deep_learning_computer_vision | 3436ac568539bd9ad060c9d81542e82c42e40ff2 | 44fb74e70e7d40717214cd2a0ac2aa6d3bbf5b58 | refs/heads/master | 2020-07-17T00:17:14.112988 | 2019-10-29T15:39:18 | 2019-10-29T15:39:18 | 205,898,970 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | # Example on object detection using Mask R-CNN Library
# Uses a pre-trained Mask R-CNN model trained on MSCOCO dataset
from keras.preprocessing.image import load_img
from keras.preprocessing.image import img_to_array
from mrcnn.visualize import display_instances
from mrcnn.model import MaskRCNN
import os
import argpa... | [
"[email protected]"
] | |
2dcf86b8d3b334a27a7962ae098f62af4a037e83 | e0cfb71a4268367fab77253a2460714a16e830aa | /doctorbot/website/views.py | 32da7106dfec332ef5bf99c76e01b6ff6d1f540a | [
"MIT"
] | permissive | zuxfoucault/DoctorBot_demo | 79b40548dfd5f34b0f2ccb7857e9377610394608 | 82e24078da4d2e6caba728b959812401109e014d | refs/heads/master | 2020-04-24T01:10:17.010551 | 2019-02-20T02:57:57 | 2019-02-20T02:57:57 | 171,589,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | from django.http import HttpResponse
from django.shortcuts import render_to_response
from rest_framework import generics
from rest_framework import permissions
from rest_framework.decorators import api_view, permission_classes
# Create your views here.
@api_view(['GET'])
def index_view(requests):
return render_to_... | [
"[email protected]"
] | |
d135c72038a9c0c01be8b4b8ae588403decf6726 | a9b05f3de50bf287b914d4786537cc81a208eaf8 | /preprocessing/migrations/0001_initial.py | 6d47579c623896aa6d24f9f404c75fbffc4f2935 | [] | no_license | 15101538237ren/AccidentsPrediction | 21b23ee60ca1bf8f7aee12f515db046f0bd94799 | b0248c9fc8c1c5018f79083adc4c2b8130e2dba0 | refs/heads/master | 2018-11-04T18:27:54.049460 | 2018-01-09T13:25:48 | 2018-01-09T13:25:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,709 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='App_Incidence',
fields=[
('id', models.AutoFiel... | [
"[email protected]"
] | |
39f20b69aac765749dce3c577325b4782d937cad | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03855/s443395866.py | 9abfb8ce858f7f0b73fac8a310592f783ae12145 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | from sys import stdin
import sys
import math
from functools import reduce
import functools
import itertools
from collections import deque,Counter
from operator import mul
import copy
n, k, l = list(map(int, input().split()))
road = [[] for i in range(n+1)]
rail = [[] for i in range(n+1)]
for i in range(k):
p, q ... | [
"[email protected]"
] | |
5c9c62c3aa48e5a6db377c6d30804071a57f9151 | abbb1e132b3d339ba2173129085f252e2f3311dc | /model-optimizer/extensions/back/CorrectName.py | 1d1e9c0dd5231d964e8ac163b9be70176224efee | [
"Apache-2.0"
] | permissive | 0xF6/openvino | 56cce18f1eb448e25053fd364bcbc1da9f34debc | 2e6c95f389b195f6d3ff8597147d1f817433cfb3 | refs/heads/master | 2022-12-24T02:49:56.686062 | 2020-09-22T16:05:34 | 2020-09-22T16:05:34 | 297,745,570 | 2 | 0 | Apache-2.0 | 2020-09-22T19:03:06 | 2020-09-22T19:03:04 | null | UTF-8 | Python | false | false | 1,807 | py | """
Copyright (C) 2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | [
"[email protected]"
] | |
0699c6935eb3618c4450c5e89f3ea0ee05bf01ae | cb35df97989fcc46831a8adb8de3434b94fd2ecd | /tests/benchmarks/bm_point_mesh_distance.py | bc1da12883da43fa792ce14d561ae6af072b7a70 | [
"MIT",
"BSD-3-Clause"
] | permissive | facebookresearch/pytorch3d | 6d93b28c0f36a4b7efa0a8143726200c252d3502 | a3d99cab6bf5eb69be8d5eb48895da6edd859565 | refs/heads/main | 2023-09-01T16:26:58.756831 | 2023-08-26T20:55:56 | 2023-08-26T20:55:56 | 217,433,767 | 7,964 | 1,342 | NOASSERTION | 2023-08-25T10:00:26 | 2019-10-25T02:23:45 | Python | UTF-8 | Python | false | false | 1,106 | py | # Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
from itertools import product
from fvcore.common.benchmark import benchmark
from tests.test_point_mesh_distan... | [
"[email protected]"
] | |
1a0c68fc136cb8faba43b827a4977ac6ec13bb9f | b059c2cf1e19932abb179ca3de74ced2759f6754 | /S20/day29/server.py | 02b38215230e14e190eb4dd508011026298f47aa | [] | no_license | Lwk1071373366/zdh | a16e9cad478a64c36227419d324454dfb9c43fd9 | d41032b0edd7d96e147573a26d0e70f3d209dd84 | refs/heads/master | 2020-06-18T02:11:22.740239 | 2019-07-10T08:55:14 | 2019-07-10T08:55:14 | 196,130,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,022 | py | # import json
# import struct
# import socket
#
# sk = socket.socket()
# sk.bind(('127.0.0.1',9001))
# sk.listen()
#
# conn,addr = sk.accept()
# num = conn.recv(4)
# num = struct.unpack('i',num)[0]
# str_dic = conn.recv(num).decode('utf-8')
# dic = json.loads(str_dic)
# with open(dic['filename'],'wb') as f :
# cont... | [
"[email protected]"
] | |
8d8b659f31f0b33986e1d7bd43984a45e18577ac | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2018_12_01/models/virtual_network_tap.py | 93c6e03ece13f3201e81b3d067b4e9c1753d2d04 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 4,312 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"[email protected]"
] | |
8617e5ac82e89f58b2116bb99003c611dc46da49 | 7d90e6bebce35d5810da7cb9180f34bfa7398d38 | /guestbook/tests/models_tests.py | dde2c5be1e1420dfe441443bb112fae8d81c8d40 | [] | no_license | mbrochh/pugsg_20120419 | bd4c5fc2ec9edbb6a8f72e1165df46aed00cc88f | 0d2d396863e4d25a0cb2e97d30b16ebbd6283d0c | refs/heads/master | 2021-01-01T17:57:22.171950 | 2012-04-19T10:20:23 | 2012-04-19T10:20:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | """Tests for the models of the ``guestbook`` app."""
from django.test import TestCase
from guestbook.tests.factories import GuestbookFactory
class GuestbookEntryTestCase(TestCase):
"""Tests for the ``GuestbookEntry`` model class."""
def test_instantiation_and_save(self):
entry = GuestbookFactory.buil... | [
"[email protected]"
] | |
6cda6f690fe6f4d19b954e3827b4044a8fd710c4 | b22492fd331ee97d5c8853687a390b3adb92dd49 | /freemt_utils/switch_to.py | 440a1cbb70961cc6e76cdc6fd97ebcfba54631b6 | [
"MIT"
] | permissive | ffreemt/freemt-utils | 3ea6af7f4bf8800b1be7ec51e05b811710b20907 | 25bf192033235bb783005795f8c0bcdd8a79610f | refs/heads/master | 2021-07-18T18:44:33.907753 | 2021-02-06T16:52:46 | 2021-02-06T16:52:46 | 240,441,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | '''Switch to path contextmanager (with).
http://ralsina.me/weblog/posts/BB963.html
'''
import os
import pathlib
from contextlib import contextmanager
# from loguru import logger
from logzero import logger
@contextmanager
def switch_to(path=pathlib.Path().home()):
'''Switch to path.
with switch_to(path):
... | [
"[email protected]"
] | |
ace417d486a29e19a3f31f74a2d3f72f02ac8ef3 | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_point37.py | 4efe740542537882034ccb5e823d228d616eacff | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | from xcp2k.inputsection import InputSection
class _point37(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Type = None
self.Atoms = []
self.Weights = []
self.Xyz = None
self._name = "POINT"
self._keywords = {'Type': 'TYPE', 'Xyz': 'XYZ'}
... | [
"[email protected]"
] | |
187e77784e4fb6d6faeec279f8d0263e9ea8a61c | 080c13cd91a073457bd9eddc2a3d13fc2e0e56ae | /MY_REPOS/awesome-4-new-developers/tensorflow-master/tensorflow/python/keras/saving/utils_v1/export_output.py | 38953921695fad04cb716d8eaf24bad5ad5883e9 | [
"Apache-2.0"
] | permissive | Portfolio-Projects42/UsefulResourceRepo2.0 | 1dccc8961a09347f124d3ed7c27c6d73b9806189 | 75b1e23c757845b5f1894ebe53551a1cf759c6a3 | refs/heads/master | 2023-08-04T12:23:48.862451 | 2021-09-15T12:51:35 | 2021-09-15T12:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,044 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"[email protected]"
] | |
7e635e6a745132a07f89c125874170db99495c5c | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /cH5ce3f4QgnreDW4v_16.py | 0920362797049da24362e6f5196a3dc03c839c81 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | """
Given a list of scrabble tiles (as dictionaries), create a function that
outputs the maximum possible score a player can achieve by summing up the
total number of points for all the tiles in their hand. Each hand contains 7
scrabble tiles.
Here's an example hand:
[
{ "tile": "N", "score": 1 },
... | [
"[email protected]"
] | |
9f3b4737b5a4ceb03d0e2f61617e2d606fa1bc26 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2264/60632/299023.py | cda5485f4d7a3635dcca1353ed426c58e683fe78 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | n = int(input())
if n==9:
print('Case 1: 2 4')
print('Case 2: 4 1')
elif n==229:
print('Case 1: 23 1920360960')
elif n==20:
print('Case 1: 2 1')
print('Case 2: 2 380')
print('Case 3: 2 780')
elif n==112:
print('Case 1: 11 2286144')
elif n==4:
print('Case 1: 2 2')
print('Case 2: 2 6')... | [
"[email protected]"
] | |
59227ed5cf2829796aa635e92186a1a2a0e64681 | 1375f57f96c4021f8b362ad7fb693210be32eac9 | /kubernetes/test/test_v1_probe.py | ba423a0601265e6747938cbf27b6879e628d4e97 | [
"Apache-2.0"
] | permissive | dawidfieluba/client-python | 92d637354e2f2842f4c2408ed44d9d71d5572606 | 53e882c920d34fab84c76b9e38eecfed0d265da1 | refs/heads/master | 2021-12-23T20:13:26.751954 | 2017-10-06T22:29:14 | 2017-10-06T22:29:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.7.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"[email protected]"
] | |
ad8915a7ae8c2e819356a6367eaf26fbeed1f1fb | dd3b8bd6c9f6f1d9f207678b101eff93b032b0f0 | /basis/AbletonLive10.1_MIDIRemoteScripts/APC40/TransportComponent.py | 8a9e2628d321bf05754d7c3c3457c883c99cc81b | [] | no_license | jhlax/les | 62955f57c33299ebfc4fca8d0482b30ee97adfe7 | d865478bf02778e509e61370174a450104d20a28 | refs/heads/master | 2023-08-17T17:24:44.297302 | 2019-12-15T08:13:29 | 2019-12-15T08:13:29 | 228,120,861 | 3 | 0 | null | 2023-08-03T16:40:44 | 2019-12-15T03:02:27 | Python | UTF-8 | Python | false | false | 2,239 | py | # uncompyle6 version 3.4.1
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.16 (v2.7.16:413a49145e, Mar 2 2019, 14:32:10)
# [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]
# Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/APC40/Transp... | [
"[email protected]"
] | |
9099bbeb2bfe2dd76471b8e077e69bc05b7c317f | 6d5545faf2af0a6bb565ad698bb824110b40e121 | /WEBAPP/MLmodel/inception_client.py.runfiles/tf_serving/external/org_tensorflow/tensorflow/contrib/distributions/python/ops/relaxed_onehot_categorical.py | 9c2fd1e89c34610ae05ea6ba1f048a8b921b6a4f | [
"MIT"
] | permissive | sunsuntianyi/mlWebApp_v2 | abb129cd43540b1be51ecc840127d6e40c2151d3 | 5198685bf4c4e8973988722282e863a8eaeb426f | refs/heads/master | 2021-06-23T22:02:38.002145 | 2020-11-20T02:17:43 | 2020-11-20T02:17:43 | 162,194,249 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | /private/var/tmp/_bazel_tianyi/f29d1e61689e4e4b318f483932fff4d0/external/org_tensorflow/tensorflow/contrib/distributions/python/ops/relaxed_onehot_categorical.py | [
"[email protected]"
] | |
d7c5e42b84f4c9b110fbad560674539a89f7fcc3 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_95/1682.py | ce5203d497f2ffb9866e62943b5974e224b8ab05 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | import sys
if __name__ == '__main__':
googlerese_ex = 'ejp mysljylc kd kxveddknmc re jsicpdrysi rbcpc ypc rtcsra dkh wyfrepkym veddknkmkrkcd de kr kd eoya kw aej tysr re ujdr lkgc jv'
english_ex = 'our language is impossible to understand there are twenty six factorial possibilities so it is okay if you want to just... | [
"[email protected]"
] | |
056d82b68618d8db4072c657a23d222c92e88d99 | 268d9c21243e12609462ebbd6bf6859d981d2356 | /Python/python_stack/Django/BeltReview/main/main/settings.py | f1304bb0df414857e32ddd1f90733a2fbd5aef02 | [] | no_license | dkang417/cdj | f840962c3fa8e14146588eeb49ce7dbd08b8ff4c | 9966b04af1ac8a799421d97a9231bf0a0a0d8745 | refs/heads/master | 2020-03-10T03:29:05.053821 | 2018-05-23T02:02:07 | 2018-05-23T02:02:07 | 129,166,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,106 | py | """
Django settings for main project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
# B... | [
"[email protected]"
] | |
714d1fc16b56509739dd30429a8f66e78376ce35 | b09a8df80c35e3ccca43cd74cec6e1a14db76ad7 | /branding/migrations/0001_initial.py | e00f156fe9caeae568ddb9fb064b75b1ddf65c1c | [
"MIT"
] | permissive | ofa/everyvoter | 79fd6cecb78759f5e9c35ba660c3a5be99336556 | 3af6bc9f3ff4e5dfdbb118209e877379428bc06c | refs/heads/master | 2021-06-24T19:38:25.256578 | 2019-07-02T10:40:57 | 2019-07-02T10:40:57 | 86,486,195 | 7 | 3 | MIT | 2018-12-03T19:52:20 | 2017-03-28T17:07:15 | Python | UTF-8 | Python | false | false | 3,213 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-04-30 16:22
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import everyvoter_common.utils.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
... | [
"[email protected]"
] | |
f44f891703f37179c46776f303162239677bcbca | bede13ba6e7f8c2750815df29bb2217228e91ca5 | /project_task_timer/models/__init__.py | 3d840b3d547c01584b2d78e9f03f45c297bc94f6 | [] | no_license | CybroOdoo/CybroAddons | f44c1c43df1aad348409924603e538aa3abc7319 | 4b1bcb8f17aad44fe9c80a8180eb0128e6bb2c14 | refs/heads/16.0 | 2023-09-01T17:52:04.418982 | 2023-09-01T11:43:47 | 2023-09-01T11:43:47 | 47,947,919 | 209 | 561 | null | 2023-09-14T01:47:59 | 2015-12-14T02:38:57 | HTML | UTF-8 | Python | false | false | 959 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Jesni Banu(<http://www.cybrosys.com>)
# you can modify it under the terms of the G... | [
"[email protected]"
] | |
1e1ce27559dd63f7756930985a0c4856fac56fce | 20f02496844ff9a021807f3442f9c1dc456a0c61 | /knowledgeBase/wsgi.py | 55ff9df86ab5ec7736310a98ddeebe45fbb258ff | [] | no_license | shubham1560/knowledge-Rest-Api | 894d1d9a677ab399ab41d052b869408255f014d7 | f664bd6f8dcba85a4b5eb04516c7f1947b4a581f | refs/heads/master | 2020-07-30T00:24:06.338377 | 2019-09-22T18:14:24 | 2019-09-22T18:14:24 | 210,017,318 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for knowledgeBase project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO... | [
"[email protected]"
] | |
b725708fa9460c2515398779cf53ed28674423eb | 53ccc4f5198d10102c8032e83f9af25244b179cf | /SoftUni Lessons/Python Development/Python Advanced January 2020/Python OOP/REDO2022/04 - Classes and Objects - Exercise/05_to_do_list/project/section.py | 1aaf144047fe53885131a181834746578aa9e3f0 | [] | no_license | SimeonTsvetanov/Coding-Lessons | aad32e0b4cc6f5f43206cd4a937fec5ebea64f2d | 8f70e54b5f95911d0bdbfda7d03940cb824dcd68 | refs/heads/master | 2023-06-09T21:29:17.790775 | 2023-05-24T22:58:48 | 2023-05-24T22:58:48 | 221,786,441 | 13 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | from project.task import Task
class Section:
def __init__(self, name: str):
self.name = name
self.tasks = []
def add_task(self, new_task: Task):
present_task = [task for task in self.tasks if task == new_task] # TODO Check by name if problem
if present_task:
... | [
"[email protected]"
] | |
f67e2096d535a42e01b1e0f721fdfcf33c3eff2d | d7d1b5cdcee50e4a9c8ce9c2f081ccc7aa566443 | /blog/migrations/0005_auto__del_field_artist_genres.py | 00c8aa4e1dbb0e9c27ef47402d2b759298632f27 | [] | no_license | ouhouhsami/django-bandwebsite | a57bdce9d14bd365e8749b92c63d927f65693531 | 328a765980f94e1aacc86d6384ef8becea156299 | refs/heads/master | 2016-09-05T21:48:17.931168 | 2013-03-18T17:18:19 | 2013-03-18T17:18:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,190 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Artist.genres'
db.delete_column('blog_artist', 'genres_id')
def backwards(self, orm)... | [
"[email protected]"
] | |
21088c8beaf33fe0e70fdda87227af7dbfbaf4a9 | 8d1daccc0bf661b0b1450d6a128b904c25c4dea2 | /todo-django/todos/serializers.py | 277842b2002b141f2194e0509895d94b7adab3d5 | [] | no_license | JiminLee411/todo-vue-django | e7cea19ff4ffe6b215c3105f40246830bdf249c0 | f8c13c9498848247f614451c013f18b3050c6a1e | refs/heads/master | 2023-01-08T14:33:38.629286 | 2019-11-20T01:36:34 | 2019-11-20T01:36:34 | 222,368,675 | 0 | 0 | null | 2023-01-05T01:06:53 | 2019-11-18T05:14:23 | Python | UTF-8 | Python | false | false | 497 | py | from django.contrib.auth import get_user_model
from rest_framework import serializers
from .models import Todo
class TodoSerializers(serializers.ModelSerializer):
class Meta:
model = Todo
fields = ('id', 'title', 'user', 'is_completed')
class UserSerializers(serializers.ModelSerializer):
todo_... | [
"[email protected]"
] | |
dd0814aeb40a7ea0f0f84b89c30783ccd689425b | 749bd7db8d1902274a47bb7d98b9d6ced3ef6b68 | /R-NET/local_span_single_para/analyze_dataset.py | 7051f3369d1d9ba5da757c8d4e1c9cdbfab36618 | [] | no_license | burglarhobbit/machine-reading-comprehension | 37582e0fdca4690bd55accf33987b5fce1f663ea | 04729af3d934a7696938f4079089b9b014c986aa | refs/heads/master | 2023-02-08T10:39:19.262900 | 2020-01-11T04:08:30 | 2020-01-11T04:08:30 | 114,113,176 | 29 | 15 | null | 2023-02-02T02:32:54 | 2017-12-13T11:34:36 | Python | UTF-8 | Python | false | false | 20,552 | py | import tensorflow as tf
import random
from tqdm import tqdm
import spacy
import json
from collections import Counter
import numpy as np
from nltk.tokenize.moses import MosesDetokenizer
from rouge import Rouge as R
import string
import re
nlp = spacy.blank("en")
def word_tokenize(sent):
doc = nlp(sent)
return [token... | [
"[email protected]"
] | |
f24bf2a788e0cd0924baebcd0ee5214d3f6d2437 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03193/s350016826.py | bb3396dfb53a31bf3a3373f8edacfe1808de721e | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | N,H,W=map(int,input().split())
count=0
for i in range(N):
A,B=map(int,input().split())
if (A >= H) & (B >= W):
count+=1
print(count) | [
"[email protected]"
] | |
3f10a11ac99e9d6c14f95a97d398f6f686a1d139 | 17dba42c75ae75376260d9bbd544f727083d2732 | /media.py | 22680e51427571dd6805e25a9d1cc6bb9a4da414 | [] | no_license | cyrilvincent/python-advanced | d8ec3a0defed99fe99c2800cab8f5a647c4e3e62 | 79f13f1d3e88fae996da697ee3afdee8d1308fbf | refs/heads/master | 2021-12-15T23:50:00.647131 | 2021-12-02T15:30:47 | 2021-12-02T15:30:47 | 207,744,251 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | from dataclasses import dataclass
from abc import ABCMeta, abstractmethod
from typing import List, ClassVar
@dataclass
class Media(metaclass=ABCMeta):
id: int
title: str
price: float
nb_media: ClassVar[int]
TYPE: int = 1
@abstractmethod
def net_price(self):...
@dataclass
class Dvd(Media... | [
"[email protected]"
] | |
d4b712708c59f690eb0da72e38b8ff34e76bcfa6 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/1/ck6.py | 7cd7fb237b1177a4cd014c547f541b4ff1fe9808 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"[email protected]"
] | |
08834d1b81dac5c7d0724301c30b48df93539259 | 133e8c9df1d1725d7d34ea4317ae3a15e26e6c66 | /Selenium/QQ/utils/ocr4qqcaptcha.py | e0c8e6fbc484ddbb4fc2cdffd1348180507ebda1 | [
"Apache-2.0"
] | permissive | 425776024/Learn | dfa8b53233f019b77b7537cc340fce2a81ff4c3b | 3990e75b469225ba7b430539ef9a16abe89eb863 | refs/heads/master | 2022-12-01T06:46:49.674609 | 2020-06-01T08:17:08 | 2020-06-01T08:17:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,717 | py | import glob
import numpy as np
from scipy import misc
from keras.layers import Input, Convolution2D, MaxPooling2D, Flatten, Activation, Dense
from keras.models import Model
from keras.utils.np_utils import to_categorical
imgs = glob.glob('sample/*.jpg')
img_size = misc.imread(imgs[0]).shape #这里是(53, 129, 3)
data = np... | [
"[email protected]"
] | |
257e78f93bdfffd8ead6050e5a830887b2daf06c | d7c527d5d59719eed5f8b7e75b3dc069418f4f17 | /main/PythonResults/_pythonSnippet11/32/pandasjson.py | a577b4507d59a3ae833713639051216cf30d9928 | [] | no_license | Aivree/SnippetMatcher | 3e348cea9a61e4342e5ad59a48552002a03bf59a | c8954dfcad8d1f63e6e5e1550bc78df16bc419d1 | refs/heads/master | 2021-01-21T01:20:59.144157 | 2015-01-07T04:35:29 | 2015-01-07T04:35:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,099 | py | from pandas import Series, DataFrame
from _pandasujson import loads, dumps
@classmethod
def from_json(cls, json, orient="index", dtype=None, numpy=True):
"""
Convert JSON string to Series
Parameters
----------
json : The JSON string to parse.
orient : {'split', 'records', 'index'}, default 'in... | [
"[email protected]"
] | |
1e4e5a7e81ba3eb57af755d28a1b01382a8dd32f | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/network/v20210501/network_security_group.py | edee6131821444d88b72b7c2692d9b75a39b6d8d | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,540 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"[email protected]"
] | |
04a5e1ecf5eb7928a641bacbe6d6f6bbbf4dc517 | f0a9e69f5acd27877316bcdd872d12b9e92d6ccb | /while.py | 59f6e3da65c64608dea5c349cff9ebf6c9d92fc3 | [] | no_license | KhauTu/KhauTu-Think_Python | 9cb2a286efb8a33748599cd3ae4605e48256ac4c | 880c06f6218b8aee7a3e3da0d8b4764fcaa9c1b4 | refs/heads/master | 2020-05-29T21:43:47.246199 | 2019-05-30T11:36:05 | 2019-05-30T11:36:05 | 189,389,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,980 | py | # while expression:
# while-block
'''
k = 5
while k > 0:
print('k = ', k)
k -= 1
'''
'''
s = 'How Kteam'
idx = 0
length = len(s)
while idx < length:
print(idx, 'stands for', s[idx])
idx += 1
'''
'''
five_even_numbers = []
k_number = 1
while True: # vòng lặp vô hạn vì giá trị này là hằng nên ta kh... | [
"[email protected]"
] | |
2d4cf09f0f2aa26d2385b364596894feba510a91 | e2e188297b0ef47f0e7e935290f3b7a175376f8f | /auth/urls.py | 876eb04ddf2bc73525218b4bd7aa9c894bc3c77e | [] | no_license | shubham1560/contact-us-backend | 77b615021f0db2a48444424a654cf3c61522c7d8 | c7ef2d3024ab3f3b6f077648d6f6f5357f01eebc | refs/heads/master | 2022-12-30T13:05:00.950702 | 2020-10-02T19:47:19 | 2020-10-02T19:47:19 | 296,075,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | from django.urls import path, include
from .views import ObtainAuthTokenViewSet, CreateUserSystemViewSet
urlpatterns = [
path('token/get_token/', ObtainAuthTokenViewSet.as_view()),
path('user/register/system/', CreateUserSystemViewSet.as_view()),
# path('user/register/google/'),
# path('user/register/f... | [
"[email protected]"
] | |
1070cd8566457d889b1f144ee8456b63946d6861 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/40/usersdata/81/18116/submittedfiles/funcoes.py | 54b96934c77ea74865637ac40054305beadee568 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | #ARQUIVO COM SUAS FUNCOES
def cos(e,fat):
soma=0
while 0<soma<=e:
for j in range(1,e,1):
for i in range(2,e,2):
soma=soma+(((e**i)/fat)+((-1)**j))
def razao(pi,cos):
aurea=2*cos.(pi/5)
return aurea
| [
"[email protected]"
] | |
4916c7ffb221a17d73a7312b25205170ea38e80e | 404728244681a773f55be7f7b0c4933f439f3106 | /walis/service/cs/user.py | 280b7d3b8e645daa0b6ad2bf034f55f790409a92 | [] | no_license | limingjin10/walis | c4e22db27d964cefa068883edf979cabfedd74d6 | 198a4e94992c1790b7a9f2cd34b1686fefc87845 | refs/heads/master | 2021-05-29T04:50:34.091849 | 2015-06-15T14:19:23 | 2015-06-15T14:19:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | #!/usr/bin/env python2
# coding=utf8
from __future__ import absolute_import, division, print_function
from walis.service.rst import restaurant as rst_base
from walis.service.user import user as user_base
from walis.model.walis.cs import CSEvent
def get_user_by_phone(mobile):
user_type = None
result = {'user... | [
"[email protected]"
] | |
22ab383b407c99415b5f7885c0d8c8c564ec0d3c | c4b94158b0ac8f1c4f3d535b6cdee5d1639743ce | /Python/191__Number_of_1_Bits.py | b64ace4b9dd4bc9b74e3c645eb8855f0bfc393c4 | [] | no_license | FIRESTROM/Leetcode | fc61ae5f11f9cb7a118ae7eac292e8b3e5d10e41 | 801beb43235872b2419a92b11c4eb05f7ea2adab | refs/heads/master | 2020-04-04T17:40:59.782318 | 2019-08-26T18:58:21 | 2019-08-26T18:58:21 | 156,130,665 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | class Solution(object):
def hammingWeight(self, n):
"""
:type n: int
:rtype: int
"""
result = 0
while n:
if n & 1 == 1:
result += 1
n = n >> 1
return result
# Another solution using a trick of bit
class Solution(object... | [
"[email protected]"
] | |
e6abef9bf3bf91103e722ef652077ea427964e52 | bc599c9a404940fae21ed6b57edb7bb9dc04e71c | /app/graphics/baseGraphic.py | 9402148fb19d3b5ea25e3d5b2212cb4925d18707 | [] | no_license | jcarlosglx/SparkReport | c9b37a1419f113ea13341e6641ceb17056aeb7d0 | 9d6b044f037e8dfe583bcf76c51dd792ac1cc34a | refs/heads/master | 2023-08-11T16:04:28.393856 | 2021-09-21T23:06:08 | 2021-09-21T23:06:08 | 409,001,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,027 | py | from typing import NoReturn
import matplotlib.pyplot as plt
from pandas import DataFrame
class NonGraphicsBase:
FIRST = 0
class GraphicBase:
def __init__(self, x_figure: int = 10, y_figure: int = 10):
self.x_figure = x_figure
self.y_figure = y_figure
self.FIRST = 0
def _single_... | [
"[email protected]"
] | |
75e6a03d5a69e5540503ea26fcf6149bca408aae | 045cb1a5638c3575296f83471758dc09a8065725 | /addons/website_event/models/event.py | da47fe454cee4a971191fe60794ffc5ff9e718f8 | [] | no_license | marionumza/saas | 7236842b0db98d1a0d0c3c88df32d268509629cb | 148dd95d991a348ebbaff9396759a7dd1fe6e101 | refs/heads/main | 2023-03-27T14:08:57.121601 | 2021-03-20T07:59:08 | 2021-03-20T07:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,069 | py | # -*- coding: utf-8 -*-
import pytz
import werkzeug
import json
from harpiya import api, fields, models, _
from harpiya.addons.http_routing.models.ir_http import slug
from harpiya.exceptions import UserError
GOOGLE_CALENDAR_URL = 'https://www.google.com/calendar/render?'
class EventType(models.Model):
_name = ... | [
"[email protected]"
] | |
f9b74976cf3a863630b6f91560e2d0fadb3eb995 | c421dd51e0e6a4ce84e75724989ac52efcecf15b | /tool/migrations/0050_alter_shoppinglist_name.py | cc524029bb2e3b1f534678ffd8ae0eb664e77065 | [
"MIT"
] | permissive | mikekeda/tools | 3bdbfcbc495bd9b53e2849431c8d8f098149925d | 51a2ae2b29ae5c91a3cf7171f89edf225cc8a6f0 | refs/heads/master | 2023-06-09T09:13:35.142701 | 2023-06-06T17:27:18 | 2023-06-06T17:27:18 | 120,110,752 | 0 | 1 | MIT | 2023-05-23T14:15:43 | 2018-02-03T16:56:57 | Python | UTF-8 | Python | false | false | 434 | py | # Generated by Django 3.2.3 on 2021-05-30 09:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tool', '0049_auto_20210308_0847'),
]
operations = [
migrations.AlterField(
model_name='shoppinglist',
name='name',
... | [
"[email protected]"
] | |
7314dd1ce978a7d2053f03d14e1596873e990784 | 90c4d97afceb51c9827e0c29cfa5703873644898 | /android_autotools/__main__.py | 816120d4abe7edbd6f2cda8892c7f8c9f6e0013f | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | fred104/android-autotools | e6e7de6385b6532afac4248bf5bf1addaeaf19eb | 8566524f11d9551a42451178eb8c119e57e9441b | refs/heads/master | 2021-01-23T03:12:43.472904 | 2017-02-04T06:19:33 | 2017-02-04T06:19:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,219 | py | #!/usr/bin/env python3
import argparse
import os
import sys
import json
import os.path
import subprocess
import android_autotools
def main():
a = argparse.ArgumentParser(prog='abuild',
description='A wrapper around autotools for Android.',
epilog='NDK_HOME must be defined to use this tool... | [
"[email protected]"
] | |
c9df6ac92ac8959e2f091582fbbc2c9b4c356a4b | 34de2b3ef4a2478fc6a03ea3b5990dd267d20d2d | /Python/science/sympy/solve_system_of_lin_eqns_using_sympy.py | b4d8f00eeca664484914e2ac4c57a7927627fd97 | [
"MIT"
] | permissive | bhishanpdl/Programming | d4310f86e1d9ac35483191526710caa25b5f138e | 9654c253c598405a22cc96dfa1497406c0bd0990 | refs/heads/master | 2020-03-26T06:19:01.588451 | 2019-08-21T18:09:59 | 2019-08-21T18:09:59 | 69,140,073 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Author : Bhishan Poudel; Physics PhD Student, Ohio University
# Date : Oct 04, 2016
# Last update :
#
#
# Imports
from __future__ import division, unicode_literals, print_function
import numpy
import scipy.linalg
from sympy import symbols,solve
w,x,y,z = sy... | [
"[email protected]"
] | |
138f3980a1ed3012410d1099b138889cb25b7b8b | 3d39974209f890080456c5f9e60397c505540c64 | /0x0C-python-almost_a_circle/10-main.py | 72e7fa2d845bb5a79e7d1be760d234ee13cbc862 | [] | no_license | salmenz/holbertonschool-higher_level_programming | 293ca44674833b587f1a3aec13896caec4e61ab6 | 23792f8539db48c8f8200a6cdaf9268d0cb7d4e6 | refs/heads/master | 2020-09-28T11:42:51.264437 | 2020-05-13T22:56:39 | 2020-05-13T22:56:39 | 226,771,568 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | #!/usr/bin/python3
""" 10-main """
from models.square import Square
if __name__ == "__main__":
s1 = Square(5)
print(s1)
print(s1.size)
s1.size = 10
print(s1)
try:
s1.size = "9"
except Exception as e:
print("[{}] {}".format(e.__class__.__name__, e))
| [
"[email protected]"
] | |
4a4f0ee250023d867691985d96d7fb0eafcee414 | 31e6ca145bfff0277509dbd7c4b44b8deddf3334 | /Programmers/Level1/Kth_num.py | a5998f0cf2a686d3094fcebc330240582ad25ce3 | [] | no_license | brillantescene/Coding_Test | 2582d6eb2d0af8d9ac33b8e829ff8c1682563c42 | 0ebc75cd66e1ccea3cedc24d6e457b167bb52491 | refs/heads/master | 2023-08-31T06:20:39.000734 | 2021-10-15T10:51:17 | 2021-10-15T10:51:17 | 254,366,460 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | def solution(array, commands):
answer = []
for i, j, k in commands:
tmp = array[i-1:j]
tmp.sort()
answer.append(tmp[k-1])
return answer
print(solution([1, 5, 2, 6, 3, 7, 4], [[2, 5, 3], [4, 4, 1], [1, 7, 3]]))
| [
"[email protected]"
] | |
aa877b523c25ed2dbd360625b6d019008e5819b4 | 5c0c0176db0ccf2c24b6b5ed459a8dc144518b13 | /nni/retiarii/nn/pytorch/nn.py | 797a672c8cf99ed4ccc35b43fccfc6dc009f0241 | [
"MIT"
] | permissive | petuum/nni | ac4f4a1c4d6df71684eeffa127b7c4858fd29e97 | 8134be6269902939232482d63649c06f9864be6d | refs/heads/master | 2023-02-18T11:21:41.078889 | 2021-01-20T03:21:50 | 2021-01-20T03:21:50 | 302,736,456 | 4 | 3 | MIT | 2020-11-20T20:21:15 | 2020-10-09T19:34:11 | Python | UTF-8 | Python | false | false | 10,748 | py | import logging
from typing import Any, List
import torch
import torch.nn as nn
from ...utils import add_record, blackbox_module, uid, version_larger_equal
_logger = logging.getLogger(__name__)
# NOTE: support pytorch version >= 1.5.0
__all__ = [
'LayerChoice', 'InputChoice', 'Placeholder',
'Module', 'Seque... | [
"[email protected]"
] | |
c0aa5d5329950ee81536b28948f3e1c23999d7b9 | 2f4605e878c073d7f735eed1d675c2ee454ad68e | /sdk/python/pulumi_kubernetes/apiextensions/v1/_inputs.py | a8642aba88bfc3ac6d4fd00a72d0776d3c88c9b0 | [
"Apache-2.0"
] | permissive | pulumi/pulumi-kubernetes | 3c0c82e03a19f4077625d2ff6dae5ea4dbf90243 | b5d76f0731383f39903f35a6c1566f2f4344c944 | refs/heads/master | 2023-08-17T16:57:11.845935 | 2023-08-16T00:55:18 | 2023-08-16T00:55:18 | 116,869,354 | 353 | 128 | Apache-2.0 | 2023-09-13T21:42:01 | 2018-01-09T20:50:33 | Java | UTF-8 | Python | false | false | 206,572 | py | # coding=utf-8
# *** WARNING: this file was generated by pulumigen. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
from .... | [
"[email protected]"
] | |
8a5cbbbeac6f891fa3dd895c6197b30790a72054 | d7d26c42cd541417edcd7b1992027286ecef7f04 | /lib/base/webscraper/class_htmlparser.py | 72a005b1e355998005611f8d790a5ebcc019c4c5 | [] | no_license | plutoese/pluto_archive | bfba8df48ee5639a2666b33432004519b93ecbf7 | e6ea64aaf867fd0433714293eb65a18a28d3136d | refs/heads/master | 2021-10-22T14:46:20.540770 | 2019-03-11T12:31:08 | 2019-03-11T12:31:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | # coding=UTF-8
# --------------------------------------------------------------
# class_htmlparser文件
# @class: HtmlParser类
# @introduction: HtmlParser类用来解析html对象
# @dependency: bs4及re包
# @author: plutoese
# @date: 2016.06.24
# --------------------------------------------------------------
from bs4 import BeautifulSou... | [
"[email protected]"
] | |
bdb1769291b0eb7eaa1c52f8234aa8806de31199 | fc58366ed416de97380df7040453c9990deb7faa | /tools/dockerize/webportal/usr/share/openstack-dashboard/openstack_dashboard/dashboards/admin/zones/images/forms.py | d66f6a73b791797eb062a03977c79ce131fd57e7 | [
"Apache-2.0"
] | permissive | foruy/openflow-multiopenstack | eb51e37b2892074234ebdd5b501b24aa1f72fb86 | 74140b041ac25ed83898ff3998e8dcbed35572bb | refs/heads/master | 2016-09-13T08:24:09.713883 | 2016-05-19T01:16:58 | 2016-05-19T01:16:58 | 58,977,485 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | from django.utils.translation import ugettext_lazy as _
from horizon import forms
from horizon import exceptions
from openstack_dashboard import api
class RebuildForm(forms.SelfHandlingForm):
def handle(self, request, data):
try:
api.proxy.image_rebuild(request, self.initial['zone_id'])
... | [
"[email protected]"
] | |
e5cf83464f56094ca25471ffb0ca0ff6556b8a61 | 281d4e963b898b426e06ca3ccd45fd2dc107bf38 | /venv/bin/flask | f3825005348fc2f48ca7d92be1af68a5394c70af | [] | no_license | savigaur2/pokemon-data-analysis | c45835e424dd19e3065e04dc97839d3ffd56e154 | 428f66820f3c2f3f378ac79391c8217fec1358de | refs/heads/main | 2023-01-15T23:01:26.930953 | 2020-11-22T03:50:38 | 2020-11-22T03:50:38 | 313,149,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | #!/Users/apple/Documents/DataScienceProjects/PokemonDataAnalysis/api/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"[email protected]"
] | ||
0066871fb2d3c40eea27833787de3a9206f8f37a | d489eb7998aa09e17ce8d8aef085a65f799e6a02 | /lib/modules/powershell/persistence/elevated/schtasks.py | 5874e2f11964b3771e9313b017de312179d76575 | [
"MIT"
] | permissive | fengjixuchui/invader | d36078bbef3d740f95930d9896b2d7dd7227474c | 68153dafbe25e7bb821c8545952d0cc15ae35a3e | refs/heads/master | 2020-07-21T19:45:10.479388 | 2019-09-26T11:32:38 | 2019-09-26T11:32:38 | 206,958,809 | 2 | 1 | MIT | 2019-09-26T11:32:39 | 2019-09-07T11:32:17 | PowerShell | UTF-8 | Python | false | false | 10,401 | py | import os
from lib.common import helpers
class Module:
def __init__(self, mainMenu, params=[]):
self.info = {
'Name': 'Invoke-Schtasks',
'Author': ['@mattifestation', '@harmj0y'],
'Description': ('Persist a payload (or script) using schtasks running as SYSTEM. This h... | [
"[email protected]"
] | |
b68e3f57c78af07e7e4e65232453565ad87c02a7 | a5b66100762c0ca7076de26645ef1b732e0ee2d8 | /python_toolbox/combi/__init__.py | 40c9544dc3e488bf610098b9b0ef4a3c5a5d5772 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | cool-RR/python_toolbox | 63400bbc004c63b32fe421b668a64bede4928e90 | cb9ef64b48f1d03275484d707dc5079b6701ad0c | refs/heads/master | 2022-01-26T14:41:29.194288 | 2021-12-25T06:49:40 | 2021-12-25T06:49:40 | 3,066,283 | 130 | 15 | NOASSERTION | 2021-12-25T06:49:41 | 2011-12-29T01:39:51 | Python | UTF-8 | Python | false | false | 582 | py | # Copyright 2009-2017 Ram Rachum.
# This program is distributed under the MIT license.
from python_toolbox.math_tools import binomial
from python_toolbox.nifty_collections import (Bag, OrderedBag, FrozenBag,
FrozenOrderedBag)
from .chain_space import ChainSpace
from .pro... | [
"[email protected]"
] | |
f845d484fcd45bd00b99b517730a82ce2ee58d0b | 0eaf0d3f0e96a839f2ef37b92d4db5eddf4b5e02 | /abc229/b.py | 5bfe4de8c5054616cf3e4adac546cb626bde495d | [] | no_license | silphire/atcoder | b7b02798a87048757745d99e8564397d1ca20169 | f214ef92f13bc5d6b290746d5a94e2faad20d8b0 | refs/heads/master | 2023-09-03T17:56:30.885166 | 2023-09-02T14:16:24 | 2023-09-02T14:16:24 | 245,110,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | a, b = input().rstrip().split()
a = list(reversed(a))
b = list(reversed(b))
for aa, bb in zip(a, b):
if int(aa) + int(bb) >= 10:
print('Hard')
exit()
print('Easy')
| [
"[email protected]"
] | |
c1d0df4a31f85bb2d72d99fea4a7077f1ee4319e | b05fee086482565ef48785f2a9c57cfe2c169f68 | /part_one/8-abs_factory_pattern/after/factories/ford_factory.py | 1259f7dc09794969157c2515bc46ac2188cc49c1 | [] | no_license | diegogcc/py-design_patterns | 76db926878d5baf9aea1f3d2f6a09f4866c3ce1e | 2b49b981f2d3514bbd02796fe9a8ec083df6bb38 | refs/heads/master | 2023-04-01T08:28:53.211024 | 2021-04-05T11:48:19 | 2021-04-05T11:48:19 | 304,145,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | from .abs_factory import AbsFactory
from autos.ford.fiesta import FordFiesta
from autos.ford.mustang import FordMustang
from autos.ford.lincoln import LincolnMKS
class FordFactory(AbsFactory):
@staticmethod
def create_economy():
return FordFiesta()
@staticmethod
def create_sport():
re... | [
"[email protected]"
] | |
4c7568977c523b38f203600aec9c4befcad3cb63 | 910a4c0d08dd01bba099dc9167054000ba3d3cc5 | /anharmonic/phonon3/joint_dos.py | 068cbab4417aae0e449cc6c2624dcfa424f12fe8 | [] | no_license | supersonic594/phonopy | 6b8be78c53e1a820397b659844a6357a86b50bc5 | 619c2bae99f6844eb0b33ea90fca246897844869 | refs/heads/master | 2021-01-20T07:54:22.308293 | 2015-11-01T03:44:25 | 2015-11-01T03:44:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,812 | py | import sys
import numpy as np
from phonopy.structure.symmetry import Symmetry
from phonopy.units import VaspToTHz
from anharmonic.phonon3.triplets import (get_triplets_at_q,
get_nosym_triplets_at_q,
get_tetrahedra_vertices,
... | [
"[email protected]"
] | |
13eda0de95f9467954a2064cc95a5abdd0b0ec64 | 9e831c0defd126445772cfcee38b57bfd8c893ca | /code/questions/221~230_/224.py | d90b7f67cdd7fc5614ac658666790161c4a04e2c | [] | no_license | m358807551/Leetcode | 66a61abef5dde72250d032b7ea06feb3f2931d54 | be3f037f6e2057a8f2acf9e820bbbbc21d7aa1d2 | refs/heads/main | 2023-04-22T15:13:43.771145 | 2021-05-07T06:47:13 | 2021-05-07T06:47:13 | 321,204,181 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | """
https://leetcode-cn.com/problems/basic-calculator
"""
import re
class Solution(object):
def calculate(self, s):
"""
:type s: str
:rtype: int
"""
s = re.sub('[^0-9]', lambda x: '!{}!'.format(x.group()), s)
s = [x for x in s.split('!') if x.strip()]
queue,... | [
"[email protected]"
] | |
494853650bc48daabecbdd20ffd1824486452123 | 743d1918178e08d4557abed3a375c583130a0e06 | /src/ToCPSC/getDailyCount.py | dc5994f9a0237db0f7b31ecd26d5406d7d555d78 | [] | no_license | aquablue1/dns_probe | 2a027c04e0928ec818a82c5bf04f485a883cfcb3 | edd4dff9bea04092ac76c17c6e77fab63f9f188f | refs/heads/master | 2020-03-25T19:40:07.346354 | 2018-11-17T05:31:43 | 2018-11-17T05:31:43 | 144,094,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,405 | py | """
" Get the daily count of src of DNS sessions that sent to cpsc ns.
" By Zhengping on 2018-08-14
"""
from src.GeneralAnalysis.DailySrcCount import dailySrcCount
from src.GeneralAnalysis.DailyDstCount import dailyDstCount
from src.GeneralAnalysis.DailyQueryCount import dailyNameCount
from src.GeneralAnalysis.DailyTy... | [
"[email protected]"
] | |
12dad381805512acbfb45f4df790488bcc3335bf | 0869d7edac80e8aebe951682a2cc311a083eade3 | /Python/tdw/object_data/composite_object/composite_object_dynamic.py | e9057a039e69ee0a014cfdd06af0f7a5dfabbdb8 | [
"BSD-2-Clause"
] | permissive | threedworld-mit/tdw | 7d5b4453832647733ff91ad7a7ce7ec2320454c1 | 9df96fba455b327bb360d8dd5886d8754046c690 | refs/heads/master | 2023-09-01T11:45:28.132298 | 2023-08-31T16:13:30 | 2023-08-31T16:13:30 | 245,492,977 | 427 | 75 | BSD-2-Clause | 2023-09-14T17:36:12 | 2020-03-06T18:42:09 | Python | UTF-8 | Python | false | false | 1,537 | py | from typing import Dict
from tdw.object_data.composite_object.sub_object.light_dynamic import LightDynamic
from tdw.object_data.composite_object.sub_object.hinge_dynamic import HingeDynamic
class CompositeObjectDynamic:
"""
Dynamic data for a composite object and its sub-objects.
Note that not all su... | [
"[email protected]"
] | |
9d2e2e509a635d8d7698a89d4e4b939dbc77cb36 | 7591c267059486c943d68e713bd3ff338900d2c5 | /settings.py | 5a2d36ae53de4e39a3fb123b6c4885d77b2de18b | [] | no_license | westinedu/quanenta | 00fe419da1e34ddd9001ffeb9848639d5c58d265 | a59c75458b6eff186637ab8e0e36b6f68a1a99c9 | refs/heads/master | 2021-01-10T20:35:25.196907 | 2012-06-07T06:01:33 | 2012-06-07T06:01:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | try:
from djangoappengine.settings_base import *
has_djangoappengine = True
except ImportError:
has_djangoappengine = False
DEBUG = True
TEMPLATE_DEBUG = DEBUG
import os
SECRET_KEY = '=r-$b*8hglm+858&9t043hlm6-&6-3d3vfc4((7yd0dbrakhvi'
INSTALLED_APPS = (
'djangotoolbox',
'django.contrib.a... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.