blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
repo_name
stringlengths
7
96
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
58 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
12.7k
662M
star_events_count
int64
0
35.5k
fork_events_count
int64
0
20.6k
gha_license_id
stringclasses
11 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
43 values
src_encoding
stringclasses
9 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
7
5.88M
extension
stringclasses
30 values
content
stringlengths
7
5.88M
authors
listlengths
1
1
author
stringlengths
0
73
5cf854bdd02a84baf5207c995481de3cd741ec6b
076ee22413ccb5860885e5fbe50f3d2ff46b50b4
/module/Err.py
4b69be9633fbca079774bf553360e64012d42284
[]
no_license
jojo-cn/chat-svr
bca99f8046a0c202936a106b88beb89cf89de485
cfda32032cb5273e4cd97c843dcd54e188008161
refs/heads/master
2020-03-19T03:07:52.290534
2018-06-24T09:24:00
2018-06-24T09:24:00
135,698,666
0
0
null
null
null
null
UTF-8
Python
false
false
281
py
""" 错误代码 """ class Err(object): """ """ def __init__(self): super(Err, self).__init__() # User module handle error USER_LOGON_FAILED = 'Username or password is wrong' # User already logon USER_ALREADY_LOGON = 'The user is already logon'
[ "634759311@qq.com" ]
634759311@qq.com
c810b83e4d978275269dbf2edf81ba3749d40a39
9edaf93c833ba90ae9a903aa3c44c407a7e55198
/travelport/models/general_remark_3.py
37e4e5426aafa26b117cdb81d48dcfa92904cffc
[]
no_license
tefra/xsdata-samples
c50aab4828b8c7c4448dbdab9c67d1ebc519e292
ef027fe02e6a075d8ed676c86a80e9647d944571
refs/heads/main
2023-08-14T10:31:12.152696
2023-07-25T18:01:22
2023-07-25T18:01:22
222,543,692
6
1
null
2023-06-25T07:21:04
2019-11-18T21:00:37
Python
UTF-8
Python
false
false
4,367
py
from __future__ import annotations from dataclasses import dataclass, field from xsdata.models.datatype import XmlDate, XmlDateTime from travelport.models.type_direction_3 import TypeDirection3 from travelport.models.type_element_status_4 import TypeElementStatus4 from travelport.models.type_product_3 import TypeProduc...
[ "chris@komposta.net" ]
chris@komposta.net
6da402554a5677cc3feb6dd00f350a495e2d3355
2dc9ee4a8c39d00c255f52e8af2486e7c2891a98
/sdk/synapse/azure-mgmt-synapse/azure/mgmt/synapse/aio/operations/_private_endpoint_connections_operations.py
742624e8eb6a11c2dcc7c8daf69f8f34d2441314
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
JoshuaLai/azure-sdk-for-python
fd780c2ab145a35ec0bf9519c4d08c928081e79c
07614796a332bcfeed35dddee9dbfc2f5487a39f
refs/heads/master
2023-04-04T17:49:58.177790
2021-04-06T21:31:48
2021-04-06T21:31:48
348,842,434
0
0
MIT
2021-03-17T20:24:55
2021-03-17T20:24:54
null
UTF-8
Python
false
false
23,467
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
noreply@github.com
1c2d8c0ec9171bfd84af10d6470c3cc58490aa3e
f4c1280bb0ad92ed2e17024b15890b2bcfe86c38
/DWF-server/controller/task_scheduler.py
8b0c32fe8810d9ec395a27b50ab7c1bc131d0b16
[ "Apache-2.0" ]
permissive
aladics/DeepWaterFramework
5b5d9f8cc64f05cecc796f1c52d50e9ed20987e8
30e9c0145300e24834a3d4a7dde25002c638dd5a
refs/heads/master
2023-07-14T14:52:35.914260
2021-02-22T18:38:57
2021-02-22T18:38:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,916
py
from model import Priority from controller import task_store as ts class TaskScheduler: def __init__(self): self.running_experiments = [] self.running_immediate_experiments = [] def get_next(self): return self._get_exp_id(self.running_immediate_experiments) or self._get_exp_id(self.ru...
[ "viszkok.tamas.93@gmail.com" ]
viszkok.tamas.93@gmail.com
f05ef3db35b450b438b8fb35fa7352dd1b07cac9
6dcc0eca403f58dc48bab0131c5343080d67e548
/pushover2.py
2fba86343518cd3a66f38d7f7e15db104035618b
[]
no_license
cosmicc/galaxymodules
fd81f9ddac485030f593d02797e986b1be36c86d
e35faecf9c6873b4210011fd6158229632f1b074
refs/heads/master
2020-03-14T00:28:48.777772
2018-05-08T02:38:53
2018-05-08T02:38:53
131,357,498
0
0
null
null
null
null
UTF-8
Python
false
false
1,009
py
#!/usr/bin/python2 import logging import urllib import urllib2 from configparser import ConfigParser import json import logging configfile = '/etc/galaxymediatools.cfg' log = logging.getLogger(__name__) config = ConfigParser() config.read(configfile) def pushover(app_key, title='', msg=''): user_key = config.ge...
[ "ianperry99@gmail.com" ]
ianperry99@gmail.com
1f177c883e449841bbf202d21e9fa569fa6e0707
a478ef3c5ac85dc108859fcc4cf4902858a54fb8
/ML/maclib/bin/wheel
fe2c8f6bb880a4e49f000f82d0e5ec47b76dec8c
[]
no_license
ramtiwary/ML_Programs
57ab4328071837f3e56da7f4cb1fefb7693c0994
ace46bf1d493283a3f0a7d15538646c7514a7d0e
refs/heads/master
2020-06-02T20:34:24.975842
2019-06-13T06:24:06
2019-06-13T06:24:06
191,300,344
0
0
null
null
null
null
UTF-8
Python
false
false
238
#!/home/admin1/Desktop/ML/maclib/bin/python2 # -*- coding: utf-8 -*- import re import sys from wheel.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "ramkmr972@gmail.com" ]
ramkmr972@gmail.com
026ae6da65a3565ed41343c71461ca05cff9ab4f
cf80c258d031c9098e933fd72b4182f06c09971f
/cnn.py
79932b29edf7c9bca4c8cbbbefd58579d73e9545
[]
no_license
ceyhunozkaptan/Convolutional-Neural-Network
51041d447b3dcc43d4b1e00019640004a3697682
ded11d803183a2e4d26d39f8ea6adae769f1fc54
refs/heads/master
2022-03-30T15:58:52.508113
2020-04-19T01:50:21
2020-04-19T01:50:21
256,891,578
0
0
null
null
null
null
UTF-8
Python
false
false
7,972
py
# %% import standard PyTorch modules import torch import torch.nn as nn import torch.optim as optim # import torchvision module to handle image manipulation import torchvision import torchvision.transforms as transforms import matplotlib.pyplot as plt import numpy as np from tqdm import tqdm if torch.cuda.is_availabl...
[ "ceyhunozkaptan@gmail.com" ]
ceyhunozkaptan@gmail.com
066c3775bbd45fe401a7ff580b9ac70a1e898d56
1f27158da1b1c8af9a6f3cbb0964b16034e92c5b
/src/no_symptoms_classif.py
d70404cf6e129cdabcb298afd9ea9e30ecae69dd
[]
no_license
GaetanChambres/respiratory_classifier
d1791689102575505880f78d181e200a0a100a8d
c474e7ba533230747dd32c9c82675a6e8bb87ba1
refs/heads/master
2021-06-29T22:39:30.712593
2020-10-23T14:18:18
2020-10-23T14:18:18
178,048,636
0
0
null
null
null
null
UTF-8
Python
false
false
4,254
py
import pandas as pd import numpy as np import xgboost as xgb import csv as csv import sys # from sklearn.model_selection import train_test_split import sklearn.metrics as sklm import warnings warnings.filterwarnings("ignore") def csv_nb_cols(fname,delimiter): line = fname.readline() data = line.split(delimite...
[ "gaetan.chambres@u-bordeaux.fr" ]
gaetan.chambres@u-bordeaux.fr
6a1ca19e78e7528364bc0b93d19a51ccb649f761
f4be3422b28dda8802ea75368d665d17b634b83f
/babo/__init__.py
5d6700be06951195e3f22bed513d5b4a0e966b6e
[]
no_license
carpedm20/babo
0bab8abee49058fb4c0c6ab629f174d8a85d50a7
1fae47214918b4a64fc305787fb6a4df07c49768
refs/heads/master
2020-04-15T16:12:10.274756
2014-08-15T12:00:33
2014-08-15T12:00:33
22,943,235
2
1
null
null
null
null
UTF-8
Python
false
false
429
py
# -*- coding: utf-8 -*- """ babo ~~~~ The world will have a generation of idiots.. by Albert Einstein :copyright: (c) 2014 by Taehoon Kim. :license: BSD, see LICENSE for more details. """ __copyright__ = 'Copyright 2014 by Taehoon Kim' __version__ = '0.0.1' __license__ = 'BSD' __author__ = 'Taeho...
[ "carpedm20@gmail.com" ]
carpedm20@gmail.com
64627dc136bf1d70631a5615c7dcda6512f17bd4
d66cdcdf898744d3b697dffae0030bf6ed861fc3
/src/item_manager/urls.py
8b8746735ce07c072b443e8a8a51b8eebc32eb39
[]
no_license
lautarobarba/item-manager
9ab1ad69a8d91ca6e4ad1d8dbb29fb1386bae342
034ce075c5e5e246fed8fa9baf71ccfbffafc0ee
refs/heads/main
2023-03-15T03:36:25.027355
2021-03-05T22:18:11
2021-03-05T22:18:11
341,726,519
1
0
null
null
null
null
UTF-8
Python
false
false
911
py
"""item_manager URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
[ "lau_mb94@hotmail.com" ]
lau_mb94@hotmail.com
7d2e47d7ad466c15c34f6e332fe816a049e752ba
157ccf908516e0707d88a30aa7048cdb68180154
/Experiment/PythonOperators.py
b8c11146645d46427a67836208658b787c143c4d
[]
no_license
BhuiyanMH/Python3
bed45ba55a7d0b71eec9b59da24e1ad01410e4ac
ef1615fd46e8b9793467a427c61eea9d161b75e3
refs/heads/master
2021-08-24T10:31:04.166448
2017-12-09T06:54:46
2017-12-09T06:54:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
610
py
#floor division print(15//6) #exponent print(2**5) #Bitwise not print(~2) #bitwise XOR print(3^4) #bitwise Left shift print(8<<1) #bitwise right shift print(32>>1) #Identity operator #is -> true if operands refers to the same object #is not -> True if operands does not refers to the same object #list are always di...
[ "rony.cse.cu.13@gmaail.com" ]
rony.cse.cu.13@gmaail.com
7fd1c69b2e824a1d6bd46e9f2c6ba098cffdf4a6
0335a5fb8a553f243e29e5aee704238612c6dd11
/doc/Sphinx/_static/vecto_maxwellian_plasma_3d.py
7806e010b0d1477519f8bbc41a7559c245f7148c
[]
no_license
ALaDyn/Smilei
a91b093da10ae4953e5a8d3397846952029a9979
81d858dd97ecbceb71dac804ee009763d50eb836
refs/heads/master
2023-07-20T16:56:01.085438
2023-07-05T10:13:57
2023-07-05T10:13:57
62,309,652
5
0
null
2016-06-30T12:41:29
2016-06-30T12:41:28
null
UTF-8
Python
false
false
2,603
py
# __________________________________________________________ # # Maxwellian homogeneous plasma namelist for SMILEI # This script is used for the vectorization study # __________________________________________________________ import os import numpy as np c = 299792458 lambdar = 1e-6 wr = 2*np.pi*c/lambdar Te = 100...
[ "mathieu.lobet@cea.fr" ]
mathieu.lobet@cea.fr
e037a3f03bb035f9294a2db24cabd7bccc5d1501
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/demo/time.py
56ab715a7f7ed7eb6c4c24c99973845bd00f6ad4
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
1,515
py
"""Demo platform that offers a fake time entity.""" from __future__ import annotations from datetime import time from homeassistant.components.time import TimeEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassistant.helpers.device_registry import Devi...
[ "noreply@github.com" ]
noreply@github.com
bc46fa92cc0e5aa96905e3ca9d4de129a510c935
d9759cc2d395670909fcfc6e077592d2a9f0f808
/venv/bin/flask
dd5fc33e65fa343038bb09cecdad066acd8eee4d
[]
no_license
milosnikic/DashProject
2aec93a6941a80803d9375111f6cbf6d46100a4b
60b5eb3ef9ab44826e9564274036d06c75364d6b
refs/heads/master
2022-12-11T12:08:44.263222
2019-06-05T15:39:58
2019-06-05T15:39:58
190,413,685
0
0
null
2022-12-08T05:13:06
2019-06-05T14:46:49
Python
UTF-8
Python
false
false
274
#!/home/milos/Desktop/python_projects/data_visualization_crowd/venv/bin/python3.6 # -*- coding: utf-8 -*- import re import sys from flask.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "milos.nikic@gmail.com" ]
milos.nikic@gmail.com
dcfd89b86c66a498d7c4394c360ef086735f3163
2d706b8bd69aa172277515e89ed01add51a604d5
/Projeto3_camadas/server.py
1101684c09ce0c9774a7fb77eeb11d942fa3f078
[]
no_license
guilhermecarvalhoacc/Camada_fisica
a17ae73e5065c09745c3ca32277906a23ddf3228
863fced4bfecd04358bad6258dfee8212cfd5af2
refs/heads/master
2023-04-03T12:00:54.245965
2021-04-08T19:52:34
2021-04-08T19:52:34
344,915,701
0
0
null
null
null
null
UTF-8
Python
false
false
5,165
py
##################################################### # Camada Física da Computação #Carareto #11/08/2020 #Aplicação #################################################### #esta é a camada superior, de aplicação do seu software de comunicação serial UART. #para acompanhar a execução e identificar erros, construa prints...
[ "guilhermeaugustochaves@hotmail.com" ]
guilhermeaugustochaves@hotmail.com
1e897b3e4ce74d5cb83c9c03a4eaab8cb37cd714
3f71801940fc9717126c2ed0c21d68baaf854c94
/modules/machine_learning/advanced_model/main.py
43b93fbb75e72e04eea59233eee96d0d5c62592d
[]
no_license
QMIND-Team/Sabermetrics
7cf548bf88b2a609d0f74d1207f7d49d80516246
9638a93bf36c936b43c0a546bec3ed5d1796862c
refs/heads/master
2020-04-05T13:48:06.322694
2019-03-31T17:36:30
2019-03-31T17:36:30
156,910,170
3
3
null
2019-03-31T17:43:22
2018-11-09T19:44:11
Jupyter Notebook
UTF-8
Python
false
false
2,468
py
import warnings import modules.machine_learning.main_model.help_main as help_main warnings.filterwarnings("ignore") import modules.machine_learning.advanced_model.main_advanced_functions as maf ''' Methods: LR = Linear Regression SVM = Support Vector Machine XGB = XGBOOST --------------------------------------...
[ "ericfillioncanada@gmail.com" ]
ericfillioncanada@gmail.com
0b1ac565b5be40a5358caec120a9e5dace2871eb
e8bc60d7de7d70418fc13bf60c4d2d9905686fad
/node_modules/websocket/build/config.gypi
577cfb0c38de567c8bb35f5e590aec03117998ef
[ "Apache-2.0" ]
permissive
meizi8475/lotteryapp
ecf220e2a105621e6554d65b18739bf87a372090
6eea6c7fbc70996712cd3041eff731e08ec9203b
refs/heads/master
2021-01-01T16:00:22.989038
2012-12-27T02:52:40
2012-12-27T02:52:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,766
gypi
# Do not edit. File was generated by node-gyp's "configure" step { "target_defaults": { "cflags": [], "default_configuration": "Release", "defines": [], "include_dirs": [], "libraries": [] }, "variables": { "clang": 0, "gcc_version": 42, "host_arch": "x64", "node_install_npm": ...
[ "meizi8475@gmail.com" ]
meizi8475@gmail.com
e64403cef75b958cb80399e2f3cbc03b75b6fc44
ffdc77394c5b5532b243cf3c33bd584cbdc65cb7
/mindspore/python/mindspore/ops/_op_impl/aicpu/adjust_contrastv2.py
480c1d4ad85d17196db9b50d3504b3bda9cc95b8
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "MPL-1.0", "OpenSSL", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause-Open-MPI", "MIT", "MPL-2.0-no-copyleft-exception", "NTP", "BSD-3-Clause", "GPL-1.0-or-later", "0BSD", "MPL-2.0", "LicenseRef-scancode-f...
permissive
mindspore-ai/mindspore
ca7d5bb51a3451c2705ff2e583a740589d80393b
54acb15d435533c815ee1bd9f6dc0b56b4d4cf83
refs/heads/master
2023-07-29T09:17:11.051569
2023-07-17T13:14:15
2023-07-17T13:14:15
239,714,835
4,178
768
Apache-2.0
2023-07-26T22:31:11
2020-02-11T08:43:48
C++
UTF-8
Python
false
false
1,309
py
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
[ "2460204039@qq.com" ]
2460204039@qq.com
6d814310509a8617c96fc6933c1b37729a338e20
e86c331b0b4c3f0fc17cfb652a31b010a02d2154
/smart_calculater.py
9a5673e8e05c58356b1a0ebe19aef2499f8f89ea
[]
no_license
Divyansh2611/smart_calculator
3fc58c4f521fe18ccd5a4d8e2eab84393f3c270d
d43bdab9cf72e98a811df097563cf1eedd68951e
refs/heads/main
2023-07-08T07:42:30.422824
2021-07-26T18:10:15
2021-07-26T18:10:15
389,727,067
0
0
null
null
null
null
UTF-8
Python
false
false
1,293
py
import tkinter from tkinter import * def fun(): info = e1.get() a=info.split() num=[] for i in range(len(a)): b=a[i] if b.isdigit(): num.append(int(b)) if 'add' in a or 'addition' in a: r=num[0]+num[1] result['text']=r elif 'subtr...
[ "noreply@github.com" ]
noreply@github.com
5cf95e015512f4ee695276b29effe2912418a63f
5417c78be442575f3dece55e162914c90c14cef7
/test/dex_offsets.py
cb862314baad4813ece4fce0fce21a828851cfc5
[ "MIT" ]
permissive
Casperinous/Lena
1cbb286600c54f7a59c60ac6372cb8ca67d03980
202ed791ecf8e632b00fea8373d81df9b1f54d2c
refs/heads/master
2021-03-27T11:51:52.468554
2018-06-11T02:40:38
2018-06-11T02:40:38
107,802,298
2
0
null
null
null
null
UTF-8
Python
false
false
432
py
import sys from androguard.core.bytecodes import dvm from androguard.core.bytecodes import apk from androguard.core.bytecodes.dvm import TYPE_MAP_ITEM sys.path.append('../') from dex import Dex FILENAME_INPUT = "../app-debug.apk" print '[*] Getting map_list ....' a = apk.APK(FILENAME_INPUT) vm = dvm.DalvikVMFormat(a...
[ "nikostotosis@gmail.com" ]
nikostotosis@gmail.com
a1250d373944bf65cff70e384219809151ab23bf
fadf50987ab3aaefc993f00187d8a833457e9e97
/torchstat/model_hook.py
3ff8d3a0ebcaae409b34f6e8da4cdb375d8cf88d
[ "MIT" ]
permissive
Hulalazz/torchstat
4cff14e2b272246d9fd7136b969eaab6165abfeb
b533d917ba8f2e0871a60c3ff73704e294b769eb
refs/heads/master
2020-04-04T08:59:07.626893
2018-11-01T09:21:35
2018-11-01T09:21:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,980
py
import time from collections import OrderedDict import numpy as np import torch import torch.nn as nn from torchstat import compute_madd from torchstat import compute_flops class ModelHook(object): def __init__(self, model, input_size): assert isinstance(model, nn.Module) assert isinstance(input_...
[ "technext.jpn@gmail.com" ]
technext.jpn@gmail.com
5aac12f50a7d3c33b9c2797a1d90192b97b9ea24
c78e61ccee6ac695d3f71f72fc3212fdd2c1d193
/cfed_timestep_comp.py
d2ac35905b1a4a0d651d5ae895ee6e77bc35a7ae
[]
no_license
bbw7561135/phd_code
28557e84228119dd204f9e16ca27d7c7cef81188
ef06c317115f0744a7941796c4092e489923ef4e
refs/heads/master
2021-06-13T02:35:08.475474
2017-02-26T21:12:17
2017-02-26T21:12:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
55,751
py
#------------------------------------------------------------------------------# # # # This code is a Python script that reads in arrays of synchrotron intensity # # produced at different times in the evolution of the simulation, and ...
[ "cher7851@uni.sydney.edu.au" ]
cher7851@uni.sydney.edu.au
59b02c1565c66a501284ae2b8e71274d82d42d8e
ce6cb09c21470d1981f1b459293d353407c8392e
/lib/jnpr/healthbot/swagger/models/command_rpc.py
95cb417debd31ead46f6fe1b6170628878d617e1
[ "Apache-2.0" ]
permissive
minefuto/healthbot-py-client
c4be4c9c3153ef64b37e5344bf84154e93e7b521
bb81452c974456af44299aebf32a73abeda8a943
refs/heads/master
2022-12-04T07:47:04.722993
2020-05-13T14:04:07
2020-05-13T14:04:07
290,145,286
0
0
Apache-2.0
2020-08-25T07:27:54
2020-08-25T07:27:53
null
UTF-8
Python
false
false
8,149
py
# coding: utf-8 """ Healthbot APIs API interface for Healthbot application # noqa: E501 OpenAPI spec version: 1.0.0 Contact: healthbot-hackers@juniper.net Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class CommandRpc(o...
[ "nitinkr@juniper.net" ]
nitinkr@juniper.net
0001b37bd0d1d6b08e473e5f1c41d7bc88ba50bd
48a8430d19c4d8d6fdcecf1cb9875d74b5efce6a
/CycleGAN/data_loader.py
7cf7d6a2fd0954c3313fa0ba7bc7a498ee9437a9
[]
no_license
orange-eng/GAN
af00f469b763893b2e474f8adb83460164c843e0
7a7fafa4c6e9aac0da73791ca646b6503c39b24f
refs/heads/main
2023-02-25T20:21:54.825164
2021-01-25T08:34:41
2021-01-25T08:34:41
324,327,944
0
0
null
null
null
null
UTF-8
Python
false
false
3,628
py
import cv2 from glob import glob # glob是python自己带的一个文件操作相关模块,用它可以查找符合自己目的的文件,就类似于Windows下的文件搜索 # https://www.cnblogs.com/lovemo1314/archive/2011/04/26/2029556.html import numpy as np import os import sys apath = os.path.abspath(os.path.dirname(sys.argv[0])) #得到文件下面的所有文件目录。果然很方便 path = glob(apath+"/datasets/monet...
[ "972353371@qq.com" ]
972353371@qq.com
bfbaca5b6b05cde10d06ec497cda64783dfb3cae
3f9981c4ead0f5edaf85a760076518e9e89415d1
/connectfour.py
e8685d371722aaa83a40fe97c2c928a1055bc79a
[ "MIT" ]
permissive
jthurst3/connectfour
5ab756df61a924e08941081e0d08093db8a3280c
43c58f67b2147cc75441ad19ae5618b51be015d4
refs/heads/master
2021-01-02T23:06:49.927372
2014-01-14T19:49:16
2014-01-14T19:49:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,339
py
# connectfour.py # runs the Connect Four program (makes the game interactive) # J. Hassler Thurston # Connect Four # December 30, 2013 from board import * from pattern import * from sequence import * from compute_moves import * import time # checks to see if user entered a valid integer # from http://stackoverflow.c...
[ "jthurst3@u.rochester.edu" ]
jthurst3@u.rochester.edu
8a6b6d32122534f3e8d72614bd118043a59200d6
69ef30768d930d1484cfba61b0d0a01eaf4baf28
/run_dv_seq2seq.py
d6ed8894d8091cbdfd89f61e2aa98fe653ac5018
[ "MIT" ]
permissive
vangogh0318/RWG_DV-Seq2Seq
d1195937610875392232e5387395c226e43312b3
c91fe7e9c9fd3754af794bdacd97b61ed243dd62
refs/heads/master
2020-06-21T01:02:47.472108
2019-06-13T22:40:18
2019-06-13T22:40:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,871
py
import utils.model_utils as mutil from utils.lang_utils import * from data_loaders import DVSeq2SeqDataLoader from model_dv_seq2seq import * from data.read_data import * from constants import * from params import prepare_params, merge_params from components import LRDecayOptimizer, get_masked_nll_criterion, get_nll_cri...
[ "xuefei1@ualberta.ca" ]
xuefei1@ualberta.ca
fae2ea084bc5df24b62506cd59bd23ec8f37c2f0
1229ecf1a824e6e3b21b7334241efd739b8f87e9
/Dataleum Hackathon.py
d7f41ce057bfa7dffaba22706e041acfa9dcfe9e
[ "MIT" ]
permissive
ImonEmmanuel/Dataleum-virtual-hackathon
d2b7987836645eb112c1d3f2ef9672550cac5e95
f089323911dd78aeb26091441956613c48386b93
refs/heads/master
2022-07-13T13:09:59.927181
2020-05-16T03:35:39
2020-05-16T03:35:39
264,351,315
1
0
null
null
null
null
UTF-8
Python
false
false
5,823
py
#!/usr/bin/env python # coding: utf-8 # In[1]: import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt sns.set() # In[2]: agent=pd.read_csv('Agents.csv') # In[3]: agent.head(4) # In[4]: agent.shape # In[5]: #Checked if there is any duplicated columns agent.duplica...
[ "noreply@github.com" ]
noreply@github.com
20b26ad604fb71653761602a7d8bea355b90865c
2b409a23a3fa6ba70dd98c4c604237330ff77ead
/gatekeeper/settings.py
512aa92db12e72e660aaae7901b4f58345f81e93
[]
no_license
taobluesky/gatekeeper
fdcdeb352a66aa20c4676ce02f9ad0fce23d283a
eac91828b466720f24024173ec73d37572e3bd42
refs/heads/master
2021-01-23T13:30:06.594316
2013-08-13T13:01:10
2013-08-13T13:01:10
null
0
0
null
null
null
null
WINDOWS-1252
Python
false
false
7,349
py
# -*- coding: utf-8 -*- import os # Django settings for gatekeeper project. DEBUG = True TEMPLATE_DEBUG = DEBUG ALLOWED_HOSTS = [ '10.67.92.77', '127.0.0.1', ] DIRNAME = os.path.dirname(__file__).replace('\\','/') ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { ...
[ "taobluesky@qq.com" ]
taobluesky@qq.com
76d616278649a3882297bca1ec53242a02e4fad1
348ce2ed37b439c793c764eb48cffa9fabb3e9bc
/probe_wrapper.py
d4221a037c6c00ab201b4440326d951d997fb3dc
[ "Apache-2.0" ]
permissive
fabianfreyer/unicorefuzz
fc771d06bc352b979f37f3adaca2c5b96cb0de4f
54c85d3c3b610f2d098eecc31b8937d73ea5903b
refs/heads/master
2020-07-14T05:33:30.002672
2019-08-29T20:45:17
2019-08-29T20:45:17
205,250,990
0
0
null
2019-08-29T21:09:58
2019-08-29T21:09:57
null
UTF-8
Python
false
false
4,944
py
#!/usr/bin/env python3 import os import socket import re import sys import time import shutil import inotify.adapters from datetime import datetime from sh import which from avatar2 import archs, Avatar, GDBTarget from utils import get_base, get_arch, all_regs, REQUEST_FOLDER, STATE_FOLDER, REJECTED_ENDING GDB_PATH = ...
[ "domenukk@gmail.com" ]
domenukk@gmail.com
5076dc84170e0886f5e445b5068ebeb7b5a3d44b
14f1b75de10bdf052535fc6c2821802c3f058736
/selection_sort/selection_sort_blind.py
736e85f140b13a8e83b62f984d862ecda351e105
[]
no_license
asherif844/algorithms
a4fdaed64d1d61395e5f1ea12d0fda7d0f45d7a4
146617523dcf5e47f1134722eb3aa38ff02099c1
refs/heads/master
2022-06-10T06:26:39.689346
2022-05-16T16:44:22
2022-05-16T16:44:22
245,258,563
1
0
null
null
null
null
UTF-8
Python
false
false
613
py
def sorted_sort(array): original_index = 0 while original_index < len(array) - 1: smallest_index = original_index for i in range(smallest_index+1, len(array)): if array[i] < array[smallest_index]: smallest_index = i swap(smallest_index, original_index, array) ...
[ "macmini@ahmeds-mac-mini.lan" ]
macmini@ahmeds-mac-mini.lan
7ede8b2e4b1c7240868b9fbd8862209cc5388c58
31b85e2abc35fa633257cc372c8fa059c75241d9
/superset/models/core.py
8e7c1998b64e7d239f3201ea593391b7a9d81cb4
[ "Apache-2.0" ]
permissive
Zandut/Superset-Funnel
b28cf1c0768bfcf7ab630c622c7ca3755212bfe8
cff832b2d584f859ceb025349b615c25afa524b7
refs/heads/master
2022-12-04T07:10:29.164996
2020-08-24T08:05:16
2020-08-24T08:05:16
288,700,792
0
0
null
null
null
null
UTF-8
Python
false
false
45,993
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "mfauzan613110035@gmail.com" ]
mfauzan613110035@gmail.com
b4325c34ca7df66f80c392e2397c2f0e76593e7f
053b2c101bc3aad4132f46dd687d071176e2c332
/bidwire/tests/test_cityofboston_scraper.py
4e6ca2661b028da02526d8beb6f6349f7566503f
[ "MIT" ]
permissive
RagtagOpen/bidwire
1e58fb0f184b5ff3b88bcf4c091f8ceeb6d556fa
0de7ee2dce87127f69e0c4bdc2c7b080cd1d4a45
refs/heads/master
2021-01-23T06:55:45.588981
2018-01-14T20:26:31
2018-01-14T20:26:31
86,412,959
5
7
MIT
2019-04-30T15:10:51
2017-03-28T03:56:42
HTML
UTF-8
Python
false
false
424
py
import pytest from scrapers.cityofboston_scraper import CityOfBostonScraper from . import utils def test_scrape_results_page(): page_str = open(utils.get_abs_filename('cityofboston-results-page.html'), 'r').read() cityofboston_scraper = CityOfBostonScraper() bid_ids = cityofboston_scraper.scrape_results_p...
[ "teemus@gmail.com" ]
teemus@gmail.com
ed0647fd49b4f07b9905aa8cfcf2a943da682bc5
3c0b737c35cb41c38ffad4041f124ccaa5e7a874
/app/.~c9_invoke_4bHZ4W.py
0b377eef72d177116058619982d0b42c1b50f647
[]
no_license
kevelcampbell/info3180-project1
a4650c863a7793027566cbe907dd54855b0b7f84
d105e8837fb3594f4d3ea848d024093983507a21
refs/heads/master
2020-05-25T00:45:50.062536
2017-03-14T02:28:23
2017-03-14T02:28:23
84,894,166
0
0
null
null
null
null
UTF-8
Python
false
false
3,773
py
""" Flask Documentation: http://flask.pocoo.org/docs/ Jinja2 Documentation: http://jinja.pocoo.org/2/documentation/ Werkzeug Documentation: http://werkzeug.pocoo.org/documentation/ This file creates your application. """ import os import psycopg2 from datetime import datetime from random import randint from ap...
[ "kevel.campbell@mymona.uwi.edu" ]
kevel.campbell@mymona.uwi.edu
be55d9627d221ef15a7208f8625d6dac784efb54
64ae307de1a6966ec948662df695cd09cefd5eff
/Day_6/mm_project/mm_project/tests/conftest.py
b924ef165574f9638d0da245dcbadd78736a65fc
[ "BSD-3-Clause" ]
permissive
janash/mm_project_sss2019
3a4d61c4f4dbe7eee5af401d831e7483480bb509
84f9da3efe335a7024213ddae6fd56113d4fda09
refs/heads/master
2020-05-19T23:03:53.143517
2019-07-26T23:03:08
2019-07-26T23:03:08
185,258,555
0
2
BSD-3-Clause
2019-07-09T17:33:19
2019-05-06T19:26:20
Python
UTF-8
Python
false
false
682
py
""" Fixtures for monte carlo tests """ # Import package, test suite, and other packages as needed import mm_project as mc import numpy as np import os import pytest import sys @pytest.fixture def nist_file(): current_directory = os.path.dirname(os.path.abspath(__file__)) nist_file = os.path.join(current_direc...
[ "ben@bennyp.org" ]
ben@bennyp.org
0c333c2e1333ac21f072ca09b4dcd701240565d7
b631676cd50d395e23a9db68b9cc04fd125aff2e
/banned_users.py
a1df8e434ae9cd5a3aa92567aeb82c46c660afca
[]
no_license
souzalaercio2004/CodigosPython
8208c3bfd05bc98822ae8b083d94cab6c4a6df60
8f9462ac97f928bf3ad936078c58bd899fbd45df
refs/heads/master
2023-07-04T14:16:56.642889
2021-08-17T03:04:33
2021-08-17T03:04:33
397,054,908
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
banned_users= ['andrew', 'carolina', 'david'] user= 'marie' if user not in banned_users: print (user.title()+ " , you can post a response if you wish.")
[ "souzalaercio2004@yahoo.com.br" ]
souzalaercio2004@yahoo.com.br
e1178d40768143ba64bb0408256b99e52cf2f234
9009629a5fdd8f5cdd7454fc43d010a288871a28
/multi_layer_perceptron.py
51838c6803e76f638d56ba57205fa376c1515b10
[]
no_license
dunderwood88/theano-playground
17b61cbe609b79b7d57da3b3050aad061486ee48
503c3f1d770bbf1764fe35e69eb20819bb4baf9b
refs/heads/master
2021-04-12T10:03:30.991312
2018-03-23T15:20:24
2018-03-23T15:20:24
126,502,640
0
0
null
null
null
null
UTF-8
Python
false
false
4,768
py
import numpy as np import matplotlib.pyplot as plt import theano from theano import tensor as T class Layer: def __init__(self, weights_init, bias_init, activation): ''' Individual layer constructor :param weights_init: initialized weight matrix connecting nodes between layers :pa...
[ "du220@cam.ac.uk" ]
du220@cam.ac.uk
ad054ac451ef06373f179e21b87ed7d2fab498a0
3d9cd521db737f32bd7de1dd6cbb05b5f219c329
/14_1.py
4ad6019429325169bee9a64ab905cb8fb4625f16
[]
no_license
shesha4572/11
233348b542dded0da9b3069b643c62253706bf92
aa33864dec1901030da82370b0b167a875991705
refs/heads/master
2020-08-03T21:36:33.744192
2020-02-02T15:40:47
2020-02-02T15:40:47
211,893,716
1
0
null
null
null
null
UTF-8
Python
false
false
559
py
def disp(s): print("Selected operation : Display the string") print(s) def cpy_str(s): str1 = "" print("Selected operation : Copy the string") print("String before copying :" ,str1) str1 = s print("String after copying :" ,str1) def concat_str(): print("Selected operation : Concatena...
[ "shesha4572@gmail.com" ]
shesha4572@gmail.com
59a9a8b45ff2d4b0170b6627f7c1223a314ecfea
c75a0628053ab5e0f79640a38465d024716437b9
/Turtle Project/Pattern Project/Pattern3.py
75d982542f41a6ff53e94e07e647caf85279b5e1
[]
no_license
mohit11R/Turtle-Projects
147591978f8c8a985154642149a38569a286c1c9
74141113ec4f59b62f96be68f3b5a16e72070ea6
refs/heads/main
2023-03-22T09:57:21.175773
2021-03-17T08:27:45
2021-03-17T08:27:45
329,230,245
1
0
null
null
null
null
UTF-8
Python
false
false
442
py
# INSIDE OUT SQUARES import turtle pattern=turtle.Screen() pattern.bgcolor("light grey") shape = turtle.Turtle() shape.color("blue") shape.width(5) def shapeOFSquare(size): for _ in range(4): shape.forward(size) shape.left(90) size = size +5 shapeOFSquare(6) shapeOFSquar...
[ "noreply@github.com" ]
noreply@github.com
9e886d74f75b734efd48e17ef284b61748d29972
b5fd5d41ce9d0b5e7ac885d2571b86a7351ff304
/test.py
fc0b7f5a6b6a9d763626198741577f29b78acbf3
[]
no_license
welias13/AI_HW3
222cad204a88fc7f18836d00cc0268127980ade7
8a03c2677bb6438f71e00e3bb1c7704490ab7f5a
refs/heads/master
2021-01-13T03:48:01.151949
2016-12-29T19:04:31
2016-12-29T19:04:31
77,216,541
0
0
null
null
null
null
UTF-8
Python
false
false
4,334
py
from blaze.expr.reductions import count import run_game import numpy as np import csv import vars # global PAWN_WEIGHT # PAWN_WEIGHT = 1 # global KING_WEIGHT # vars.a = 1.5 # vars.b = 2 # vars.c = 2 # vars.d = 1 # vars.e = 2 # vars.f = 0 # vars.g = 0 # result = 'tie' # while result=='tie': # game = run_game.GameRunn...
[ "Emad.shx@gmail.com" ]
Emad.shx@gmail.com
15a141f4f9422aa5fae65ea0a3ca5efebdf34467
d0ece6a2f09da681bfe8af22e34a520592317fa4
/Discord Bots/DiscordBot/cogs/devcmds.py
00c45511952fb676f6fb8fd0584333a45fbae4be
[ "MIT" ]
permissive
SeymoTheDev/skittles-stuff
d59e599d877935b260fa36d11f44401bdd5ae192
f9eba3efd0577045085418391b7154f3fd121f70
refs/heads/main
2023-01-02T12:30:14.439006
2020-11-02T02:36:21
2020-11-02T02:36:21
309,169,247
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
import discord from discord.ext import commands client = commands.Bot(command_prefix = '-') class Developers(commands.Cog): def __int__(self, client): self.client = client def setup(client): client.add_cog(Developers(client))
[ "noreply@github.com" ]
noreply@github.com
47e0e8d9dc9f021eef73a93f67eabb84336aeaca
b88f0e2210c8adc1001a3ce18ac8b0bf5fdbbcc6
/src/coincap_top100.py
f0335f6ba40d7d8cd65885df55aef1af86de6d26
[]
no_license
timwfitnum/cryptoCur
37c308ddbb1f66588b7bf582b7e8a39b92d4145f
266a6d82c03686c3c79dfe7e31287141fcfc042b
refs/heads/main
2023-01-07T18:46:50.837107
2020-10-20T11:17:37
2020-10-20T11:17:37
303,454,159
0
0
null
null
null
null
UTF-8
Python
false
false
3,684
py
import os import json from requests import Request, Session from requests.exceptions import ConnectionError, Timeout, TooManyRedirects from datetime import datetime from prettytable import PrettyTable from colorama import Fore, Back, Style convert = 'USD' listings_url = 'https://pro-api.coinmarketcap.com/v1...
[ "noreply@github.com" ]
noreply@github.com
139ae4368f9dcc52c84dcbfbcab84a8112ca406a
727987094c01eaf41343464567a52fbb705f6701
/yabgp/message/attribute/nlri/__init__.py
c67e29f0a1e9105cce0eecd0e3eebb32ea38ff2a
[ "Apache-2.0" ]
permissive
xinwu/yabgp
1377d11e4e42f259dd66bb08060b74d0683a1796
ae7cc871a4a8a67d08eef2abc82cf1397f2601c3
refs/heads/master
2021-01-13T03:05:33.031083
2016-12-14T16:27:23
2016-12-14T16:27:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,558
py
# Copyright 2016 Cisco Systems, Inc. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
[ "xiaoquwl@gmail.com" ]
xiaoquwl@gmail.com
443e1f9749ae03b2af77501c83c2aa1172bf7c7a
ff1bea11066c6c1359bb054f989c5125ad882b93
/Source Code/basic/2/led_button.py
da5831ae966a031c061d8feb4691c4a8d5920a67
[]
no_license
ecodingstory/ESP32_MicroPython
d8ece55023a322df71e62e449c676d2f889077f0
35c2e005ce6a4cd3dab5b26ce4d3809646a53e21
refs/heads/main
2023-01-20T16:49:34.446582
2020-12-06T01:06:06
2020-12-06T01:06:06
318,746,707
0
0
null
null
null
null
UTF-8
Python
false
false
266
py
from machine import Pin led_0= Pin(16, Pin.OUT) led_1 = Pin(17, Pin.OUT) button_0 = Pin(4, Pin.IN) button_1 = Pin(5, Pin.IN) while True: if(button_0.value()): led_0.on() else: led_0.off() if(button_1.value()): led_1.on() else: led_1.off()
[ "noreply@github.com" ]
noreply@github.com
64f78170e1c9f94014471c5cd831ff57aae3e3b4
5c785ceb1d8442a1dc1d7755cc53784259131ed7
/users/models.py
3b18749a9e8834f424a6e39dcfe4264bd94188c1
[]
no_license
deepaligpt000/NomadCoders_Airbnb
3975c82d91f1b7589e0256bd354ac6116765d996
57caf8d5c9dd285eacd101a9f3dc6d55fc74f87f
refs/heads/master
2022-09-30T01:33:27.464189
2020-06-08T06:04:45
2020-06-08T06:04:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,127
py
from django.contrib.auth.models import AbstractUser from django.db import models # Create your models here. class User(AbstractUser): """ Custom User Model """ GENDER_MALE = "male" GENDER_FEMALE = "female" GENDER_OTHER = "other" GENDER_CHOICES = ( (GENDER_MALE, "Male"), (GENDER...
[ "gowoonvv@gmail.com" ]
gowoonvv@gmail.com
f4e41340c6a91271c699988573ccb9305183e8e3
7b2ff067a21a3229072c7e8172f1a5735931aa4d
/build/build.py
e13356656480ec27014b3c28970e6a416cb27c45
[]
no_license
maclovin/interAgentes
22d1a101aa5e7a2decf0be3688acf179d8c7ab25
fc23d4ec903d8d97e230179441e6237e002169d3
refs/heads/master
2016-08-04T11:57:43.048378
2013-02-08T20:12:25
2013-02-08T20:12:25
3,902,458
0
1
null
null
null
null
UTF-8
Python
false
false
6,850
py
#!/usr/bin/python import os,sys def makedir(diretorio): print 'Criando diretorio %s' %(diretorio) if not os.path.isdir(diretorio): os.mkdir(diretorio) def makefile(local,conteudo): f = open(local, 'w') f.write(conteudo) f.close print 'Criando arquivo %s' %(local) def usage(): usage = """ Modo de usar: p...
[ "m4k2005@yahoo.com" ]
m4k2005@yahoo.com
b412bf90b49df2ddca1fa8eb2a34f01c20753966
936a0a1c7a09414a4e41343769fa8656af7a573b
/code/input.py
068aa4382bffbd32b2ebe8a3baa2e3bed7fa88e7
[]
no_license
ramco-labs/automated-feature-engineering
b2b77c6497e14edc0e1328f57c04254c8a05b168
a2c54753a5f66be4e2398303bfa108acc687b3a7
refs/heads/master
2022-11-28T21:06:25.492891
2020-09-26T00:50:03
2020-09-26T00:50:03
210,266,856
1
1
null
2022-11-22T03:36:16
2019-09-23T04:49:01
Python
UTF-8
Python
false
false
616
py
import pandas as pd class UserInput: @staticmethod def input_process(path, uid, outputs): try: df = pd.read_csv(path) for output in outputs: try: keys = list(df.keys()) keys.index(output) except ValueError:...
[ "vignesh.tv@ramco.com" ]
vignesh.tv@ramco.com
969ded313c78856f06db9a768ee20f8972c9ab0e
7e30d941277b01a73e3537c9a81d3ddf6ddb11ac
/sudoku-solver.py
708bca2660864cb4aa748e5eff8984e549066eb9
[]
no_license
krishna13-dev/Sudoku-Solver
bdc43662eb123c0fae9e7648ff387f4173337f3b
356a0f015da97cc70d37d282c64a94ecb950a87a
refs/heads/master
2022-12-13T02:49:37.800577
2020-09-15T07:10:36
2020-09-15T07:10:36
295,603,817
0
0
null
null
null
null
UTF-8
Python
false
false
1,593
py
board = [[0, 4, 9, 0, 0, 0, 0, 0, 5], [0, 0, 0, 8, 3, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 8], [0, 0, 0, 0, 9, 0, 8, 1, 0], [0, 0, 0, 0, 0, 7, 6, 0, 0], [0, 0, 1, 0, 0, 0, 3, 0, 0], [7, 8, 0, 4, 1, 0, 0, 0, 9], [2, 9, 4, 7, 0, 0, 0, 0, 0], [6, 0, 0, 9, 0, 0, 0, 0, 0]] # solve board def solve_b...
[ "krishna130205@gmail.com" ]
krishna130205@gmail.com
9a0f2585c8786ae68cdb437ea210b0230321d96c
f71aecb0e91fe877af3ec652c7f6753a1e7b5ccd
/RemoveComments_MID_722.py
5fd160cab533466e6146d8361f29931987c5447a
[]
no_license
953250587/leetcode-python
036ad83154bf1fce130d41220cf2267856c7770d
679a2b246b8b6bb7fc55ed1c8096d3047d6d4461
refs/heads/master
2020-04-29T12:01:47.084644
2019-03-29T15:50:45
2019-03-29T15:50:45
176,122,880
2
0
null
null
null
null
UTF-8
Python
false
false
8,195
py
""" Given a C++ program, remove comments from it. The program source is an array where source[i] is the i-th line of the source code. This represents the result of splitting the original source code string by the newline character \n. In C++, there are two types of comments, line comments, and block comments. The str...
[ "953250587@qq.com" ]
953250587@qq.com
4159a5dae0418564d7a15b83606762600f9c6bef
4f383578dc1809c565f1fa85cc10e8f736479f63
/G1_Selenium.py
a0d4018fe557872273e4ab601531364e833b4cab
[]
no_license
leonardosoler/selenium-task-mercadolivre
d186ccc140d558a0611ca0d29130be8e4b4591c0
e3fc905ebeff59ea7e52258d297454b7f94aa9c7
refs/heads/master
2023-07-30T20:27:01.027894
2021-10-04T03:24:09
2021-10-04T03:24:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
584
py
import requests from bs4 import BeautifulSoup response = requests.get('https://g1.globo.com/') content = response.content site = BeautifulSoup(content, 'html.parser') #HTML da noticia noticias = site.findAll('div', attrs={'class' : 'feed-post-body'} ) for noticia in noticias: #Titulo titulo = noticia.find...
[ "leonardo-leoss@hotmail.com" ]
leonardo-leoss@hotmail.com
94464e03510f90f38a1e437322c2d19f586c970e
e13434a945f17c46f8c162fd6652798232d55e25
/main.py
b78565c7dd0b4a6929730c90a6087a36dab0a9e0
[]
no_license
pomeroyd/test-flask-app
e9f043e578d9d80e825f11c4977acf555664a191
85a9a0d2863108bde551c6da88a9f988eeea7614
refs/heads/main
2023-01-13T07:01:45.723359
2020-11-20T10:42:55
2020-11-20T10:42:55
314,525,237
0
0
null
null
null
null
UTF-8
Python
false
false
201
py
from flask import Flask, request from emoji import emojize app = Flask(__name__) @app.route('/') def hello(): name = request.args.get('name', 'World') return emojize("Hello " + name +"!")
[ "pomeroyd@tcd.ie" ]
pomeroyd@tcd.ie
bc21e2df44ce367bd5aa9caedada1fd31027667e
3748795418a9e9294b829ec86c01ea227cc0991e
/exps/synthetic_data.py
012442a48e127c2eb648357e0606a4aa88f585fe
[ "MIT" ]
permissive
ranigb/Set-Tree
16aad4eb188caf2878d0dab4345979bcbcc9cd47
fa3971f9a8ef98dbfd0f6de654efcde3006a197b
refs/heads/main
2023-09-04T02:03:12.147211
2021-11-08T21:50:05
2021-11-08T21:50:05
406,342,399
0
0
MIT
2021-09-14T11:39:35
2021-09-14T11:39:34
null
UTF-8
Python
false
false
7,655
py
import numpy as np import random from settree.set_data import SetDataset ######################################################################################################################## # EXP 1: First quarter #####################################################################################################...
[ "roymhirsch@gmail.com" ]
roymhirsch@gmail.com
5438edc9a22551e8091a4992b211263f519f6cce
8e939e0f075a14377d87e0eb7729e4f0818f1df9
/zarc/models_2017-08-04-06:42:45.py
0831485aa5117c669efb76a2c672493a20217ba0
[ "MIT" ]
permissive
mimcomp/caseke
072d076c9442c19916d8f71ec25fa45676031914
3c0749a431bb2e2c82bcb292d528c748bea8b1ba
refs/heads/master
2020-06-02T15:42:24.159728
2019-06-03T16:34:09
2019-06-03T16:34:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
53,466
py
# coding: utf-8 # AUTOGENERATED BY gen_script.sh from kp2.py # Copyright (C) Nyimbi Odero, Fri Aug 4 06:40:31 EAT 2017 from sqlalchemy import func from flask_appbuilder import Model from flask_appbuilder.models.mixins import AuditMixin, FileColumn, ImageColumn, UserExtensionMixin from flask_appbuilder.models.decora...
[ "nyimbi@gmail.com" ]
nyimbi@gmail.com
6a3989acf13637b1fe0ed5d2c37313685f921920
3043ef47d3863bb59fe91c7f76c789dfd375620a
/mysql-from-python13.py
8a77946f304e4bd275570d1b14f36804262c6753
[]
no_license
mlr314159/mysql1
73997fbd0759a1032570b31537baefde59822921
382659edc40ccfd04a7a2a42fc26beaa68364d21
refs/heads/master
2021-06-12T16:43:15.794554
2020-04-13T12:42:59
2020-04-13T12:42:59
254,359,715
0
0
null
null
null
null
UTF-8
Python
false
false
615
py
import os import pymysql # get username # (modify this variable if runn ing on a different environment) username = os.getenv('C9_USER') connection = pymysql.connect(host='localhost', user=username, password='', db='Chinook') try: ...
[ "mlr314159@yahoo.co.uk" ]
mlr314159@yahoo.co.uk
bee4204a5db0269f46a9888c9764dad47764fa6f
f09a017e6af77eed1e604db1c4396e762162f3f5
/democoder/apps/core/views.py
0f072fdbc30191031d69f28890bfbd51443113c5
[]
no_license
yrik/democoder
de710fb524053f4160d82ca1d37ccbd2e813e708
43a4104498b2ab3ac3ef681c802b01d624663d6f
refs/heads/master
2018-12-29T17:06:59.532604
2015-03-14T16:37:57
2015-03-14T16:37:57
38,677,604
0
0
null
null
null
null
UTF-8
Python
false
false
2,390
py
from django.shortcuts import redirect, render from django.utils.translation import ugettext as _ from django.http import Http404 from django.core.urlresolvers import reverse from django.contrib import messages from django.views.generic import ( DetailView, CreateView, UpdateView, DeleteView, ListView ) from pure_p...
[ "yuriykryachko@gmail.com" ]
yuriykryachko@gmail.com
0803fc25829844f46b023753be5543d2e6a87e9c
d25cbb984047591a539c63c2de18f9820f724ee2
/P003_Bucle_008For Contador pares impares.py
fac201ab65f8dd3044fad3abf42164563904feab
[]
no_license
jesuscm18/1-Evaluacion
8149c00e99f8e4878d6c082799d79a7c5d5d62ca
01c5106c643074ef4e36732295d4ebfd8c8a2c6c
refs/heads/master
2020-04-08T05:55:35.314176
2018-12-19T15:57:02
2018-12-19T15:57:02
148,601,571
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
def contador_par_impar(): n=input("Hasta que numero deseas contar? ") npares=0 nimpares=0 for n in range(1,n+1): if(n%2==0): print str(n)," es par" npares=npares+1 else: print str(n)," es impar" nimpares=nimpares+1 print "He ...
[ "noreply@github.com" ]
noreply@github.com
f1f693729c6bf591f84820488f8cb11648fbac54
bb943b09e60f219b27059171aaec9e0bb228b462
/test.py
9dcd730761acc7f4879e41a6eb0c06085ead955f
[]
no_license
Kienyew/Russian-Chinese-Vocabulary
0fb7869da681a530f6b3d6275d460346a10a1a8d
39a93e53d55937dbdeb53cd100561f495130b4a4
refs/heads/master
2022-11-30T10:25:59.458845
2020-07-16T07:44:10
2020-07-16T07:44:19
279,328,499
0
0
null
null
null
null
UTF-8
Python
false
false
3,177
py
#!/usr/bin/env python3 import unittest from extract import * class Test(unittest.TestCase): def test_separate_ru_zh_chap(self): inputs = [ 'а而(1)', 'а而(1)', 'автомобиль汽车(18)', 'алло喂!(打电话时招呼用语)(7)', 'болеть[未]疼,痛(13)', 'артист[阳],арти...
[ "aobi100bt@hotmail.com" ]
aobi100bt@hotmail.com
4078a1a4d378355f5f8216e7f2bfad9dd57aa9f5
10851762fcfedbe79a9f4f4374fb68085c05e06e
/homepage/admin.py
a6f5d2bed93aabd26fa7c5c61faddddf4b3afbcf
[]
no_license
epetrov1/MG-Ausbau-GmbH
b676c02310e7fe04b25d4cf18f3d8b9e9c21a274
083d224fce7af7353badeeadbf50c9f3bb2809a8
refs/heads/main
2023-05-13T14:28:12.466219
2021-06-04T15:13:12
2021-06-04T15:13:12
371,602,915
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
from django.contrib import admin #admin.site.register(HomePage) from django_summernote.admin import SummernoteModelAdmin from .models import HomePage class HomeAboutAdmin(SummernoteModelAdmin): exclude = ('preporyka1', 'preporyka2', 'preporyka3',) list_display = ('header',) summernote_fields = ('about_u...
[ "offerlesson@gmail.com" ]
offerlesson@gmail.com
b9527ab17bba32b89da47f525605d586b5a3b1fb
65a1c12e31a776cd4d098aac8e2f40a5393cd8b8
/Code/4.process&predict_data/code_v7.0.py
7b11fb2ddb0403a61d60a8579fad5ab7d57a4c52
[]
no_license
YoOjii/Tianchi_DiabetesPredict
78d7e7fa51ba91711068b49784e7129a23fae48d
933f95707458dcb154565e2d346753987b13d5ab
refs/heads/master
2022-01-09T15:43:59.522786
2019-05-07T04:50:36
2019-05-07T04:50:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,647
py
# coding=utf-8 ''' Author:chenhao Date: Jan 26 ,2017 Description: Use the train_Drop_Delete_Log_Poly_Ratio.csv in LGB model ''' import time import datetime import numpy as np import pandas as pd import lightgbm as lgb from dateutil.parser import parse from sklearn.cross_validation import KFold from sklea...
[ "823147833@qq.com" ]
823147833@qq.com
50f086fd6e0a40d5eab3d18fd4d577b2909cf7a7
156c52604f36479beae565137f02493cf794912c
/blast_filter_100.py
c58cb44c79c9f875fbb4b42c9ecf12867767e920
[]
no_license
hildeingvildhummel/NIOZ-ring-formation
ac936855e95abdc5c6f11325c4316853df324a47
c542eb82d54ff7fd31426e884e3ce27909c132d8
refs/heads/master
2022-11-22T07:20:26.930647
2020-07-28T14:53:53
2020-07-28T14:53:53
283,243,330
0
0
null
null
null
null
UTF-8
Python
false
false
3,179
py
import argparse ap = argparse.ArgumentParser(description = 'Remove the genes if all the samples have a 100% identity to the reference database.') ap.add_argument('-b', '--blast', nargs='+', required = True, help = 'The file(s) containing the blast output') ap.add_argument('-index', '--index', required = True, help...
[ "noreply@github.com" ]
noreply@github.com
447e8064c4c28d908ba8b874cbb244f4b82aa242
9fa567346bc31d985f31ba8387d7135a1c8321ba
/Where's Wally.py
21ab63f2a2c6f41fb48facec57d1bfce4293a897
[]
no_license
MrPogson/Treasure
6389c55c82bb2346f906ba441dccc93522077228
d66b8f37a7fb3a99c8aa22feb36868cf067054ef
refs/heads/master
2021-01-01T04:12:29.334512
2016-04-27T07:04:54
2016-04-27T07:04:54
57,034,764
0
0
null
null
null
null
UTF-8
Python
false
false
4,616
py
#import libraries import random import time #Define global variables global Pos global grid global grid2 global score #set score to 0 score = 0 #set starting position to 30 Pos=30 #Main function def main(): global grid #make the variable 'grid' available global grid2#make the variable 'gri...
[ "mpogson@priorysouthsea.org" ]
mpogson@priorysouthsea.org
dd570b50aacbe9917550509619ad2e260c97469c
6e4bc4663adf0ed369cd5ca068a10d1ef35eef05
/mysql-test2.py
2253ee0278076ddc72ab00de16e0378faef5fce2
[]
no_license
makgab/Python-examples
b8227612108d9484a3868500adfdaacae74f4436
5fb1a5d2b953c6b58bb9e02f94bbe76508a63226
refs/heads/master
2020-04-13T05:04:54.979651
2018-12-24T10:56:17
2018-12-24T10:56:17
162,981,182
0
0
null
null
null
null
UTF-8
Python
false
false
353
py
# mysql demo import mysql.connector # conncetion: mydb = mysql.connector.connect( host="localhost", user="root", passwd="", database="mysql" ) print(mydb) print ("SELECT SQL...") # SELECT SQL mycursor = mydb.cursor() mycursor.execute("SELECT * FROM pythonDB.customers") myresult = mycursor.fetchall() for x...
[ "noreply@github.com" ]
noreply@github.com
d49fd565d9ed77cf4480dddda0ed1c4da82fceff
46be20cc55a4e48c0281f6340d7e8d381c1f12cf
/day3/part1_d3_v1.py
260e2ceb564c247c8eb1bad40468d697ed295213
[ "MIT" ]
permissive
MarinaPin/adventofcode-2018
5c32ff7a7b224d76b2982044b6e7b5cf80a9e85e
9fd6242258b1546c4858e4da7b6d04453bffe25d
refs/heads/master
2020-04-09T07:05:28.776280
2018-12-14T08:47:08
2018-12-14T08:47:08
160,140,158
0
0
null
null
null
null
UTF-8
Python
false
false
852
py
import numpy import re N = 1000 def extract_info(line): j = re.findall("\d+", line) j = map(int, j) x,y,w,h =j[0], j[1], j[2], j[3], j[4] return x,y,w,h def fill_matrix(file_path): matrix = numpy.zeros((N,N)) with open(file_path) as f: for line in f: x,y,w,h...
[ "marina.pinh@hotmail.com" ]
marina.pinh@hotmail.com
1d71cdd16103283b54ddbfae586dbd58e635dea8
7c28640e152dad3843423d04c96a3a37015bd9ba
/Examples/Game Tutorial/Tutorial Part 6.py
0b571e28753411ea66a52d103d7f671bc5c1d42d
[]
no_license
DocVaughan/Pythonista
251bbfd69203cf91f3d6a6bf20d478efd74a61a0
7d482c7db2c7b4daae10289b765f09a4f348a50c
refs/heads/master
2021-01-20T20:48:32.603993
2017-12-31T10:33:48
2017-12-31T10:33:48
61,178,643
7
0
null
null
null
null
UTF-8
Python
false
false
6,233
py
# coding: utf-8 ''' Part 6 -- Meteors Incoming! ☄️ Collecting coins is fun, but did you notice the distinct lack of... challenge? Let's change that now, and add some meteors to the mix. The mechanism is essentially the same as with the coins, but when the alien collides with a meteor, the game is over. To make the g...
[ "joshua.vaughan@louisiana.edu" ]
joshua.vaughan@louisiana.edu
12902024fb5d9e8618c638334d18e08b1035a528
180d0b6eb0fddfdac35b503a48119d1aaab37bcb
/usst_info/search/search_indexes.py
2c3c8c32ac4295eec1427a6f7769ceabfdd6f35f
[]
no_license
liupengmolly/jelly
7f2bd4c755b6bc007a653ec53ea8354a2394f52d
227607169a3a2f06fac7006a4394f41dfa238022
refs/heads/master
2021-01-18T16:49:06.836643
2017-11-21T14:30:07
2017-11-21T14:30:07
100,468,094
0
1
null
2017-09-01T06:04:16
2017-08-16T08:44:25
Python
UTF-8
Python
false
false
585
py
import datetime from haystack import indexes from search.models import Jwcinfo class JwcinfoIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) title=indexes.CharField(model_attr='title',boost=1.125) url = indexes.CharField(model_attr='url') site=i...
[ "huangmeihui@hotmail.com" ]
huangmeihui@hotmail.com
0864a55af4f109e92a6b1185d04837dc723f87a7
e5d130e183b5dea1b7aad23a047c703fa0d2b3bf
/lightbus/transports/__init__.py
d0a7d70c722ce0c3f6df21091b256155c18899f5
[ "Apache-2.0" ]
permissive
adamcharnock/lightbus
4a86428b8203bfe98f77a32375ac961ef398ce16
cf892779a9a9a8f69c789ffa83c24acfb7f9a336
refs/heads/master
2023-08-26T04:19:39.395735
2023-08-23T11:07:44
2023-08-23T11:07:44
94,617,214
193
22
Apache-2.0
2023-08-10T21:21:51
2017-06-17T10:39:23
Python
UTF-8
Python
false
false
534
py
from lightbus.transports.base import ( RpcTransport, ResultTransport, EventTransport, SchemaTransport, Transport, ) from lightbus.transports.debug import ( DebugRpcTransport, DebugResultTransport, DebugEventTransport, DebugSchemaTransport, ) from lightbus.transports.redis.rpc import ...
[ "adam@adamcharnock.com" ]
adam@adamcharnock.com
6cd57a50d097a963f425239544f4443e7fd08746
1733d497d4056ea1f5f3a5d78f45615d7c07dabd
/Week 1/week1.py
a8bf2d7f2e72e29f8f1d12898cb7306cbda480f5
[]
no_license
VMCSC/Junior-20-21
d0f3e0caedcf44c6a485d01caaa35f2a83980db3
428937d0984f21e968a6fbd5c8aa8820e5bcc72e
refs/heads/master
2023-02-15T05:24:30.556876
2021-01-14T02:36:27
2021-01-14T02:36:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,740
py
print("Hello World!") # Outputs "Hello World!" # Variables - stores information # Stored with name, but with restrictions (any letters, numbers, and underscore) # Variables cannot start with numbers, but shouldn't start with underscore # Example of invalid variable: 1234abc # Variables are also case sensitive: abc is ...
[ "contact@gordonlin.ca" ]
contact@gordonlin.ca
1c39974b28c415eb6d3f895052348a4790754e61
9c61b955cbee4509c3e89a02e6d0420e60a3d1c6
/D4 Insertion Sort/insertionSort.py
7031ea5d24e88a6bbed196c9ef134938c2582052
[]
no_license
ErmiyasG/CompititveProgramming
53f3a9fc2b65a51addde9f339d7ee95740ec71c0
927b0a0115c4baf59c62ea7a17280afc303c4cb8
refs/heads/master
2020-09-15T07:59:27.365879
2019-11-27T00:52:54
2019-11-27T00:52:54
223,387,268
0
0
null
null
null
null
UTF-8
Python
false
false
365
py
import random def insertionSort(): numbers = [i for i in range(1, 10001)] numbers = random.sample(numbers, len(numbers)) for i in range(len(numbers)): for j in range(len(numbers)): if numbers[i] < numbers[j]: numbers[i], numbers[j] = numbers[j], numbers[i] print(numb...
[ "ermiyas10080@gmail.com" ]
ermiyas10080@gmail.com
9323eda82837b3b74d35a54415c599d65c1b11d8
451d80ff37337a13e9d8cb3500057acedda10ffd
/script.py
73ec82f3f62731a3a128e7a635780a15dbf2c529
[]
no_license
cbfsocial/Python-Cisco-mac-ip-paring
f30f617529476a60f97b5c68851f4d791b776983
8508f4ceb064bb4118f9bb5652612b992201bd04
refs/heads/main
2023-03-01T00:49:04.381991
2021-01-29T10:44:11
2021-01-29T10:44:11
323,436,765
0
0
null
null
null
null
UTF-8
Python
false
false
1,999
py
import paramiko ip = [all device's ip] usr = "" pwd = "" def hostname_parser(host): client = paramiko.SSHClient() client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) client.connect(hostname=host, username=usr, password=pwd, look_for_keys=False, allow_agent=False) stdin, stdout, stderr = clie...
[ "noreply@github.com" ]
noreply@github.com
67d2259610e25b0d69794e33f601aaf958ab1d9b
ef68592777e356bd268410803195a4bc45f3c976
/NN.py
780afb1efde5e7fe85b06679b9d37f34b6e03035
[]
no_license
msieb1/multilayer-perceptron
a2ce7cc417d9d87f8067ddcad078fc75def0d0c7
9e0f8b5a490a9221dc352cdea3078a9d5b29e6ab
refs/heads/master
2021-08-08T03:33:19.458366
2017-11-09T13:45:20
2017-11-09T13:45:20
109,531,361
0
0
null
null
null
null
UTF-8
Python
false
false
28,026
py
import math import random import numpy as np import csv import re import matplotlib.pyplot as plt class NN: """ create a neural networks as class object """ def __init__(self, n_nodes, inputs): """ :param n_nodes: array with number of nodes in each layer. length(n_no...
[ "noreply@github.com" ]
noreply@github.com
165dab7e57e2a352300f0576717c1cdae8927d4b
5e2dddce9c67d5b54d203776acd38d425dbd3398
/spacy/lang/es/syntax_iterators.py
869f404e040edf4e143bf6e80dab2eaac4390688
[ "MIT" ]
permissive
yuxuan2015/spacy_zh_model
8164a608b825844e9c58d946dcc8698853075e37
e89e00497ab3dad0dd034933e25bc2c3f7888737
refs/heads/master
2020-05-15T11:07:52.906139
2019-08-27T08:28:11
2019-08-27T08:28:11
182,213,671
1
0
null
2019-04-19T06:27:18
2019-04-19T06:27:17
null
UTF-8
Python
false
false
1,695
py
# coding: utf8 from __future__ import unicode_literals from ...symbols import NOUN, PROPN, PRON, VERB, AUX def noun_chunks(obj): doc = obj.doc np_label = doc.vocab.strings.add('NP') left_labels = ['det', 'fixed', 'neg'] # ['nunmod', 'det', 'appos', 'fixed'] right_labels = ['flat', 'fixed', ...
[ "yuxuan2015@example.com" ]
yuxuan2015@example.com
5f187621e0c1861126cb19a1ffcd3ae9705e5b59
ea9e1222a128df7f0652f331065533d61798ae16
/unit4/4.5.improving_the_index.py
0726f55cf9399b8dc45155c0638820b7ed27534c
[]
no_license
AK88-RM/Udacity-CS101
5ff11d32a2da9bb80987d2e4078a40cb64c95b71
2e71f204e982aa6831824d9bab343db629a967cc
refs/heads/master
2020-04-06T06:38:29.659575
2014-08-28T13:07:09
2014-08-28T13:07:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,684
py
def add_to_index(index, keyword, url): for entry in index: if entry[0] == keyword: if url not in entry[1]: entry[1].append(url) return # not found, add new keyword to index index.append([keyword, [url]]) def get_page(url): try: if url == "http://...
[ "github@michaelsexton.com" ]
github@michaelsexton.com
c1376eb883c5a0451dce7d372ae147efe9b2a0d9
4d2942cb8b7a6c15c1d09c36e4a881cd8d54b981
/삼성 SW 역량 테스트 기출 문제/17837_새로운게임2.py
297d12891eb3d9b4099c498c743fd3381587bdf3
[]
no_license
Novicett/codingtest_with_python
4ebbceedce42ea5c27bebbacaec0046a7fc7cce8
9cfb1a1be81acd69bf73d2f3698145c74e305dc0
refs/heads/master
2023-05-30T02:03:08.620929
2021-06-20T03:22:24
2021-06-20T03:22:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,869
py
import sys from collections import defaultdict dx = [0, 0, 0, -1, 1] dy = [0, 1, -1, 0, 0] reverse = {1:2, 2:1, 3:4, 4:3} input = sys.stdin.readline N, k = map(int, input().split()) board_color = [] for _ in range(N): board_color.append(list(map(int, input().split()))) horses = defaultdict() horse_on_board = [[[]...
[ "viliketh1s98@naver.com" ]
viliketh1s98@naver.com
4450db57e64db6586c682bfbdf846ffb456d9e4e
4d718292ec9f90444eeda13d18febb10757da894
/mission 11/classement.py
e50dc9fbba32e99394191730b85603be4aa7080f
[]
no_license
rverschuren/Info
b40fb04a6260dacfc95d12e63c99abd82b140e06
c9aa0bdc1b026c8ba8134b878b5fae7d49d75e19
refs/heads/master
2020-04-16T07:29:49.847812
2019-01-14T14:50:18
2019-01-14T14:50:18
165,389,281
1
2
null
2019-01-12T18:56:01
2019-01-12T13:12:46
Python
UTF-8
Python
false
false
3,812
py
class Classement : """ Une implémentation primitive de classement, non ordonnée et de capacité fixe. @author Kim Mens @version 02 Décembre 2018 """ __maxcapacity = 10 def __init__(self): """ @pre: - @post: un classement vide de taille 0 a été créé """ ...
[ "bastien.wiaux@gmail.com" ]
bastien.wiaux@gmail.com
2c97ff281efd8d8c1aa5ca18d5eaf702ae7ce0d6
b47309ab12aecb683797b3c5490e8f926818ec90
/plugin.video.movie25/resources/libs/live/nhl.py
bfc51a813385908a599ab7bae51391dcb3030680
[]
no_license
alejusar/starthere
fb41d631afa1a7e610c22999b721db2fd5260729
a12c17369a15dacac06fd0b9c348435587058c02
refs/heads/master
2021-01-10T14:23:32.197067
2015-11-01T00:21:55
2015-11-01T00:21:55
44,849,967
0
0
null
null
null
null
UTF-8
Python
false
false
7,303
py
import urllib,urllib2,re,cookielib,os,sys import xbmc, xbmcgui, xbmcaddon, xbmcplugin,time from resources.libs import main #Mash Up - by Mash2k3 2012. from t0mm0.common.addon import Addon addon_id = 'plugin.video.movie25' selfAddon = xbmcaddon.Addon(id=addon_id) addon = Addon('plugin.video.movie25', sys.argv) art = ma...
[ "alejusar@gmail.com" ]
alejusar@gmail.com
9a658ef90f5b3a387e050f4f3798f53757a8de54
fca4b400cc9c08b028ee427e5bb66fc1441d226d
/vatsava/Gautham/get_data_test.py
46b9ebb23cfe406baecf69d639c2bfbbf915c9ee
[]
no_license
vatsava-rac/RPibackup
29db15864f97d7f7e10fcdbbb1b893a8522982d8
db19ca031e99d7e797b384eab72d752489a1d3ac
refs/heads/master
2022-04-24T17:48:03.866461
2020-04-21T11:01:31
2020-04-21T11:01:31
257,565,788
0
0
null
null
null
null
UTF-8
Python
false
false
2,159
py
import tkinter as tk # python 3 from tkinter import font as tkfont # python 3 from tkinter import * class BSS_App(Tk): def __init__(self): Tk.__init__(self) container = tk.Frame(self) self.app_data = {"UUID": StringVar(), "Connection_status": StringV...
[ "“vatsava.k@racenergy.in”" ]
“vatsava.k@racenergy.in”
923853a7f7ac4c46fa45ea951fc1ffaed37f58f2
b667ef7f22f8141898917533ec0a3305dc461e6c
/wsgi_server/dynamic/mini_frame.py
98463d55659246a3c6b1387d4e2facb220576fdc
[]
no_license
supermouse123/python-network_frame
6c2b30cecf85fec7ac92371f3346678ffa7e84b2
a9023051459c1ab845618ecb1fbe0c9b68eb87af
refs/heads/main
2023-02-26T01:43:46.753288
2021-01-27T05:52:14
2021-01-27T05:52:14
333,292,775
1
0
null
null
null
null
UTF-8
Python
false
false
954
py
# @Time : 2021/1/27 # @Author : sunyingqiang # @Email : 344670075@qq.com import re URL_DICT = dict() def route(url): def set_func(func): URL_DICT[url] = func def wapper(*arg, **kwargs): return func(*arg, **kwargs) return wapper return set_func @route('/index.html') d...
[ "sunyingqiang@mosesceo.com" ]
sunyingqiang@mosesceo.com
9551d519b20dfcc4061ff956e357f5bdb2481c6d
7cd8ee14711eaf33cee0d9e06e78a974fc579242
/Linkedin/Linkedin/spiders/linkedin_distinct_12logincount.py
73e600bb84ee61402c91c2f94e2db905b9cf883c
[]
no_license
Chandler-Song/pi
c618117dfdd9a7496a57c69f029851e94787f591
aebc6d65b79ed43c66e7e1bf16d6d9f31b470372
refs/heads/master
2022-03-13T02:44:30.452673
2019-02-19T09:38:45
2019-02-19T09:38:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,482
py
from linkedin_voyager_functions import * class Companylidsurls(object): def __init__(self, *args, **kwargs): self.con, self.cur = get_mysql_connection(DB_HOST, 'FACEBOOK', '') #self.qu1 = 'select profile_sk , connections_profile_url from linkedin_connections where date(modified_at)>"2017-04-17" and date(modified_...
[ "aravind@headrun.com" ]
aravind@headrun.com
da11800eb90e67c80528836a5601e3bda8546b4b
7dcf487ae09659e3a711e08bd7a9057b1abc43b4
/newcolumn.py
c9c8f80706e6b5c747358f9fc0ccca9964dc302b
[]
no_license
vaibhavbhat123/Reservoir-characterization
6d769ce2b3e3067b5cd04df070b91df01ffddf10
5e61f4a57a6561106b8989574eff8ce58a580875
refs/heads/master
2020-05-18T17:45:22.638535
2019-06-05T16:33:18
2019-06-05T16:33:18
184,565,283
0
0
null
null
null
null
UTF-8
Python
false
false
202
py
import pandas as pd import numpy as np data = pd.read_csv("E:/file7.csv") print(data.head()) data['Probability'] = np.where(data['POR']>6,'yes','no') print(data.head()) data.to_csv("E:/file97.csv")
[ "noreply@github.com" ]
noreply@github.com
2ec6f9f43065ad0d28c012eb412b7a9fe4bbb343
5cc6203602d2d0dc89b9b1204e6f1e0ce4e17825
/lafopafo/confirmed/6/prediction.py
2f387dfe8f595a4441df5bf7857c6bb1f12d97c5
[]
no_license
arezooh/COVID-19-prediction
200dd520626fd280bd69d2ba7799d593207b3d67
eb3edd1494b87abaf39c19e5fc0cdb10604e12e3
refs/heads/main
2023-04-15T06:17:23.817219
2021-04-26T21:49:46
2021-04-26T21:49:46
313,310,295
1
1
null
null
null
null
UTF-8
Python
false
false
87,103
py
from makeHistoricalData import makeHistoricalData from models import GBM, GLM, KNN, NN, MM_GLM, GBM_grid_search, NN_grid_search, MM_NN import pandas as pd import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl mpl.use('Agg') from sklearn.metrics import mean_squared_error, mean_absolute_error from ...
[ "arezo.h1371@yahoo.com" ]
arezo.h1371@yahoo.com
a95badfd54dbd2302101d0cf2b2569e911d8f07a
2cb037e15ffd1c97a1c85acfb95dc63cebe1e961
/MoEL/main.py
d4bb3c2e3a7e23c1b91e7572e013ea44cf54be11
[ "MIT" ]
permissive
Ravikiran2402/MoEL
4f399d6d1219782c79ae463f09f52558e3bbce6a
9fde3a8a3744521b822b46915515a22de3d4c053
refs/heads/master
2021-05-17T12:51:00.019321
2020-04-20T12:49:40
2020-04-20T12:49:40
250,785,533
0
0
null
null
null
null
UTF-8
Python
false
false
5,589
py
from utils.data_loader import prepare_data_seq from utils import config from model.transformer import Transformer from model.transformer_mulexpert import Transformer_experts from model.common_layer import evaluate, count_parameters, make_infinite import torch import torch.nn as nn import torch.nn.functional as F from t...
[ "ravikiranbudde@gmail.com" ]
ravikiranbudde@gmail.com
23f3a9b619600c2c45f879384f3a51dda94f5c3e
38466811d0e12a8f755bae58d7244622ef5f4d9b
/leetcode/200/141_linked_list_cycle.py
9e5262a7110cf85407e3ce7e9183543e977219f0
[]
no_license
andysitu/algo-problems
4ab5a2b6591f0c0d84174b69598f30bc354ff8aa
35c88dc747e7afa4fdd51d538bc80c4712eb1172
refs/heads/master
2023-06-24T15:55:39.019652
2021-02-26T20:31:07
2021-02-26T20:31:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
602
py
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def hasCycle(self, head: ListNode) -> bool: if head == None: return False forward1 = head forward2 = head while True: ...
[ "and.situ@gmail.com" ]
and.situ@gmail.com
12da0c9ef7c319623e61c8a07547828aeb19c71f
f9c2461c22ab458a8a6f2a4e2b0a81de3cf8a8eb
/Project/Code/target_generator.py
11b541f2117fd0bee0c60e198f85c823bf709ca3
[]
no_license
terrenceedmonds/BassGenerator
f368ac844e32dee6bd0c0ab0e9138f1930371d8d
4df3ebd6e440ea5d8db73df012dc0fd657de3daa
refs/heads/master
2021-06-06T03:14:55.996062
2016-08-16T21:39:25
2016-08-17T18:05:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
881
py
import pickle import numpy as np def X_y_split(split_number, matrix): '''SPLIT NUMBER = 32: This splits the bass line in 2 equal halves: The first 32 16ths determine the 33rd 16th note then moves down for a total of 32 X, y pairs per bass line.''' '''SPLIT NUMBER = 48: This splits the bass line in 3/4...
[ "claytonjamesporter@gmail.com" ]
claytonjamesporter@gmail.com
8a06868b655739e92f853e34bd8de4d8bf56462c
ad04d0321197886ed2ccbf38e715181ee1b9bf64
/tasks/201409_roadbed_centerline/time_test.py
0b0891e2149663ee0704a6985d73f745e940cc37
[]
no_license
nygeog/taxi
20a4b525b46538bfd26807d03c3066de2739d8ef
f5b6de8455a25300624b87746460cb49ad942161
refs/heads/master
2016-09-11T06:59:52.782254
2015-04-28T19:42:54
2015-04-28T19:42:54
22,586,515
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
import arcpy, time, datetime, csv, sys, traceback from arcpy import env env.overwriteOutput = True import glob from datetime import datetime print str(datetime.now())
[ "daniel.martin.sheehan@gmailcom" ]
daniel.martin.sheehan@gmailcom
6ab964904330fa8d9bc2040184817fda24ed9179
cda795c607c4b65027006e96ad79d3a0b34e0d95
/imgdraw.py
5a636135dce82aee155b08b3a8ad0866ef3f67ce
[]
no_license
kamaljahangir/10thmayML
9b1638b6ca8d83921d23b28be80183b11b0e810d
ac1efa37c5c438ba62fd10ae1588b6d363aa2254
refs/heads/master
2020-06-05T10:19:15.217004
2018-06-21T02:17:21
2018-06-21T02:17:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
766
py
#!/usr/bin/python3 import cv2,time import numpy as np import matplotlib.pyplot as plt # reading images img=cv2.imread('dogs.jpg',cv2.IMREAD_COLOR) #img=np.zeros((512,512,3),np.uint8) #img=img[0:100,0:200] print(img.shape) time.sleep(1) cv2.line(img,(10,20),(200,200),(255,0,0),5) cv2.rectangle(img,(150,150),(350,350)...
[ "noreply@github.com" ]
noreply@github.com
3be5af56db9452ae4f52966fd2ebab0bcda7af70
6c1ca203fef93643ea0e4d5ef11d19f54d041504
/airflow_python_sdk/model/dag_collection_all_of.py
d8f0c3977266455d63558894d437e8944922bafc
[ "MIT" ]
permissive
marmikreal/airflow-python-sdk
0ad03d7213101dc4d4a4dbbf654d8c1c4f78e395
70b5d08955a9e218fa6163b0612856e09eedce63
refs/heads/master
2023-03-26T19:53:21.083972
2021-04-02T16:31:18
2021-04-02T16:31:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,221
py
""" Airflow API (Stable) # Overview To facilitate management, Apache Airflow supports a range of REST API endpoints across its objects. This section provides an overview of the API design, methods, and supported use cases. Most of the endpoints accept `JSON` as input and return `JSON` responses. This means t...
[ "zach.z.liu@gmail.com" ]
zach.z.liu@gmail.com
bb6bf34f2ba9f5ee7aa802041d3c119fe086696b
b88bab8d5146f35c84b08c065f8d325b32c78421
/Functions Advanced - Exercise/Min Max Sum.py
0e86867375fdf297c90c7d5115b20621e3fd9ab7
[ "MIT" ]
permissive
DiyanKalaydzhiev23/Advanced---Python
f929436b8a54e8a6e431882d7c818d152f01a01b
ed2c60bb887c49e5a87624719633e2b8432f6f6b
refs/heads/main
2023-06-09T19:20:16.063345
2021-06-26T10:27:49
2021-06-26T10:27:49
357,164,435
1
1
null
null
null
null
UTF-8
Python
false
false
174
py
nums = [int(n) for n in input().split()] print(f"The minimum number is {min(nums)}") print(f"The maximum number is {max(nums)}") print(f"The sum number is: {sum(nums)}")
[ "noreply@github.com" ]
noreply@github.com
a7e316b3e4294deab2c4be72af3994d2504b8d49
ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3
/python/baiduads-sdk-auto/test/test_update_creative_response_wrapper.py
cca6a9dbe84cb7e4f9ee1164d8a578b819dd20ce
[ "Apache-2.0" ]
permissive
baidu/baiduads-sdk
24c36b5cf3da9362ec5c8ecd417ff280421198ff
176363de5e8a4e98aaca039e4300703c3964c1c7
refs/heads/main
2023-06-08T15:40:24.787863
2023-05-20T03:40:51
2023-05-20T03:40:51
446,718,177
16
11
Apache-2.0
2023-06-02T05:19:40
2022-01-11T07:23:17
Python
UTF-8
Python
false
false
1,076
py
""" dev2 api schema 'dev2.baidu.com' api schema # noqa: E501 Generated by: https://openapi-generator.tech """ import sys import unittest import baiduads from baiduads.common.model.api_response_header import ApiResponseHeader from baiduads.creative.model.update_creative_response_wrapper_body import UpdateC...
[ "tokimekiyxp@foxmail.com" ]
tokimekiyxp@foxmail.com
8eb8984f35bfb3da7d3dba72c285b6487d85fc09
5725113fd0e49a2ce139f61f933aee5321bb2ebe
/models/LanguageModels.py
d3c60d67467828a3c5ce73439654e36534eea0bc
[]
no_license
SaqibMamoon/VG-Bert
b3225088b5df9b5b689d6aa168943117d4b2c096
89a7a563096cf2729a1a8c8c75d8a36a822f56a1
refs/heads/main
2023-08-28T12:23:16.553825
2021-10-27T05:02:54
2021-10-27T05:02:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,834
py
import torch import torch.nn as nn from transformers import BertTokenizer, BertModel, BertForMaskedLM, BertConfig from collections import OrderedDict class Bert_base(nn.Module): def __init__(self, dropout_rate=0.3): super(Bert_base, self).__init__() config = BertConfig.from_pretrained('bert-base-un...
[ "yizhenzhang@Yizhens-MBP.attlocal.net.ucsf.edu" ]
yizhenzhang@Yizhens-MBP.attlocal.net.ucsf.edu
0e5255d021aeda561c8b57f0a5c987ba0541f366
57a8b30e515239f0e4626425a757bc67d2ea1b57
/py2neo/legacy/index.py
d30a293ad0052f2ffd55cbca7af332d83e85815b
[ "Apache-2.0" ]
permissive
devocasion/py2neo
adbf02d505ae8bcd0726f69db5e15642f7e107ae
34d4cb1e4582f695734d55329f28a6c278d951ee
refs/heads/master
2022-09-20T02:52:13.346363
2014-09-12T21:58:11
2014-09-12T22:01:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,934
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2011-2014, Nigel Small # # 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...
[ "nigel@nigelsmall.com" ]
nigel@nigelsmall.com
54f9c26e1c1a8e2e8d1f6c35b715163db168de74
ac3227ef8da077bfb871f8e515bda92ac96385f9
/pressure17.py
3631628a3c32772c9b545461956a5c1f062cb4a9
[]
no_license
anlitsai/ngc2146-moment
07dac25a981b404a55e00b5a17f314861324efd0
6060239f1919bb7c316dfe93465d1f5fa240bd56
refs/heads/master
2022-05-20T18:05:26.343243
2020-04-12T21:15:30
2020-04-12T21:15:30
255,170,762
0
0
null
null
null
null
UTF-8
Python
false
false
10,365
py
#!/usr/bin/env python # NGC 2146 # --- import constant ------------------------- # import math #import pyfits # --- constant -------------------------------- # c=3.0e10 # light speed pc=3.26*c*365*86400 kpc=pc*1.0e3 ev=1.6e-12 G=6.67e-8 # gravitational constant k_B=1.38e-16 # boltzmann constant Msun=1.99e33 # solar ma...
[ "altsai.tw@gmail.com" ]
altsai.tw@gmail.com
228b011f6c42454451196d21cac044fbf57031d5
9df267922befa6405ee4bca2066763507703f50f
/luckBalance.py
710bc3b3f80dd9a93e6ed17a9973c67d6d761a69
[]
no_license
sujiea/hackerrank-codility
6b807506edc8cec46bb1cc9ffc922caa41435f69
d8a8d903227ecf892ba2a7aba497245812e0de62
refs/heads/main
2023-04-01T11:41:04.453250
2021-04-02T14:04:59
2021-04-02T14:04:59
345,200,902
0
0
null
null
null
null
UTF-8
Python
false
false
554
py
def luckBalance(k, contests): loss = 0 contests.sort(key=lambda a: a[0]) lossnum = 0 for i in range(len(contests)-1, -1, -1): curl = contests[i][0] if contests[i][1] == 1: if lossnum < k: lossnum += 1 loss += curl else: ...
[ "jane.su@tabcorp.com.au" ]
jane.su@tabcorp.com.au
f38c1c3c095e858982af91a7da7943c0b9f6fb8a
91a35132e1aa7235615b5735899fa5522647369a
/visualization/assign.py
c1696f9fef42cc09c58d44f73f33a4b7a057a427
[]
no_license
bana513/TextSummarization
ceb7857d9d3eeebb061d2feab5a5efe03dcc2300
80a6da328095eb4381361b1afb52074b2bc60383
refs/heads/master
2020-12-31T10:20:06.845664
2020-05-23T22:25:05
2020-05-23T22:25:05
238,997,311
1
0
null
null
null
null
UTF-8
Python
false
false
1,039
py
from langdetect import detect from transformers import BertTokenizer import pandas as pd def assign_lang(x): try: res = detect(x) except Exception as e: res = "unk" return res def contains_ekezet(x): if 'á' in x: return True elif 'é' in x: return True elif 'í' ...
[ "gbenceg@gmail.com" ]
gbenceg@gmail.com
9f77a46db14ad5aed4ec12a3273abab3140a8cc8
33118eb668f600e7635e72b6caaf47cc893741ce
/Day3/day3.py
7aa407edbcc53f2bd1e23f5e0cd3247919c7b8c9
[]
no_license
darpan45/100DaysofCode
c5010bf55ac1330a837212020172c1044895f5f6
afcd7edbabb77525fb583843b09fc21e94c5d8bc
refs/heads/master
2023-04-07T07:34:16.483521
2021-04-21T15:57:47
2021-04-21T15:57:47
355,512,802
0
0
null
null
null
null
UTF-8
Python
false
false
6,530
py
##Basic If Else Statement # print("Welcome to RollerCoaster!") # height=int(input("What is your height ? ")) # if height >= 120 : # print("You are eligible for rollercoaster") # else: # print("You are not eligible for rollercoaster") ##Odd or Even Number # num=int(input("Enter a number : ")) # if n...
[ "noreply@github.com" ]
noreply@github.com
4c9202401909ac467c699ae421769fbf548167c7
32bbbaf51f8951352aa4d9dcc9e96268a0caeed8
/src/utilty/sql_connection.py
28db10f01247a2fa10c8a9a016a89518fc2c0f1d
[]
no_license
saurav01235/incubyte-task
0e1f8b0e97e34fe1ec960fd13bddb114a2b5bc5f
9b1f569ed7f67e149356a4d5c02d29fca3b59d77
refs/heads/main
2023-06-02T05:00:20.975028
2021-06-20T20:20:47
2021-06-20T20:20:47
378,730,792
0
0
null
2021-06-20T20:20:47
2021-06-20T20:06:12
null
UTF-8
Python
false
false
441
py
import mysql.connector class MySqlConnection: def __init__(self, host, user_name, password, db_name): self.mydb = mysql.connector.connect( host=host, user=user_name, password=password, database=db_name ) def get_connection(self): return ...
[ "sauravjain8sj@gmail.com" ]
sauravjain8sj@gmail.com
6a02b1b9b4039b5905a62c954a5fa994a2226388
d0397940ac1267c40db974e54ddf3181380370d7
/website_personal/urls.py
f42508d6a7c4accf845696fde4ac9dc67cae0b76
[]
no_license
ngvan98/WebPersonal
c632e4b7bd4de5d5915c05747ed953c46bbcab9d
06a8b039547c44c3faab210aa0c78ccb6a3e8f6e
refs/heads/master
2023-05-02T14:17:04.278066
2021-05-25T14:30:46
2021-05-25T14:30:46
370,722,210
0
0
null
null
null
null
UTF-8
Python
false
false
802
py
"""website_personal URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cl...
[ "ngvan26031998@gmail.com" ]
ngvan26031998@gmail.com
c343d8ab5d38217cccb70f3d7d86c16fa61d74e1
cdf541125b94bb01a4068d1a7b4d171139e5ef00
/eml2txt.pye
ced4f4b58385dcd1bec7e04847b7d1dc675a521e
[ "MIT" ]
permissive
u1and0/eml2txt
3f8ac2b19065001963d197ef6a4e9f3153db3afa
52eb53fc708fb3de478f2113f8abdae9f1ce58d3
refs/heads/master
2023-05-30T22:37:54.096578
2021-06-08T01:47:23
2021-06-08T01:47:23
278,624,957
0
0
null
null
null
null
UTF-8
Python
false
false
5,807
pye
#!/usr/bin/env python3 # coding:utf-8 """ emlファイルを元に扱いやすい様にデータを取得します。 Usage: $ python -m eml2txt foo.eml bar.eml ... # => Dump to foo.txt, bar.txt $ python -m eml2txt *.eml - # => Concat whole eml and dump to STDOUT """ import sys import re from dateutil.parser import parse import email from email.header imp...
[ "e01.ando60@gmail.com" ]
e01.ando60@gmail.com
49d99d025201045a3100ae9ab2515e297887e22a
9b10d8482a7af9c90766747f5f2ddc343871d5fa
/Gemtek/AutoTest/Sprinkler-Auto-Test/appium/modules/android/main_screen.py
53dfab1b87c290967aa74c0b91465fb24e0c9366
[]
no_license
DarcyChang/MyProjects
86d33f5cf8bdfd4b21e64922e4eb25c1afc3c135
47efb2dfe13ace264f8943b59b701f39f23c4c17
refs/heads/master
2021-05-12T12:43:39.255082
2020-09-23T06:42:03
2020-09-23T06:42:03
117,419,269
0
2
null
null
null
null
UTF-8
Python
false
false
2,525
py
import unittest from time import sleep from appium import webdriver import android.verify.exist import android.verify.next_page from appium.webdriver.common.touch_action import TouchAction def add_device(self): el = self.driver.find_element_by_id("com.blackloud.wetti:id/ivAddSprinkler") self.assertIsNotNone(e...
[ "cychang0916@gmail.com" ]
cychang0916@gmail.com
ebbc23d30dbea2dafb4b6a71b92a5ccb4c9bb341
d1c352676563b2decacfad19120001959b043f05
/superset/migrations/versions/a33a03f16c4a_add_extra_column_to_savedquery.py
07e0b05a1c0c6e035dd0a4931949130430b03579
[ "Apache-2.0", "CC-BY-4.0", "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
permissive
Affirm/incubator-superset
c9a09a10289b4ebf8a09284a483bca93725a4b51
421183d3f46c48215e88e9d7d285f2dc6c7ccfe6
refs/heads/master
2023-07-06T11:34:38.538178
2019-05-22T23:39:01
2019-05-22T23:39:01
128,005,001
1
3
Apache-2.0
2023-03-20T19:49:14
2018-04-04T04:02:42
JavaScript
UTF-8
Python
false
false
2,090
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "noreply@github.com" ]
noreply@github.com
16599cd9a30d5c2433b18282333b8ef74be14640
e39a35e314e4dd4ecad543f8fbb5a704d9b4edec
/pipeline/data/hierarchical.py
90511c7c08089bfcdad9214dd2ac4cae4fcc2abd
[]
no_license
11mhg/OpenImageCompetition
f422e6e2034360ff6215546b47965327f2d16b5c
604c6fc206009b476208c02f4d1cad7b9a87057b
refs/heads/master
2020-03-24T18:45:08.519916
2018-11-10T00:55:22
2018-11-10T00:55:22
142,898,816
0
0
null
null
null
null
UTF-8
Python
false
false
1,638
py
class Tree(object): def __init__(self,hierarchy_dict=None): self.hierarchy_dict = hierarchy_dict self.root_node = Node(name='root',level=0) self.parse_level(sub=self.hierarchy_dict,parent=self.root_node) def parse_level(self,sub=None,parent=None): if 'LabelName' in sub: ...
[ "mhg1@gra-login3.graham.sharcnet" ]
mhg1@gra-login3.graham.sharcnet
478aba4708b468d17b216fbe2e5cd9462bb06649
7ce02f61e90efaa3811420bab40227c6d82ec7c4
/PDD/heartrate_monitor.py
54139090b034130e9d385a11e76d7a96914e8c65
[]
no_license
Leonlidawn/raspberrypi-flask-project
e00600310709dab2fe1354b62e4032bb186e5d76
4e17969a384cf3eb7899b2d39c94c40ec8c01185
refs/heads/main
2023-02-03T12:50:15.842881
2020-12-08T03:26:27
2020-12-08T03:26:27
309,027,034
0
0
null
null
null
null
UTF-8
Python
false
false
3,352
py
from max30102 import MAX30102 import hrcalc import threading import time import numpy as np import os import json import datetime class HeartRateMonitor(object): """ A class that encapsulates the max30102 device into a thread """ LOOP_TIME = 0.01 def __init__(self, print_raw=False, print_result=...
[ "leonlidawn@gmail.com" ]
leonlidawn@gmail.com