blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
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
684 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
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
a702e4b80caf7a516d063910b16df3193a3b12f8
c7c1a7030ce94f9678fbb9c9e8469a9726592a0a
/server.py
8f43ad1cccafa8117dc18e3aa062fcf936d5ae0e
[ "WTFPL" ]
permissive
giogodo/hydrus
a7e5d8a6b256109e914216d18efa2e4ed341ccf7
836ae13e1f80b02e063dac9829faaec0e5c89f89
refs/heads/master
2020-04-17T18:52:00.309884
2019-01-16T22:40:53
2019-01-16T22:40:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,392
py
#!/usr/bin/env python3 # This program is free software. It comes without any warranty, to # the extent permitted by applicable law. You can redistribute it # and/or modify it under the terms of the Do What The Fuck You Want # To Public License, Version 2, as published by Sam Hocevar. See # http://sam.zoy.org/wtfpl/COP...
[ "hydrus.admin@gmail.com" ]
hydrus.admin@gmail.com
323dc9dfafaaecd399097690749c647753a3ee63
2699b6508febc0fddde5520c5498000746eee775
/metadata/ns_swe20.py
6c5a30471dad8351f5968fbd06f135d5c361138e
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
DREAM-ODA-OS/tools
e1c71ddb65c255dc291a1e10778b461f32e1b017
66090fc9c39b35b4ef439d4dfe26ac1349d9c5f2
refs/heads/master
2021-01-19T02:13:59.489229
2017-11-18T10:27:25
2017-11-18T10:27:25
18,381,247
0
0
null
null
null
null
UTF-8
Python
false
false
2,357
py
#------------------------------------------------------------------------------ # # SWE v2.0 namespace # # Project: XML Metadata Handling # Authors: Martin Paces <martin.paces@eox.at> # #------------------------------------------------------------------------------- # Copyright (C) 2013 EOX IT Services GmbH # # Permi...
[ "martin.paces@eox.at" ]
martin.paces@eox.at
7e674560d2a9be8aff0f294dad3f242b65276e81
fd40d6375ddae5c8613004a411341f0c984e80d5
/src/visions/core/implementations/types/visions_object.py
4ca3062561d0563c83583f542943063a6f1c8e55
[ "LicenseRef-scancode-public-domain", "MIT" ]
permissive
ieaves/tenzing
93c3353e62621c90adefc5a174a2dcde9aacbc46
92d39c1c3a5633d8074e0ffe8c2687c465aebbc8
refs/heads/master
2020-04-25T07:14:31.388737
2020-01-07T02:51:13
2020-01-07T02:51:13
172,608,080
0
0
null
null
null
null
UTF-8
Python
false
false
904
py
import pandas.api.types as pdt import pandas as pd from typing import Sequence from visions.core.model.relations import ( IdentityRelation, InferenceRelation, TypeRelation, ) from visions.core.model.type import VisionsBaseType def _get_relations() -> Sequence[TypeRelation]: from visions.core.implemen...
[ "ian.k.eaves@gmail.com" ]
ian.k.eaves@gmail.com
35a8c74de378ac521d1c86e29ff4fb0fe804eba7
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03829/s130253347.py
369c68d33d9d4cee44e80bfa246abbd4af28f0be
[]
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
157
py
n,a,b=map(int,input().split()) xs=list(map(int,input().split())) l=[xs[i+1]-xs[i] for i in range(n-1)] ans=[a*k if a*k < b else b for k in l] print(sum(ans))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
66b046fca4348342f44b6fccb8ee072e0a4f1306
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03696/s509896752.py
d2b5b083923b99b338db190c7478f534cf557b8f
[]
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
226
py
n = int(input()) s = input() opens = 0 l = 0 for i in range(n): if s[i] == "(": opens += 1 else: opens -= 1 if opens < 0: l += 1 opens = 0 print("("*l + s + ")"*opens)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
7824f1a34399e412abf45a090606e6f9607837a1
0eaab1305900d8e70dd746d676126d1667d9c314
/scripts/cached_credentials.py
d2360fae08a54472419d0ad570e1d841faa8c3e2
[ "Apache-2.0" ]
permissive
scudette/winreg-kb
89ffc7f63c2630b266bed41d1c66dff64fd1d32d
f81b8bcaef8365d0c52bf3c87af2bccb4274bece
refs/heads/master
2020-06-08T20:51:37.427445
2019-06-14T06:47:16
2019-06-14T06:47:16
193,304,780
1
0
null
2019-06-23T04:07:02
2019-06-23T04:07:02
null
UTF-8
Python
false
false
2,497
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Script to extract cached credentials.""" from __future__ import print_function from __future__ import unicode_literals import argparse import logging import sys from dfvfs.helpers import command_line as dfvfs_command_line from winregrc import cached_credentials from ...
[ "joachim.metz@gmail.com" ]
joachim.metz@gmail.com
e1be6cb81e9d66c660fafd0db382193191ef9e47
6b2db6fca8f31c4e6c96e68cf11e5ca3ce7e8a9b
/src/drawPerceptionAnaTimeSeries.py
32382b65cd5bd0c0a5f3649d575b1d52a7cebdd3
[ "MIT" ]
permissive
ningtangla/escapeFromMultipleSuspectors
e04da12488be9767c5b6511355c167fdcf18e723
e6dcb0f7f9371b7ca6cca8779f69f18095092140
refs/heads/master
2022-05-03T05:25:21.556950
2022-04-20T13:51:53
2022-04-20T13:51:53
190,686,484
1
0
null
null
null
null
UTF-8
Python
false
false
5,552
py
from collections import OrderedDict from collections import OrderedDict import pandas as pd from matplotlib import pyplot as plt import itertools as it import os import trajectoriesSaveLoad as tsl class Readcsv: def __init__(self, getCSVSavePathByCondition, columnNames): self.getCSVSavePathByCondition = g...
[ "ningtangzju@gmail.com" ]
ningtangzju@gmail.com
23b9d302ab52d35d1cb3fdd270c785503d99aacb
b3b68efa404a7034f0d5a1c10b281ef721f8321a
/Scripts/simulation/interactions/base/cheat_interaction.py
90cea49d59271ca03aa011bf3d7fd934e0685f7e
[ "Apache-2.0" ]
permissive
velocist/TS4CheatsInfo
62195f3333076c148b2a59f926c9fb5202f1c6fb
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
refs/heads/main
2023-03-08T01:57:39.879485
2021-02-13T21:27:38
2021-02-13T21:27:38
337,543,310
1
0
null
null
null
null
UTF-8
Python
false
false
5,778
py
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\interactions\base\cheat_interaction.py # Compiled at: 2020-10-09 00:03:45 # Size of source mod 2**32...
[ "cristina.caballero2406@gmail.com" ]
cristina.caballero2406@gmail.com
1a6d7326648830c51c9d6ddcfd52f90ae9a5f1ed
0fccee4c738449f5e0a8f52ea5acabf51db0e910
/genfragments/ThirteenTeV/PythiaChargedResonance_WG/PythiaChargedResonance_WGToLNuG_M4000_width0p01_13TeV-pythia8_cff.py
45ca4f0a00d2ad1221666d6f875dca26a7287b5c
[]
no_license
cms-sw/genproductions
f308ffaf3586c19b29853db40e6d662e937940ff
dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4
refs/heads/master
2023-08-30T17:26:02.581596
2023-08-29T14:53:43
2023-08-29T14:53:43
11,424,867
69
987
null
2023-09-14T12:41:28
2013-07-15T14:18:33
Python
UTF-8
Python
false
false
1,131
py
import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import * generator = cms.EDFilter("Pythia8GeneratorFilter", comEnergy = cms.double(13000.0), filterEfficiency = cms.untracked.double(1), maxEvent...
[ "shubhanshu.chauhan.cern.ch" ]
shubhanshu.chauhan.cern.ch
b538521c1a4e868a82ca658bfa9726213a686173
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/W7S25BPmjEMSzpnaB_4.py
1710d798d37e7f63b51f71720d88fb6747d84732
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
301
py
def bonacci(sum_num, index): list = [] for i in range(1, sum_num): list.append(0) list.append(1) for i in range(sum_num , index ): num = 0 for j in range(1, sum_num + 1): num += list[i - j] list.append(num) return list[index - 1]
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
cc2e37ddd71fb1e52708459d304b69b5718bc428
8d55d41a4f5c0b89331cac714c1525e9581d9720
/PyCommon/modules/VirtualPhysics/setup_mac.py
df7c84427729204e8ca11d58188d86486b5080f3
[ "Apache-2.0" ]
permissive
hpgit/HumanFoot
8cf35ceeeb35a0371e03eaf19d6da58dc01487eb
f9a1a341b7c43747bddcd5584b8c98a0d1ac2973
refs/heads/master
2022-04-13T23:38:19.072203
2019-12-06T06:36:10
2019-12-06T06:36:10
41,348,141
0
0
null
null
null
null
UTF-8
Python
false
false
660
py
from distutils.core import setup, Extension import sys py_major_ver = sys.version_info[0] boost_lib = 'boost_python' if py_major_ver == 3: boost_lib = boost_lib + '3' def moduleSetup(moduleName): moduleToSetup = Extension(moduleName, include_dirs = ['../usr/include/'], #extra_compile_args=['-fope...
[ "garethvlf@gmail.com" ]
garethvlf@gmail.com
f4199947212a6889d65b9832b7341e5f36dafffd
39405775f9ba7b9325a1348c8172f98ad24d442c
/user_portrait/user_portrait/cron/info_consume/propagate/propagate_time_weibo.py
6e2575bd9086745a5444b63f5d897d7058f14b32
[]
no_license
yuyuqi/info_consume
cfef72d697b929eb69244bd54b335cf46c4252ff
c984fb3b7235bae02cd5ba8f04f7ffb41ba0b910
refs/heads/master
2021-01-14T12:22:25.929097
2016-11-11T08:18:38
2016-11-11T08:18:38
66,696,804
0
0
null
2016-08-27T04:56:46
2016-08-27T04:56:46
null
UTF-8
Python
false
false
834
py
# -*- coding: utf-8 -*- from config import db class PropagateTimeWeibos(db.Model): id = db.Column(db.Integer, primary_key=True, autoincrement=True) topic = db.Column(db.String(20)) end = db.Column(db.BigInteger(10, unsigned=True)) range = db.Column(db.BigInteger(10, unsigned=True)) mtype ...
[ "1257819385@qq.com" ]
1257819385@qq.com
b5126f5c82e7deb25eaa06a3bf6f79162e98be49
9c8fdfa389eaaf2df4c8ba0e3072d94671b5a622
/0547. Friend Circles.py
0a8f07d64c078d5a21a44614caac046e77dc1720
[]
no_license
aidardarmesh/leetcode2
41b64695afa850f9cc7847158abb6f2e8dc9abcd
4cf03307c5caeccaa87ccce249322bd02397f489
refs/heads/master
2023-02-27T11:22:09.803298
2021-02-07T06:47:35
2021-02-07T06:47:35
264,491,702
0
0
null
null
null
null
UTF-8
Python
false
false
758
py
from typing import * class Solution: def findCircleNum(self, M: List[List[int]]) -> int: n = len(M) self.circles = n uf = {i:i for i in range(n)} def find(v): if uf[v] == v: return v uf[v] = find(uf[v]) ...
[ "darmesh.aidar@gmail.com" ]
darmesh.aidar@gmail.com
728690b3b498ad97e32534f2b46aa151a0ac28a4
bee9d96912078d68877aa53e0c96537677ec3e6a
/peakpo/control/cakemakecontroller.py
1003e9635181ea50fa417f7c3418c3b18cf82084
[ "Apache-2.0" ]
permissive
SHDShim/PeakPo
ce0a637b6307787dd84fd3dcb3415e752d180c32
4c522e147e7715bceba218de58ee185cccd2055e
refs/heads/master
2022-06-26T11:26:45.097828
2022-06-19T22:03:24
2022-06-19T22:03:24
94,345,216
17
3
null
null
null
null
UTF-8
Python
false
false
573
py
import os from PyQt5 import QtWidgets from utils import undo_button_press, dialog_savefile, writechi class CakemakeController(object): def __init__(self, model, widget): self.model = model self.widget = widget def read_settings(self): self.model.diff_img.set_calibration(self.model.po...
[ "SHDShim@gmail.com" ]
SHDShim@gmail.com
aa9336da4d4fa8ada35ebde970a9ccf696c296fb
b2826350dab8935de4c54092fac2090ec9b562bc
/prog_1d_hubbard.py
1ba9a833239abe660c4ca0920ebd3f3c417466c4
[ "MIT" ]
permissive
ryuikaneko/exactly_solvable_models
73c8bea988279a3ea595d067986a131494cd0d2b
d6f7617ae979b2ca7cbb1e9c1c562fae780b6956
refs/heads/master
2022-01-29T10:12:43.789610
2022-01-12T02:20:31
2022-01-12T02:20:31
205,546,034
15
2
null
null
null
null
UTF-8
Python
false
false
709
py
#!/usr/bin/env python from __future__ import print_function import numpy as np import scipy as scipy import scipy.integrate as integrate import scipy.special if __name__ == "__main__": Umax = 101 dU = 0.1 for intU in range(Umax): U = dU*intU # f[U_] = -4 Integrate[ BesselJ[0, x] BesselJ[1, x]/x/...
[ "27846552+ryuikaneko@users.noreply.github.com" ]
27846552+ryuikaneko@users.noreply.github.com
f75acb67e52cb8ec24de9fe04efc2181e8dae4b9
9d0195aa83cc594a8c61f334b90375961e62d4fe
/JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano1606.py
224e1d24dc5734464eade6e5711ee8dbc5f0ffb1
[]
no_license
rsk146/CMS
4e49592fc64f6438051544c5de18598db36ed985
5f8dab8c59ae556598b9747b52b88205fffc4dbe
refs/heads/master
2022-12-01T03:57:12.126113
2020-08-04T03:29:27
2020-08-04T03:29:27
284,863,383
0
0
null
null
null
null
UTF-8
Python
false
false
4,293
py
# Auto generated configuration file # using: # Revision: 1.19 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v # with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era...
[ "rsk146@scarletmail.rutgers.edu" ]
rsk146@scarletmail.rutgers.edu
eea817d60254307a68dbd9b0943756d17da0c46b
3f100a1002a1f8ed453c8b81a9b403444d77b4c6
/while_loops/trial.py
0bf2cb0e9f1ac677e22c4333bf6b64a527e9b842
[]
no_license
Kimuda/Phillip_Python
c19c85a43c5a13760239e4e94c08436c99787ebf
59d56a0d45839656eb15dbe288bdb0d18cb7df2b
refs/heads/master
2016-09-09T22:19:02.347744
2015-05-01T10:56:49
2015-05-01T10:56:49
32,330,951
0
0
null
null
null
null
UTF-8
Python
false
false
1,027
py
1. The program will continue producing output until it is interrupted. 2. A line that increments i by 1 needs to be put at the end of, but inside of the while loop. 3. --- smallest.py --- smallest = "strings are always larger than integers" print "Enter a sequence of numbers:" line = raw_input("> ") while line != "":...
[ "pjkanywa@gmail.com" ]
pjkanywa@gmail.com
5cb365c88d11e4906a757b2995cf93d0128fcde3
a4e5a695e749e49953d173e7ac2aeaf372d0513d
/flask/myapp.py
33873b70b27a80cd5f95b83bd1af3eeb4cebe55f
[]
no_license
mamueller/nix_examples
7e79194a479e8a73490f22d9087bc11a834f9c66
98fd728d0bba83d9c7a8151e724ef06aadd6cb95
refs/heads/master
2021-06-12T11:02:02.224015
2021-04-09T18:44:51
2021-04-09T18:44:51
167,869,054
0
0
null
null
null
null
UTF-8
Python
false
false
281
py
#! /usr/bin/env python import subprocess from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello, Nix!" def run(): res=subprocess.run(['qemu-x86_64','-h']) print(res) app.run(host="0.0.0.0") if __name__ == "__main__": run()
[ "markus.mueller.1.g@googlemail.com" ]
markus.mueller.1.g@googlemail.com
6fdb094e7f8936d65474156243043ac349a04633
c6bfc62c5d90a8eaa7dcb0f4149b48a18dec3dc1
/model.py
503d31ccb1cd347ef5807b9bd8ced9f9f9543e4d
[]
no_license
PabloRR100/Bert_Sentiment_Multilingual
4e2e897a7638ca097043980f2bf00336b7f87673
d19b0ebca0c890313b25b3c8fbd3ac165f94856c
refs/heads/master
2023-07-12T17:34:46.746524
2020-05-13T10:23:01
2020-05-13T10:23:01
261,702,895
0
0
null
null
null
null
UTF-8
Python
false
false
1,423
py
import torch import torch.nn as nn import config import transformers """ EXTENDES TRANSFORMERS BERT MODEL """ class BERTBaseUncased(nn.Module): def __init__(self): super(BERTBaseUncased, self).__init__() self.bert = transformers.BertModel.from_pretrained(config.BERT_PATH) self.bert_drop...
[ "pabloruizruiz10@gmail.com" ]
pabloruizruiz10@gmail.com
9a9875f9ef74c131bf2885171b2c1645e587bd42
9d64a438cdfe4f3feb54f2f0dc7431139c4b9fb9
/trendmicro_apex/icon_trendmicro_apex/actions/search_agents/action.py
82238c4c95b6add16427768df0993ff18d46a01e
[ "MIT" ]
permissive
PhilippBehmer/insightconnect-plugins
5ad86faaccc86f2f4ed98f7e5d518e74dddb7b91
9195ddffc575bbca758180473d2eb392e7db517c
refs/heads/master
2021-07-25T02:13:08.184301
2021-01-19T22:51:35
2021-01-19T22:51:35
239,746,770
0
0
MIT
2020-02-11T11:34:52
2020-02-11T11:34:51
null
UTF-8
Python
false
false
1,935
py
import komand from .schema import SearchAgentsInput, SearchAgentsOutput, Input, Output, Component # Custom imports below import re import urllib.parse class SearchAgents(komand.Action): def __init__(self): super(self.__class__, self).__init__( name='search_agents', description=Com...
[ "noreply@github.com" ]
PhilippBehmer.noreply@github.com
1ea8d734403be436ba043166a9c312562de2a51a
48517a9b7ec7b0f0bf0a03291b7d1e3def751c0a
/Choose Your Own Colors/horizontal_striper_15.py
9e0f6da63d3a326564cc317ef111c0c8348888c7
[ "MIT" ]
permissive
Breakfast-for-Pigeons/Unicorn-HAT
1ae033bf11c05b9cc739b1eacfc77665506e0bc8
9ff1388ee627a8e81f361929e9e9b708db4e2832
refs/heads/master
2021-06-06T12:22:48.162031
2020-10-22T17:31:51
2020-10-22T17:31:51
74,648,524
1
0
null
2018-10-02T17:37:31
2016-11-24T07:28:23
Python
UTF-8
Python
false
false
2,042
py
#!/usr/bin/python3 """ Horizontal Striper 15 - Choose Your Own Colors With the Raspberry Pi oriented with the GPIO pins at the top, this program stripes from the top to the bottom and alternates from left to right and right to left. This is exactly the same as Horizontal Striper 7 except the color order is reversed. ...
[ "noreply@github.com" ]
Breakfast-for-Pigeons.noreply@github.com
9a2bfa2e085d4bdbbcd7e45e25f31886e442b9b4
3cd19164c17d9793ea506369454b8bacd5cebfa9
/Backend/py2club/bin/pyjwt
56637acb75b755885e5c894368fe1121d7d3a106
[]
no_license
Myxg/BadmintonClubSystem
337a17728122ab929d37e7f2732850beb49d8be0
1c51236098ab3770cadd925212f9d3978ed83c2a
refs/heads/master
2022-12-27T10:13:55.129630
2020-09-16T10:21:36
2020-09-16T10:21:36
295,998,099
0
0
null
null
null
null
UTF-8
Python
false
false
257
#!/home/ubuntu/BadmintonClubSystem/Backend/py2club/bin/python # -*- coding: utf-8 -*- import re import sys from jwt.__main__ import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "15234407153@163.com" ]
15234407153@163.com
cf8d0b5cf4e4a0107de6cd9c133e7f4aa366db30
95deb106d41a4612628c50568b2e6107e0a6773d
/applications/admin/handlers/role.py
bbeb9f28634de63f2130e98cf28534b2ae5137dc
[ "BSD-3-Clause" ]
permissive
sjl421/py_admin
a57b0d2449a1beabef5ccffb88bd510a38db8013
2fb404af8b8435d247eb23c13386ae8deb88d144
refs/heads/master
2020-03-18T21:04:26.213089
2018-05-22T06:11:15
2018-05-22T06:11:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,344
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """URL处理器 [description] """ import json import tornado from applications.core.settings_manager import settings from applications.core.logger.client import SysLogger from applications.core.cache import sys_config from applications.core.decorators import required_permissio...
[ "leeyisoft@icloud.com" ]
leeyisoft@icloud.com
12c2fb913ef27cff8bbefcf384d426de3192582e
9da8754002fa402ad8e6f25659978bd269bbcec8
/src/314B/test_cdf_314B.py
e9e2e5ce0864198663b5fa16bab21ce3f1026005
[ "MIT" ]
permissive
kopok2/CodeforcesSolutionsPython
a00f706dbf368ba0846c8ae86d4145b5dd3e1613
35bec0dbcff47765b123b5fe60476014376153df
refs/heads/master
2023-02-02T03:08:22.097651
2020-12-17T22:00:50
2020-12-17T22:00:50
196,035,812
1
1
null
null
null
null
UTF-8
Python
false
false
563
py
import unittest from unittest.mock import patch from cdf_314B import CodeforcesTask314BSolution class TestCDF314B(unittest.TestCase): def test_314B_acceptance_1(self): mock_input = ['10 3', 'abab', 'bab'] expected = '3' with patch('builtins.input', side_effect=mock_input): Sol...
[ "oleszek.karol@gmail.com" ]
oleszek.karol@gmail.com
f2cc5f6f8b3ac1a429f71c5a1e78bcae39d6be7a
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/all-gists/2604992/snippet.py
d1ee8b056d79d916da3e98173cd2729fc7778229
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
485
py
# Print each permutation. def perm(l, n, str_a): if len(str_a) == n: print str_a else: for c in l: perm(l, n, str_a+c) # Return a list of permutations. def perm2(l, n, str_a, perm_a): if len(str_a) == n: return [str_a] + perm_a else: new_perm_a = perm_a ...
[ "gistshub@gmail.com" ]
gistshub@gmail.com
19a76e26092ec389793026a5b6b3a32e09ff7ac3
ac1d3a1ff9e4ccac37c1ae206f3c12021e56e420
/code/figures/MBL_xan_titration.py
d3cb715bf2652b4a6ed9ccd6e0df1e2db8f0fb2c
[ "MIT", "LicenseRef-scancode-proprietary-license", "CC-BY-4.0" ]
permissive
RPGroup-PBoC/mwc_activation
4bcdeb2271047df4c1fe8243de2eade709012d0a
6ef3f02a53ecd80877082006ecc4b8fe4204c1d6
refs/heads/master
2023-07-22T22:09:25.442468
2020-02-27T18:59:17
2020-02-27T18:59:17
167,025,404
0
0
MIT
2023-07-06T21:20:04
2019-01-22T16:16:05
Jupyter Notebook
UTF-8
Python
false
false
5,692
py
#%% import numpy as np import pandas as pd import matplotlib.pyplot as plt import joypy import glob import sys import scipy.stats sys.path.insert(0, '../../') import act.viz import act.flow colors = act.viz.pub_style() # %% # Parse all of hte files. files = glob.glob('../../data/flow/csv/*.csv') dfs = [] for f in f...
[ "gchure@caltech.edu" ]
gchure@caltech.edu
0a85d36cc1a0d025855da19e08d0826209a0d735
508321d683975b2339e5292202f3b7a51bfbe22d
/Userset.vim/ftplugin/python/CompletePack/PySide2/QtWidgets/QStyleOption.py
c82ecadb7fa2cdc8b2a6f3c10eb0f9bc1b529d32
[]
no_license
cundesi/vimSetSa
4947d97bcfe89e27fd2727423112bb37aac402e2
0d3f9e5724b471ab21aa1199cc3b4676e30f8aab
refs/heads/master
2020-03-28T05:54:44.721896
2018-08-31T07:23:41
2018-08-31T07:23:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,232
py
# encoding: utf-8 # module PySide2.QtWidgets # from C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\PySide2\QtWidgets.pyd # by generator 1.145 # no doc # imports import PySide2.QtCore as __PySide2_QtCore import PySide2.QtGui as __PySide2_QtGui import Shiboken as __Shiboken class QStyleOption(...
[ "noreply@github.com" ]
cundesi.noreply@github.com
2d955a76eb32edaf404ea4ca61f1fa9696e17582
9852cee063eb438227abf75fa4aa06c0d2d7a23a
/hacktivitycon/web/ladybug.py
6c45caddae6a0597e627efbc95dec881fc2a2349
[]
no_license
arwildo/ctf
227a6038b4d068f33134153534942e91ec5f36f8
623ac5cf7f177870d837ae298310bbd244a1db56
refs/heads/master
2021-09-08T16:50:32.890102
2021-08-28T04:13:37
2021-08-28T04:13:37
248,462,299
2
0
null
null
null
null
UTF-8
Python
false
false
222
py
#!/usr/bin/python3 import requests url = 'http://two.jh2i.com:50018/mail.php' myobj = {'name': 'fsdkfkjs', 'email': 'dfjskjsf', 'subject': 'dfdfs', 'message': 'dfssf'} x = requests.post(url, data = myobj) print(x.text)
[ "arwildo@gmail.com" ]
arwildo@gmail.com
534ff2ff2d4c67fe84121d7af419371c58a918e2
1078c61f2c6d9fe220117d4c0fbbb09f1a67f84c
/paws/lib/python2.7/site-packages/euca2ools-3.4.1_2_g6b3f62f2-py2.7.egg/EGG-INFO/scripts/eulb-attach-lb-to-subnets
fcf3618ac8aa00e3864a9b452656c3acae5f986c
[ "MIT" ]
permissive
cirobessa/receitas-aws
c21cc5aa95f3e8befb95e49028bf3ffab666015c
b4f496050f951c6ae0c5fa12e132c39315deb493
refs/heads/master
2021-05-18T06:50:34.798771
2020-03-31T02:59:47
2020-03-31T02:59:47
251,164,945
0
0
null
null
null
null
UTF-8
Python
false
false
284
#!/media/ciro/LOCALDRV/A_DESENVOLVIMENTO/AWS/receitas/paws/bin/python -tt import euca2ools.commands.elasticloadbalancing.attachloadbalancertosubnets if __name__ == '__main__': euca2ools.commands.elasticloadbalancing.attachloadbalancertosubnets.AttachLoadBalancerToSubnets.run()
[ "cirobessa@yahoo.com" ]
cirobessa@yahoo.com
310fbda3e7edaa5707602795633ce2c70e3ef932
75cd5cb3ad898548b3be1863de233c2ad01334d2
/python/Drone_utils.py
42cee4cff8311d96cd44869e30d0f3e7d7763e01
[]
no_license
bacisback/tfm
25e6fa61c202b679e64c10f18062717539a4432d
626ef8065ea150de882442f523c9fbb0af5c8428
refs/heads/master
2023-07-17T06:22:03.869401
2021-09-03T11:18:12
2021-09-03T11:18:12
349,205,997
0
0
null
null
null
null
UTF-8
Python
false
false
2,989
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Mar 29 17:40:46 2021 @author: e321075 """ import numpy as np from PIL import Image from matplotlib import pyplot as plt import pandas as pd import cv2 import scipy.misc from skimage.transform import resize import os from collections import namedtuple i...
[ "you@example.com" ]
you@example.com
3e6f34481593e6d3a94d3f6cd125b50d1b4b91db
b001b44c95f4a7c5574385baa4fe72c5f3d02236
/home/migrations/0014_auto_20181104_1611.py
4acbda228febaf659b1e14a983a45d508d1d4673
[ "MIT" ]
permissive
gjergjk71/Attendence
3ae9b9f3cb3c4e0bfe2addf4124b7612a78f1533
9e9370125bfc4958de02171a3ae4c8e16bf10913
refs/heads/master
2020-04-14T08:46:58.649674
2019-01-01T14:27:29
2019-01-01T14:27:29
163,743,067
0
0
MIT
2019-01-01T14:34:28
2019-01-01T14:34:28
null
UTF-8
Python
false
false
2,087
py
# Generated by Django 2.1.3 on 2018-11-04 10:41 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('home', '0013_auto_20181104_1610'), ] operations = [ migrations.AlterField( model_name='semester...
[ "201651011@iiitvadodara.ac.in" ]
201651011@iiitvadodara.ac.in
52d152cd936a19bcfaff23e213b40de5abd66f4d
e4e4c60ffa509f257afc915d4c6cd32c0cb7098c
/.history/app_20200916151418.py
ce395406ad7ab0b64c3691b8145d6d189f1fbc90
[]
no_license
QianyueMa/Google-Health-Search-Project
01dbd597780158f50eebfba2a228b505f8169726
6ef6b270dc7ab0826ad4f0338c9cd95d3571e19a
refs/heads/master
2022-12-19T03:55:10.328167
2020-10-02T12:54:27
2020-10-02T12:54:27
296,495,736
0
0
null
2020-09-18T02:44:12
2020-09-18T02:44:11
null
UTF-8
Python
false
false
3,775
py
import numpy as np import os import requests import json import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine import pandas.io.sql as pdsql from config import pg_user, pg_password, db_name from flask import Flask, jsonify, render_templ...
[ "ermiasgelaye@gmail.com" ]
ermiasgelaye@gmail.com
dd3a8b4df0a8549639ca2811e00c55d75a191693
1c63089e6efa2e63948075cdfad69ded88b7d40e
/symphony/cli/pyinventory/graphql/service_endpoint_role_enum.py
cb96e2664531afd15454ef3508c35251b2889523
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
aharonnovo/magma
4c305b3b0ea414a0355a7dc8fdcc7ed7e1be436e
d96a272ee58fea436cc94990c7ad05c4edc76341
refs/heads/master
2021-08-01T05:38:35.882598
2020-04-02T15:40:13
2020-04-02T15:41:55
252,531,569
0
0
NOASSERTION
2020-04-02T18:11:35
2020-04-02T18:11:34
null
UTF-8
Python
false
false
313
py
#!/usr/bin/env python3 # @generated AUTOGENERATED file. Do not Change! from enum import Enum class ServiceEndpointRole(Enum): CONSUMER = "CONSUMER" PROVIDER = "PROVIDER" MISSING_ENUM = "" @classmethod def _missing_(cls, value: str) -> "ServiceEndpointRole": return cls.MISSING_ENUM
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
0deb5d5658c60f9a95c30297977be47460475bd9
f4c4546f21046ddfd109a0dd34005ac4872f123d
/oldboy/day2/基础数据类型4.py
c5fe2670b3666f8eb90c4ca3640d26fd759070c6
[]
no_license
wuzhisheng/Python
ebbeacc81881b65d6085b8f4bf10e15a25549ab0
84930c2eb5fb0397d546819effef0d879055e2c8
refs/heads/master
2022-01-17T14:57:08.926481
2021-12-31T09:52:01
2021-12-31T09:52:01
146,844,250
0
0
null
null
null
null
UTF-8
Python
false
false
3,770
py
'''''' ''' 字符串:str 存储少量数据类型 python中:凡是用单/双引号引起来的数据就是字符串。 str = 'wuzhisheng 吴志盛' str1 = "wuzhisheng 吴志盛" wu=''' ''' # """ """或''' ''' 保留格式 字符串可以用 + 或 * + 将字符串进行拼接 w = 'wu' z = 'zhi' # 加可以 print(w + z) print(w * 3) 切片: w="wwww" print(w[::2]) ''' #capitalize()首字母大写,其余小写 ** s1='oldBoy' s2=s1.capitalize() print ...
[ "806215829@qq.com" ]
806215829@qq.com
71b4904a308e77ad43f1976e2817ec36814cab43
4644eb637a27eb7a546ee0b0887a174f7d4c13d6
/old/test/das_memcache_t.py
f137479d19a8ab168f7662a474e36ae144de4a5c
[]
no_license
dmwm/DAS
4c33ce63156bbe7f87703532e04321320fd6d66d
a2dddea2c2cb18287d607a3f8da0c6364f9f70d7
refs/heads/master
2021-08-08T17:40:27.066179
2021-05-27T18:47:21
2021-05-27T18:47:21
4,300,629
7
5
null
2021-05-27T18:47:22
2012-05-11T19:07:55
Python
UTF-8
Python
false
false
3,977
py
#!/usr/bin/env python #pylint: disable-msg=C0301,C0103 """ Unit test for DAS cache module """ import unittest import time from DAS.utils.utils import genkey from DAS.utils.das_config import das_readconfig from DAS.utils.logger import DASLogger from DAS.core.das_memcache import DASMemcache try: # with python 2.5 ...
[ "metson@4525493e-7705-40b1-a816-d608a930855b" ]
metson@4525493e-7705-40b1-a816-d608a930855b
c2f66ca6d5d76b2c7657e6035b85941cfe6b9f61
db303c68682dfd18965a04026ff14e15c1ba6120
/ch04/ans35.py
b9577362e4fe622f0c34d0265e8758e7446b7b73
[]
no_license
Toshiyana/nlp100v2020
1a89f164de0c720da6d42c19b3fa60f8013d662c
37d4d208d5d527d163356793b630f36eb7595779
refs/heads/master
2023-07-15T15:01:28.454515
2021-08-21T13:20:03
2021-08-21T13:20:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
931
py
from collections import defaultdict def parse_mecab(block): res = [] for line in block.split('\n'): if line == '': return res (surface, attr) = line.split('\t') attr = attr.split(',') lineDict = { 'surface': surface, 'base': attr[6], ...
[ "upura0@gmail.com" ]
upura0@gmail.com
fa97372f1c7c1784d5b67306cc72c036f1556e99
bb048a319e732cb7c059b5fb877b834aab7525c5
/dcbots/bench/sqltypes.py
b6544393cc54f81cbb49f1292c8f0a71288a7a8f
[]
no_license
dodysw/dodysw-svn
9ec38513b7be8ec87d4ae8f6510bc7624e4ce4c0
1f784dae610b1052bf4cd96f5d470e56f0a08528
refs/heads/master
2021-01-22T02:34:00.193636
2016-09-10T17:02:22
2016-09-10T17:02:22
25,316,568
1
0
null
null
null
null
UTF-8
Python
false
false
2,340
py
import time import MySQLdb as dbm def measure(f): start = time.clock() f() print time.clock()-start def init(): global tth_rows, cur MYSQL_CONNECT_PARAM = dict(host='localhost', user='whatsnew_dcbot', passwd='', db='whatsnew_dcbot') conn = dbm.connect(**MYSQL_CONNECT_PARAM) c...
[ "dody@cryptolab.net" ]
dody@cryptolab.net
55c0387190029797fc40a4a5795409b09aa8c92e
f98de2db6b24d30d64f1145c7d8da4a40385a87f
/packages/grid_control/backends/aspect_cancel.py
5b86166d12d61c4cbe5cccbb139d0d6dfe99df5a
[]
no_license
greyxray/grid-control
f9f453491fe7bc506d4cfc240afaa364ba9db84b
ed10fdb6ff604006a5d52dcd43c2e55c9e962c0a
refs/heads/master
2020-04-15T13:15:21.103357
2019-01-08T18:23:07
2019-01-08T18:23:07
164,709,043
1
0
null
null
null
null
UTF-8
Python
false
false
3,028
py
# | Copyright 2016 Karlsruhe Institute of Technology # | # | 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 ...
[ "stober@cern.ch" ]
stober@cern.ch
6eb50de935128c4b95da982aeecb7b0ac8837c6e
f121695e2dff353607fa47fb42482470e03bbf8a
/capitulo_05-Instrucoes_if/hello_admin.py
498fd1d357d23865008f7fd5357e38db07827afc
[]
no_license
ranog/python_work
76cbcf784c86fae4482be5383223e4b0a34f4130
47c442a90dcf32d5aef70858693a772a3c76a7ac
refs/heads/master
2022-12-22T11:02:26.482059
2021-04-17T01:12:22
2021-04-17T01:12:22
233,634,221
2
1
null
2022-12-08T07:38:43
2020-01-13T15:58:46
Python
UTF-8
Python
false
false
4,523
py
#! /usr/bin/env python3 """ NOME hello_admin.py - FAÇA VOCÊ MESMO SINOPSES chmod +x hello_admin.py ./hello_admin.py - Precisamos encontrar alguns usuários! - Breno: Usuário está disponível. - Felipe: Usuário está disponível. - João: Usuário está disponível. - ISAAC: Usuário indisp...
[ "jprnogueira@yahoo.com.br" ]
jprnogueira@yahoo.com.br
02e8402c5117c2b27d6c879a64f03f2ff0da8a59
1afae73794c6d4874360c7a12e4d2f2dbe62ca56
/gilda/tests/test_process.py
10e7d813d8f9ab94695884c5b91a62d83ae79e63
[ "BSD-2-Clause", "BSD-2-Clause-Views" ]
permissive
steppi/gilda
ce2dc1d1d56363c6543b6076a8605d32baca0f60
4927469e5f9a4ca20a056f617c126fe6a4bf3b34
refs/heads/master
2021-11-19T12:52:13.465346
2021-09-25T00:40:17
2021-09-25T00:40:17
194,151,959
0
0
null
2019-06-27T19:28:27
2019-06-27T19:28:26
null
UTF-8
Python
false
false
638
py
from gilda.process import depluralize, replace_greek_spelled_out def test_depluralize(): assert depluralize('BRAF') == ('BRAF', 'non_plural') assert depluralize('apoptosis') == ('apoptosis', 'non_plural') assert depluralize('mosquitoes') == ('mosquito', 'plural_oes') assert depluralize('antibodies') =...
[ "ben.gyori@gmail.com" ]
ben.gyori@gmail.com
f5a4068248717cdecf969c101345a43b1250ad3f
dd5d05ecb3e6752941dd5c72ca955307fca8ec14
/d11/d11p2.py
0b9004cb76477d36074131ce8fe0ef87a6d26774
[]
no_license
jabadia/adventOfCode2020
81e7166cb2646f83da10d70bbaf4c31026ce7938
587001526b90bc6eed703e273b2d6cbec7e9b151
refs/heads/main
2023-02-05T15:39:22.123879
2020-12-28T08:52:54
2020-12-28T08:52:54
317,472,068
1
0
null
null
null
null
UTF-8
Python
false
false
3,140
py
import time from collections import defaultdict from utils.test_case import TestCase from d11_input import INPUT TEST_CASES = [ TestCase(""" L.LL.LL.LL LLLLLLL.LL L.L.L..L.. LLLL.LL.LL L.LL.LL.LL L.LLLLL.LL ..L.L..... LLLLLLLLLL L.LLLLLL.L L.LLLLL.LL """, 26), ] def find_nearest_from(ferry, pos, delta): row...
[ "javi.abadia@gmail.com" ]
javi.abadia@gmail.com
5e365d856993c7130f5b9560833669d748b12ddf
d60ee49abaee6c74c5b777f8f112a7f75f71f029
/genome/variants2/active_driver/convert_ptm.py
8bc23a1001aa4e3e7c10a5588f7623f8747323f3
[]
no_license
ak352/melanomics
41530f623b4bfdbd5c7b952debcb47622d1a8e88
fc5e6fdb1499616fb25a8dc05259add8a65aeca0
refs/heads/master
2020-12-24T16:14:42.271416
2015-08-06T12:48:52
2015-08-06T12:48:52
18,439,919
0
0
null
null
null
null
UTF-8
Python
false
false
1,484
py
import sys import re def get_genes(gene_file): genes = {} for gene in gene_file: gene = gene.strip('\n').split('\t') transcript = gene[0] genename = gene[1] genes[transcript] = genename return genes def get_gene_intersection(data_file, gene_list, out_file): # open fil...
[ "ak@uni.fake" ]
ak@uni.fake
bd36975c81170ebc8231899dace68949b8c3af3b
c4a57dced2f1ed5fd5bac6de620e993a6250ca97
/huaxin/huaxin_ui/ui_ios_xjb_2_0/setting_trade_password_page.py
ad3b0792d49495208856a117a3e182156aa9fd78
[]
no_license
wanglili1703/firewill
f1b287b90afddfe4f31ec063ff0bd5802068be4f
1996f4c01b22b9aec3ae1e243d683af626eb76b8
refs/heads/master
2020-05-24T07:51:12.612678
2019-05-17T07:38:08
2019-05-17T07:38:08
187,169,391
0
0
null
null
null
null
UTF-8
Python
false
false
2,762
py
# coding=utf-8 from _common.page_object import PageObject import huaxin_ui.ui_ios_xjb_2_0.security_center_page from _common.xjb_decorator import robot_log FIND_TRADE_PASSWORD = "accId_UIAElement_找回交易密码" MODIFY_TRADE_PASSWORD = "accId_UIAElement_修改交易密码" CURRENT_TRADE_PASSWORD = "accId_UIATextField_(tradePwdTextField)" ...
[ "wanglili@shhxzq.com" ]
wanglili@shhxzq.com
e01ad7691ea38c36d638bae31a9495c9d187f087
cf55e0e3ac8f340b379bb211c9f40a71930a4891
/src/app_v1/order_paid.py
8561892863f309ffc3634b0fafdf09563c70ae50
[]
no_license
jack139/pretty
666af96fd412c9fba1b4180dc14b2dcb77ae677d
5641341d23191cd3dcc050524cf862c5e1dde2c7
refs/heads/master
2021-01-19T23:02:25.805841
2017-08-24T07:19:56
2017-08-24T07:19:56
101,262,255
1
0
null
null
null
null
UTF-8
Python
false
false
3,894
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import web import time, json from config import setting import app_helper db = setting.db_web # 支付完成 url = ('/app/v1/order_paid') class handler: @app_helper.check_sign(['app_id','dev_id','ver_code','tick','session','order_trade_id','data']) def POST(self, versi...
[ "gt@f8geek.com" ]
gt@f8geek.com
8eb81c367c3e97cfc7fc8836fe6fe26710691f9e
9f2f386a692a6ddeb7670812d1395a0b0009dad9
/python/paddle/fluid/tests/unittests/test_tensor_uva.py
4af04b8f6d41e2801fb1bba280f648c81bd3c2ae
[ "Apache-2.0" ]
permissive
sandyhouse/Paddle
2f866bf1993a036564986e5140e69e77674b8ff5
86e0b07fe7ee6442ccda0aa234bd690a3be2cffa
refs/heads/develop
2023-08-16T22:59:28.165742
2022-06-03T05:23:39
2022-06-03T05:23:39
181,423,712
0
7
Apache-2.0
2022-08-15T08:46:04
2019-04-15T06:15:22
C++
UTF-8
Python
false
false
2,195
py
# Copyright (c) 2022 PaddlePaddle 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 ap...
[ "noreply@github.com" ]
sandyhouse.noreply@github.com
f47f0e566dc3c61d9cdc0fb73ae153e1f08d47fc
6c00499dfe1501294ac56b0d1607fb942aafc2ee
/eventregistry/tests/TestERQueryArticle.py
bdd55097b88d584354831bd931f97c34064372e3
[ "MIT" ]
permissive
EventRegistry/event-registry-python
dd692729cb5c505e421d4b771804e712e5b6442b
bf3ce144fa61cc195840591bae5ca88b31ca9139
refs/heads/master
2023-07-06T11:04:41.033864
2023-06-23T08:40:31
2023-06-23T08:40:31
40,995,963
176
48
MIT
2020-10-21T09:17:06
2015-08-18T20:29:23
Python
UTF-8
Python
false
false
2,330
py
import unittest from eventregistry import * from eventregistry.tests.DataValidator import DataValidator class TestQueryArticle(DataValidator): def createQuery(self): q = QueryArticles(conceptUri = self.er.getConceptUri("Obama")) q.setRequestedResult(RequestArticlesUriWgtList(count = 100)) ...
[ "gleban@gmail.com" ]
gleban@gmail.com
0e6eb8dd980dea3dca19b288358cbfacba99fa4e
78d35bb7876a3460d4398e1cb3554b06e36c720a
/sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2-beta/async_samples/sample_manage_models_async.py
e4a2f1a079c6b24be6a7fd47b513e0d7ea6e2b56
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
catchsrinivas/azure-sdk-for-python
e35f59b60318a31b3c940a7a3a07b61b28118aa5
596227a7738a5342274486e30489239d539b11d1
refs/heads/main
2023-08-27T09:08:07.986249
2021-11-11T11:13:35
2021-11-11T11:13:35
427,045,896
0
0
MIT
2021-11-11T15:14:31
2021-11-11T15:14:31
null
UTF-8
Python
false
false
3,366
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. # --------------------------------------------------------------------...
[ "noreply@github.com" ]
catchsrinivas.noreply@github.com
a182ce756249ca3cacb5023e1cfa2f9c7184bdc4
d47436cad4e2b08ee0e58a157a0860f496037df7
/sApp/migrations/0001_initial.py
8aae841cbabb0695048dac5b91cf44de9cebbf73
[]
no_license
rushabhgediya38/Django-BeautifulSoup
ff8a9d5514bf0e3b7ecc2e26dadde605c39c9b71
11029364c161d6a63f74b17a5aa04b45a43b3140
refs/heads/master
2023-05-06T10:03:56.474083
2021-05-25T13:49:13
2021-05-25T13:49:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
707
py
# Generated by Django 3.2.3 on 2021-05-24 11:27 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='sData', fields=[ ('id', models.BigAutoField...
[ "rushabhgediya38@gmail.com" ]
rushabhgediya38@gmail.com
86e188f2e4988ed3ff9dbc179788f4eaa24c9c97
f1b86f057b7982163055e36cc97ff1532d3afb46
/encode_decode/auto_encode.py
e6c13f11080263f3e9ff30b6dd02fad224ede17e
[]
no_license
bigboyooo/ner-bilstm-dnn
0a29b2268ce48960ee222863673d7fd5785ff54b
7afd569dd59706e16007eeb50f2bc2049bc33c80
refs/heads/master
2020-06-01T22:29:28.019022
2018-06-21T07:23:56
2018-06-21T07:23:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,158
py
#coding="utf8" import os,sys,re,traceback,json import pandas as pd import numpy as np import tensorflow as tf #import sklearn.preprocessing as prep #from tensorflow.examples.tutorials.mnist import input_data import sys def _path(filepath): return os.path.join(CURPATH, filepath) def xavier_init(fan_in, fan_out, ...
[ "qhn614@126.com" ]
qhn614@126.com
0b9f0c6a5191efbdccbdafb1b015451146020a38
9cbd523cdedc727f62c887612e8ae2c25c909964
/tests/lib/steps/check_TID_027.py
83b46b0a4fa54c98997731f5cfb1487b519482f6
[]
no_license
louiscklaw/QA_test_scripts
8a71d0bed99fae3b0dac4cd9414b3e34dcf5beed
58b73594332053272d8dce2c812c93297259c782
refs/heads/master
2023-01-27T15:48:29.477848
2020-12-06T10:05:19
2020-12-06T10:05:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
598
py
import random from pprint import pprint from config import * from time import sleep from assert_check_point import assertCheckPoint import restaurant_manage.password def run_check(json_metadata, browser, password_to_bruce): TEST_ERR_MSG='test failed at TID_027' assertCheckPoint(browser, 'TID_027_1', TEST_ERR_MS...
[ "louiscklaw@gmail.com" ]
louiscklaw@gmail.com
d68475d087c681885a302ce09839ee0363db00a4
0122d6ff2fdab185480ca06ba37e743c8e899e26
/test/test_api_list_gateway_response.py
b41732009e203a02e3f75b9f21c2ae4ff86e5112
[]
no_license
jcu-eresearch/pyLorawanServer
c0564a4946627f71b1cdba114fe24c0475059f59
277b99736194b1f1ae47526c1deaee3f7f88c299
refs/heads/master
2020-04-03T14:38:03.334371
2018-10-30T05:29:27
2018-10-30T05:29:27
155,328,867
1
0
null
null
null
null
UTF-8
Python
false
false
1,090
py
# coding: utf-8 """ LoRa App Server REST API For more information about the usage of the LoRa App Server (REST) API, see [https://docs.loraserver.io/lora-app-server/api/](https://docs.loraserver.io/lora-app-server/api/). # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://github.co...
[ "nigel.blair@gmail.com" ]
nigel.blair@gmail.com
a701b7b61f73127bef8278cfaa98dcf0c501b42d
0e4168c4d129b7219cd4048102409ab69c543376
/scripts/joinSamples.py
4ea8442b37d446e6dad8984cbac3b1c31589947a
[]
no_license
saumyaphor4252/PlayWithDatacards
867f47486cd51091b7b6ee99bc3f860486266117
2b25d49073b76a6c030cdac5577def3024dd219f
refs/heads/master
2022-03-06T05:44:21.039024
2017-10-31T11:08:43
2017-10-31T11:08:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
494
py
# # join samples # # join YY and XX into VV # # joinSamples.update({'VV' : ['YY','XX']}) joinSamples.update({'Higgs' : ['qqH','ggH','ZH','WH']}) joinSamples.update({'VVV-WZ-ZZ-Vg' : ['VV','VVV','Vg','VgS']}) #joinSamples.update({'WW' : ['ggWW','WW']}) joinSamples.update({'Top' : ['TopPt0','...
[ "massironi.andrea@gmail.com" ]
massironi.andrea@gmail.com
d3fa277d14aebc7a28b2c6ef51d67f48fb198690
17e60f61fc82e7369802a1c597b58b0206ad9bec
/lib/resIpOSF1.py
ed540226dbdb369c1350048d478951dab3b4d1ee
[]
no_license
SLB-DeN/opensvc
5e06d42947f51662fa16203a00670a88b9e1fea9
75baeb19e0d26d5e150e770aef4d615c2327f32e
refs/heads/master
2021-05-17T05:35:18.585791
2020-03-19T15:20:05
2020-03-19T15:20:05
250,651,667
1
0
null
2020-03-27T21:29:22
2020-03-27T21:29:22
null
UTF-8
Python
false
false
919
py
import resIp as Res import rcExceptions as ex from rcUtilitiesOSF1 import check_ping from rcUtilities import to_cidr, to_dotted class Ip(Res.Ip): def check_ping(self, count=1, timeout=5): self.log.info("checking %s availability"%self.addr) return check_ping(self.addr, count=count, timeout=timeout) ...
[ "christophe.varoqui@opensvc.com" ]
christophe.varoqui@opensvc.com
bf5ec6948feea77173ec09f78b4b41b6d0a71eaa
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/built-in/nlp/MT5_ID4146_for_PyTorch/transformers/src/transformers/models/albert/__init__.py
0a61f5995a78963a71d334ac03c89ac5cdcdbb54
[ "GPL-1.0-or-later", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
4,368
py
# flake8: noqa # There's no way to ignore "F401 '...' imported but unused" warnings in this # module, but to preserve other warnings. So, don't check this module at all. # Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except ...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
62af2b892b48fc4ea07ca654b78b182a5488e8be
52e814745700b54e4b35e783386ad5f796def1e9
/colour/models/rgb/dataset/smptec_rgb.py
975aa35b67e90bc77dac406f33783516a44fb3cb
[ "BSD-3-Clause" ]
permissive
scoopxyz/colour
e9c6502f67ff0774ab77f3c2f622b5973f5a9196
b1d82af250122f82919b4c54d06fdf72c069c5af
refs/heads/develop
2020-12-30T19:57:48.884001
2016-12-28T12:42:44
2016-12-28T12:42:44
68,670,983
0
0
null
2016-09-20T03:38:17
2016-09-20T03:38:17
null
UTF-8
Python
false
false
2,618
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ SMPTE-C RGB Colourspace ======================= Defines the *SMPTE-C RGB* colourspace: - :attr:`SMPTE_C_RGB_COLOURSPACE`. See Also -------- `RGB Colourspaces Jupyter Notebook <http://nbviewer.jupyter.org/github/colour-science/colour-notebooks/\ blob/master/noteboo...
[ "thomas.mansencal@gmail.com" ]
thomas.mansencal@gmail.com
a121ce2c0c6215da8a3ea58cd38153ea6a7642af
7a2342efcfb0a9880c30c26e8b45bf954b701ac1
/tensorflow/contrib/learn/python/learn/preprocessing/tests/categorical_test.py
0a6603c79b78a6f9bfe53d502e7a4da5ba17401a
[ "Apache-2.0" ]
permissive
danielhardej/tensorflow
0012157e89629c19cd7fcdab613ab609b05b0294
1c7d02cd21f6182f959ae66d3487ff55daa83f6a
refs/heads/master
2023-04-15T13:05:46.374708
2016-07-13T22:30:26
2016-07-13T22:30:26
63,285,754
2
0
Apache-2.0
2023-04-07T11:36:20
2016-07-13T23:15:10
C++
UTF-8
Python
false
false
2,243
py
# encoding: utf-8 # Copyright 2016 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 r...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
5466508a5f10a2490145c71a4d00799ff8fa23b2
1a59a9076c1e9f1eb98e24ff41a4c1c95e2b353e
/xcp2k/classes/_print51.py
5960da1d1f2942edcf03cd540cb901434df30894
[]
no_license
Roolthasiva/xcp2k
66b2f30ebeae1a946b81f71d22f97ea4076e11dc
fc3b5885503c6f6dc549efeb4f89f61c8b6b8242
refs/heads/master
2022-12-23T06:03:14.033521
2020-10-07T08:01:48
2020-10-07T08:01:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
355
py
from xcp2k.inputsection import InputSection from xcp2k.classes._program_run_info36 import _program_run_info36 class _print51(InputSection): def __init__(self): InputSection.__init__(self) self.PROGRAM_RUN_INFO = _program_run_info36() self._name = "PRINT" self._subsections = {'PROGR...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
5228f70187f2fb73f3f1637fd851a5a7bc4cc9b0
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02850/s373081081.py
b381794c0d3494f7275436bc03b2bca28c761d40
[]
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
556
py
n = int(input()) g = [[] for _ in range(n)] inv = [0] * n for i in range(n - 1): a, b = map(int, input().split()) g[a - 1].append((b - 1, i)) inv[a - 1] += 1 g[b - 1].append((a - 1, i)) inv[b - 1] += 1 k = max(inv) print(k) s = [0] d = [-1] * n d[0] = [-2] ans = [0] * (n - 1) while s: p = s.pop(...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
4f92f5233c910ebb8db129825cec1fe0afd083df
0a7711063b30b1566ade3cc07f105292e32fe6d6
/fabfile.py
07b2332cef37e71892c58c0032d7fa0bfe7a0502
[]
no_license
huokedu/dynamic-scrapy
e150a1fc6894e39d6bae37c602a592d57cd22c51
31a47e9810f2039cfe33653e09d7d03242764723
refs/heads/master
2021-01-17T21:33:17.810250
2013-10-05T17:28:19
2013-10-05T17:28:19
null
0
0
null
null
null
null
UTF-8
Python
true
false
3,512
py
"""Management utilities.""" from fabric.contrib.console import confirm from fabric.api import abort, env, local, settings, task ########## GLOBALS env.run = 'heroku run python manage.py' HEROKU_ADDONS = ( 'cloudamqp:lemur', 'heroku-postgresql:dev', 'scheduler:standard', 'memcachier:dev', 'newrel...
[ "scoarescoare@gmail.com" ]
scoarescoare@gmail.com
001ee8c250001a08a7d5f7293b5801b8d90f2704
7250ce4b0f8c0bbff563e22243750bd89bc4a1f8
/source/interprocedural_analyses/taint/test/integration/via_type_of.py
5c5b05667e533cc4c1f9f0187df6d2ea54ec20a3
[ "MIT" ]
permissive
geekmc/pyre-check
717a02b71b9537852e494507c70b91e7e98a8c22
592ad6dee657e48746ed2d352c6f9269b6ff9c61
refs/heads/main
2023-07-07T15:48:20.915843
2021-08-10T03:22:53
2021-08-10T03:23:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
923
py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import enum from builtins import _test_sink, _test_source def return_via_parameter_type(parameter): return 0 def test_strings(): r...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
57213ef2b1e90bae101fffe7e7eb0c0cfa88899b
e3f8a3631b05347614645807ec04f834f30d3361
/mysite/myapp/urls.py
d509527fb94ec17f6719cd9a13ab69163abc3d67
[ "MIT" ]
permissive
CSUChico-CINS465/CINS465-S19-Examples
0acd7e8c46d6a197e63ff23a5198ba5c93d9cf3d
2a9e88e1cc5ec937562211680760243d0f16efcf
refs/heads/master
2021-11-16T15:06:28.924984
2021-06-16T16:33:37
2021-06-16T16:33:37
166,880,285
0
1
MIT
2021-09-22T17:49:06
2019-01-21T21:02:57
Python
UTF-8
Python
false
false
383
py
from django.urls import path from django.contrib.auth import views as auth_views from . import views urlpatterns = [ path('', views.index), path('login/', auth_views.LoginView.as_view()), path('logout/', views.logout_view), path('register/', views.register), path('comment/<int:sugg>/', views.comm...
[ "javawolfpack@gmail.com" ]
javawolfpack@gmail.com
5650b18a91e0524ae5250eb65573dc05105ed4f4
31f1be14dbdc5f6076415dbab63a23a3766d0c84
/Slateo-web/Slateo_Admin/urls/adminGradeUrls.py
ab8ccf9ce72c7147d4cc5927ea19363ea668c797
[]
no_license
kumar109-beep/Examination_Panel
4004b328cc5abb26dfaccc0b11fd35112840458a
598f70aa970b9ed3a03cc931e0fd39efb5ed84bb
refs/heads/main
2023-08-10T17:33:48.067626
2021-09-25T12:51:22
2021-09-25T12:51:22
410,267,668
0
0
null
null
null
null
UTF-8
Python
false
false
360
py
from django.urls import path from ..views.admingradeView import * urlpatterns = [ path('create-grade' , create_individualGrade, name='individualGrade'), path('chainedGradeCourses' , chainedGradeCourses, name='chainedGradeCourses'), path('grade-list' , grade_list, name='grade_list'), path('edit-grade...
[ "rk468335@gmail.com" ]
rk468335@gmail.com
bff37916a2a0abf7e118be05ae0e606e4f32e919
31ecba3f8112e91fbf99edf0bb9dd385da93c2ea
/Chapters/Unit5probs/findbuckets.py
45234cabf24149c5a3d9eba1512cbed7175f33d9
[]
no_license
siddeshbb/searchengine
7c92ab59e9515725541a9c010ec8efd369121907
210a6f52cb12b7c0bc27f43d138fa308942b9fd6
refs/heads/master
2022-12-22T19:52:52.889791
2020-09-28T12:46:44
2020-09-28T12:46:44
299,305,999
1
0
null
null
null
null
UTF-8
Python
false
false
874
py
# Define a procedure, hashtable_get_bucket, # that takes two inputs - a hashtable, and # a keyword, and returns the bucket where the # keyword could occur. def hashtable_get_bucket(htable,keyword): return htable[ hash_string( keyword , len( htable ) ) ] def hash_string(keyword,buckets): out = 0 for s in...
[ "sbb@vmware.com" ]
sbb@vmware.com
f9ba13ab120ad54b3d31f7b7e3d3fde7dbb94789
2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8
/pardus/tags/2007.1/programming/libs/tcltk/actions.py
1d79ab883daf1f4427f3cad73d8694cbc4138091
[]
no_license
aligulle1/kuller
bda0d59ce8400aa3c7ba9c7e19589f27313492f7
7f98de19be27d7a517fe19a37c814748f7e18ba6
refs/heads/master
2021-01-20T02:22:09.451356
2013-07-23T17:57:58
2013-07-23T17:57:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,731
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2005 TUBITAK/UEKAE # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/copyleft/gpl.txt. from pisi.actionsapi import autotools from pisi.actionsapi import get from pisi.actionsapi import pisitools from pisi.actionsapi imp...
[ "yusuf.aydemir@istanbul.com" ]
yusuf.aydemir@istanbul.com
0eb1879c244d2115498463b9733d18e928eb0385
3716e91c0a18a2cf0b5807cc673d95a7539b008c
/Desert/GoldenMirage.py
f563b55791426c7140a315433fe66e9f7577132e
[]
no_license
kiwiapple87/CodeCombat-1
47f0fa6d75d6d3e9fb9c28feeb6fe2648664c1aa
ce0201e5ed099193ca40afd3b7abeee5a3732387
refs/heads/master
2021-05-01T16:38:03.575842
2016-08-25T11:13:26
2016-08-25T11:13:26
66,552,813
1
0
null
2016-08-25T11:39:20
2016-08-25T11:39:18
null
UTF-8
Python
false
false
780
py
# https://codecombat.com/play/level/golden-mirage # Collect 7 real coins. # Real coins have a unique value in the each group of coins. # If a coin has the same value as another coin in the group, then it's a fake. # Fake coins will transform into venomous creatures to hurt the player! def Coin(coins): for coin1 in ...
[ "vadim-job-hg@yandex.ru" ]
vadim-job-hg@yandex.ru
68d1e6d7b2e4f62368c66cc12f92988222360a43
b1962b701230e8fe3235676b6a9a659b1ad921ef
/app/route/route1/models.py
bb9c977cd8cfd4a7d72eeda587a6f38d85ac85ae
[]
no_license
volgoweb/wt
8e08dc0ff83ac120992bd81c209a420b207df966
3a88b8d7d6e1f925b363bfecb94008e14d15943f
refs/heads/master
2021-01-23T09:29:42.209757
2016-02-05T21:24:10
2016-02-05T21:24:10
42,570,795
0
0
null
null
null
null
UTF-8
Python
false
false
4,063
py
# -*- coding: utf-8 -*- """ Маршрут для форумки. Контент-менеджер создает инфоповод. Автор пишет по инфоповоду заголовок и текст. Контент-менеджер подбирает картинки. Корректор проверяет и исправляет ошибки. Контент-менеджер публикует. """ import json import datetime from django.db import models from django.core.urlres...
[ "volgoweb@bk.ru" ]
volgoweb@bk.ru
d7db9754a8b6bbf84b7a4de1c90f1a7ec627a1f8
3a9f76cda884152ab083ca713b57570d5d195a79
/locations/choices.py
7d3c412a3970317af58e06134cf6b1d703bc0ef9
[ "MIT" ]
permissive
MahmoudFarid/django-locations
9b9790dfef5de0214169e04640e9a4f0ab6c0961
af25d0e4492fd3476b6be1c7f1ef8471be13751c
refs/heads/master
2020-07-17T11:47:38.806163
2015-11-14T23:41:25
2015-11-14T23:41:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,069
py
from localflavor.us import us_states STATE_CHOICES = us_states.US_STATES # ISO 3166-1 country names and codes adapted from http://opencountrycodes.appspot.com/python/ COUNTRY_CHOICES = ( ('GB', 'United Kingdom'), ('AF', 'Afghanistan'), ('AX', 'Aland Islands'), ('AL', 'Albania'), ('DZ', 'Algeri...
[ "dstegelman@gmail.com" ]
dstegelman@gmail.com
ccefb9800777cb3c74d7e87d7736daf68f3b4d36
0a3da7d8ee3453beec7798a62003014187b714b1
/data/ai/99_others/nlp/text-classifier/text-classifier-rule-resume/cv-filter.py
2b008e6920d75a57b8bf8f0c003819bffd2f9aba
[]
no_license
atfly/atlib
635d1b0804af01c090a92048ed09758cb03820bf
2c15fa47b2b915c1d998e89bbd69ff24dba52137
refs/heads/master
2021-05-16T12:51:50.157911
2017-11-16T06:50:33
2017-11-16T06:50:33
105,330,432
1
0
null
null
null
null
UTF-8
Python
false
false
4,299
py
#!/usr/bin/env python # _*_ coding:utf-8 _*_ import sys reload(sys) sys.setdefaultencoding("utf-8") cv_basic_patterns = {"name": ["姓名"], "phone": ["手机", "电话"], "email": ["邮箱", "e-mail"],"age": ["年龄"], "address": ["通讯地址"],"location": ["居住地"], "hukou": ["户口"], "gender": ["性别", "男", "女"]} cv_edu_patterns = {"university"...
[ "atflysun@outlook.com" ]
atflysun@outlook.com
d0d76f63c0475f78d1062683c3de2370e4c53de6
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_152/ch4_2020_09_11_17_51_58_429714.py
e3254130811b41145b6e3da216c09d9b3ffa527c
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
def classifica_idade(idade): if idade >= 18: return 'adulto' elif idade >=12 and <= 17: return 'adolescente' else: return 'crianca'
[ "you@example.com" ]
you@example.com
074fea474ada199da2341663a3361ad9c806139c
1ff9adfdb9d559e6f81ed9470467bab25e93b5ab
/src/ta_lib/_vendor/tigerml/core/utils/stats.py
dc81eb055a7defec79beb1790a276d8acedfe3f6
[]
no_license
Seemant-tiger/housing-price-prediction
a39dbefcb11bc460edeeee92e6becf77d35ff3a8
be5d8cca769c7e267cfee1932eb82b70c2855bc1
refs/heads/main
2023-06-24T00:25:49.776720
2021-07-18T16:44:28
2021-07-18T16:44:28
387,222,852
0
0
null
null
null
null
UTF-8
Python
false
false
3,242
py
import itertools import numpy as np import pandas as pd def woe_info_value(target_series, idv_series, target_counts=None): """Compute Information Value (IV) from WOE (weight of evidence). Parameters ---------- target_series: pd.Series of target variable idv_series: pd.Series of categoric...
[ "seemantsingh1199@gmail.com" ]
seemantsingh1199@gmail.com
02786c59d2cf9e90a7fb6700ed31bc99cfca740b
bebacae90aa17ad2ab4c9111a2e5cfa0f8cf13a6
/Python-3/basic_examples/python_breakpoint_examples.py
82779156f60abb7de9db164c20fc32e1fa246595
[ "MIT" ]
permissive
ayanakshi/journaldev
5b0d73c53bc9a5292a8629c6c0320196abeab76e
a61cba22232e8cc9c40264c31aaba0bd17ff2522
refs/heads/master
2020-03-27T21:52:15.081736
2018-08-31T11:51:28
2018-08-31T11:51:28
147,182,378
1
0
MIT
2018-09-03T09:28:38
2018-09-03T09:28:38
null
UTF-8
Python
false
false
388
py
x = 10 y = 'Hi' z = 'Hello' print(y) # breakpoint() is introduced in Python 3.7 breakpoint() print(z) # Execution Steps # Default: # $python3.7 python_breakpoint_examples.py # Disable Breakpoint: # $PYTHONBREAKPOINT=0 python3.7 python_breakpoint_examples.py # Using Other Debugger (for example web-pdb): # $PYTHONB...
[ "pankaj.0323@gmail.com" ]
pankaj.0323@gmail.com
7d51ad00952c385a402ae18745b0c2224c9cd731
b8c65f30cd80f1ca3400ff88e02d6e92d83f4137
/eve/exceptions.py
fc0361299e5eabe4201f5841e6de2014895c5ae2
[ "BSD-3-Clause" ]
permissive
cnsoft/eve
e3429d5dade3cac2190ef0a56143e3a033107ea5
f624855c0e83668aa2db4f9c482da38847c699f4
refs/heads/master
2021-01-09T06:49:11.827912
2013-07-25T08:13:35
2013-07-25T08:13:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
486
py
# -*- coding: utf-8 -*- """ eve.exceptions ~~~~~~~~~~~~~~ This module implements Eve custom exceptions. :copyright: (c) 2012 by Nicola Iarocci. :license: BSD, see LICENSE for more details. """ class ConfigException(Exception): """ Raised when errors are found in the configuration settings (...
[ "nicola@nicolaiarocci.com" ]
nicola@nicolaiarocci.com
770f6161c2b5791f1460733e6599363406134e67
41a672c9505b5b53c58a01d5455acc410949aa24
/tests/aoutgoing/acceptance/messaging/p2p/context/C_15457.py
d782e225bd120f95750cafe463d46b88d56df246
[]
no_license
Alexsorgo/mobile_iOS
b045a0ea058726841c88158be8407b7ae45e893e
7e298f890b408cedad9db9d0aefeccd9c10d6002
refs/heads/master
2022-12-12T17:26:14.039876
2020-03-18T06:34:56
2020-03-18T06:34:56
248,154,882
0
0
null
2021-06-02T01:13:05
2020-03-18T06:25:17
Python
UTF-8
Python
false
false
1,322
py
import pytest from configs import config from enums import context_enums from screens.chats.chat_list_screen import ChatListScreen from screens.chats.chat_screen import ChatScreen from screens.chats.location_screen import LocationScreen from controls.menu import Menu from tests.aoutgoing.base_test import BaseTest from...
[ "oleksii_mishchenko@epam.com" ]
oleksii_mishchenko@epam.com
d106059d970e58822acb60ca0f9d2965aa8d056b
8eb5008ad4ab98f72666c54e3f83a8b17ac096f6
/UIPackage/LoginMainWindow.py
24f8c8e4d9b92506b4e5f5c80ca2d2e029873bb5
[]
no_license
caojiaju-2017/HSShareKowledge
ff60d28a894807462de9402a2fdd28a1723c0ddf
e511439444959c518a4962ea4b6590f7c28bd112
refs/heads/master
2020-03-30T08:45:40.620897
2018-11-11T12:34:04
2018-11-11T12:34:04
151,037,473
0
0
null
null
null
null
UTF-8
Python
false
false
6,612
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.Qt import * from ByPlatform.Base.OutPutHelper import * import sys from UIDesigner.LoginUI import Ui_MainWindow from tinydb import TinyDB, Query from ByPlatform.Base.TimeHelper import * # from UIPackage.Wait...
[ "jiaju_cao@hotmail.com" ]
jiaju_cao@hotmail.com
ba9a9f6ba60a81293d7b7eaa9ce97f4b6b1d919b
e02506da0c661c8241fed00efdd0d6b2f8b147df
/textattack/constraints/overlap/levenshtein_edit_distance.py
8e7863c9daeb4621e5bbc89f9b080d68255b60b1
[ "MIT" ]
permissive
SatoshiRobatoFujimoto/TextAttack
2592a828f128fd8bf0b8ce5578e9488df5b2ac97
a809a9bddddff9f41750949e26edde26c8af6cfa
refs/heads/master
2022-07-11T02:10:24.536157
2020-05-14T13:29:44
2020-05-14T13:29:44
263,941,825
1
0
MIT
2020-05-14T14:43:47
2020-05-14T14:43:46
null
UTF-8
Python
false
false
719
py
import editdistance from textattack.constraints import Constraint class LevenshteinEditDistance(Constraint): """ A constraint on edit distance (Levenshtein Distance). """ def __init__(self, max_edit_distance): if not isinstance(max_edit_distance, int): raise TypeError('max_edit_di...
[ "jxmorris12@gmail.com" ]
jxmorris12@gmail.com
5c1948278e75e3ff8b2fba43c5b2c56bff5ce1f9
0793a634ce31b3c2370ba0f945993ee80bf1a8b4
/mirage/thesisPresentation.py
96edde9b9e908147fbf31dcb8cb3e0476b311c96
[ "MIT" ]
permissive
ruizmic0100/Mirage
a5079793124f54052257af1d084b0390e421c43f
33ad0d07322953ac6fc5c26b4f6fe7d17e4784dd
refs/heads/master
2023-07-30T10:52:57.956239
2021-09-12T04:15:56
2021-09-12T04:15:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,498
py
import numpy as np from mirage import lens_analysis as la def overlay_sizes(result,num): from matplotlib import pyplot as plt fig = plt.figure() for res in result: x,y = res.lightcurves[num].plottable("uas") label_sz = "%.3f $theta_E$" % res.parameters.quasar.radius.to(res.parameters.theta...
[ "jkoeller12@gmail.com" ]
jkoeller12@gmail.com
c380835831f8c41526e64814112f5f23d2c0673b
ae10b60cb92a69146bfb05ef5dde735a0aa45d4b
/examples/Extended Application/sklearn/examples/calibration/plot_compare_calibration.py
2740807f47b521cb56cd402223342f85c841602d
[ "MIT" ]
permissive
kantel/nodebox-pyobjc
471cea4c5d7f1c239c490323186458a74edcc214
068ba64c87d607522a240ab60c3ba14f869f6222
refs/heads/master
2021-08-14T18:32:57.995445
2017-11-16T13:42:23
2017-11-16T13:42:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,821
py
""" ======================================== Comparison of Calibration of Classifiers ======================================== Well calibrated classifiers are probabilistic classifiers for which the output of the predict_proba method can be directly interpreted as a confidence level. For instance a well calibrated (bi...
[ "karstenwo@web.de" ]
karstenwo@web.de
e0cc017891024f3f9aaf43b29c5b45d31bb2ad5c
0b193f4da7547d95b7c50fbc1b81276da8163372
/actions/models.py
9f242b017204d32441280c09d1083d6557d8d2a2
[]
no_license
jzxyouok/bookmarks
4b071023af57a2b87fb4fcb034affd5a16719e85
c1bf5ce731f20c8771f6ff5038839c938a2562d8
refs/heads/master
2020-06-06T15:22:37.096495
2019-04-08T03:51:17
2019-04-08T03:51:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
740
py
from django.db import models from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.fields import GenericForeignKey # Create your models here. class Action(models.Model): user = models.ForeignKey(settings.AUTH_USER_MODEL, models.CASCADE, 'action...
[ "2582347430@qq.com" ]
2582347430@qq.com
10a57f45023bd99e590058c70fed50cd5dbdabde
d6d20681f41102df3feb2b438ef80569bd73730f
/Uge4-numpy/.history/exercises_20200218211509.py
721a35c816eab099a775532e7a3d12f563a27947
[]
no_license
MukHansen/pythonAfleveringer
d0ad2629da5ba2b6011c9e92212949e385443789
4107c3c378f757733961812dd124efc99623ff2e
refs/heads/master
2020-12-22T13:27:19.135138
2020-05-22T11:35:52
2020-05-22T11:35:52
236,796,591
0
0
null
null
null
null
UTF-8
Python
false
false
4,051
py
import numpy as np import matplotlib.pyplot as plt from collections import OrderedDict filename = './befkbhalderstatkode.csv' data = np.genfromtxt(filename, delimiter=',', dtype=np.uint, skip_header=1) neighb = {1: 'Indre By', 2: 'Østerbro', 3: 'Nørrebro', 4: 'Vesterbro/Kgs. Enghave', 5: 'Valby', 6: 'Vanløse',...
[ "cph-mh752@cphbusiness.dk" ]
cph-mh752@cphbusiness.dk
ab5f5aaf705c61d6d3a52fe6a016b2045c35009c
099256b28df65fb7c90c077b060dca16b8655235
/math/0x00-linear_algebra/100-slice_like_a_ninja.py
e1589c7bf3ddf30431df2717bebb8ee713b0f971
[]
no_license
Immaannn2222/holbertonschool-machine_learning
1cebb9a889b363669bed7645d102dc56ab943c08
80bf8d3354702f7fb9f79bbb5ed7e00fc19f788d
refs/heads/master
2023-08-01T05:35:00.180472
2021-09-22T20:28:17
2021-09-22T20:28:17
317,624,526
1
0
null
null
null
null
UTF-8
Python
false
false
321
py
#!/usr/bin/env python3 """ advanced task """ def np_slice(matrix, axes={}): """ slices a matrix along specific axes """ new = [] for x in range(len(matrix.shape)): if x in axes: new.append(slice(*axes[x])) else: new.append(slice(None)) return(matrix[tuple(new)])...
[ "imennaayari@gmail.com" ]
imennaayari@gmail.com
1f2e6da575054c5f9539d0a9dfc2ceecc2f7f8ae
bfe6c95fa8a2aae3c3998bd59555583fed72900a
/findMaxValueOfEquation.py
44e49a562e323596044cf7ecbec22a3e97ebfb8e
[]
no_license
zzz136454872/leetcode
f9534016388a1ba010599f4771c08a55748694b2
b5ea6c21bff317884bdb3d7e873aa159b8c30215
refs/heads/master
2023-09-01T17:26:57.624117
2023-08-29T03:18:56
2023-08-29T03:18:56
240,464,565
0
0
null
null
null
null
UTF-8
Python
false
false
933
py
from typing import List class Solution: def findMaxValueOfEquation(self, points: List[List[int]], k: int) -> int: stack = [] j = 0 out = -12345678901234 for i in range(len(points) - 1): while j < len(points) and points[j][0] - points[i][0] <= k: tmp = p...
[ "zzz136454872@163.com" ]
zzz136454872@163.com
de469789154588023215e0a3a02a630ce008e14b
22029865c571f7f5ba18de77f8eea6b3e77b3bbb
/phiface/context.py
b995768e6a32eadfac7ff45dc5d059a29a2a5afd
[ "BSD-2-Clause" ]
permissive
mikejs/phiface
cfc100421afa4bef9c4afa6eb4ac8f7ae8d74163
2a2a5f8e1e555784cb2f2a27cecdf9c25a1c6044
refs/heads/master
2021-01-18T10:31:48.989712
2010-04-21T04:13:45
2010-04-21T04:13:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,456
py
import cairo from shapely.geometry import * PDFOutput = True # flatten from: # http://rightfootin.blogspot.com/2006/09/more-on-python-flatten.html def flatten(l, ltypes=(list, tuple)): ltype = type(l) l = list(l) i = 0 while i < len(l): while isinstance(l[i], ltypes): if not l[i]: ...
[ "hortont424@gmail.com" ]
hortont424@gmail.com
48c3f72ee6abaa8cbb830bcb382ccfefdb237956
c36fc8f9bbc3e5891474bbbf17de09711cc9d0af
/alvi/client/scenes/merge_sort.py
38997dcfec013867d20041a4f1f348d5d766e843
[ "MIT" ]
permissive
alviproject/alvi
f527043c1ecaf4557188c312db7e8a8065ec054d
ec77919a546c11c46b178a21236792f8b0d95cbd
refs/heads/master
2021-01-19T01:45:51.157037
2016-06-17T19:44:09
2016-06-17T19:44:09
13,392,604
10
5
null
2014-03-02T14:05:54
2013-10-07T18:54:09
JavaScript
UTF-8
Python
false
false
1,116
py
from alvi.client.scenes.sort import Sort class MergeSort(Sort): def merge(self, array, left, mid, right): temp = [] for i in range(left, right): temp.append(array[i]) i = 0 j = right - mid k = 0 while k < len(temp): if i >= mid - left: ...
[ "piotr@lewalski.pl" ]
piotr@lewalski.pl
311eac1a6c280507906e8cf7a87844607ff9fddf
04c7295ce65a623dc62454aa46ae4ae4ce51ca36
/Lecture/Lecture_3/three_special_perfect_squares_v1_v3.6.py
8f5b2aa24f0c1e10d1bad0df764379d50125baab
[]
no_license
hty-unsw/COMP9021-Python
38373378162a314a82bf14453d026e641963e1b9
97be6dfa730247b59e608ec6d464ac16b4cf1968
refs/heads/master
2020-07-03T00:51:23.540099
2018-10-30T14:23:15
2018-10-30T14:23:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,398
py
# Describes all sets of positive integers {x, y, z} such that # x, y and z have no occurrence of 0, # every nonzero digit occurs exactly once in one of x, y or z, # and x, y and z are perfect squares. # # Written by Eric Martin for COMP9021 from math import sqrt def digits_if_ok(number, digits_seen_so_far): ...
[ "grey1991ss@gmail.com" ]
grey1991ss@gmail.com
86106338bded9ea79b22a0ead788c9f19d612858
d227fb26e33128afe868bef60e3042f7c6576643
/editor/Welder/src/Core/Database/Dialogs/ChooseGraphic_Dialog.py
fe49fe21d0ebcf6b5fedbd48ed36524feb53e61d
[]
no_license
boisei0/arcreator
1e57b9cc61d5b38bfd0d62237592cfd9f371eca9
555739cafdeeed19d3c25c4948416a6ecb7697d5
refs/heads/master
2020-12-02T05:02:36.242572
2014-08-05T19:25:41
2014-08-05T19:25:41
22,642,617
1
0
null
null
null
null
UTF-8
Python
false
false
2,223
py
import os import wx import PIL from Boot import WelderImport Kernel = WelderImport('Kernel') Core = WelderImport('Core') Templates = Core.Database.Welder_Templates RTPFunctions = Core.Cache.RTPFunctions PILCache = Core.Cache.PILCache class ChooseGraphic_Dialog( Templates.ChooseGraphic_Dialog ): def __init__( self...
[ "boisei0@hubsec.eu" ]
boisei0@hubsec.eu
c3d2c4d91f89382b08790e31e8951c7bb047b615
c369443df5ff98eccc0eee7f63bb8947f2943605
/api_shop/urls.py
faef15fce178629654a49b9494cf03b6b004d406
[]
no_license
erllan/shop-test
d2934f484b25d141a60caa5aca31a61eec48f055
1f77de177192ce6a1f8c5ccf1d7ca93ec026acf5
refs/heads/master
2023-03-06T01:04:38.785383
2021-02-27T18:02:07
2021-02-27T18:02:07
341,929,117
0
0
null
null
null
null
UTF-8
Python
false
false
444
py
from django.urls import path from rest_framework_simplejwt import views as jwt_views from . import views urlpatterns = [ path('token/', jwt_views.TokenObtainPairView.as_view(), name='api.get_token'), path('token/refresh/', jwt_views.TokenRefreshView.as_view(), name='api.token_refresh'), path('user/change/'...
[ "erlan.kubanychbekov.000@gmail.com" ]
erlan.kubanychbekov.000@gmail.com
b874247bc7250254be315256308819b4f715e819
9153b0679889a64dd9a0dae12d9e3e22a749bc69
/webserver/app/main/controller/testresult_controller.py
369d8b4c5ba239aee147559fbc2453f66115012a
[ "MIT" ]
permissive
Remoterwls/Auto-Test-System
9e0a6c96a5222a7374e5755c518d7a10bb96f6bd
e865758241beee3bd0c56a120f3986b0c4aa7253
refs/heads/master
2022-12-03T01:55:37.158529
2020-07-30T10:17:19
2020-07-30T10:17:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,394
py
import json import os from datetime import date, datetime, timedelta, timezone from dateutil import parser, tz from pathlib import Path from bson.objectid import ObjectId from flask import request, send_from_directory, url_for, current_app from flask_restx import Resource from mongoengine import DoesNotExist, Validati...
[ "panzilla@163.com" ]
panzilla@163.com
06a3ccc9647df2d8be805513e54fa0479aa7d101
20674c17d815214bf66b75be686bb8a45c0f5914
/version1/910_Smallest_Range_II.py
3c29c134342ecfaaf96e139eb9e1f848e33f07ef
[]
no_license
moontree/leetcode
e7b670969fe20785b15aae82996875fd66de1b08
f2bf9b13508cd01c8f383789569e55a438f77202
refs/heads/master
2021-05-20T20:36:45.615420
2020-04-02T09:15:26
2020-04-02T09:15:26
252,408,563
1
0
null
null
null
null
UTF-8
Python
false
false
2,314
py
""" Given an array A of integers, for each integer A[i] we need to choose either x = -K or x = K, and add x to A[i] (only once). After this process, we have some array B. Return the smallest possible difference between the maximum value of B and the minimum value of B. Example 1: Input: A = [1], K = 0 Output: ...
[ "zhangchao@zhangchaodeMacBook-Pro.local" ]
zhangchao@zhangchaodeMacBook-Pro.local
a0756500f16eb446c0c1b5acdb3013ffd5fb367a
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02675/s466664784.py
78be685e40ac4a6f27ae611368839fa6f0052292
[]
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
173
py
N = int(input()) judge = N%10 hon = [2,4,5,7,9] pon = [0,1,6,8] bon = [3] if judge in hon: print("hon") elif judge in pon: print("pon") elif judge in bon: print("bon")
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
027b9caef0850dcdd1dc4783426b6900fa67eaee
2e58532464f58b27de68297b0348f0c460448474
/Assignment-7/How_to_Write_Match/main_3.py
c7984212e0a63d3735236561dff194507a3e9578
[]
no_license
RidaATariq/ITMD_413
969a2ebe48746b3269493027daef666bd7a26997
ee1676419e2a09ce4d52cfca3c3e02f00b24f74f
refs/heads/main
2023-04-20T19:15:12.864852
2021-05-09T18:41:46
2021-05-09T18:41:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
import re # pattern = re.compile(r'\d\d\d.\d\d\d.\d\d\d\d') pattern = re.compile(r'\d{3}.\d{3}.\d{4}') # same pattern as above but number specifies the no. of /d # matches = pattern.finditer(text_to_search) # for match in matches: # print(match) with open('data.txt', 'r') as f: contents = f.read() matc...
[ "cpintor@hawk.iit.edu" ]
cpintor@hawk.iit.edu
bcbac824d74d96140a3d7c8bf90485d3a39c8eb8
bf0aa689b92be1df24100e8581caab59a74e31db
/src/loaders/npzpck.py
c689dda4e06a1adf307df646cef07b6ad420aa1b
[ "MIT" ]
permissive
shmilee/gdpy3
d7c689a70557534baa98595092cee0d737ea93cc
cdebb80dbb4a4d84ffa7115d8f18b5589fd40fb2
refs/heads/master
2023-08-19T22:42:40.305085
2023-08-15T02:11:15
2023-08-15T03:11:04
88,051,033
9
3
null
null
null
null
UTF-8
Python
false
false
1,405
py
# -*- coding: utf-8 -*- # Copyright (c) 2018-2020 shmilee ''' Contains Npz pickled file loader class. ''' import numpy import zipfile from ..glogger import getGLogger from ..utils import inherit_docstring from .base import BasePckLoader, _pck_copydoc_func __all__ = ['NpzPckLoader'] log = getGLogger('L') @inherit...
[ "shmilee.zju@gmail.com" ]
shmilee.zju@gmail.com
15fa7543b47b6784593debfdb2a8c0b909735180
4cef505611a04383310ce6556fac7acb02dbc8a1
/No ingestion test script/No_ingestion_test_showtime_anytime.py
3e7aaccddd9211ae1241a17fa2b57af461c79aeb
[]
no_license
Sayan8981/Projectx
9d8727eec144da35f2acffc787f3c769beef02e1
bcf93fe885e4cd68bb2c30c408a3b03e785965c3
refs/heads/master
2022-03-26T18:13:02.831185
2020-01-16T06:52:31
2020-01-16T06:52:31
187,637,492
0
0
null
null
null
null
UTF-8
Python
false
false
7,357
py
"""Writer: Saayan""" import MySQLdb import collections from pprint import pprint import sys import csv import os import pymysql import pymongo import datetime import sys import urllib2 import json import os from urllib2 import HTTPError import httplib import socket def ingestion(): conn1=pymysql.connect(use...
[ "noreply@github.com" ]
Sayan8981.noreply@github.com
32104a52bb1ffb03bb96243e4787ce2b62d3e161
a5c57d60e11d6194ab590b43ee61c21dbe9d3675
/src/bio2bel_drugbank/constants.py
6fdc1f9a930062c372375cee9a62179b39b507e3
[ "MIT" ]
permissive
sailfish009/drugbank_bio2bel
5779365d02b85eecddda5e87358abf3b424464c4
ccab91aacfa70e362ed25a9343d7dd47d619a26c
refs/heads/master
2022-02-23T06:20:12.643593
2019-10-15T10:28:06
2019-10-15T10:28:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
378
py
# -*- coding: utf-8 -*- """Constants for Bio2BEL DrugBank.""" import os from bio2bel.utils import get_connection, get_data_dir VERSION = '0.1.2-dev' MODULE_NAME = 'drugbank' DATA_DIR = get_data_dir(MODULE_NAME) DRUGBANK_URL = 'https://www.drugbank.ca/releases/5-1-4/downloads/all-full-database' DRUGBANK_PATH = os....
[ "cthoyt@gmail.com" ]
cthoyt@gmail.com
29c705cad1edefde7a3423ca8e3cb007bcdd5fe8
67954fee55a838d3c14ea5758b178f7fddb7d5f7
/teacher/migrations/0001_initial.py
3867ed4443a95746325d5ff6c2661d334d11b7ac
[]
no_license
Abel-Fan/student_admin
899ce1130273fec0905ca4de1fe3c37e6e456b05
e3c1b96f048273dda20b975917a66dabe97b8851
refs/heads/master
2020-06-06T10:17:44.563845
2019-06-20T09:54:24
2019-06-20T09:54:24
192,711,810
0
0
null
null
null
null
UTF-8
Python
false
false
720
py
# Generated by Django 2.1.1 on 2019-06-20 06:55 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('student', '0002_auto_20190620_1451'), ] operations = [ migrations.CreateModel( name='Teacher', f...
[ "842615663@qq.com" ]
842615663@qq.com
980f6bbb5dc5a2a639e07f041266478030497e29
11ada50b47a245278a41b1f2cdae60bc387937da
/gala/potential/potential/builtin/pybuiltin.py
d2a6888e172a89a36bb718859afae3aa8bd2bd42
[ "MPL-1.1", "MIT" ]
permissive
ltlancas/gala
7ec9111e3bf9f49823f393ad08f04aa4c34cf0df
2621bb599d67e74a85446abf72d5930ef70ca181
refs/heads/master
2020-03-25T21:03:56.114744
2018-05-12T16:24:46
2018-05-12T16:24:46
144,157,811
1
0
MIT
2018-08-09T13:40:53
2018-08-09T13:40:53
null
UTF-8
Python
false
false
4,211
py
# coding: utf-8 from __future__ import division, print_function # Standard library from collections import OrderedDict # Third-party import numpy as np from ..core import PotentialBase from ....util import atleast_2d __all__ = ["HarmonicOscillatorPotential", "KuzminPotential"] class HarmonicOscillatorPotential(P...
[ "adrian.prw@gmail.com" ]
adrian.prw@gmail.com
abd0e4369ed4686d8a57e4903580a0d3336d78b0
7e98a8b31cc2fecf8384f4590f27540f7280659a
/v1/LinkedLists/mirror_subtraction.py
b9bf4ac6f787e73961c467e99aa83d9e78408879
[]
no_license
darraes/coding_questions
62a07a6ede884fd0e3596f3dac8f50e11fd8676e
70dcc3b859db673c39c3cf55aeb463d2bd822ed9
refs/heads/master
2021-01-21T07:21:18.033321
2020-06-15T16:25:11
2020-06-15T16:25:11
91,611,595
0
1
null
null
null
null
UTF-8
Python
false
false
1,274
py
# http://www.careercup.com/question?id=5657550909341696 class Node: def __init__(self, next, value): self._next = next self._value = value def revert(node): if node == None: raise elif node._next == None: return (node, node) else: tail, head = revert(node._n...
[ "daniel.arraes@gmail.com" ]
daniel.arraes@gmail.com
b006e071b4eedcdff17cc409c2ad17895603ea12
4342ef8afa6a0790690f711d28c0ce2c78711c67
/seed_database.py
921aa0c13ce449678e4383c184f066f8bd5a1fa0
[]
no_license
christinababaya/ratings-v2
fe03413af9042942204aa69980a3ce2415411c14
2812bc1493607fb4f04b62c1e84b4d9efb396937
refs/heads/master
2023-03-25T20:39:38.191009
2021-03-26T16:00:14
2021-03-26T16:00:14
351,493,197
0
0
null
null
null
null
UTF-8
Python
false
false
951
py
import os import json from random import choice, randint from datetime import datetime import crud import model import server os.system('dropdb ratings') os.system('createdb ratings') model.connect_to_db(server.app) model.db.create_all() with open('data/movies.json') as f: movie_data = json.loads(...
[ "vagrant@vagrant.vm" ]
vagrant@vagrant.vm
92ec7ed041e603e068af5792813e85378c4cca01
9d454ae0d5dd1d7e96e904ced80ca502019bb659
/1720_decode.py
8f1c93438180b711a3300877bb9f7e9cc36a7969
[]
no_license
zzz686970/leetcode-2018
dad2c3db3b6360662a90ea709e58d7facec5c797
16e4343922041929bc3021e152093425066620bb
refs/heads/master
2021-08-18T08:11:10.153394
2021-07-22T15:58:52
2021-07-22T15:58:52
135,581,395
3
0
null
null
null
null
UTF-8
Python
false
false
266
py
class Solution: def decode(self, encoded: List[int], first: int) -> List[int]: # ans = [first] # for el in encoded: # ans.append(el ^ ans[-1]) # return ans return list(accumulate([first] + encoded, lambda x, y: x ^ y))
[ "1564256031@qq.com" ]
1564256031@qq.com
280e83ef0782347a3afd107ead0084773b84c6ae
aa8af4dc70c14339a05489b0c4c4925d7a00e319
/starbox_custom/starbox_custom/doctype/store/test_store.py
908d6e2311d2d1c252d713c5f8fb6e7b22ab9769
[ "MIT" ]
permissive
vhrspvl/starbox-custom
925768540b318ee923dd6587291fbece003fd17e
0d1143e64119cff66ad52fbe8453fa7281b62998
refs/heads/master
2021-05-13T21:35:17.327744
2019-07-24T16:11:50
2019-07-24T16:11:50
116,466,334
0
2
null
2018-08-13T15:05:27
2018-01-06T08:15:26
Python
UTF-8
Python
false
false
217
py
# -*- coding: utf-8 -*- # Copyright (c) 2019, Starboxes India and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class TestStoreKeeper(unittest.TestCase): pass
[ "hereabdulla@gmail.com" ]
hereabdulla@gmail.com
01040de6b5d4ea3274ea3ea17e71b4643c1b4001
b483c598fa375e9af02348960f210b9f482bd655
/cursoemvideo/desafios/Desafio075.py
48338306d4a75934c3af6b61e07b9ea8b5210c04
[ "MIT" ]
permissive
brunofonsousa/python
6f766d08bf193180ea9a4903cb93ffd167db588d
8f2f26c77015c0baaa76174e004406b4115272c7
refs/heads/master
2022-09-30T14:58:01.080749
2020-06-08T09:55:35
2020-06-08T09:55:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,504
py
''' Exercício Python 075: Desenvolva um programa que leia quatro valores pelo teclado e guarde-os em uma tupla. No final, mostre: A) Quantas vezes apareceu o valor 9. B) Em que posição foi digitado o primeiro valor 3. C) Quais foram os números pares. ''' ## VERSÃO GUANABARA: num = (int(input("Digite um número: ")), ...
[ "brunofonsousa@gmail.com" ]
brunofonsousa@gmail.com