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
beb64a2379bc93f7fb4c6fde6246f302adc48310
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03361/s695910873.py
71c76c304d65b2fd54c495b81bb576708ac41291
[]
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
688
py
H,W=list(map(int,input().split())) S=[] for h in range(H): S_temp=list(input()) S.append(S_temp) S_=[] for h in range(H): for w in range(W): if S[h][w]=='.': continue try: S_left=S[h-1][w] except: S_left='.' try: S_right=S[h+1...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
cf2c096097a48c4c9aa6049f5cdb9c87d5a5b401
5924f4146755e33b9e0a7435da2de708ab8075fa
/osrc/github.py
a60605a21fa7b4fc7ba18d2d194467c5ba46366b
[ "MIT" ]
permissive
pulsedemon/osrc
40e72d53bd3219b989456f4eeeeab2b8a08caa1b
eb6c9c78de3c98258efbcc9c6b91f0b0bdfe676d
refs/heads/master
2021-05-03T06:46:48.678808
2015-11-13T16:40:02
2015-11-13T16:40:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,809
py
# -*- coding: utf-8 -*- __all__ = ["gh_request", "get_user", "get_repo"] import flask import requests from sqlalchemy import func from .models import db, User, Repo from .process import process_user, process_repo API_URL = "https://api.github.com" def gh_request(path, method="GET", etag=None, **params): # Bui...
[ "danfm@nyu.edu" ]
danfm@nyu.edu
fd8f00066ba2b441e2a8674845815412d49a78b9
89cd8b77ad5171c336cc60b2133fe6468a6cb53f
/Module01_CZ/day9_reference/04-代码/day9/157_引用(元组).py
7b065559a0433c57b09c496803c8b27d5261b069
[ "MIT" ]
permissive
fenglihanxiao/Python
75178f6b6b0c53345e1ed54226ea645216572d6c
872baf3a3a5ee42740161152605ca2b1ddf4cd30
refs/heads/master
2021-05-23T18:49:20.656433
2020-04-29T01:06:21
2020-04-29T01:06:21
253,199,073
0
0
null
null
null
null
UTF-8
Python
false
false
206
py
""" 演示引用(元组) """ # print(id(())) # print(id(())) # print(id((1,2,3))) # print(id((1,2,3))) # a = (1,2,3) # b = (1,2,3) # print(id(a)) # print(id(b)) a = (4,5,6) b = a print(id(a)) print(id(b))
[ "fenglihanxiao@qq.com" ]
fenglihanxiao@qq.com
742a8d0768a75c22eb2c164f37cfbd58ee9b29fb
5cb9dccbcccb8a2137368dd0615fe3e3c7761707
/utilities/exploration_strategies/OU_Noise_Exploration.py
581b0aafbe789ea604dd6ff57e9f9d55fe3930f6
[]
no_license
Simon-Steinmann/sim2real-modular-RL-project
b2467a393014e106043f6128a026f5eac934a83d
4027590ac94de2d5c914731c09efcf2f318b9ca3
refs/heads/master
2020-07-29T01:30:56.450919
2019-10-12T09:33:00
2019-10-12T09:33:00
209,605,548
4
1
null
null
null
null
UTF-8
Python
false
false
1,029
py
from utilities.OU_Noise import OU_Noise from utilities.exploration_strategies.Base_Exploration_Strategy import Base_Exploration_Strategy class OU_Noise_Exploration(Base_Exploration_Strategy): """Ornstein-Uhlenbeck noise process exploration strategy""" def __init__(self, config): super().__init__(config...
[ "simon.steinmann91@gmail.com" ]
simon.steinmann91@gmail.com
57fc4594ee11d7e5abc4ebab162e96d887d12c09
c2163c653ba589ea610733250230ab4b57ab7d6a
/swhlab/old_init.py
b1b6b208fb9e1ff820fe4aa483d48b8ae84bb718
[ "MIT" ]
permissive
harshadsbs/SWHLab
6ff57f816f252da888f5827e9ea677e696e69038
a86c3c65323cec809a4bd4f81919644927094bf5
refs/heads/master
2021-05-20T12:24:55.229806
2018-12-14T03:18:38
2018-12-14T03:18:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,815
py
# start out this way so tests will import the local swhlab module import sys import os sys.path.insert(0,os.path.abspath('../')) import swhlab import logging # if swhlab is installed in 'site-packages' like normal, import it silently. # if a local (development) module exists, import that one instead. module_was_found...
[ "swharden@gmail.com" ]
swharden@gmail.com
dc6b70d598ea551d7488a27cd2837e9be125db4f
595fb9ddd51d169492fea0d2b5ffac63de476ba7
/contrib/python/pypodman/lib/action_base.py
ff2922262499ff2588db96cf28e1d46aca4a8548
[ "Apache-2.0" ]
permissive
roysjosh/libpod
0dd769a709a56e804f608b1767d03132d80e5a81
6372c977ea0e6206d137e734a981ca0bb3435e12
refs/heads/master
2020-03-23T05:33:19.865487
2018-07-16T08:10:20
2018-07-16T13:40:40
141,151,106
0
0
Apache-2.0
2018-07-16T14:35:48
2018-07-16T14:35:47
null
UTF-8
Python
false
false
2,549
py
"""Base class for all actions of remote client.""" import abc from functools import lru_cache import podman class AbstractActionBase(abc.ABC): """Base class for all actions of remote client.""" @classmethod @abc.abstractmethod def subparser(cls, parser): """Define parser for this action. Su...
[ "jhonce@redhat.com" ]
jhonce@redhat.com
1d204a3c76f9d0d495bbf3f272ececcc988af637
65a32b8a8a97c126843d2cfe79c43193ac2abc23
/chapter8/self_container.py
34f334753393bef72a58dfd393eca9e870c929cb
[]
no_license
zhuyuedlut/advanced_programming
9af2d6144e247168e492ddfb9af5d4a5667227c4
a6e0456dd0b216b96829b5c3cef11df706525867
refs/heads/master
2023-03-19T09:21:31.234000
2020-10-09T13:09:38
2020-10-09T13:09:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,063
py
import collections class A(collections.Iterable): pass a = A() import collections collections.Sequence() import bisect class SortedItems(collections.Sequence): def __init__(self, initial=None): self._items = sorted(initial) if initial is not None else [] # Required sequence methods def _...
[ "root@lyzdeMacBook.local" ]
root@lyzdeMacBook.local
bb067d365a1659384fbc5d3c60e0065a5a761dde
41fe5f7cc7cc7dbcad5e74a36866d10caecacf0f
/bots/quote.py
df56190bf4d840ce4687e84aef1afcfea597be6d
[]
no_license
SMFOSS/irc
5549d64c48f99e0353e8766ca12236996959b223
87128ae4332b372c36c05e71d2e9818fe41aec5b
refs/heads/master
2021-01-16T18:15:56.164220
2010-08-22T17:25:31
2010-08-22T17:25:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,849
py
import httplib2 import random import re import urllib from BeautifulSoup import BeautifulSoup from irc import Dispatcher, IRCBot class QuoteDispatcher(Dispatcher): last_message = '' def fetch_result(self, phrase): sock = httplib2.Http(timeout=1) headers, response = sock.request...
[ "coleifer@gmail.com" ]
coleifer@gmail.com
8a07063b7f9a45b3c847d6367111099cd869d232
a46d135ba8fd7bd40f0b7d7a96c72be446025719
/packages/python/plotly/plotly/validators/layout/ternary/_uirevision.py
099e1957985ca6509c7dfc0535e9c4318b3a8d88
[ "MIT" ]
permissive
hugovk/plotly.py
5e763fe96f225d964c4fcd1dea79dbefa50b4692
cfad7862594b35965c0e000813bd7805e8494a5b
refs/heads/master
2022-05-10T12:17:38.797994
2021-12-21T03:49:19
2021-12-21T03:49:19
234,146,634
0
0
MIT
2020-01-15T18:33:43
2020-01-15T18:33:41
null
UTF-8
Python
false
false
423
py
import _plotly_utils.basevalidators class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): def __init__( self, plotly_name="uirevision", parent_name="layout.ternary", **kwargs ): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_n...
[ "noreply@github.com" ]
hugovk.noreply@github.com
fb7d2d4429bf11cb10cc12275dafbf83b008ef4e
955f9d3fb34af54de2f046d17bbac11c1474819e
/abc072/b.py
b0fcee1d89878d6ecb5b68044a1443f505fe0cf5
[]
no_license
shimewtr/AtCoderPracticePython
5bb4c28119fced2d111bd1810e0e290f25b6a191
f3c22ec1f7a36a27848070c5c6ca4e1717b04ac6
refs/heads/master
2023-01-12T17:28:44.770138
2020-11-19T22:50:22
2020-11-19T22:50:22
204,830,292
0
0
null
null
null
null
UTF-8
Python
false
false
1,256
py
import sys from io import StringIO import unittest import logging logging.basicConfig(level=logging.DEBUG) def resolve(): s = input() ans = "" for i in range(len(s)): if i % 2 == 0: ans += s[i] print(ans) class TestClass(unittest.TestCase): def assertIO(self, input, output): ...
[ "wawawatataru@gmail.com" ]
wawawatataru@gmail.com
d3ba03ae33c0b652c222fce8ec73203f04286664
6bec880ecd6921209a2e3eeea0710de5a9be3e8d
/test/sample_data/get_observation_histogram_month.py
1ff52663bae343df3f3b3f0a4d2cca9482674cf9
[ "MIT" ]
permissive
JWCook/pyinaturalist
e728e29ebeb427c23be2fd205176e8580ec4fbcb
472f30c3fa5d4c9dd43808ab793f1fa830768722
refs/heads/main
2022-06-19T05:28:06.983771
2022-05-31T16:53:11
2022-05-31T17:02:17
243,678,282
1
0
MIT
2022-02-23T02:57:09
2020-02-28T04:29:13
Python
UTF-8
Python
false
false
489
py
from datetime import datetime { datetime(2020, 1, 1, 0, 0): 272, datetime(2020, 2, 1, 0, 0): 253, datetime(2020, 3, 1, 0, 0): 992, datetime(2020, 4, 1, 0, 0): 3925, datetime(2020, 5, 1, 0, 0): 7983, datetime(2020, 6, 1, 0, 0): 7080, datetime(2020, 7, 1, 0, 0): 9150, datetime(2020, 8, 1,...
[ "jordan.cook@pioneer.com" ]
jordan.cook@pioneer.com
0ab64dd91ea5a99600d07b0084dd15afbd2b3e0c
02e23da0431623db86c8138bda350a1d526d4185
/Archivos Python Documentos/Graficas/.history/tierras_20200222160520.py
53bd7dcf73b905d3531cd254069c2cda0a487bbd
[]
no_license
Jaamunozr/Archivos-python
d9996d3d10ff8429cd1b4c2b396016a3a5482889
1f0af9ba08f12ac27e111fcceed49bbcf3b39657
refs/heads/master
2022-08-05T14:49:45.178561
2022-07-13T13:44:39
2022-07-13T13:44:39
244,073,267
0
0
null
null
null
null
UTF-8
Python
false
false
2,015
py
import os import pylab as pl from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt from matplotlib import cm from matplotlib.ticker import LinearLocator, FormatStrFormatter import numpy as np os.system("clear") fig = pl.figure() axx = Axes3D(fig) raiz=np.sqrt ln=np.log X = np.arange(-2, 12, 1) Y ...
[ "jaamunozr@gmail.com" ]
jaamunozr@gmail.com
88279a09284204513309f7a4ef9ea107ed2dbe2b
a3f45a3189fc0f26fd03803bc7b8f5bac17fdeee
/GUI/Gtk/StdMenus.py
8d2b1d3467454cafdf5845015d7282ae8dc3efb3
[ "MIT" ]
permissive
coldmax88/PyGUI
128ee1259830ae1d7ab7eeabbff21bc9c5b14863
58c6c38ccb8e66acdf98dea6b24bef1d9a03147c
refs/heads/master
2023-03-16T00:37:52.220603
2018-05-17T07:11:38
2018-05-17T07:11:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,199
py
# # Python GUI - Standard Menus - Gtk # from GUI.GStdMenus import build_menus, \ fundamental_cmds, help_cmds, pref_cmds, file_cmds, print_cmds, edit_cmds _file_menu_items = [ ("New/N", 'new_cmd'), ("Open.../O", 'open_cmd'), ("Close/W", 'close_cmd'), "-", ("Save/S", 'save_cmd'), ("Save As...", 'sa...
[ "greg.ewing@canterbury.ac.nz" ]
greg.ewing@canterbury.ac.nz
ee0b7cbd06e526b7ad0d7980f708e758270657a2
14028bea18dcd4f89fca2306bf51dcbf6acabb44
/apps/integration_tests/common_utils.py
d23cc8a4493146422d5a6c06bf691dfcb65fe90a
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
CMSgov/bluebutton-web-server
5694c7149d9f2f6efed9a2814c928d8a7539e4cb
fb0904c0b9d77dfb00523fe6ce69b946b640441e
refs/heads/master
2023-09-01T18:17:31.088628
2023-08-25T20:43:14
2023-08-25T20:43:14
50,062,960
30
33
NOASSERTION
2023-09-14T10:24:34
2016-01-20T21:52:00
Python
UTF-8
Python
false
false
360
py
import jsonschema from jsonschema import validate def validate_json_schema(schema, content): try: validate(instance=content, schema=schema) except jsonschema.exceptions.ValidationError as e: # Show error info for debugging print("jsonschema.exceptions.ValidationError: ", e) ...
[ "noreply@github.com" ]
CMSgov.noreply@github.com
9138c31ee317652eabf1ee589e61e86ae5032bfb
2bc8f66fd34ba1b93de82c67954a10f8b300b07e
/general_backbone/models/layers/create_norm_act.py
7dacb5716b417af629e4d3884c7a7a2a33f24805
[]
no_license
DoDucNhan/general_backbone
7dabffed5a74e622ba23bf275358ca2d09faddc1
686c92ab811221d594816207d86a0b97c9b4bc73
refs/heads/main
2023-08-31T14:59:23.873555
2021-10-23T06:34:14
2021-10-23T06:34:14
420,419,141
1
0
null
null
null
null
UTF-8
Python
false
false
3,454
py
# Copyright (c) general_backbone. All rights reserved. """ NormAct (Normalizaiton + Activation Layer) Factory Create norm + act combo modules that attempt to be backwards compatible with separate norm + act isntances in models. Where these are used it will be possible to swap separate BN + act layers with combined mod...
[ "phamdinhkhanh.tkt53.neu@gmail.com" ]
phamdinhkhanh.tkt53.neu@gmail.com
adde65697129bed9d3d56bdc877c3f2e5bb50e91
167c6226bc77c5daaedab007dfdad4377f588ef4
/python/ql/test/library-tests/filters/generated/antlr.py
205dec24a165b37cd2b4c94f2173adbe6d27651c
[ "MIT", "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-other-copyleft", "GPL-1.0-or-later", "LicenseRef-scancode-free-unknown", "Python-2.0" ]
permissive
github/codeql
1eebb449a34f774db9e881b52cb8f7a1b1a53612
d109637e2d7ab3b819812eb960c05cb31d9d2168
refs/heads/main
2023-08-20T11:32:39.162059
2023-08-18T14:33:32
2023-08-18T14:33:32
143,040,428
5,987
1,363
MIT
2023-09-14T19:36:50
2018-07-31T16:35:51
CodeQL
UTF-8
Python
false
false
199
py
# $ANTLR 3.0.1 C.g 2010-02-23 09:58:53 from antlr3 import * from antlr3.compat import set, frozenset ## @file # The file defines the parser for C source files. # # THIS FILE IS AUTO-GENERATED. # ##
[ "mark@hotpy.org" ]
mark@hotpy.org
a68a6278e64adf9339d2f12f22fa82d006f4b5fe
bbc0a89093e2fe91d7abffcd1fa5054abbd2c9f5
/apps/slow_log/crud.py
163e67eca92fc60bfd21a510bcb998bfc596e84d
[]
no_license
linkpwd/sql_manage
79d87be4cbc95c2c66cf92c6dfc190c1190b003e
75d508f622dec1a248e617c649421828515acaca
refs/heads/master
2023-07-08T14:53:44.729604
2021-08-20T03:28:07
2021-08-20T03:28:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,646
py
from sqlalchemy.orm import Session, aliased from sqlalchemy import or_ from apps.user.schemas import UserOut from database.models import Workorder, User, Instance, Sqlrecord, Role, Workorder_data_export, Slowlogs from fastapi import HTTPException from utils.inception import inception, inception_host, inception_port, in...
[ "290070744@qq.com" ]
290070744@qq.com
499f785feac38b65c7b3223e841855fdb86b4f9c
f9a5e7233875989f994438ce267907d8210d60a1
/test/wine_quality/metalearning/knn_ranking/l1_metric/k=3/forward_selection/wine_prediction_forward_AUCROC.py
ad46c827c46bb819c8242475026383504cea8ceb
[]
no_license
renoslyssiotis/When-are-Machine-learning-models-required-and-when-is-Statistics-enough
da8d53d44a69f4620954a32af3aacca45e1ed641
6af1670a74345f509c86b7bdb4aa0761c5b058ff
refs/heads/master
2022-08-29T20:21:57.553737
2020-05-26T18:03:46
2020-05-26T18:03:46
256,439,921
0
0
null
null
null
null
UTF-8
Python
false
false
2,200
py
import sys, os, pickle from pathlib import PurePath current_dir = os.path.realpath(__file__) p = PurePath(current_dir) sys.path.append(str(p.parents[7])+'/metalearners/knn_ranking_method/l1_metric') from KNN_ranking_k_3 import KNN_ranking #Load the selected meta-dataset after performing zero-variance threshold with op...
[ "rl554@cam.ac.uk" ]
rl554@cam.ac.uk
2ed6f9ab3b23ea8cd17d472f1a5600fc0ab84408
9d9d344835bb9c60a2675b300b6da275669a5c53
/saral9.py
94f293895beabe3abddb0e532566a25177b9834d
[]
no_license
pooja-pichad/dictionary
7fd3c77e665d9bf0d6d778117857a4c61de7913f
25ba5799c15e2656410a7d1ffa2e0499aa0b8d89
refs/heads/main
2023-07-03T11:36:22.274279
2021-07-20T07:03:45
2021-07-20T07:03:45
387,702,138
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
# "MISSISSIPPI" iss word me har letter ki occurrency count karke ek dictionary me store karaye. # Jisme letter dictionary ki keys aur occurrency Uss dictionary ki values hongi. Example:- Output :- # {M:1,I:4,S:4,P:2} # count = {"M":0,"I":0,"S":0,"P":0} # word = "MISSISSIPPI" # for i in word: # if i == "M": # co...
[ "noreply@github.com" ]
pooja-pichad.noreply@github.com
db8ddb9fe743f9529c3beef55d02c944f23cd0e2
efb5edf9fdeb1247c880998dfa258b4fc0387f64
/global/SingleChannel.py
c74afcd1148840aa175f32984996559419a2a7a4
[]
no_license
johndpope/text2image_manipulation
b93137d4dc039df90dce094541716ebb234dc8cd
ce32ed0e3055441002155f605bbd3d3f3421326d
refs/heads/main
2023-07-14T15:19:07.653896
2021-08-19T04:03:46
2021-08-19T04:03:46
397,938,499
0
0
null
2021-08-19T12:39:17
2021-08-19T12:39:17
null
UTF-8
Python
false
false
2,543
py
import numpy as np import torch import clip from PIL import Image import copy from manipulate import Manipulator import argparse def GetImgF(out,model,preprocess): imgs=out imgs1=imgs.reshape([-1]+list(imgs.shape[2:])) tmp=[] for i in range(len(imgs1)): img=Image.fromarray(imgs1[...
[ "noreply@github.com" ]
johndpope.noreply@github.com
3a87f2e85a4b6a42b44e926c7109af22465ce071
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_1480487_0/Python/lomegor/problem.py
9fd7f466e36c29b51318d49a6a8fce937a7ece1c
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
903
py
#!/usr/bin/python import sys cases = int(sys.stdin.readline()) for case in range(1,cases+1): points = map(int,sys.stdin.readline().rstrip().split(' ')) N = points[0] points.remove(N) w = [] tot = sum(points) n = len(points) extra = 0 for p in points: x=(2*tot-p*n)/float(tot*n) ...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
ffa857241d669f56a70040d3de5e88ab2da995bd
959a7b17884aa9af1d38d9c6b0afe2045a9be5d2
/Arrays/Move Zeroes.py
510d82b0d16a21c87af4c8fac1d0726611fe1b84
[]
no_license
dumavit/leetcode
a1c998f4c56411b061995d939093b03f7aae366b
866689f564125ca4152dc1b6b3d268991d7ec89a
refs/heads/master
2022-02-07T20:44:17.388121
2022-01-31T21:02:28
2022-01-31T21:02:28
252,981,197
0
0
null
null
null
null
UTF-8
Python
false
false
503
py
from typing import List class Solution: def moveZeroes(self, nums: List[int]) -> None: zeros_count, idx = 0, 0 while zeros_count+idx < len(nums): nnext = nums[idx+zeros_count] if nnext: nums[idx] = nnext idx += 1 else: ...
[ "vitalii.duma@corva.ai" ]
vitalii.duma@corva.ai
7168807c5d8978382c2c6f4bdd5b579a16469367
5b0d9795e5d72420920c72818f19a274d09da32b
/brain_games/games/gcd.py
ddb3d176a77bbbc4eff5cd75a31fc1ac1003ce6a
[]
no_license
kotano/brain-games
24ae45cb937467ac43361ca9bce792a95fca3c88
73653a28f7dde6c3d9a1c5c89f2f647b1217fd5d
refs/heads/master
2022-04-08T19:40:13.913539
2020-02-29T22:55:59
2020-02-29T22:55:59
240,797,179
2
0
null
null
null
null
UTF-8
Python
false
false
447
py
from math import gcd # мне немного лень простите, from random import randint # потом как нибудь в свободное время потренируюсь RULE = 'Find the greatest common divisor of given numbers. ' def generate(): num1 = randint(1, 100) num2 = randint(1, 100) correct_answer = gcd(num1, num2) questn...
[ "kot4no@gmail.com" ]
kot4no@gmail.com
9c63e39631ac0df57b5bcd01a8d1d36a3bcb07ed
6f1e1c378997bf76942ce6e203e720035169ce27
/2-add-two-numbers.py
1e8e964e7abf430c95bd26e96275ab05c7a226c5
[ "MIT" ]
permissive
yuenliou/leetcode
a489b0986b70b55f29d06c2fd7545294ba6e7ee5
e8a1c6cae6547cbcb6e8494be6df685f3e7c837c
refs/heads/main
2021-06-16T07:47:39.103445
2021-05-11T09:16:15
2021-05-11T09:16:15
306,536,421
0
0
null
null
null
null
UTF-8
Python
false
false
1,728
py
#!/usr/local/bin/python3.7 # -*- coding: utf-8 -*- from datatype.list_node import ListNode def addTwoNumbers(l1: ListNode, l2: ListNode) -> ListNode: pre = ListNode(0) cur = pre carry = 0 while l1 or l2 or carry: x = l1.val if l1 else 0 y = l2.val if l2 else 0 sum = x + y + ...
[ "liuyuan@aplum.com.cn" ]
liuyuan@aplum.com.cn
1e0fcf18f7282af103fc83c7138e354984913fef
57c62abd33f8b508e357ca8631a160ce85a7f340
/ggNtuplizer/test/crab_submit/jobs/aNTGC_jjg_lo_h3z0p0015_ptmin950_ptmax1000_V1/crab_aNTGC_jjg_lo_h3z0p0015_ptmin950_ptmax1000_V1.py
d2d4856fb5fa19f6663136e49a03a5d6fcbd6dfe
[]
no_license
jainshilpi/aNTGC_ggNtuplizer
8973ce3cdab293317fd928679b14038f03c10976
7153d73fbee35969dad0d85c6517e577a0546566
refs/heads/master
2022-09-18T07:39:40.246699
2020-04-20T13:03:20
2020-04-20T13:03:20
267,979,045
1
1
null
2020-05-30T00:09:36
2020-05-30T00:09:36
null
UTF-8
Python
false
false
1,747
py
from CRABClient.UserUtilities import config, getUsernameFromSiteDB import sys config = config() #**************************submit function*********************** from CRABAPI.RawCommand import crabCommand from CRABClient.ClientExceptions import ClientException from httplib import HTTPException def submit(config): t...
[ "abrar.discloses@gmail.com" ]
abrar.discloses@gmail.com
bfa13fe4c93bb1b4144f25cd306d9d5f264a2073
1dcd016b25b88a4bdb7525628b0772a366975fe6
/LeetCodePython/113_Path_Sum_II.py
12a33429ea134a0b3e4709ef6cb3a0e359925056
[]
no_license
ClaytonStudent/leetcode-
5bdee9214d67aa82e2c93e39697251390aeeb808
e30d5e273915a40daeb300a3ed76fa555d0f6ee4
refs/heads/master
2022-11-07T23:12:14.024626
2020-06-20T10:50:51
2020-06-20T10:50:51
261,813,249
0
0
null
null
null
null
UTF-8
Python
false
false
1,091
py
# source: https://leetcode.com/problems/path-sum-ii/discuss/36829/Python-solutions-(Recursively-BFS%2Bqueue-DFS%2Bstack) def pathSum(self, root, sum): if not root: return [] res = [] self.dfs(root, sum, [], res) return res # 逐层往下,不断地扩充ls的值,最后满足条件的话,把它存储在res里面作为结果 def dfs(self, root, sum...
[ "chen.shaohang2046@gmail.com" ]
chen.shaohang2046@gmail.com
746395893d420294b325ed3853abd09f617deb11
07e7118f4e477664101f900e0270ccfcb8fd1e9b
/PythonStubsApp/app/src/main/assets/python-src/app/__init__.py
b2d9610ab0cff4351d779643f691ebd8aab1e4c1
[]
no_license
paulproteus/Python-Android-sample-apps
1033d1dc2510420ff949b8da808bf3a860c3086a
a4123c58d51e0f57a04833f4b2db97f8cf961730
refs/heads/master
2020-12-09T01:05:05.555832
2020-05-06T16:13:14
2020-05-07T00:10:19
233,146,454
6
5
null
null
null
null
UTF-8
Python
false
false
2,523
py
import datetime import glob import json import os import random import urllib.request import socket from rubicon.java import JavaClass, JavaInterface def print_int_list(): l = [random.randint(0, 99) for i in range(5)] print("random integers from 0 to 99 (inclusive)") print(">>> [random.randint(0, 99) for...
[ "asheesh@asheesh.org" ]
asheesh@asheesh.org
5cd4e6ad4b5301b6683c55c055a735673c36668b
79eddfdb8917eef80da141206aa48362642cac43
/.history/cowsay/models_20200220143955.py
0f7cf0bd9c10ed5c9da4ad02b7b5cedbce6b6e3f
[]
no_license
Imraj423/cowsay
856b005d038e5357a7a8519d83b6f2ad44541b02
12e96471c1fdc342139ac221379c9f60138d8f40
refs/heads/master
2021-01-08T09:32:44.158358
2020-02-20T20:54:39
2020-02-20T20:54:39
241,987,568
0
0
null
null
null
null
UTF-8
Python
false
false
574
py
from django.db import models from django.utils import timezone class Cow(models.Model): text_input = models.TextField(max_length=30) time = models.DateTimeField(default=timezone.now) cow = '' sat = '-f satanic' gbs = '-f ghostbusters' eww = '-f sodomized' dra = '-f dragon' CHOICE_LIST ...
[ "dahqniss@gmail.com" ]
dahqniss@gmail.com
98a5915c9affdc43afcd8b3ae109fa7ea113c97e
7713cabbddd22eb4ccfdb757c3820def721e3c07
/runners/matisse_runner.py
b59a580d30b2ea7196c709a9bb4cbc2099dc4c08
[]
no_license
hag007/nn_sb
bb652ba3adee503d7ecf272ced565165c5d9bea4
3b491efb648006b03ae04f603eb8c972e141271d
refs/heads/master
2021-06-20T15:31:09.066580
2021-03-03T08:39:22
2021-03-03T08:39:22
168,480,686
3
0
null
null
null
null
UTF-8
Python
false
false
4,143
py
#!/usr/bin/env python """Calculate differentially expressed genes using EdgeR from bioconductor. http://bioconductor.org/packages/2.5/bioc/html/edgeR.html Usage: count_diffexp.py <count_file> """ import sys sys.path.insert(0, '../') import os import numpy as np import pandas as pd import subprocess import json f...
[ "hagai.levi.007@gmail.com" ]
hagai.levi.007@gmail.com
312001a9673d509b2b6aecb47bf41c7ad7bc279f
2801896c7fcd06e3cf4ae644fb9630857aac1626
/migrations/versions/7ffa182f60ed_migration.py
29b3b895a72501a0d315c7e2827371850a9a0005
[ "MIT" ]
permissive
Koech-code/bookings
9a9f9bd2c19705b5f66a5d2889b31b0d549f3ba0
e164ba118de32e82dac9d9c69961df1eeb4d384c
refs/heads/master
2023-07-15T04:20:07.359983
2021-08-28T15:31:30
2021-08-28T15:31:30
400,294,330
0
0
null
null
null
null
UTF-8
Python
false
false
813
py
"""Migration Revision ID: 7ffa182f60ed Revises: None Create Date: 2021-08-26 16:19:48.172464 """ # revision identifiers, used by Alembic. revision = '7ffa182f60ed' down_revision = None from alembic import op import sqlalchemy as sa def upgrade(): # ### commands auto generated by Alembic - please adjust! ### ...
[ "nixon.koech@moringaschool.com" ]
nixon.koech@moringaschool.com
6c31c173967e857c9d2ae9b755acd72a5ab6f33a
9296c86b438860c76e64d54890b6688a498ba5c8
/json_schema_generator2/generator.py
0d5e85356b6d072e879737e83d759e39ee9c2540
[]
no_license
weaming/json-schema-generator
c347d8406828f7b7bae84f190ae9426d82d613a7
d8fdb5ac10da5dfc99dfc711fe3fd17add5cbb52
refs/heads/master
2020-03-21T13:27:23.495330
2019-05-28T11:16:29
2019-05-28T11:16:29
138,606,661
2
0
null
null
null
null
UTF-8
Python
false
false
1,600
py
import os import sys import json from pretty_format_json.format import get_text, parse_text from collections import OrderedDict from .types import entry class Generator(object): def __init__(self, data, include_origin=False, indent=2): self.data = data self.include_origin = include_origin ...
[ "garden.yuen@gmail.com" ]
garden.yuen@gmail.com
6a82d0717eb3e7aa315b50d05c69d835efea66af
d4ecb20361ae0cceef19c11e80f807261f920ead
/src/patches/tarin.py
d1f9d745ada9763f432f4a7960ffa519827a4741
[]
no_license
daid/LADX-Hackers-Toolbox
cf4617861b35049894befe174ebeb99408518f0c
b03e9e52bc4d7ae4ba2ace2f790d61e75a5d62a9
refs/heads/master
2023-04-30T18:05:24.500788
2021-05-19T18:29:56
2021-05-19T18:29:56
353,951,441
3
0
null
null
null
null
UTF-8
Python
false
false
1,708
py
from assembler import ASM from utils import formatText def updateTarin(rom): # Do not give the shield. rom.patch(0x05, 0x0CD0, ASM(""" ld d, $04 call $5321 ld a, $01 ld [$DB44], a """), "", fill_nop=True) # Instead of showing the usual "your shield back" message,...
[ "daid303@gmail.com" ]
daid303@gmail.com
9b69b84be5b857d134f48ae18c890e34040fc6f4
963b4cf9fe1de845d994d0c8d3c9bb3def326b5b
/SomeProgs/Python Stuff/Coding Assignments/NumbersToMonths.py
0856960b30942b5aa28387370d8e231049f6d837
[]
no_license
lws803/cs1010_A0167
aa727bdf029168238674d84ea6ce9c75905b8971
5759332364909ee1d2eb9c26b0d95d4dc153656f
refs/heads/master
2022-03-13T02:52:26.488846
2019-11-14T20:53:15
2019-11-14T20:53:15
105,607,027
2
2
null
null
null
null
UTF-8
Python
false
false
1,355
py
# This is a progam to print the month to the corresponding number def main(): months = "JanFebMarAprMayJunJulAugSepOctNovDec" print("This program prints the month corresponding to the number input") month_n = eval(input("Input the month in \"mm\" format: ")) if month_n == 1: print("This n...
[ "omnikron96@gmail.com" ]
omnikron96@gmail.com
c336453f33b2c70ee6144b1be36ac1a8d9e731dd
6203b9132af8f78c6cb12242bd223fa17d14f31e
/leetcode/jian-zhi-offer/15.py
956ead1e49d218618324ce6193d6e7420604b9b6
[]
no_license
joshuap233/algorithms
82c608d7493b0d21989b287a2e246ef739e60443
dc68b883362f3ddcfb433d3d83d1bbf925bbcf02
refs/heads/master
2023-08-23T12:44:42.675137
2021-09-28T02:37:01
2021-09-28T02:37:01
230,285,450
1
0
null
null
null
null
UTF-8
Python
false
false
638
py
# https://leetcode-cn.com/problems/er-jin-zhi-zhong-1de-ge-shu-lcof/ # 剑指 Offer 15. 二进制中1的个数 class Solution: def hammingWeight(self, n: int) -> int: s = bin(n) return s.count('1') class Solution1: def hammingWeight(self, n: int) -> int: # 注意负数的处理 b = abs(n) i = 0 ...
[ "shushugo233@gmail.com" ]
shushugo233@gmail.com
2070c4a0481a74769e16fb71417ffb4b7e044e83
fd7ed3266a6f802289508e5721b2bcd354763748
/sensors.py
9b813f53e32e82ef7ccca022c7d9eb630997544e
[]
no_license
ec500-software-engineering/exercise-1-modularity-jbw0410
817628ca81cb784c6da372ed3637bace4f36180b
9bbc6beb322c245fd4bca1d2d355861fd16d9d98
refs/heads/master
2020-04-22T02:57:27.675676
2019-02-14T19:28:11
2019-02-14T19:28:11
170,068,823
0
0
null
null
null
null
UTF-8
Python
false
false
755
py
import random ''' These classes model drivers that provide discrete readings of hardware ''' class BloodPressureSensor(object): @staticmethod def get_blood_pressure_data(): ''' Credit to eunghee@bu.edu :return: ''' return random.randint(70, 140), random.r...
[ "noreply@github.com" ]
ec500-software-engineering.noreply@github.com
c163e1020ebaa939f3cb0c3bd721c0653b7b86e8
ad4c2aa0398406ccb7e70562560e75fa283ffa1a
/contiguous-array/contiguous-array.py
9ab08476f48c9f3c47ad5c5d8a4e98e14fc827cd
[ "Apache-2.0" ]
permissive
kmgowda/kmg-leetcode-python
427d58f1750735618dfd51936d33240df5ba9ace
4d32e110ac33563a8bde3fd3200d5804db354d95
refs/heads/main
2023-08-22T06:59:43.141131
2021-10-16T14:04:32
2021-10-16T14:04:32
417,841,590
0
1
null
null
null
null
UTF-8
Python
false
false
607
py
// https://leetcode.com/problems/contiguous-array class Solution(object): def findMaxLength(self, nums): """ :type nums: List[int] :rtype: int """ count = 0 max_length=0 table = {0: 0} for index, num in enumerate(nums, 1): if num == 0: ...
[ "keshava.gowda@gmail.com" ]
keshava.gowda@gmail.com
815fee9d917b1958a961268c671e3051d0ac931c
891371ebcb696b91df1d00f98cb595608b580d34
/cases/migrations/0028_casetask_complete.py
448904c0ab860d80b3332c40f34233b0eaf657f3
[]
no_license
NiiColeman/law-firm
867df413e9ca30c57afad9d2743fe19ab96ba586
f41ee5ac88d3f640dce720c90cbfefb93a267400
refs/heads/master
2022-09-23T22:52:25.312903
2020-06-01T14:30:24
2020-06-01T14:30:24
241,650,134
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
# Generated by Django 2.2.6 on 2020-02-25 13:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cases', '0027_casefile_date_added'), ] operations = [ migrations.AddField( model_name='casetask', name='complete', ...
[ "nii.cole@outlook.com" ]
nii.cole@outlook.com
94ad3208d7fdf16142065d8ac727de2917515903
bad130b7b6489a1e870e2707c3108a218be10602
/tools/PAN17TruthLoader.py
1e52b51cf8883dcad43e6b42b28a4c2acd088766
[]
no_license
nschaetti/PAN-CLEF17
c6f37e4e9bdb75419fe912bcdc17c7716446c0c0
8948529f8fe0e31243a5a0287940436d67fea81c
refs/heads/master
2021-03-16T09:19:27.056904
2017-06-20T16:19:04
2017-06-20T16:19:04
84,322,203
1
0
null
null
null
null
UTF-8
Python
false
false
1,697
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # File : core/downloader/PySpeechesConfig.py # Description : . # Date : 20th of February 2017 # # This file is part of pySpeeches. pySpeeches is free software: you can # redistribute it and/or modify it under the terms of the GNU General Public # License as published by ...
[ "n.schaetti@gmail.com" ]
n.schaetti@gmail.com
4c476884135069893d3d0efefea2894d6c281552
eb8cd7d9374200bb1a30d1e1fe98a90ff723d026
/src/operator-dashboard/modules/user/management/list.py
00892a19a06bbe9d3fd69042fc2166c067de23aa
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
ecsoya/cello
9816392eea4ae2e1761b49caf6ac3229915b520e
57f12abd9ae9a8c1997d791fa5de2525ce8530e9
refs/heads/master
2020-06-12T03:29:56.054788
2019-06-17T16:10:32
2019-06-18T03:24:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,400
py
# Copyright IBM Corp, All Rights Reserved. # # SPDX-License-Identifier: Apache-2.0 # import logging import os import sys from flask import g from flask_restful import Resource, reqparse, fields, marshal_with sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', '..')) from common import log_handler, LO...
[ "hightall@me.com" ]
hightall@me.com
65fe111b8e6a86d09a81da53e8980c47e7b1bbb7
4036b33e022b3ad7e631ee097c6abc6ae7dcc890
/rhea/system/__init__.py
35f20315351882c36b45e1361b2ba570be67f874
[ "MIT" ]
permissive
hgomersall/rhea
5490e463f492c7375fd40c00a4a9d585eac878c1
5c9f0139091df95ea824884ed7c287c5992cf472
refs/heads/master
2020-12-25T08:37:06.346994
2016-02-25T12:31:02
2016-02-25T12:31:02
52,529,794
1
0
null
2016-02-25T14:13:35
2016-02-25T14:13:35
null
UTF-8
Python
false
false
700
py
from __future__ import absolute_import # these are mainly used by the tests and simulation from .const import timespec from .const import ticks_per_ns # small wrappers to include specific attributes from .clock import Clock from .reset import Reset from .glbl import Global from .memmap import ControlStatus from .me...
[ "chris.felton@gmail.com" ]
chris.felton@gmail.com
ff03a6a8312106a0023145311c1716826d6a5a34
2e4994fbbed4341772f33126857ad50586ffb1da
/8.oop.design.py
eac03d7cb9014a54f796ecba39069fe13091fd04
[]
no_license
yyyuaaaan/ctci5th
5bb6b5f9f55a699ed17d0e1c577acbab6c9e78b8
df4ee9b52ee7931f4b91fb0699e7e6d14738b771
refs/heads/master
2021-01-01T16:05:06.273872
2014-03-11T00:02:33
2014-03-11T00:02:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,301
py
"""""" """ 8.1 Design the data structures for a generic deck of cards. Explain how you would subclass the data structures to implement blackjack(twenty-one). Get 21 points on your first two cards (called a blackjack), without a dealer blackjack; Reach a final score higher than the dealer without exceeding 21; or Let...
[ "yyyuaaaan@gmail.com" ]
yyyuaaaan@gmail.com
86b009bcc66d93a696684fb7018e93ace4e34446
555cf712793ecf24ee32b3b8193b88f9380b6681
/cybox-2.0.0b6/cybox/common/__init__.py
0b9d712a409de301ef3d9e01545fa47785eb83b7
[]
no_license
bopopescu/crits_dependencies
b198d45d75d0ce2f60867d26bd4fda232fa5b78a
112e380b203069fe97e13a20bce1e926ffe18ba5
refs/heads/master
2022-11-21T15:01:42.761440
2014-06-02T22:18:38
2014-06-02T22:18:38
282,258,349
0
0
null
2020-07-24T15:43:44
2020-07-24T15:43:43
null
UTF-8
Python
false
false
550
py
# Copyright (c) 2013, The MITRE Corporation. All rights reserved. # See LICENSE.txt for complete terms. from properties import * from vocabs import VocabString from object_properties import ObjectProperties from structured_text import StructuredText from hashes import Hash, HashList, HashName from tools import ToolInf...
[ "mgoffin@mitre.org" ]
mgoffin@mitre.org
176a92f2c9f5e0c499c4c20996f5a25cbe762963
63c5ba9884428c4abae6b3ce9783a0652a717ec5
/radish/testing/__main__.py
0769ff07ad6d6e889719f4c0c7cfb48bf213e6fa
[ "MIT" ]
permissive
cle-b/radish
b240d3ac9364b91ced61e6fdeb1a9333916f4ce3
ea1b3a0a8a2639e2e3aed9a3ad5b0d38d0be9d9f
refs/heads/master
2021-01-23T23:04:04.612582
2017-09-08T07:47:34
2017-09-08T07:47:34
102,954,516
0
0
null
2017-09-09T12:51:17
2017-09-09T12:51:16
null
UTF-8
Python
false
false
1,868
py
# -*- coding: utf-8 -*- """ This module provides a script to test the radish step implementations """ import sys import colorful from docopt import docopt from radish import __VERSION__ from radish.testing.matches import test_step_matches_configs # use only 8 ANSI colors # FIXME(TF): change to true colors! colorf...
[ "tuxtimo@gmail.com" ]
tuxtimo@gmail.com
6aafb783447ebf71e6e7e2cce8ade10eac49db96
53b1cf89f3ac00d86add6dc6e103160d50e1b4ea
/pgadmin/pgadmin4/web/pgadmin/browser/server_groups/servers/databases/tests/__init__.py
aa01297a7cbb45332e881bd68c1ad366c2ec9ac5
[ "PostgreSQL" ]
permissive
luvres/armhf
b5e9e59c0e5db7f4a280242a0d940c4066a47716
aa1ec48e246f1fb8e0f4099fa8d392eddcb414ad
refs/heads/master
2021-10-01T19:08:53.395884
2018-11-28T17:57:42
2018-11-28T17:57:42
79,672,248
10
1
null
null
null
null
UTF-8
Python
false
false
449
py
# ########################################################################## # # #pgAdmin 4 - PostgreSQL Tools # # #Copyright (C) 2013 - 2016, The pgAdmin Development Team # #This software is released under the PostgreSQL Licence # # ########################################################################## from pgadm...
[ "luvres@hotmail.com" ]
luvres@hotmail.com
3cdb2c3b717ed9fe998b41b244abff6f9cc63c54
6e8d58340f2be5f00d55e2629052c0bbc9dcf390
/lib/galaxy/datatypes/chrominfo.py
3f20a5f2dbcbf86aae70ca0f5e7c149b693f906a
[ "CC-BY-2.5", "MIT" ]
permissive
JCVI-Cloud/galaxy-tools-prok
e57389750d33ac766e1658838cdb0aaf9a59c106
3c44ecaf4b2e1f2d7269eabef19cbd2e88b3a99c
refs/heads/master
2021-05-02T06:23:05.414371
2014-03-21T18:12:43
2014-03-21T18:12:43
6,092,693
0
2
NOASSERTION
2020-07-25T20:38:17
2012-10-05T15:57:38
Python
UTF-8
Python
false
false
478
py
import data from galaxy import util from galaxy.datatypes.sniff import * from galaxy.web import url_for from tabular import Tabular from galaxy.datatypes import metadata from galaxy.datatypes.metadata import MetadataElement class ChromInfo( Tabular ): file_ext = "len" MetadataElement( name="chrom", default=1,...
[ "root@ip-10-118-137-129.ec2.internal" ]
root@ip-10-118-137-129.ec2.internal
d1cddc2b1b924a642d71c87ec5525db45bac221b
209a7a4023a9a79693ec1f6e8045646496d1ea71
/COMP0016_2020_21_Team12-datasetsExperimentsAna/pwa/FADapp/pythonScripts/venv/Lib/site-packages/pandas/tests/tseries/frequencies/test_frequencies.py
0441b3586a1e02ada633134c6af704297f428d4f
[ "MIT" ]
permissive
anzhao920/MicrosoftProject15_Invictus
5e2347015411bbffbdf0ceb059df854661fb240c
15f44eebb09561acbbe7b6730dfadf141e4c166d
refs/heads/main
2023-04-16T13:24:39.332492
2021-04-27T00:47:13
2021-04-27T00:47:13
361,913,170
0
0
MIT
2021-04-26T22:41:56
2021-04-26T22:41:55
null
UTF-8
Python
false
false
834
py
import pytest from pandas._libs.tslibs import offsets from pandas.tseries.frequencies import is_subperiod, is_superperiod @pytest.mark.parametrize( "p1,p2,expected", [ # Input validation. (offsets.MonthEnd(), None, False), (offsets.YearEnd(), None, False), (None,...
[ "ana.kapros@yahoo.ro" ]
ana.kapros@yahoo.ro
033a6cd9468fdd2fcc586f34c200fa911abdd424
b997b1e19f7dff793b8fc41d79d49e0adf03cd24
/examples/plot/random_search_verification.py
0e2a206cf73f55a27acad0184741cde27021a352
[ "BSD-3-Clause" ]
permissive
janvanrijn/openml-pimp
d94526d257860387dc86a21e3e94561850cb82e6
349043fb324a29e2ee5463d1c85bfd40213fe4fe
refs/heads/master
2022-03-17T01:39:57.006906
2022-02-23T07:11:43
2022-02-23T07:11:43
95,698,193
13
9
BSD-3-Clause
2019-12-24T13:44:08
2017-06-28T18:13:17
Python
UTF-8
Python
false
false
5,468
py
import argparse import arff import collections import copy import csv import json import io import os import openml import openmlpimp import pandas as pd import pickle # Mounting CMD: sshfs fr_jv1031@login1.nemo.uni-freiburg.de:/home/fr/fr_fr/fr_jv1031 ~/nemo/ def parse_args(): all_classifiers = ['adaboost', 'dec...
[ "janvanrijn@gmail.com" ]
janvanrijn@gmail.com
3de01483a53e8b3930d1d646c5846c8bd61f2251
bf56aceabd2457d84fae4a163870f0c8c65f2f53
/_legacy/scripts/collect_images.py
d48d612432e6d1b665e3f0ffe767b44b85e36419
[]
no_license
abhay-venkatesh/unreal-cv-data
27f7a33b61a2f320ebb03398f7695a74743a131f
d3fef2324326ca0e00f72808b9d5f5a9b4c0fc3a
refs/heads/master
2021-10-30T06:49:27.954209
2019-04-25T19:09:44
2019-04-25T19:09:44
107,062,592
1
1
null
null
null
null
UTF-8
Python
false
false
6,646
py
from __future__ import division, absolute_import, print_function import os, sys, time, re, json import numpy as np import random import matplotlib.pyplot as plt from PIL import Image import StringIO import json import cv2 imread = plt.imread def imread8(im_file): ''' Read image as a 8-bit numpy array ''' im = ...
[ "abhay.venkatesh@gmail.com" ]
abhay.venkatesh@gmail.com
919b85b71f755b150d96bda835a6315c3ad88852
8415889a4378c21bb7ba74bca4ca34ad2f4d7fdd
/99_misc/1003/src/03/no28.py
fce668d95fa395094753551e2ddc55ee6755ee42
[]
no_license
murayama333/pg19
b3d71cd44f02fde55549527c6ae4e6c205fc3265
dac1be575ae275f319eb53acd6b7d2f581fc7f42
refs/heads/master
2020-06-14T21:00:11.412623
2020-02-19T23:10:19
2020-02-19T23:10:19
195,124,569
1
4
null
2020-02-19T23:10:20
2019-07-03T20:49:37
PHP
UTF-8
Python
false
false
160
py
# no28.py english = int(input()) math = int(input()) science = int(input()) if english >= 80 or math >= 80 or science >= 80: print("OK") else: print("NG")
[ "murayama333@gmail.com" ]
murayama333@gmail.com
d2179cd9b8ba00c09161f34c6344de01b05419ae
ce5ce3764e75774c0b7eab47893987b9f311b1b9
/.history/moments/models_20210606000825.py
c40e08bb86c150f13aceefe89c3d3187565b33ee
[]
no_license
iSecloud/django-wechat
410fb8a23b50dc2343c2f0167bbae560bf6e9694
faaff9bb7f9454a63b2f8411d3577169b470baad
refs/heads/main
2023-05-15T06:53:16.252422
2021-06-07T14:00:35
2021-06-07T14:00:35
374,685,069
0
0
null
null
null
null
UTF-8
Python
false
false
1,553
py
from django.db import models from django.contrib.auth.models import User # Create your models here. class WeChatUser(models.Model): user = models.OneToOneField(User, models.CASCADE) motto = models.CharField(max_length=100, null=True, blank=True) pic = models.CharField(max_length=50, null=True, blank...
[ "869820505@qq.com" ]
869820505@qq.com
f257ef3adf85776fc09095799aa1e1096e74eb02
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/waf_read_1/byte-match-set_get.py
5e9f1c22099ed1537c645d746ba14e705c042225
[]
no_license
lxtxl/aws_cli
c31fc994c9a4296d6bac851e680d5adbf7e93481
aaf35df1b7509abf5601d3f09ff1fece482facda
refs/heads/master
2023-02-06T09:00:33.088379
2020-12-27T13:38:45
2020-12-27T13:38:45
318,686,394
0
0
null
null
null
null
UTF-8
Python
false
false
1,748
py
#!/usr/bin/python # -*- codding: utf-8 -*- import os import sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from common.execute_command import execute_one_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/waf/get-byte-match-set.html if __name__ == '_...
[ "hcseo77@gmail.com" ]
hcseo77@gmail.com
56fe1ed59e721d051a663b3dbcbc309e5e4528e2
9d74cbd676e629f8acdc68a4bac3dea0a98b9776
/yc287/1433.py
8074995306af13e8df71467ebe83776f47f98c96
[ "MIT" ]
permissive
c-yan/yukicoder
01166de35e8059eaa8e3587456bba52f35bd0e44
dcfd89b0a03759156dcea8c2e61a7705543dc0d4
refs/heads/master
2022-03-20T06:50:48.225922
2022-02-25T15:48:50
2022-02-25T15:48:50
237,735,377
0
0
null
null
null
null
UTF-8
Python
false
false
340
py
N = int(input()) S = input() a = list(map(int, input().split())) result = 0 minv = 0 maxv = 0 v = 0 for i in range(N): if S[i] == 'R': v += a[i] elif S[i] == 'B': v -= a[i] result = max(result, abs(v - minv)) result = max(result, abs(v - maxv)) minv = min(minv, v) maxv = max(max...
[ "c-yan@users.noreply.github.com" ]
c-yan@users.noreply.github.com
2203b2f8ddfe69d9ea2d22c95a4015ef75341535
203fd0a2a91ee063736d11b069e11026c4184ec5
/tools/test_files/all_17_or_less/one-two-three-v3_101.py
4a239d7dfd15605c470eba86cece5f22d1f2af33
[ "Apache-2.0" ]
permissive
Astlaan/OpenQL
19b35200775367e6f11d1756e9495c1883a1c531
1b60d5784d439e6c19e662b570114aa1b3045d38
refs/heads/develop
2020-09-01T02:56:37.906564
2019-11-15T15:43:55
2019-11-15T15:43:55
181,012,110
0
0
NOASSERTION
2019-04-12T13:18:51
2019-04-12T13:18:51
null
UTF-8
Python
false
false
4,472
py
from openql import openql as ql import os import argparse def circuit(config_file, new_scheduler='yes', scheduler='ASAP', uniform_sched= 'no', sched_commute = 'yes', mapper='base', moves='no', maptiebreak='random', initial_placement='no', output_dir_name='test_output', optimize='no', measurement=True, log_level='LOG_W...
[ "diogovalada.7@tecnico.ulisboa.pt" ]
diogovalada.7@tecnico.ulisboa.pt
5d4c7e8c5799187436efd1cc1d578fb922574937
7e98a8b31cc2fecf8384f4590f27540f7280659a
/v1/DynamicProgramming/dy_lead_changes.py
09e613d8596dc87683d3a62925d828b58d822f52
[]
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
3,948
py
# Question http://www.careercup.com/question?id=5659765149532160 # BEST SOLUTION def improved_dp(high, low, points, cache): if high == 0 and low == 0: return 0 if high < 0 or low < 0: return -1 if cache.has_key((high, low)): return cache[(high, low)] current_max = 0 for point in points:...
[ "daniel.arraes@gmail.com" ]
daniel.arraes@gmail.com
0ae801e5965ce7ec146b5c34856d6ba414fccc64
c4b7399a10b7f963f625d8d15e0a8215ea35ef7d
/74.搜索二维矩阵.py
5a51ef8e4238923ebc9a2b70741e3de82aa85aa4
[]
no_license
kangkang59812/LeetCode-python
a29a9788aa36689d1f3ed0e8b668f79d9ca43d42
276d2137a929e41120c2e8a3a8e4d09023a2abd5
refs/heads/master
2022-12-05T02:49:14.554893
2020-08-30T08:22:16
2020-08-30T08:22:16
266,042,478
0
0
null
null
null
null
UTF-8
Python
false
false
1,467
py
# # @lc app=leetcode.cn id=74 lang=python3 # # [74] 搜索二维矩阵 # # https://leetcode-cn.com/problems/search-a-2d-matrix/description/ # # algorithms # Medium (37.59%) # Likes: 142 # Dislikes: 0 # Total Accepted: 35K # Total Submissions: 93K # Testcase Example: '[[1,3,5,7],[10,11,16,20],[23,30,34,50]]\n3' # # 编写一个高效的算法...
[ "596286458@qq.com" ]
596286458@qq.com
e7197c294d7be6e125b68f28fca47c1c517ecc9c
86fc644c327a8d6ea66fd045d94c7733c22df48c
/scripts/managed_cpe_services/customer/wanop_services/type2_site/type2_site/wanop_primary/service_customization.py
640734218782344960ca314aa9701c7223f9b4f6
[]
no_license
lucabrasi83/anutacpedeployment
bfe703657fbcf0375c92bcbe7560051817f1a526
96de3a4fd4adbbc0d443620f0c53f397823a1cad
refs/heads/master
2021-09-24T16:44:05.305313
2018-10-12T02:41:18
2018-10-12T02:41:18
95,190,459
0
0
null
null
null
null
UTF-8
Python
false
false
5,358
py
# # This computer program is the confidential information and proprietary trade # secret of Anuta Networks, Inc. Possessions and use of this program must # conform strictly to the license agreement between the user and # Anuta Networks, Inc., and receipt or possession does not convey any rights # to divulge, reproduce,...
[ "sebastien.pouplin@tatacommunications.com" ]
sebastien.pouplin@tatacommunications.com
3fa19bfa16c409692611a48d2cd4f1dfc97246f1
ac0b9c85542e6d1ef59c5e9df4618ddf22223ae0
/kratos/applications/structural_application/test_examples/arc_length.gid/arc_length_build_reference.py
7355b24ffe40eb10978615336c3d374b7a53adb6
[]
no_license
UPC-EnricBonet/trunk
30cb6fbd717c1e78d95ec66bc0f6df1a041b2b72
1cecfe201c8c9a1b87b2d87faf8e505b7b1f772d
refs/heads/master
2021-06-04T05:10:06.060945
2016-07-15T15:29:00
2016-07-15T15:29:00
33,677,051
3
0
null
null
null
null
UTF-8
Python
false
false
427
py
from __future__ import print_function, absolute_import, division #makes KratosMultiphysics backward compatible with python 2.6 and 2.7 import sys kratos_benchmarking_path = '../../../../benchmarking' sys.path.append(kratos_benchmarking_path) import benchmarking print("Building reference data for arc_length_des_benchma...
[ "enriquebonetgil@hotmail.com" ]
enriquebonetgil@hotmail.com
3fc3573fe50b255e7c915c3d6e653125859cd4a8
1e257878ee164e19929e6096d85fecb5d71887b4
/tests/grammar/test_2_short_stmt.py
6018c7e5556585672cc23006fa37bb0a1c700238
[ "Zlib" ]
permissive
lhyhb/python_lite
62312218c5434745634cd0e0ee8a14c115d3708d
f59850b6093ec8260d96302af25c2bc3bdababc9
refs/heads/master
2021-06-11T08:01:15.589739
2017-03-04T15:50:59
2017-03-04T15:50:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,418
py
# value assign a = 1 简蟒 = 2 a2, b2 = 1, 2 [a3, b3] = 1, 2 (a4, b4) = 1, 2 a, b = b, a = a4, b4 a, b = b, a a5, b5 = b5, a5 = 1, 2 # not support # a,b = x = 1,2 # misc pass assert 1 assert 1,2 # operator not 1 not True not False True is not False 1 or 2 1 and 0 or 2 a == 1 a != 1 a < 2 a <= 2 a > 2 a >= 2 a =...
[ "fy0@qq.com" ]
fy0@qq.com
93fa5d1489490b196a1704e86f4e48b946ab4cc9
1ba8e69789536ca0bb3a02966492e3d827323cba
/app/forms.py
124a1892c32f14953656ec80aaaa3d92e24a6f6a
[]
no_license
harshadvali11/testing1
d991c3780f02f5acbb5426884ebb771e7eec5b04
8e414f3d8483395897769758c82ce4e0ffa11edb
refs/heads/master
2022-12-17T20:36:24.359727
2020-09-27T00:05:06
2020-09-27T00:05:06
298,800,297
0
0
null
null
null
null
UTF-8
Python
false
false
356
py
from django import forms from django.core import validators class Form(forms.Form): name=forms.CharField(max_length=39,validators=[validators.MaxLengthValidator(6)]) number=forms.IntegerField(validators=[validators.MaxValueValidator(11)]) phone=forms.CharField(max_length=10,min_length=10,validators=[valid...
[ "66057460+harshadvali11@users.noreply.github.com" ]
66057460+harshadvali11@users.noreply.github.com
906fe1850680e9fd2f5208fe49665c1ccd60b88b
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_prisoners.py
4f75ec5b2eaf64b56a155ec03a33b8bf66d89ad9
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
from xai.brain.wordbase.nouns._prisoner import _PRISONER #calss header class _PRISONERS(_PRISONER, ): def __init__(self,): _PRISONER.__init__(self) self.name = "PRISONERS" self.specie = 'nouns' self.basic = "prisoner" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
770628a6d0fadf14ae68ea76670b3231c9dad8a1
a9e3e630ba20f4468f5fced75ba744cf81196c43
/webstruct/tests/test_crfsuite.py
f846f84738fee3c49bade9587dfafe9e5ffeedf1
[]
no_license
huum4n/webstruct
f2412700109abaf4778619adad23119eff5425ff
19d559ded7e5eb6be49a709e55ead0ce13dc3074
refs/heads/master
2023-08-25T07:54:06.507144
2021-10-08T13:32:35
2021-10-08T13:32:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,668
py
# -*- coding: utf-8 -*- from __future__ import absolute_import import os import unittest import pickle import tempfile import webstruct from webstruct.features import EXAMPLE_TOKEN_FEATURES from webstruct.crfsuite import create_crfsuite_pipeline from webstruct.metrics import bio_classification_report from webstruct.mo...
[ "kmike84@gmail.com" ]
kmike84@gmail.com
672dbb369dc5a1ced8c7c706c3b141cd10662d44
4ba9a6274d78ff47bc00920be790b62390fc8f42
/189旋转数组.py
fecec3c3b948a9abe10d3404aa8cef96ce82fe44
[]
no_license
wzwhit/leetcode
02b04f9f354de321a32d8e5b93f20a527100cca5
e732ee7e99a015a0d124677ab73fb58fc8e64b59
refs/heads/master
2020-04-26T03:02:06.380171
2019-08-23T04:04:42
2019-08-23T04:04:42
173,253,697
0
0
null
null
null
null
UTF-8
Python
false
false
952
py
# 给定一个数组,将数组中的元素向右移动 k 个位置,其中 k 是非负数。 # 示例 1: # 输入: [1,2,3,4,5,6,7] 和 k = 3 # 输出: [5,6,7,1,2,3,4] # 解释: # 向右旋转 1 步: [7,1,2,3,4,5,6] # 向右旋转 2 步: [6,7,1,2,3,4,5] # 向右旋转 3 步: [5,6,7,1,2,3,4] # 示例 2: # 输入: [-1,-100,3,99] 和 k = 2 # 输出: [3,99,-1,-100] # 解释: # 向右旋转 1 步: [99,-1,-100,3] # 向右旋转 2 步: [3,99,-1,-100] ...
[ "1064951590@qq.com" ]
1064951590@qq.com
15a256c50695d8b64136bf7c8b79ead21bc58caf
f068b88b74e3735640f04396c6da497eb35d5b45
/stories/migrations/0011_category_story_count.py
715094edbce85e0b6d532dae01f788e3fe4fd73e
[]
no_license
cproctor/palyapp_server
86cb77d35dab00f5837840757470a0a87182e195
312541ea07bd91caa30465a8372beb54577fec93
refs/heads/master
2020-07-13T03:02:18.873292
2018-04-05T19:39:35
2018-04-05T19:39:35
66,875,689
0
0
null
null
null
null
UTF-8
Python
false
false
483
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-09-19 21:49 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('stories', '0010_auto_20160915_1702'), ] operations = [ migrations.AddField(...
[ "chris.proctor@gmail.com" ]
chris.proctor@gmail.com
16a559a1cd899fe0e2a7b935b64efbdd3fbf01c4
ceb7a9339446364de511255aaa6015255857c397
/setup.py
af5c054ab89db60bbc01ef157b7619231c3e7a5b
[ "BSD-3-Clause" ]
permissive
CoastSunny/dyfunconn
c1cfc540cc8a0de7a14b7b0605e845dcffea1658
fbced637cbfd478e23ee08973af80a3763eb4b94
refs/heads/master
2021-04-06T19:34:03.285415
2018-03-06T09:53:30
2018-03-06T09:53:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,003
py
#!/usr/bin/env python # based on: # https://github.com/marcindulak/python-mycli/blob/master/setup.py#L34 import os from setuptools import setup #from distutils.core import setup name = "dyfunconn" rootdir = os.path.abspath(os.path.dirname(__file__)) packages = [] for dirname, dirnames, filenames in os.walk(name): ...
[ "makhsm@gmail.com" ]
makhsm@gmail.com
9f2ab36bc052faca50dbbbc3c4638b86db2ffa9b
1f316dd015b02c85512b4dd1455c35ab8c5274e1
/properties.py
a84ab14bcf8562c7d21b69f385c5baf9d78f1f13
[]
no_license
sgammon/PolyPro
7d3bb1d20b34073b0e0a1fcc43403da497fd2831
16cc814d868fe1bec80d0ed501504754e64f081f
refs/heads/master
2021-01-01T06:38:53.770844
2010-10-19T01:31:34
2010-10-19T01:31:34
860,360
0
1
null
null
null
null
UTF-8
Python
false
false
1,243
py
from google.appengine.ext import db from google.appengine.api import datastore_types from google.appengine.api import datastore_errors ## +=+=+ Stores the Python package import path from the application root, for lazy-load on search. class _ModelPathProperty(db.StringProperty): def __init__(self, name, **kwa...
[ "samuel.gammon@gmail.com" ]
samuel.gammon@gmail.com
df86b139d443196a7bc2d6c27772eaef9bce80e4
2a54e8d6ed124c64abb9e075cc5524bb859ba0fa
/.history/1-Python-Basics/14-builtin-functions-methods_20200412234946.py
01192158330c4d9a988fdbfa11bfa6e5ed998cfb
[]
no_license
CaptainStorm21/Python-Foundation
01b5fbaf7a913506518cf22e0339dd948e65cea1
a385adeda74f43dd7fb2d99d326b0be23db25024
refs/heads/master
2021-05-23T01:29:18.885239
2020-04-23T19:18:06
2020-04-23T19:18:06
253,171,611
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
print(len('hellooooo')) # length is 9 greeting = 'Good morning' print (greeting[0:len(greeting)]) quote = "aristotle was amazing" print(quote.upper()) print(quote.capitalize()) print(quote.find('was')) print(quote.find('wo')) print(quote.replace('was', ''))
[ "tikana4@yahoo.com" ]
tikana4@yahoo.com
b2eb7e6cc4aecdee9d0cfee1db44edd8a63e69ff
4dedd946a44ee62ab6a93db76e2ce3bf42deaad1
/utils/custom_geom_tile.py
d0a092c629a4437d96af79d1fbb2b4134939a66f
[]
no_license
lqrz/medical_information_extraction
5cde8edc7d72a3e597f8ae60307f3b4e7372556b
d092af57ea8d6202acf55fc6204f7ab19b1be030
refs/heads/master
2021-03-27T12:02:59.410557
2017-03-07T09:47:08
2017-03-07T09:47:08
53,079,784
2
0
null
null
null
null
UTF-8
Python
false
false
3,940
py
from __future__ import (absolute_import, division, print_function, unicode_literals) import pandas as pd import numpy as np from ggplot.geoms.geom import geom from matplotlib.patches import Rectangle import matplotlib.colors as colors import matplotlib.colorbar as colorbar class custom_geom_ti...
[ "lautaro.quiroz@gmail.com" ]
lautaro.quiroz@gmail.com
8d2ae5cd38308f8f4c203ee7bf12c5072277ff02
64024380515828cf7870c71094108d81f461f842
/hw5/TCP_calculator_client.py
c01c4cacf863475e14a79665d6edc032819906bd
[]
no_license
kiteB/Network_Programming
89687370d0d64e869356d6c9208d21c8fcc670c5
885bb561d8eee5b6294386daebaa2e29cfd7f654
refs/heads/master
2023-05-13T17:19:20.895765
2021-05-17T14:05:00
2021-06-08T17:50:50
345,313,294
0
0
null
null
null
null
UTF-8
Python
false
false
264
py
from socket import * s = socket(AF_INET,SOCK_STREAM) s.connect(('localhost', 3333)) while True: msg = input('Enter the formula: ') if msg == 'q': break s.send(msg.encode()) print('Answer:', s.recv(1024).decode()) s.close()
[ "mmy789@sch.ac.kr" ]
mmy789@sch.ac.kr
b7f9890d133b3a2cc7dc38df70fd2c5a8c8e59a9
78ee2d20722287f547c406a1cff1efc36d020ba3
/flare_portal/experiments/migrations/0030_participant_agreed_to_terms_and_conditions.py
09e2784dc9e18519f32dac8a0eabe82e10fee413
[ "MIT" ]
permissive
flare-kcl/flare-portal
db660b4ccc39a6f125d548fc9efb21026f097563
a1cef9d22ba3f1bafac55bb6ee1c8223425101dd
refs/heads/main
2023-07-24T10:00:27.807734
2022-07-19T02:08:38
2022-07-19T02:08:38
305,943,258
1
2
MIT
2023-07-03T14:40:33
2020-10-21T07:30:12
Python
UTF-8
Python
false
false
411
py
# Generated by Django 3.1.4 on 2020-12-22 05:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("experiments", "0029_webmodule"), ] operations = [ migrations.AddField( model_name="participant", name="agreed_to_ter...
[ "mixxorz@gmail.com" ]
mixxorz@gmail.com
32ac7a6ab33357967bce8e397e036ea228ad2d55
86d13f11fc8b4d07a39bb0f0c7193d5418bf55bf
/tfx/dsl/components/base/base_node.py
78ac40728b6e0a11acc802fb515ba47dc8c4b100
[ "Apache-2.0" ]
permissive
mfkiwl/tfx
e4325698eec240e34cad673dc7747bfc545bdc33
aa32693dd00f4c5fd8236bbf1020a1cbc9321aa2
refs/heads/master
2023-05-03T11:22:24.180798
2021-05-18T06:05:16
2021-05-18T06:06:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,263
py
# Lint as: python2, python3 # Copyright 2019 Google LLC. 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 req...
[ "tensorflow-extended-nonhuman@googlegroups.com" ]
tensorflow-extended-nonhuman@googlegroups.com
869d196bc990280ff074041d1358effc134dd28e
6c816f19d7f4a3d89abbb00eeaf43dd818ecc34f
/apps/chat/urls.py
9c37d07fccd2b449a2212150ecbf2808067d3da5
[]
no_license
reo-dev/bolt
29ee6aa7cfc96bd50fa7a7dae07fbaafc2125e54
d1a7859dd1ebe2f5b0e6e295047b620f5afdb92e
refs/heads/master
2023-07-13T04:05:57.856278
2021-08-27T09:07:03
2021-08-27T09:07:03
382,195,547
0
0
null
null
null
null
UTF-8
Python
false
false
184
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^(?P<room_name>[^/]+)/$', views.room, name='room'), ]
[ "75593016+reo-dev@users.noreply.github.com" ]
75593016+reo-dev@users.noreply.github.com
74a35145b97c31361f4778159286b6e8eed40ef5
ba8f5d23d9878a25b30a32cf16e8833f93b25853
/source_py3/test_python_toolbox/test_cute_iter_tools/test_double_filter.py
8f128e158342bed211206a1c8684a826a8380ff0
[ "MIT" ]
permissive
nastako/python_toolbox
af520cbec1468c8e0aae0b3b1c467ca5623af45b
9713fd728608818630ee409ac6a6fdaf863af31b
refs/heads/master
2020-12-11T09:07:19.681161
2015-01-16T21:26:37
2015-01-16T21:26:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,326
py
# Copyright 2009-2015 Ram Rachum. # This program is distributed under the MIT license. from python_toolbox import nifty_collections from python_toolbox.cute_iter_tools import double_filter def test_double_filter(): (first_iterable, second_iterable) = \ double_filter(lambda value: va...
[ "ram@rachum.com" ]
ram@rachum.com
a3ccb2913562e0c5a5aad7171577792ab80f3c8b
ae3a377375176bf61ba8c656614257f429eb8a84
/Mess/UpWork.py
3e18467e86565e3dcfa0aab8db43d4f36e7777d5
[]
no_license
AngusGLChen/PayingMOOCers
ce0d7872c7dacd79c3fc417e6fc70a0e2d5d5461
7ea617a8d58e0f94abc93c3c9e88be1c6dd62acf
refs/heads/master
2021-01-20T19:13:06.790822
2016-06-20T19:33:19
2016-06-20T19:33:19
61,574,465
0
0
null
null
null
null
UTF-8
Python
false
false
745
py
''' Created on Sep 17, 2015 @author: Angus ''' import math def ToAnalyzeUpWork(path): step = 5 result = {} fp = open(path, "r") fp.readline() lines = fp.readlines() for line in lines: array = line.split(",") budget = float(array[2]) index = budget / 5 ...
[ "angus.glchen@gmail.com" ]
angus.glchen@gmail.com
32b6dd6284f4dcf427108d2d0d011988fb248aa5
88819840f4f1ceb405b02925148124ad5eb299cf
/gg_custom/doc_events/item.py
bb3254d93bfcc329ebbe0afc69c4c3fb3dd26ee0
[ "MIT" ]
permissive
admin627863/gg_custom
c483a502521d0e72dc333a6f2ec9ece8760cd6f5
8ce0fe4eb99a98c6733377b7c808405604b30243
refs/heads/master
2023-06-21T23:58:51.133830
2020-12-27T09:49:14
2020-12-27T09:49:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
538
py
from __future__ import unicode_literals import frappe def validate(doc, method): if doc.gg_freight_based_on: existing = frappe.db.exists( "Item", {"name": ("!=", doc.name), "gg_freight_based_on": doc.gg_freight_based_on}, ) if existing: frappe.throw( ...
[ "sun@libermatic.com" ]
sun@libermatic.com
76b5d54e2ee9215fdf12e32b0e08e018c1baa442
dafbb40214c27993ced1c40ad3c7a6b9430a39a6
/Code/CS/DesignPatterns/InterpreterPattern.py
ec7b8e769f4f5f8a93ba3d67ba5c9926ca52ccc4
[]
no_license
wan-h/Brainpower
fe67de45edca22ca5de4789082c9662e84c95a13
f42d68a27b2610ba045dfc68873c429b58cf573b
refs/heads/master
2023-08-17T02:57:50.633504
2023-08-03T07:11:27
2023-08-03T07:11:27
223,208,555
4
1
null
2023-03-06T20:45:31
2019-11-21T15:45:50
C++
UTF-8
Python
false
false
1,823
py
# coding: utf-8 # Author: wanhui0729@gmail.com # 创建一个表达式接口。 class Expression(object): def interpret(self, context: str): pass # 创建实现了上述接口的实体类。 class TerminalExpression(Expression): _data = "" def __init__(self, data: str): self._data = data def interpret(self, context: str): ...
[ "13658247573@163.com" ]
13658247573@163.com
9e496243d8a1bbb4a189f36ddcf5628746183bc8
7f2d1744dffcf5ce361ad2125d6cd4759836d8a1
/simple_autoencoder.py
621a857049798cda84c9c7efc5aba6f4006190bb
[ "MIT" ]
permissive
MuAuan/llightning-pytorch
b178e0bcb139a0ca31656731225736e61c65fae0
38dc9ed75dd8e6f4a2a05e5a10072a549dcbf4d6
refs/heads/main
2023-03-04T05:47:41.926174
2021-02-14T14:13:41
2021-02-14T14:13:41
328,510,772
0
0
null
null
null
null
UTF-8
Python
false
false
1,561
py
import os import torch from torch import nn import torch.nn.functional as F from torchvision.datasets import MNIST from torch.utils.data import DataLoader, random_split from torchvision import transforms import pytorch_lightning as pl class LitAutoEncoder(pl.LightningModule): def __init__(self): super()._...
[ "noreply@github.com" ]
MuAuan.noreply@github.com
f7c9991f3309e36ff9e74b8d5d1ee1dff8e1b863
da1e575580f12ddb9e6b723b68342c536d77b636
/infra_macros/macro_lib/convert/tests/thriftdoc/test_thriftdoc.py
aac53e2edca79c5a8cb08a7d97aa65cbb5d2ce70
[ "BSD-3-Clause" ]
permissive
thatch/buckit
02e81d3ded4c4b4690927dd181c4a307f4bb7fbb
8a6b97daed8e90aa52f3f52a71e1cef16491078a
refs/heads/master
2020-04-06T12:35:39.446390
2018-11-13T23:23:45
2018-11-13T23:27:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,389
py
#!/usr/bin/env python3 import unittest from leaf1.ttypes import Leaf1 from leaf2.ttypes import Leaf2 from parent.ttypes import Parent from tupperware.thriftdoc.validator.validate_thriftdoc import ( ValidateThriftdoc, ConstraintViolationException ) class ThrifdocPythonTest(unittest.TestCase): def test_va...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
dc606523abca1421844d6f5744b38ff4d7bb1fed
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/abc108/B/4926401.py
241a8e81a3bfdf8f43504aeecc8da33e5712afe1
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
160
py
x1, y1, x2, y2 =map(int,input().split()) x3 = x2 - (y2 - y1) y3 = y2 + (x2 - x1) x4 = x1 - (y2 - y1) y4 = y1 + (x2 - x1) print('%d %d %d %d'%(x3,y3,x4,y4))
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
e0e86891bb6ffe7babe067c0a742b35a4b13e791
9374fd0a9823c59c2cfd9e705be7b03ef9a6c676
/build/beginner_tutorials/catkin_generated/pkg.develspace.context.pc.py
95ede1110e27ae3f67a45c797f6838454a0cb1e0
[]
no_license
kamoonty/catkin_ws_roboware
288a2e644a3b7c2ba34f69d08042bc51be958861
e11115678a4579d68bd2cad5791225e273636ad6
refs/heads/master
2022-05-03T12:36:13.035787
2019-11-17T16:49:20
2019-11-17T16:49:20
180,313,282
0
0
null
null
null
null
UTF-8
Python
false
false
491
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/kanin/catkin_ws_roboware/devel/include".split(';') if "/home/kanin/catkin_ws_roboware/devel/include" != "" else [] PROJECT_CATKIN_DEPENDS = "message_runtime".replace(';', ' ') PKG_CONFIG_LIBRARIE...
[ "kamoonty@gmail.com" ]
kamoonty@gmail.com
8b9bdb68d291a2dc59811e1678dbe17a4b2cea01
65e54ca14ac21d2c2572ba35ba351df5903cb667
/src/petronia/base/util/memory.py
1d91951251f4fc190f77797e2cc75f5788782929
[ "MIT" ]
permissive
groboclown/petronia
29b93e88b82d2732bb529621ad8bff50334d36b9
486338023d19cee989e92f0c5692680f1a37811f
refs/heads/master
2022-07-25T10:08:58.468385
2020-01-23T14:59:03
2020-01-23T14:59:03
71,741,212
22
3
NOASSERTION
2022-07-13T15:27:32
2016-10-24T01:30:01
Python
UTF-8
Python
false
false
2,223
py
""" Memory-based helpers. Used to either profile memory or help reduce memory. """ from typing import TypeVar, Tuple, Generic, Optional, Dict, Mapping, Any # singleton empty collections. DO NOT MODIFY THEM. # Note that the typing is ignored, so that they can take the place of anything. EMPTY_DICT = dict() # type...
[ "matt@groboclown.net" ]
matt@groboclown.net
c71b380bce6b65bb2c4ed65425be2a9b163faeba
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/9S8qp4XKG2qwQMdrb_15.py
5eb92a92e076ea9afdd1d916f240c3c948894ae8
[]
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
581
py
""" Write a function that returns the number of ways a person can climb **n stairs** , where the person may only climb **1** or **2** steps at a time. To illustrate, if **n = 4** there are **5** ways to climb: [1, 1, 1, 1] [2, 1, 1] [1, 2, 1] [1, 1, 2] [2, 2] ### Examples ways_to_climb(1)...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
2d699a8b44e2f2b75da0ba7711d9f45ac0cdd30f
3d83e5d6c5c3b264dbca94f2fedcd1abaf522278
/tests/test_regridder.py
17bd0aaa942f33294411e73e2bf01d05dd0073cf
[ "Apache-2.0" ]
permissive
cp4cds/c4cds-wps
4767d779a2338d46d52f0c23bb89f0072928c482
5abd9281195548bbd1e7653fe2ab1fee26745200
refs/heads/master
2020-04-02T06:43:19.383112
2020-01-14T16:05:36
2020-01-14T16:05:36
154,164,988
0
0
NOASSERTION
2020-01-14T16:05:37
2018-10-22T15:09:32
Python
UTF-8
Python
false
false
2,083
py
import pytest from c4cds.regridder import Regridder, GLOBAL, REGIONAL from .common import C3S_CMIP5_NC, CORDEX_NC, C3S_CMIP5_ARCHIVE_BASE, CORDEX_ARCHIVE_BASE, resource_ok def test_create_output_dir(): regridder = Regridder() assert 'out_regrid/1_deg' in regridder.create_output_dir(domain_type=GLOBAL) a...
[ "ehbrecht@dkrz.de" ]
ehbrecht@dkrz.de
77c2e9750321754cfb1ab46d0b7ca2e7ce7a247a
04ced19988d12a7aa17ee57f0cc3d5251a864f98
/migrations/versions/5bf9db6d7909_adding_new_kmeans_parameters.py
9bc60f7b0ee1645c38897743bb550ea6fc07c0e3
[ "Apache-2.0" ]
permissive
dpdi-unifor/tahiti
bc64049ae02a242adb9510ea17a547a8f768120d
895d7b471a59a1dd3ae4d0a9d4162f4bc1e4977a
refs/heads/master
2022-12-30T13:54:36.237700
2020-10-19T23:08:24
2020-10-19T23:08:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,982
py
"""adding new kmeans parameters Revision ID: 5bf9db6d7909 Revises: a13c4b5cc25f Create Date: 2020-10-15 10:01:50.734058 """ from alembic import context, op from sqlalchemy import String, Integer, Text from sqlalchemy.orm import sessionmaker from sqlalchemy.sql import table, column import json # revision identifiers,...
[ "waltersf@gmail.com" ]
waltersf@gmail.com
abfa93fc7740913311d27899f64f809ad4d299ab
069c35df3a07d41a10e40423f4e41acbd01d9cef
/src/cadence/analysis/CurveOrderedAnalysisStage.py
1208f280fed3133b4f26a33e7c287a9df275eabd
[]
no_license
sernst/Cadence
23952bbc835efcbf94577e08978b34e38ec0f794
bcd0d80077c68cf4bb515d643e51f62dd6c4caaa
refs/heads/master
2020-04-06T06:46:47.993494
2016-08-23T21:48:19
2016-08-23T21:48:19
5,226,210
2
1
null
null
null
null
UTF-8
Python
false
false
1,643
py
# CurveOrderedAnalysisStage.py # (C)2015 # Scott Ernst from __future__ import print_function, absolute_import, unicode_literals, division from cadence.analysis.AnalysisStage import AnalysisStage class CurveOrderedAnalysisStage(AnalysisStage): """A class for...""" def __init__(self, key, owner, label =None,...
[ "swernst@gmail.com" ]
swernst@gmail.com
bd6e0488f4cb740a65879e5d5876c6076ccb4bfe
57d32890c61412a3561995a85d31db88f15682ad
/bookstore/settings.py
dc0d083126a03317fd0139b8821bb694184c05a6
[]
no_license
rg3915/bookstore_2016
76453a37623508601efecf3df98605bd5b69e0a1
6dff3a8e7e441ad08e8e610dc13379730c0d2101
refs/heads/master
2021-11-06T10:02:30.883992
2016-09-19T00:07:35
2016-09-19T00:07:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,776
py
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '*d0uv9-z)cwq=1@a75busrd$f!&_5q=1x!*ee5(=enywjyj8d%' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = [] # ...
[ "rg3915@yahoo.com.br" ]
rg3915@yahoo.com.br
9973c0252fc625cd0e1437f853c4620574be1c51
7c7902fa0efd6b249b67aaf8ef625981ca30ec2f
/clefts/manual_label/plot/stats_utils.py
e5a5fb162f0def9ebcf24b176bd418e970603d16
[]
no_license
clbarnes/cleft_scripts
e170f4e212b62d347435eb686ff2cfc5b4f95a45
74a600c58c0b0f94d0a2db5eb654df06ee7825a8
refs/heads/master
2021-06-06T03:22:59.468426
2020-03-06T16:08:36
2020-03-06T16:08:36
140,337,964
0
0
null
null
null
null
UTF-8
Python
false
false
1,684
py
import math import numpy as np from scipy import stats BETA = 3 def sturges_rule(values): return math.ceil(1 + np.log2(len(values))) def square_root_choice(values): return math.ceil(np.sqrt(len(values))) def rice_rule(values): return math.ceil(2 * len(values) ** (1 / 3)) def freedman_diaconis_rul...
[ "barnesc@janelia.hhmi.org" ]
barnesc@janelia.hhmi.org
9d99d21c8c14d44a3ed944e34cb3aefc8a7c4404
8e2a4301c76f13722f7a3dafcba701aaa947a8c0
/src/position2D.py
4c80228f1f1fc8bb32956ff64622d1e3d43e3e68
[]
no_license
yangkang411/pdr_project
05dafaab4d0a84f9bf6f1edf99ade8839f96ccef
0efff2592bfbfd39caf3de13ec9a824723ff6ba4
refs/heads/master
2023-03-18T23:37:43.889908
2018-09-05T08:30:19
2018-09-05T08:30:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,121
py
import math import time from src.structures.thread import threatStructure class position2D(threatStructure): def __init__(self,inputQueue,outputQueue): super(position2D, self).__init__() self.target = self.run self.inputQueue = inputQueue self.outputQueue = outputQueue sel...
[ "mail@mail.com" ]
mail@mail.com
711d0074892ac94686ee0beda249ce27188732b6
326247a627b27d525ae8d88fae74900b15a1cc52
/qiskit_acqua/ui/run/_sectiontextview.py
6dd36f0f8c121281327c998c74cb2795524eb029
[ "Apache-2.0" ]
permissive
C351/qiskit-acqua
6e96099e9fee09a6e6ea6caa7f82bd014e2813c1
a897165c65604ad327c96ffc0eb06bff9989fc9a
refs/heads/master
2020-03-20T15:24:47.745270
2018-06-15T12:24:05
2018-06-15T12:24:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,350
py
# -*- coding: utf-8 -*- # Copyright 2018 IBM. # # 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 agre...
[ "manoel@us.ibm.com" ]
manoel@us.ibm.com
70f10976fd22144bee563066bcb53add2ed0a916
55d6de252e61c4b60688ebd8b1f637807acc1e7c
/usl_office_food/report/current_month_meal_report.py
fc31a42c4b3bd1f87eb3f53e4028ec0207990f1f
[]
no_license
mosadiqit/eerna_erp_uslbd
b707a1d49a4fce7c1543b63e0120e8f9b77b26ce
73e3994a9e32df7809d244eb6592513162ab7853
refs/heads/main
2023-06-30T14:53:04.837197
2021-08-04T11:30:46
2021-08-04T11:30:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,210
py
from datetime import datetime, timedelta from odoo import models class ReportDailySalesDetailsReportView(models.AbstractModel): _name = 'report.usl_office_food.current_month_meal_report_view' def _get_current_employee(self, user_id): hr_employee = self.env['hr.employee'] employee = hr_employ...
[ "ibrahimalazhar264@gmail.com" ]
ibrahimalazhar264@gmail.com
b0ee4ab88480a91c99fdfad24bfc3314c74284a8
cc8e736757a0a561e86388073263538caae5488e
/myproject/news/migrations/0007_auto_20200401_1819.py
bf1d0f6aace31c721adbfcb6fdbbec8b60357808
[]
no_license
Jafoor/News-Website
5b2e565047130dfc8d69b22fc0eba391887aa502
3fb849a70f6937a4d236da95448a75f5df2c3eb6
refs/heads/master
2021-05-19T00:07:49.235143
2020-04-09T11:22:55
2020-04-09T11:22:55
251,485,832
0
0
null
null
null
null
UTF-8
Python
false
false
373
py
# Generated by Django 3.0.4 on 2020-04-01 18:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('news', '0006_news_ocatid'), ] operations = [ migrations.AlterField( model_name='news', name='name', fiel...
[ "abujafor.cse11@gmai.com" ]
abujafor.cse11@gmai.com
ed50dea5b8fe1aaf52fbd232801abf043f1ee3bc
5861a31358b1249e5d63b5803fbba3ff33d5f6fe
/py/legacypipe/create_kdtrees.py
5378bae6eef0458a1700f8912012867e578588ee
[ "BSD-3-Clause" ]
permissive
rongpu/legacypipe
778a7130a1a9ad3dfb29fa4f926c98fbf5d3c574
955a244d30d1f00847257dcac7a7a62760108e68
refs/heads/master
2020-09-10T02:55:42.451296
2019-10-30T14:02:31
2019-10-30T14:02:31
221,630,940
0
0
BSD-3-Clause
2019-11-14T06:49:10
2019-11-14T06:49:09
null
UTF-8
Python
false
false
2,147
py
import os from astrometry.libkd.spherematch import * from astrometry.util.fits import fits_table import numpy as np import tempfile # This script creates the survey-ccd-*.kd.fits kd-trees from # survey-ccds-*.fits.gz (zeropoints) files # def create_kdtree(infn, outfn, ccd_cuts): tempdir_obj = tempfile.Temporary...
[ "dstndstn@gmail.com" ]
dstndstn@gmail.com
f182ad32a06799500c559ec7e771fb475fe7e804
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-4/131d417c7a0d8fb87a13f8c9eb23d91dfeb94ed0-<load_callbacks>-bug.py
630159c96220aec0660f5e60957436f533c32b5d
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,299
py
def load_callbacks(self): "\n Loads all available callbacks, with the exception of those which\n utilize the CALLBACK_TYPE option. When CALLBACK_TYPE is set to 'stdout',\n only one such callback plugin will be loaded.\n " if self._callbacks_loaded: return stdout_callback_...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
906b4ea20d1c062c09756a5f143c0165eab9bf5e
6323bd983f6304d95e62909bfc4883d2f9ef1a14
/Hackerrank/Problem_Solving/Raise an exception.py
14bc370e1106da3eac37a7bcd3c011caee622ae7
[]
no_license
akshay-sahu-dev/PySolutions
4c2d67d5f66fe83a6e302e1742a5bf17dafe2b99
83552962805768914034a284bf39197f52ca5017
refs/heads/master
2023-06-17T06:36:50.252943
2021-07-09T17:28:53
2021-07-09T17:28:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
467
py
#Write your code here ##https://www.hackerrank.com/challenges/30-more-exception class Calculator: def power(self,n,p): if n < 0 or p < 0: raise Exception('n and p should be non-negative') else: return n**p myCalculator=Calculator() T=int(input()) for i in range(T):...
[ "akki5233@gmail.com" ]
akki5233@gmail.com
c32ad64b6ef5a15e64c6500ce01f5cb2c815115b
5d61acc1f9595047861f76b916cd28a167496f9e
/Configuration/GenProduction/python/ThirteenTeV/GMSB_noSLHA/GMSB_L450TeV_Ctau200cm_Pythia8_13TeV_cff.py
8c16be98ee91c6e9f866935c71be4e76f28692cb
[ "Apache-2.0" ]
permissive
zhangzc11/cms-gmsb-sps8-configs
1bbd3cf2a45ee187f3e41ff51c409976fd59f586
838e6aac1d13251e050c0ee8c4ed26ca0c6cef7e
refs/heads/master
2020-06-24T05:28:46.872990
2019-09-24T20:05:33
2019-09-24T20:05:33
198,862,590
0
0
Apache-2.0
2019-07-25T16:03:09
2019-07-25T16:03:08
null
UTF-8
Python
false
false
1,459
py
with open("/cvmfs/cms.cern.ch/phys_generator/gridpacks/slc6_amd64_gcc481/13TeV/madgraph/GMSB_SHLA/GMSB_Lambda450TeV_CTau200cm.slha") as f: SLHA_TABLE = f.read() import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.MCTunes2017.PythiaCP5...
[ "zzhang2@caltech.edu" ]
zzhang2@caltech.edu
e0291b9b064dd1626868926250b579f964cf3769
0ea486c1e9c7acf1c191ce2e5ef1278ed431e602
/pygeodesy/epsg.py
49f43c0f695c80171f94b91e1b94ffe82e8fc0ec
[ "MIT" ]
permissive
rbpdqdat/PyGeodesy
af52a638b58c66a4a81ce577a31107a352f60795
565be1deeaabf6ccd13244d01d015ede01897a83
refs/heads/master
2023-02-01T23:05:28.195561
2020-12-13T16:16:38
2020-12-13T16:16:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,139
py
# -*- coding: utf-8 -*- u'''Classes L{Epsg} and L{EPSGError} and functions to L{encode} and L{decode2} I{European Petroleum Survey Group} (U{EPSG<https://www.EPSG-Registry.org>}) codes from and to U{UTM <https://WikiPedia.org/wiki/Universal_Transverse_Mercator_coordinate_system>} and U{UPS<https://WikiPedia.org/wiki/...
[ "mrJean1@Gmail.com" ]
mrJean1@Gmail.com
75384c0ae05bb591fc25b59da98327399ac0781f
b3f8a351f5d92469c987302661a3dcb0328de609
/fit_1D_NestedSampling/examples/multinest/tutorials/example1/1d_multimodal.py
794fd9bc34add1c4836399941ba668ab552b7b44
[ "MIT" ]
permissive
Chloe20-cyber/PythonFitting
87412e5fd7c956f4bf0da77b0c235ad5f5059bff
54315e336593f7f105f516766fb323662eadd5e3
refs/heads/master
2022-04-24T02:46:38.224828
2020-03-31T05:04:50
2020-03-31T05:04:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,344
py
import json import numpy from numpy import log, exp, pi import scipy.stats, scipy import pymultinest import matplotlib.pyplot as plt # we define the problem: we need a prior function which maps from [0:1] to the parameter space # we only have one parameter, the position of the gaussian (ndim == 1) # map it from the u...
[ "cormac.r.purcell@gmail.com" ]
cormac.r.purcell@gmail.com
501ad89d0452960a5c0f02a3435551ffde917856
c92f8b2870add6860ef6b98a9e702788af5fd967
/Chapter03/stringconcat1.py
2687883bbd5bce1a349a6bd558e17f699f8bdb4c
[]
no_license
Rabidza/INF1511
c6e1244679b2eff3f782957c056a72d49a552176
4bc10130a3693f3223bd12f4e9212a037bd1fc2a
refs/heads/master
2021-09-08T05:42:58.897999
2018-03-07T20:08:31
2018-03-07T20:08:31
116,714,383
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
s = "Hello World!" t = "Nice Day" print(s + t) print(s + " " + t) print(s * 3) u = "#" print("The string after joining character # to the string", t, ":", u.join(t)) u = "hello" print("The string after joining word, hello to the string", t, ":", u.join(t))
[ "neillhenning@gmail.com" ]
neillhenning@gmail.com
b27d3da462cc50e934736ce990253bd6dd784f5c
b848e8b8cf772f9498d4447b3b19ab14dac0e534
/math/0x04-convolutions_and_pooling/2-convolve_grayscale_padding.py
9fd03d250b9f8495f0ebf1f69664ba24360d9035
[]
no_license
jaycer95/holbertonschool-machine_learning
efc93da7cb5c62ca0b578ce59bbc583f1ce55e03
16dc37d1c6dc00a271053b60724c51763914029a
refs/heads/main
2023-06-09T02:51:26.268088
2021-06-30T23:30:59
2021-06-30T23:30:59
310,918,525
0
1
null
null
null
null
UTF-8
Python
false
false
749
py
#!/usr/bin/env python3 """ Convolution and pooling""" import numpy as np def convolve_grayscale_padding(images, kernel, padding): """ perform a same convolution on grayscale images""" m, h, w = images.shape kh, kw = kernel.shape pad_h = padding[0] pad_w = padding[1] final_h = h + 2 * pad_h - ...
[ "jacer.dabbabi95@gmail.com" ]
jacer.dabbabi95@gmail.com
8adbdad6c7ee8f07fe0c8e51a6d73b3e8a8bc379
1b36425f798f484eda964b10a5ad72b37b4da916
/posthog/demo/products/hedgebox/taxonomy.py
8f1b8d36e9073de99dfa4fbc5a1132bdf2b61571
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
dorucioclea/posthog
0408baa2a7ae98e5bea352c516f741ddc17c0a3e
8848981baf237117fb22d28af0770a0165881423
refs/heads/master
2023-01-23T11:01:57.942146
2023-01-13T09:03:00
2023-01-13T09:03:00
241,222,000
0
0
MIT
2020-02-17T22:34:37
2020-02-17T22:34:36
null
UTF-8
Python
false
false
1,990
py
# URLs SITE_URL = "https://hedgebox.net" URL_HOME = f"{SITE_URL}/" URL_MARIUS_TECH_TIPS = f"{SITE_URL}/mariustechtips/" URL_PRICING = f"{SITE_URL}/pricing/" URL_SIGNUP = f"{SITE_URL}/signup/" URL_LOGIN = f"{SITE_URL}/login/" dyn_url_invite = lambda invite_id: f"{SITE_URL}/invite/{invite_id}/" URL_FILES = f"{SITE_UR...
[ "noreply@github.com" ]
dorucioclea.noreply@github.com
247647a98bd3fb5be53468dfaef6989f5bf0c9db
38bc9974114dd5162cff5926ff841c2fcc705162
/active_linters_view.py
9d51924af29394666b6dfdee808a49a81a6ea817
[ "MIT" ]
permissive
nickbrowne/SublimeLinter
c7a10ee96264fe43177cdceaca424fe569ee13cb
67cc151e012102ecde9bc1a65bc27e9f06273b83
refs/heads/master
2020-03-12T19:15:59.958379
2018-04-24T01:59:11
2018-04-24T01:59:11
130,781,399
0
0
MIT
2018-04-24T01:58:13
2018-04-24T01:58:13
null
UTF-8
Python
false
false
2,562
py
from collections import defaultdict import sublime import sublime_plugin from .lint import events, persist from .lint.const import WARNING, ERROR STATUS_ACTIVE_KEY = 'sublime_linter_status_active' State = { 'assigned_linters_per_bid': defaultdict(set), 'failed_linters_per_bid': defaultdict(set), 'probl...
[ "herr.kaste@gmail.com" ]
herr.kaste@gmail.com