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
9dc93f7d0d72e35617b1dbf9bce7acc7bee7d8d1
c33690a1cf47cd18e755f30260291d51912c690f
/App_Base/migrations/0011_reunion_url.py
35a13408cfa6f5046d11c39f2cee2758916a8862
[]
no_license
otonelunico/LegalAssistant
6cb5075b096684546a6ad862aa5c486c1efc59ad
5c2c4308c10e0a353fa58e9d8bd4d699e74f3f38
refs/heads/master
2021-05-14T12:25:24.181305
2018-01-19T06:14:36
2018-01-19T06:14:36
116,408,290
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
# Generated by Django 2.0.1 on 2018-01-18 03:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('App_Base', '0010_auto_20180118_0007'), ] operations = [ migrations.AddField( model_name='reunion', name='url', ...
[ "ocubillosj@gmail.com" ]
ocubillosj@gmail.com
bb1f4318b509f59fd872544e381aac00d5246fa6
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p4VQE/R4/benchmark/startQiskit_QC726.py
332c0f75c85ee32a7ea60c476b48ef53c4b5a3db
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
2,699
py
# qubit number=3 # total number=15 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
98583b6671a894809709798e797a7a4c7c2b95e3
e700cbfcfa43aa42449cbcd2c337727fe398f253
/twit/api/security.py
0db3ac998687106af9443c90eae6643494595d72
[ "MIT" ]
permissive
pchudzik/tweet
28b12787667dae25dda64ab97218ed35703057c5
1938dae6be1359d73a8140b994c3db39d2b336da
refs/heads/master
2020-04-23T11:57:40.508876
2019-03-15T20:03:55
2019-03-15T20:03:55
171,153,679
0
0
null
null
null
null
UTF-8
Python
false
false
934
py
from flask_jwt_extended import jwt_required, jwt_refresh_token_required, get_jwt_identity, get_raw_jwt from flask import jsonify, request, Flask from twit import users, tokens def login_user(): payload = request.get_json() login_state = users.login(payload.get("login"), payload.get("password")) if login_...
[ "pawel.chudzik@gmail.com" ]
pawel.chudzik@gmail.com
310ff641b989d7940cc1695fbdb8b6061811b6d1
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/fNQEi9Y2adsERgn98_5.py
326ac1c77e47cba36deeba658a0cc5c63b081e7c
[]
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
2,002
py
""" Write a function that takes the coordinates of three points in the form of a 2d array and returns the perimeter of the triangle. The given points are the vertices of a triangle on a two-dimensional plane. ### Examples perimeter( [ [15, 7], [5, 22], [11, 1] ] ) ➞ 47.08 perimeter( [ [0, 0], [0, 1], ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
02a82b5faedbd3a91ab09f0fa5a843fc3ac9a56f
4e67c2edd71493a98a3f13e5b2073c1d05b1b656
/Semestre 02/ProjetoIntegrador2/Aula 11.05.2020/heranca.py
e3253170a13af5d997f7c8028fca9b4ae7cf97aa
[]
no_license
felipellima83/UniCEUB
05991d7a02b13cd4e236f3be3a34726af2dc1504
dbc44866545b5247d1b5f76ec6e9b7778e54093e
refs/heads/master
2023-07-08T19:04:19.830473
2021-08-12T12:33:49
2021-08-12T12:33:49
249,958,282
0
0
null
null
null
null
UTF-8
Python
false
false
3,948
py
''' UniCEUB - Ciência da Computação - Prof. Barbosa Atalho de teclado: ctlr <d>, duplica linha. ctrl <y>, apaga linha. ctrl </>, comenta linha 1- Crie a classe Funcionario com os atributos nome, cpf, salario - Crie o construtor da classe Funcionario def __init___ (self, ...). Teste 3- Crie uma instância (obj...
[ "felipellima83@gmail.com" ]
felipellima83@gmail.com
bf597a4acd8431cb675a1fa2e2141e59cced6163
805f2236caaec6c75629a7ce7a4b00c2c5b5e0f1
/object_detection/anchors.py
b0d1d43863ac93eaee1e60dd2ca64758967d2ffa
[]
no_license
pai-plznw4me/object_detection
7cccc46a32aded7828ce75edffbece35b6370177
43cf167e2c73c75682db888a11bce3321bb2d73f
refs/heads/master
2020-11-24T20:27:01.116215
2019-12-28T07:18:19
2019-12-28T07:18:19
228,329,751
0
0
null
null
null
null
UTF-8
Python
false
false
6,691
py
import numpy as np import tensorflow as tf from tensorflow.keras import backend as K def generate_anchor(input_tensor, backbone_output, anchor_default_sizes=(32., 64., 128.), anchor_ratio=(0.5, 1, 2)): """ Description: Anchors 을 생성합니다 Ar...
[ "plznw4me@naver.com" ]
plznw4me@naver.com
0ead00a9de13ee038b09006097ebe531c1fb1e13
4369c5a214f8c4fb1f8a286f72d57cfa9c3f02c7
/geotrek/flatpages/migrations/0006_auto_20200406_1413.py
2c0159b11ab5d6e1e3e01fbedfeda9c5f6637a40
[ "BSD-2-Clause" ]
permissive
GeotrekCE/Geotrek-admin
c13d251066e92359c26f22d185b8bd2e26e622ef
a91b75261a876be51ad2a693618629900bea6003
refs/heads/master
2023-08-21T12:45:25.586551
2023-08-09T12:28:33
2023-08-09T12:28:33
9,886,107
71
56
BSD-2-Clause
2023-09-13T09:40:33
2013-05-06T12:17:21
Python
UTF-8
Python
false
false
550
py
# Generated by Django 2.0.13 on 2020-04-06 14:13 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('flatpages', '0005_auto_20200228_2150'), ] operations = [ migrations.RunSQL('ALTER SEQUENCE p_t_page_id_seq RENAME TO flatpages_flatpage_id_seq;'), ...
[ "gael.utard@makina-corpus.com" ]
gael.utard@makina-corpus.com
ca543090d0178402418aaec36a7a435942abb28f
3b84ca7d132e6ca5004029d39bfa7c8fead07fe1
/arnold/5.3.1.0/package.py
69832010ff5d3970be4247eb14dfda606c5bd6b4
[]
no_license
est77/rez-packages
05a5a05224e02c0a28bc37a81cbd07ca7447d604
449ade7acf92196efda2e8ec883c52ba4e33262d
refs/heads/master
2020-05-27T10:35:02.323417
2020-02-23T19:03:05
2020-02-23T19:03:05
82,542,112
22
7
null
null
null
null
UTF-8
Python
false
false
227
py
# -*- coding: utf-8 -*- name = "arnold" version = "5.3.1.0" description = "Arnold" def commands(): env.PATH.append("{root}/bin") env.LD_LIBRARY_PATH.append("{root}/bin") env.PYTHONPATH.append("{root}/python")
[ "ramenhdr@gmail.com" ]
ramenhdr@gmail.com
20fd63457fbe8324e6d75d4f58117473bc620f2b
4f972877da14226125440b3da9bdb058764d8a54
/mlflowDemo/sklearn_logistic_regression.py
09b1659d8a2feb4deb3ff623ec6a439ff6c83977
[]
no_license
ZhiYinZhang/study
16c29990cb371e7e278c437aa0abc7c348614063
8c085310b4f65e36f2d84d0acda4ca257b7389af
refs/heads/master
2021-07-09T16:05:02.925343
2020-06-30T07:53:05
2020-06-30T07:53:05
153,767,096
0
1
null
null
null
null
UTF-8
Python
false
false
902
py
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # datetime:2019/11/11 11:56 import numpy as np from sklearn.linear_model import LogisticRegression import mlflow from mlflow import sklearn if __name__ == "__main__": mlflow.set_tracking_uri("http://localhost:5001") # mlflow.create_experiment("sklearn logistic re...
[ "2454099127@qq.com" ]
2454099127@qq.com
9dc567114028c18e7f20da8e620668d1ca00936d
ba35ce41c1cf8a1cd75441df1b7173c6606b8c7f
/si_prefix/tests/test_si_format.py
502e967aed31fa6665d8f1b226678bb31eade23f
[ "BSD-3-Clause" ]
permissive
Lucaszw/si-prefix
352396f184ed041d3054b10cddcd894deee3f3cf
e1f73d6abb3735cc6aad70eb216cb92a7736892a
refs/heads/master
2021-06-20T11:06:08.101055
2017-07-30T04:17:32
2017-07-30T04:17:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,645
py
# coding: utf-8 from nose.tools import eq_ from si_prefix import si_format TEST_CASES = [(1e-27, '1.00e-27'), (1.764e-24, '1.76 y'), (7.4088e-23, '74.09 y'), (3.1117e-21, '3.11 z'), (1.30691e-19, '130.69 z'), (5.48903e-18, '5.49 a'), ...
[ "christian@fobel.net" ]
christian@fobel.net
e961cf89a9e27dee6daa9cb7527a45eaf9db66b0
68b2e5981caadabd6a4ecec5dab69831979b33f2
/job_portal/urls.py
5d01babc1e71be29b10536a68e717fa37420dc88
[]
no_license
linker10/jodep
a78b853743b701ef3a63ed6f8555e280e20f1048
7f533e9ee68e57eb19a874390e087ca19d786d60
refs/heads/master
2022-12-30T20:34:06.721603
2020-10-14T17:14:15
2020-10-14T17:14:15
292,902,953
0
1
null
null
null
null
UTF-8
Python
false
false
1,133
py
"""job_portal URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/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-ba...
[ "bilalsharif4@gmail.com" ]
bilalsharif4@gmail.com
4eb534b6c3f8fc7ab0a1340f2bb63bf369c7e86a
656df056ad736fdaaa1ef428ef09786c5a3d1494
/codigo/ESP32/boot.py
9b8ce49b77c2b0a915f6328fe69091b79e1b4d73
[]
no_license
javacasm/micropythonTutorial
a610024096b50512347bcb72937facd41cf6db8e
cc90e26763ef884e0311eecccc6c72c6c94a0a30
refs/heads/master
2022-02-03T20:06:10.315551
2022-01-25T11:02:09
2022-01-25T11:02:09
159,473,846
4
1
null
null
null
null
UTF-8
Python
false
false
282
py
# This file is executed on every boot (including wake-boot from deepsleep) #import esp #esp.osdebug(None) import webrepl import network iw = network.WLAN(network.STA_IF) iw.active(True) iw.connect('OpenWrt','qazxcvbgtrewsdf') webrepl.start() iw.ifconfig() print('esp32 Lolin32.34')
[ "javacasm@gmail.com" ]
javacasm@gmail.com
23cf0b4eab94f6e562a94369a9a428538ba2f765
f5d1e8b54ddbc51a9ef1b868eee93096d9b0fbeb
/weapp/market_tools/tools/complain/util.py
beac7fad6a1a9d61bdf0ff35d0765fc78f27069d
[]
no_license
chengdg/weizoom
97740c121724fae582b10cdbe0ce227a1f065ece
8b2f7befe92841bcc35e0e60cac5958ef3f3af54
refs/heads/master
2021-01-22T20:29:30.297059
2017-03-30T08:39:25
2017-03-30T08:39:25
85,268,003
1
3
null
null
null
null
UTF-8
Python
false
false
1,026
py
# -*- coding: utf-8 -*- from django.contrib.auth.models import User, Group, Permission from django.db.models import F import time from market_tools.prize.models import Prize from market_tools.tools.coupon import util as coupon_util from watchdog.utils import watchdog_fatal, watchdog_error from modules....
[ "jiangzhe@weizoom.com" ]
jiangzhe@weizoom.com
9799bfd8fcc771cd4435949af42db1f97eb1cf32
c8b1d07ba58a82ce58623c4e67703e1a71251691
/ChipSeq/ComparePeak/combine.py
2e35eece161fd30d8f90bfe31a6dfdab7b6122fa
[]
no_license
jumphone/Bioinformatics
17a54740033b3fafb1efee52b770ae023765e39b
58b7a83233e43fd2cb4db8baa0a1379d1fbf07c9
refs/heads/master
2021-04-27T07:27:26.423309
2020-11-26T09:04:23
2020-11-26T09:04:23
122,632,340
25
14
null
null
null
null
UTF-8
Python
false
false
612
py
import sys fa=open(sys.argv[1]) f1=open(sys.argv[2]) f2=open(sys.argv[3]) fo=open(sys.argv[4],'w') old=[] for line in fa: old.append(line.rstrip()) set1=set() for line in f1: seq=line.rstrip().split('\t') if int(seq[-4])>0: set1.add(seq[0]+'\t'+seq[1]+'\t'+seq[2]+'\t'+seq[3]) set2=set() ...
[ "noreply@github.com" ]
jumphone.noreply@github.com
96844d6e1b7cbb1e0c4df2cf34bf1e2323da26d5
4412fd856cfbdfab98122b11ea01e447a76851b3
/rodentdb/migrations/0036_auto_20190621_1805.py
2901595ecec0afdf9c55748cf027ceb41f509900
[]
no_license
fchampalimaud/rodentdb
d8e8c0c7552de638d3a2fd57de287401997fdf3c
4a970c09da78f22a8c57d8ea98d29a569f531613
refs/heads/master
2021-06-18T02:05:19.200858
2019-09-17T18:09:57
2019-09-17T18:09:57
185,334,185
0
0
null
null
null
null
UTF-8
Python
false
false
573
py
# Generated by Django 2.1.8 on 2019-06-21 17:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rodentdb', '0035_rodent_origin'), ] operations = [ migrations.AlterModelOptions( name='origin', options={'ordering':...
[ "hugo.cachitas@research.fchampalimaud.org" ]
hugo.cachitas@research.fchampalimaud.org
b914488248139a3f003a0b38e8d485dc08daed30
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Skimage_numpy/source/skimage/segmentation/_clear_border.py
a44f07859aa9bb75d87a4367a8a97fc326a07f6c
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
2,504
py
import numpy as np from ..measure import label def clear_border(labels, buffer_size=0, bgval=0, in_place=False): """Clear objects connected to the label image border. The changes will be applied directly to the input. Parameters ---------- labels : (N, M) array of int Label or binary ima...
[ "master@MacBook-Pro-admin.local" ]
master@MacBook-Pro-admin.local
66e328a42fc7eace24bdcf174e58a64c8389a711
337d17b845f5fdd7f32f6a0607e494eed488a601
/leetcode/405-convert-number-hexadecimal.py
3d8c5916e2972e42026261cbfded5ed8cf102540
[]
no_license
karsibali/solutions
e6130abe026a26558434239cde39c6a14a9712ba
4ba5d7ac41fecc87491cae2c88293bd798db31fd
refs/heads/master
2020-04-29T00:13:34.168323
2018-12-27T15:43:26
2018-12-27T15:43:26
175,686,183
1
0
null
2019-03-14T19:27:00
2019-03-14T19:27:00
null
UTF-8
Python
false
false
407
py
SYMS = '0123456789abcdef' class Solution(object): def toHex(self, num): if num < 0: num = (1 << 32) + num digits = [] while num > 0: digits.append(SYMS[num & 15]) num >>= 4 return digits and ''.join(reversed(digits)) or '0' if __name__ == '__mai...
[ "ozan.onay@gmail.com" ]
ozan.onay@gmail.com
cdcd7bc6c9374134941acf33f390338df306523c
19e3fc8e92b1430625987f97068889dfa94caafd
/concierge/endpoints/templates.py
62ce78437948765cd8443476228cbdc8fd8f3da0
[ "MIT" ]
permissive
creativcoder/concierge
167ac092d71b7757e181309e70e5c7600911796b
8f7bd8f45f8bb9ec2406cd5063df8480c1729d24
refs/heads/master
2020-12-25T23:08:19.094852
2016-03-24T07:10:22
2016-03-24T07:10:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,839
py
# -*- coding: utf-8 -*- import datetime import distutils.spawn import os.path import sys import concierge HEADER = """ # THIS FILE WAS AUTOGENERATED BY concierge on {date}. # IT MAKES NO SENSE TO EDIT IT MANUALLY! # # CONCIERGERC FILE: {rc_file} # # PLEASE VISIT https://github.com/9seconds/concierge FOR DETAILS. "...
[ "nineseconds@yandex.ru" ]
nineseconds@yandex.ru
b6a42690360b47fc27b39e105511259c5474aad7
241cc30b91e910caf6a9a47a156813ccc495e069
/blog/management/commands/sync_user_avatar.py
263734c963e382f9ba01c7abbdff9fc32a2c69f3
[ "MIT" ]
permissive
colinshin/DjangoBlog
9f430ffb3faae32553b2ec17a2351aa7dec36ce7
c6277d2c35b021806be0fa623f1451c201e9677d
refs/heads/master
2022-11-20T09:58:17.937199
2022-10-28T03:36:18
2022-10-28T03:36:18
266,242,440
1
0
MIT
2020-05-23T01:42:35
2020-05-23T01:42:34
null
UTF-8
Python
false
false
894
py
from django.core.management.base import BaseCommand from djangoblog.utils import save_user_avatar from oauth.models import OAuthUser class Command(BaseCommand): help = 'sync user avatar' def handle(self, *args, **options): users = OAuthUser.objects.filter(picture__isnull=False).exclude( ...
[ "liangliangyy@gmail.com" ]
liangliangyy@gmail.com
2b282ed9401f181196eddae1813de58d0ccb22f7
372af35b599f45b2cb2cc365afd2ece5c31ed188
/python/EE_Calulator/unit_attack_multiplyer.py
5ed28b8ae40a599b4e3425bb2b0010503d8b8976
[]
no_license
byrdie/EE-Calulator
0eea538d7c9b6ea475cb967951ba11b7b42a7dd5
8526bbb5d40887a63afcb0cadc6f0262bc336c27
refs/heads/master
2021-08-28T02:56:56.191092
2017-12-11T02:59:56
2017-12-11T02:59:56
112,962,480
1
0
null
null
null
null
UTF-8
Python
false
false
1,774
py
import csv import dbobject as db_obj import dbfamily as db_fam # import EE databases obj = db_obj.object_import() fam = db_fam.family_import() # enter indices of needed object fields name_index = 0 attack_index = 24 attackMode_index = 32 family_index = 2 names = [''] M = [] # attack multiplier matrix k_flag = F...
[ "roytsmart@gmail.com" ]
roytsmart@gmail.com
8d1731506c2ee63018c08b01f36688ce01f6e895
8afb5afd38548c631f6f9536846039ef6cb297b9
/MY_REPOS/Lambda-Resource-Static-Assets/2-resources/_External-learning-resources/_PYTHON/maths/next_bigger.py
390668adb236f2ce42e24ef6f8e54baa18b6c7cf
[ "MIT" ]
permissive
bgoonz/UsefulResourceRepo2.0
d87588ffd668bb498f7787b896cc7b20d83ce0ad
2cb4b45dd14a230aa0e800042e893f8dfb23beda
refs/heads/master
2023-03-17T01:22:05.254751
2022-08-11T03:18:22
2022-08-11T03:18:22
382,628,698
10
12
MIT
2022-10-10T14:13:54
2021-07-03T13:58:52
null
UTF-8
Python
false
false
1,688
py
""" I just bombed an interview and made pretty much zero progress on my interview question. Given a number, find the next higher number which has the exact same set of digits as the original number. For example: given 38276 return 38627. given 99999 return -1. (no such number exists) Condensed mathem...
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
64f08c07a8fdcdd9e63ac8ac69e8275d53666fa4
e4eabccc6d971289cf13653d1b6f290e39b870ab
/1619-path-crossing/path-crossing.py
ff2eb4223fd49dfd11600445aa563f25aee32bac
[]
no_license
HEroKuma/leetcode
128b38a9f559dc9e3f21c86a47ede67ad72f7675
b3045aaedbe98eddc7e4e518a03a9337a63be716
refs/heads/master
2023-01-03T12:12:31.018717
2020-11-01T16:56:47
2020-11-01T16:56:47
260,488,865
0
0
null
null
null
null
UTF-8
Python
false
false
1,218
py
# Given a string path, where path[i] = 'N', 'S', 'E' or 'W', each representing moving one unit north, south, east, or west, respectively. You start at the origin (0, 0) on a 2D plane and walk on the path specified by path. # # Return True if the path crosses itself at any point, that is, if at any time you are on a loc...
[ "zx8733520+github@gapp.nthu.edu.tw" ]
zx8733520+github@gapp.nthu.edu.tw
43fdde8988ff5a86173b9cbdcbd8468ed3c5ab0d
a4410fa34651da92dbce9ea0807d4a72a4802177
/python/hsfs/core/job.py
5876cc880a8082f141e02539d450831908da25cd
[ "Apache-2.0" ]
permissive
logicalclocks/feature-store-api
33797e2b4681d8948998d292a3ef8f551979ac08
3e67b26271e43b1ce38bd1e872bfb4c9212bb372
refs/heads/master
2023-09-01T03:41:47.750367
2023-08-30T18:25:59
2023-08-30T18:25:59
232,286,451
59
42
Apache-2.0
2023-09-13T11:52:55
2020-01-07T09:10:14
Python
UTF-8
Python
false
false
4,292
py
# # Copyright 2020 Logical Clocks AB # # 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 ag...
[ "noreply@github.com" ]
logicalclocks.noreply@github.com
da3e82dfc76303e43f05fa7cf081576377d5b684
d6b99ab3cc7108f4f0cc0be899641ac990e30db9
/multipleOf3or5/test.py
a42133ea858991b66c5473b82f3bb50e49e4df3b
[]
no_license
AsemAntar/codewars_problems
ef97e8a8058551276cdb943a07474cbeb9353c4d
c0ae0a769e16211c2b8e325d1116a6cebd3be016
refs/heads/master
2020-08-10T02:01:12.411030
2019-12-15T22:45:20
2019-12-15T22:45:20
214,229,082
0
0
null
null
null
null
UTF-8
Python
false
false
1,402
py
import unittest from multiple_of_3_or_5 import solutions, solution, math_solution class TESTSOLUTIONS(unittest.TestCase): def test_solutions(self): with self.subTest(): self.assertEqual(solutions(10), 23, 'should be 23') with self.subTest(): self.assertEqual(solutions(11), ...
[ "asemantar@gmail.com" ]
asemantar@gmail.com
8b2be3a0a6c6d7dd961060fb445080451144a87a
b8a13ecb7c0999954807e80c7470d8f752a3653b
/LearnPythonTheHardWay/Python3/ex19.py
c51d970fe06d475994d7b20c59cd0a164a7aa38d
[]
no_license
jbarcia/Python-Books
59ca3d7b7fb1f2c1e3d1659f846032382af557a9
2106a2e5f56cdd4261bf870798a0a427d6137249
refs/heads/master
2021-01-19T00:24:59.727307
2017-01-05T00:07:13
2017-01-05T00:07:13
62,562,390
2
0
null
null
null
null
UTF-8
Python
false
false
4,617
py
#!/bin/python3 # ex19: Functions and Variables # ex20: Functions and Files # Import argv variables from the sys module from sys import argv # Assign the first and the second arguments to the two variables script, input_file = argv # Define a function called print_call to print the whole contents of a # file, with...
[ "jbarcia99@yahoo.com" ]
jbarcia99@yahoo.com
1fc5b7e63761e961e0e4347e56f84fa5955cfd41
d799ab92fff30ec3b4efc5aa079628971451c17a
/coilmq/exception.py
8f90c7941d9f9f6b8499e17ead4cf48437773574
[]
no_license
LucaLanziani/coilmq
cf87a3daed400ccc64548873827f148097d7d780
dce6254801617b5612816dc8d95c3249a284e99a
refs/heads/master
2021-01-15T16:00:07.231608
2014-12-18T12:29:30
2014-12-18T12:29:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,336
py
""" Exception classes used by CoilMQ. CoilMQ exceptions extend C{RuntimeError} or other appropriate sub-classes. These will be thrown if there is not a more appropriate error class already provided by builtins. """ __authors__ = ['"Hans Lellelid" <hans@xmpl.org>'] __copyright__ = "Copyright 2009 Hans Lellelid" __lice...
[ "hans@xmpl.org" ]
hans@xmpl.org
0cbbf7ba00dc2b17bb9cbd8f94012fa86ce29902
d3efc82dfa61fb82e47c82d52c838b38b076084c
/Autocase_Result/Quote18/HQ_18_060.py
fa5796cbcf138713fd0b5fd81619997aa3d26089
[]
no_license
nantongzyg/xtp_test
58ce9f328f62a3ea5904e6ed907a169ef2df9258
ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f
refs/heads/master
2022-11-30T08:57:45.345460
2020-07-30T01:43:30
2020-07-30T01:43:30
280,388,441
0
0
null
null
null
null
UTF-8
Python
false
false
1,258
py
#!/usr/bin/python # -*- encoding: utf-8 -*- import time import sys sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api") from xtp_test_case import * sys.path.append("/home/yhl2/workspace/xtp_test/service") from log import * class HQ_18_060(xtp_test_case): def subOrderBook(self, Api, stk_info, case_name, rs_exp...
[ "418033945@qq.com" ]
418033945@qq.com
30d795f86d1c75a3ae7fdb57e194dc737a719ab3
871690900c8da2456ca2818565b5e8c34818658e
/dongbinbook/chapter16/35.py
9e8fbe3d8c9323eacf6a95aba7e56cc69392b67e
[]
no_license
kobeomseok95/codingTest
40d692132e6aeeee32ee53ea5d4b7af8f2b2a5b2
d628d72d9d0c1aef2b3fa63bfa9a1b50d47aaf29
refs/heads/master
2023-04-16T09:48:14.916659
2021-05-01T11:35:42
2021-05-01T11:35:42
311,012,364
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
from sys import stdin READ = lambda : stdin.readline().strip() n = int(READ()) dp = [0] * n dp[0] = 1 i2, i3, i5 = 0, 0, 0 nx2, nx3, nx5 = 2, 3, 5 for i in range(1, n): dp[i] = min(nx2, nx3, nx5) if dp[i] == nx2: i2 += 1 nx2 = dp[i2] * 2 if dp[i] == nx3: i3 += 1 nx3 = dp[...
[ "37062337+kobeomseok95@users.noreply.github.com" ]
37062337+kobeomseok95@users.noreply.github.com
96795c8782d229dd9979c2851965e6e213f5175b
6670bcf105cea48a407284f652192c3b43555941
/globalance/spiders/globalance.py
036b2b3a801b62a26eac5c117fa6dfe70c5d93d1
[]
no_license
daniel-kanchev/globalance
9850b41452ba4f4d251ab46c2790fefbbed83958
6bf1194045420bb18bd38a7351c1f9e188bd7cf3
refs/heads/main
2023-03-11T09:27:25.800554
2021-02-25T09:30:46
2021-02-25T09:30:46
342,191,400
0
0
null
null
null
null
UTF-8
Python
false
false
1,569
py
import scrapy from scrapy.loader import ItemLoader from itemloaders.processors import TakeFirst from datetime import datetime from globalance.items import Article class GlobalanceSpider(scrapy.Spider): name = 'globalance' start_urls = ['https://www.globalance.com/news-trends/'] def parse(self, response):...
[ "daniel.kanchev@adata.pro" ]
daniel.kanchev@adata.pro
2990723184aa412d234eade34f9964d6652e7fba
445166300ebfdfbbb13269b7186000f2e9b5d6cd
/bcbio/variation/bedutils.py
7d7befd9567e536514a249a6020346683857fb7c
[ "MIT" ]
permissive
matanhofree/bcbio-nextgen
0434675b90bc37fd25e5f59a0bed48bc6de592d3
e6938cedb20ff3b7632165105941d71189e46aac
refs/heads/master
2020-12-26T00:07:33.384662
2014-04-17T23:17:19
2014-04-17T23:17:19
17,914,760
1
0
null
null
null
null
UTF-8
Python
false
false
1,886
py
"""Utilities for manipulating BED files. """ import os import shutil from bcbio import utils from bcbio.distributed.transaction import file_transaction from bcbio.pipeline import config_utils from bcbio.provenance import do from bcbio.variation import vcfutils def clean_file(in_file, data, prefix=""): """Prepare ...
[ "chapmanb@50mail.com" ]
chapmanb@50mail.com
5096e1124ae1ec023777ece46d421a3a04d4c6a7
921481680f0821fb377799013395f63c00c74a13
/client/commands/start.py
d4db36062e2c02e84c45ee4b43fbe991ffc6703e
[ "MIT" ]
permissive
jpmondet/pyre-check
026302aed6eed15312541ecce5c6c959ca5f1720
d8e916f143af55a013f56510730544afd639e977
refs/heads/master
2022-12-27T22:56:55.080300
2020-10-16T01:21:57
2020-10-16T01:23:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,475
py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import errno import logging import os from logging import Logger from typing import List, Optional from .. import ( command_arguments, ...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
cf393c7ba87cbe283a5ea1a3cc6842334c93573b
38258a7dd9acbfb7adf72983015de68a948a4826
/B_1000~/B_1920.py
4d9a17f2cc8b86303296610a604dd878094b257f
[]
no_license
kangsm0903/Algorithm
13a7fe5729039a1d0ce91a574c4755a8a92fb02b
7d713d1c9e2e4dc30141d4f409ac1430a357065b
refs/heads/master
2022-10-04T00:33:49.247977
2022-09-26T12:51:16
2022-09-26T12:51:16
219,265,010
5
1
null
null
null
null
UTF-8
Python
false
false
603
py
# Binary Search import sys N=int(sys.stdin.readline()) case=list(map(int,sys.stdin.readline().split())) case.sort() # 오름차순 1 2 3 4 5 M=int(sys.stdin.readline()) case2=list(map(int,sys.stdin.readline().split())) def Binary_Search(arr,value): start=0 end=len(arr) while True: mid=(start+end)//2 ...
[ "kangsm0903@naver.com" ]
kangsm0903@naver.com
eaae2bac105eae300e5e56925168de0fe36418da
f8ad6963bfc851657ea50c6a036cfad29cdd7f60
/Books/GodOfPython/P15_Thread/direct/num2_1.py
22db2b5b8f96c51f5cf87484cecfceb3e24d7c60
[]
no_license
foru120/PythonRepository
e1ab0265c0f50ef2e9acdf7447237c913560692b
db6b6be0f9fb91b0a81a3b6a2ec5631daab10f98
refs/heads/master
2021-01-01T06:53:11.728109
2019-04-25T13:52:50
2019-04-25T13:52:50
97,541,222
4
0
null
null
null
null
UTF-8
Python
false
false
447
py
import threading import time class client_thread(threading.Thread): def __init__(self, word, sec): threading.Thread.__init__(self) self.word = word self.sec = sec def run(self): while True: print(self.word) time.sleep(self.sec) client_A = client_thread(...
[ "broodsky1122@hanmail.net" ]
broodsky1122@hanmail.net
e820fc6eb664ddd70910f830cfc698c1046c2b27
ee3039b27532d09c0c435ea7b92e29c70246c66e
/opencv/learnOpencv/091-120/107-Brisk特征提取与描述子匹配.py
2445870091acd0512850103849db6de6ecba50d4
[]
no_license
Alvazz/fanfuhan_ML_OpenCV
e8b37acc406462b9aaca9c5e6844d1db5aa3c944
dacfdaf87356e857d3ff18c5e0a4fd5a50855324
refs/heads/master
2022-04-05T06:15:31.778227
2020-02-07T01:40:07
2020-02-07T01:40:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
598
py
""" Brisk特征提取与描述子匹配 """ import cv2 as cv box = cv.imread("images/box.png") box_in_scene = cv.imread("images/box_in_scene.png") # 创建Brisk特征检测器 brisk = cv.BRISK_create() # 得到特征关键点和描述子 kp1, des1 = brisk.detectAndCompute(box, None) kp2, des2 = brisk.detectAndCompute(box_in_scene, None) # 暴力匹配 bf = cv.BFMatcher(cv.NORM...
[ "gitea@fake.local" ]
gitea@fake.local
55620ebc9837797070670695ca2f01c1d53aa79c
e1bdbd08afec39c1ee56a3885a837ec966543a2d
/Section_05_code/function_composition.py
94b9cab36e24c24e98e0c20dfe7503c72a40805b
[ "MIT" ]
permissive
PacktPublishing/Python-Machine-Learning-Solutions-V-
507bd8b285f051d2761a5348e4a8c9a50329287a
8bb80a43a7c64032c25c1023faaa29bbfbd39d45
refs/heads/master
2023-02-28T05:19:49.782472
2021-01-20T09:11:09
2021-01-20T09:11:09
188,817,647
0
2
null
null
null
null
UTF-8
Python
false
false
838
py
import numpy as np from functools import reduce def add3(input_array): return list(map(lambda x: x+3, input_array)) def mul2(input_array): return list(map(lambda x: x*2, input_array)) def sub5(input_array): return list(map(lambda x: x-5, input_array)) def function_composer(*args): return reduce(lamb...
[ "sonalis@packtpub.com" ]
sonalis@packtpub.com
02b1d509f61b8aa6d56212bae696130cbbe68648
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/106/usersdata/250/51843/submittedfiles/questao2.py
ba338ef6887469e0b298d1b93d06e56af4237019
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
580
py
# -*- coding: utf-8 -*- a1=int(input('1° numero da aposta:')) a2=int(input('2° numero da aposta:')) a3=int(input('3° numero da aposta:')) a4=int(input('4° numero da aposta:')) a5=int(input('5° numero da aposta:')) a6=int(input('6° numero da aposta:')) b1=int(input('1° numero sorteado:')) b2=int(input('2° numero sortead...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
e5f90e811df9ccce1e34f936f9d73c5858150bb0
abc4a73e5f93ebf90be946b95ef215e32c823353
/colour/models/rgb/datasets/color_match_rgb.py
b66710a32c654b51f587f18453877293617fbaf5
[ "BSD-3-Clause" ]
permissive
OmarWagih1/colour
69f5108e83ec443551c5593c066bcd4e3596060f
bdc880a2783ff523dafb19f1233212dd03a639bd
refs/heads/develop
2021-04-14T20:30:29.635916
2020-07-26T05:46:00
2020-07-26T05:46:00
249,263,927
0
0
BSD-3-Clause
2020-03-22T20:11:06
2020-03-22T20:11:06
null
UTF-8
Python
false
false
2,658
py
# -*- coding: utf-8 -*- """ ColorMatch RGB Colourspace ========================== Defines the *ColorMatch RGB* colourspace: - :attr:`colour.models.COLOR_MATCH_RGB_COLOURSPACE`. References ---------- - :cite:`Lindbloom2014a` : Lindbloom, B. (2014). RGB Working Space Information. Retrieved April 11, 2014, from...
[ "thomas.mansencal@gmail.com" ]
thomas.mansencal@gmail.com
58833472273c67331ab27281f4677f0b6a75008b
a934a51f68592785a7aed1eeb31e5be45dd087d3
/Learning/Network_process_WA/Day1/2020_Jul23/get_password.py
cc1afee02d5db35f9571e93b5029364eb37a9cc7
[]
no_license
nsshayan/Python
9bf0dcb9a6890419873428a2dde7a802e715be2b
0cf5420eecac3505071326c90b28bd942205ea54
refs/heads/master
2021-06-03T18:41:06.203334
2020-09-28T07:28:48
2020-09-28T07:28:48
35,269,825
1
0
null
null
null
null
UTF-8
Python
false
false
196
py
import getpass username = input("Enter username: ") password = getpass.getpass("Enter password: ") print(f"Username {username}, Password is {password}") print("Logged in as", getpass.getuser())
[ "nsshayan89@gmail.com" ]
nsshayan89@gmail.com
7d2635b73bf9e628176bb913afe718340253d357
1bad7fc3fdd9e38b7ff50a7825565b7b190fa5b7
/qrback/migrations/0034_auto_20201015_0106.py
44ea931eaea9adc4f2daa7b21b8fd04f9380a3fa
[]
no_license
furkankykc/QRforAll
d4be43e403d75c86436ed9d9e2b222619ecf92b1
6cc0555fdc27797586628f2012523dce5212b321
refs/heads/master
2023-07-10T13:02:27.618792
2021-08-05T07:22:29
2021-08-05T07:22:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
711
py
# Generated by Django 3.0.8 on 2020-10-14 22:06 from django.db import migrations, models import qrback.models class Migration(migrations.Migration): dependencies = [ ('qrback', '0033_auto_20201005_1411'), ] operations = [ migrations.AddField( model_name='company', ...
[ "furkanfbr@gmail.com" ]
furkanfbr@gmail.com
ff943da6f0fe8957f24c6671b6c35d37ca590f9c
1d502006c95de319b9e629ba9bea08823e689679
/bndl/compute/tests/test_reduce_by_key.py
21b7c5380fc085933ce6b5f7f78fa8f3d4a9a9d0
[ "Apache-2.0" ]
permissive
bndl/bndl
0e8dcb959b3a9dd603a006e4e6ae073ae6143ddf
e9c49c9844e7c4d6ac0c9491c02122098e22153d
refs/heads/master
2022-12-10T18:11:17.877017
2022-03-20T18:23:26
2022-03-20T18:23:26
72,571,767
1
2
Apache-2.0
2022-12-05T22:31:45
2016-11-01T20:01:19
Python
UTF-8
Python
false
false
1,110
py
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
[ "frens.jan.rumph@target-holding.nl" ]
frens.jan.rumph@target-holding.nl
23ee0c538db3ab215488797a03c1787eba16cd76
ea99544eef7572b194c2d3607fa7121cb1e45872
/apps/notification/migrations/0002_auto_20190407_0310.py
8ab14bb16d0e8a9f752f89dd4da047f06b6ceff0
[]
no_license
ash018/FFTracker
4ab55d504a9d8ba9e541a8b682bc821f112a0866
11be165f85cda0ffe7a237d011de562d3dc64135
refs/heads/master
2022-12-02T15:04:58.543382
2019-10-05T12:54:27
2019-10-05T12:54:27
212,999,035
0
0
null
2022-11-22T03:58:29
2019-10-05T12:53:26
Python
UTF-8
Python
false
false
1,104
py
# Generated by Django 2.2 on 2019-04-07 03:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('task', '0001_initial'), ('notification', '0001_initial'), ...
[ "sadatakash018@gmail.com" ]
sadatakash018@gmail.com
02d7538ca267d6d32fa4370b3f204473841b89d0
05dc7ec5341ff65c92a6b9c347ac3203479b6e64
/src/alveos/wsgi.py
a5c96796ac70706b8c3b7a681379edf23cd8c89d
[ "BSD-3-Clause" ]
permissive
tykling/alveos
7542d15dbdf0ef6df53fd7b0a66f49929f1c7681
0758a1505bf1696a48c02d14c1fefe6633c35a97
refs/heads/master
2021-06-08T15:41:34.245465
2016-12-05T09:27:45
2016-12-05T09:27:45
74,826,012
1
0
null
null
null
null
UTF-8
Python
false
false
390
py
""" WSGI config for alveos project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTI...
[ "thomas@gibfest.dk" ]
thomas@gibfest.dk
17c020ac1425c98eb76a34fe9d863373305d7b2c
e67a0139092d3389fea0075de9ecf12ab209649f
/scripts/addons_extern/AF_3dview_specials/__init__.py
d7533a07f8e4f96b91ac55f60f211be8beb49c96
[]
no_license
amagnoni/blenderpython
9fe864d287f992b7cd71cd584fca4a501a6ac954
d2fec1a35369b7b171e2f0999196b87e242e08f3
refs/heads/master
2021-01-18T11:28:55.372759
2015-10-17T20:16:57
2015-10-17T20:16:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,841
py
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
[ "meta.androcto1@gmail.com" ]
meta.androcto1@gmail.com
f4ef86db426b803bbb16c0ac7b8b53b436cc1d88
55a281d728541773e6eda896599c0cc48dfe5156
/Advanced/Functions Advanced/4. Even or Odd.py
2bbf52c69c734eb8c90fc21f076ff63127380a23
[]
no_license
dhariskov/python-advanced
c0bebd937f3849dd62ae2834cbdf9f8100b2bb56
4725070c960d3c234ed2f20ff2156e2f89514a02
refs/heads/master
2022-12-04T22:40:18.485552
2020-08-28T08:29:25
2020-08-28T08:29:25
288,775,775
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
def even_odd(*args): command = args[-1] ll = args[:len(args)-1:] if command == "odd": sum_odd = list(filter(lambda x: x % 2 == 1, ll)) return sum_odd elif command == "even": sum_even = list(filter(lambda x: x % 2 == 0, ll)) return sum_even print(even_odd(1, 2, 3, 4, 5, ...
[ "dhariskov@gmail.com" ]
dhariskov@gmail.com
546c1c9e2e3477c864d0cc64cb3b3282e66ea1de
9fb0500924f754425005d3ac92a4be538f203783
/gaphor/UML/interactions/tests/test_executionspecification.py
da4a80c774098fc9232dc835753437caa641e3fd
[ "Apache-2.0" ]
permissive
seryafarma/gaphor
491f57214c5392ad408cc7530424d99f7f81346f
f85998ae3a3ec5381b25cda60d89a47383c4fd2e
refs/heads/master
2022-09-26T09:13:48.976569
2020-05-30T20:03:27
2020-05-30T20:03:39
268,274,153
0
0
Apache-2.0
2020-05-31T12:21:13
2020-05-31T12:21:13
null
UTF-8
Python
false
false
6,771
py
from gaphas.canvas import Canvas, instant_cairo_context from gaphor import UML from gaphor.diagram.shapes import DrawContext from gaphor.diagram.tests.fixtures import allow, connect, disconnect from gaphor.UML.interactions.executionspecification import ExecutionSpecificationItem from gaphor.UML.interactions.lifeline i...
[ "gaphor@gmail.com" ]
gaphor@gmail.com
3383f2959f626f37b6ab18cc8a5d8816397abc6c
9f0babb96bb327aaa859aeb7950fb6e5b2fca73d
/HIGHLIGHTS/freeSpacePropagateModes.py
2dfd7d288377348cfa03d26e0b905dcbe8b3f681
[ "MIT" ]
permissive
srio/shadow3-scripts
d39e750774ad8f1c551e9965d4402b3fcb2b043d
7dd9b4424f47e6d78db9fd6fcb5a3db788b062f7
refs/heads/master
2022-09-18T03:37:16.480163
2022-09-02T13:43:46
2022-09-02T13:43:46
43,300,813
1
0
null
null
null
null
UTF-8
Python
false
false
2,864
py
__author__ = 'mglass' from srwlib import * import sys from comsyl.autocorrelation.AutocorrelationFunction import AutocorrelationFunction from comsyl.autocorrelation.AutocorrelationFunctionPropagator import AutocorrelationFunctionPropagator from comsyl.parallel.utils import isMaster, barrier from comsyl.utils.Logger im...
[ "srio@esrf.eu" ]
srio@esrf.eu
9820f4e56513b1d24f74f5ae3cc92e63e23f2d7a
2c5073c0140b3366b94866d50f8b975c926a529b
/venv/lib/python3.9/site-packages/mediapipe/calculators/util/collection_has_min_size_calculator_pb2.py
12f5045ea54268b2af3cf6362f92c5e865b13e3f
[]
no_license
geekboi777/Volumegesture
435c2752d107ac6915919e79bcb63fb0b85f6e9e
3cc35f74533e26588a606154897f9ded4801f0ce
refs/heads/master
2023-06-24T19:09:07.138900
2021-07-30T23:22:18
2021-07-30T23:22:18
390,512,309
1
0
null
null
null
null
UTF-8
Python
false
true
3,920
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: mediapipe/calculators/util/collection_has_min_size_calculator.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobu...
[ "geekboi777@github.com" ]
geekboi777@github.com
0b38a6f4b4ac235595e3a0c19b632b9b0a49a262
f090c3e0faa70cf0ef7c4be99cb894630bce2842
/scripts_201410/simpleMeasurements/micromotioncomp/scanEy.py
4e93efb76ce8b5265babb5a67054ba26b52c4464
[]
no_license
HaeffnerLab/resonator
157d1dc455209da9b7de077157bda53b4883c8b7
7c2e377fdc45f6c1ad205f8bbc2e6607eb3fdc71
refs/heads/master
2021-01-09T20:48:03.587634
2016-09-22T18:40:17
2016-09-22T18:40:17
6,715,345
2
1
null
null
null
null
UTF-8
Python
false
false
1,147
py
from FFT import measureFFT import numpy as np import labrad import datetime now = datetime.datetime.now() date = now.strftime("%Y%m%d") cxn = labrad.connect() dv = cxn.data_vault ds = cxn.resonatordac #rs = cxn.rohdeschwarz_server #rs.select_device('resonator-pc GPIB Bus - USB0::0x0AAD::0x0054::102549') amplMin = -....
[ "soenkeamoeller@gmail.com" ]
soenkeamoeller@gmail.com
6605b246a60796200540bfea2493f300ae9e79fe
7cebfa2066e679e19993a5507e59d1979df3d4a8
/1_Basics/9_revamp.py
7d04e2986df78e238ca677bcc1fb34fbcad2937f
[ "Apache-2.0" ]
permissive
Arunken/PythonScripts
833e9e43ccb29234a206027f1cda1d978718d5eb
702d0a3af7a9be3311f9da0afc5285d453f15484
refs/heads/master
2022-12-24T18:50:43.672779
2021-05-13T11:31:51
2021-05-13T11:31:51
237,631,027
0
0
Apache-2.0
2022-12-08T00:47:45
2020-02-01T15:01:20
Python
UTF-8
Python
false
false
1,196
py
# -*- coding: utf-8 -*- """ Created on Sat Jan 20 14:18:16 2018 @author: Arken """ # splitting a sentence and storing it in a list or tuple a = ' python programming ' a = a.strip() b = list(a) #saves individual characters separately in a list. c = tuple(b) # The same goes for tuple. tup = a.split() # split in to in...
[ "mail.arunken@gmail.com" ]
mail.arunken@gmail.com
71b56e58f27fc67cf47cecacfa2c58b0264f5054
f476cdf5a27e7768238854c5e7f24e3650ffeebc
/Codeforces/1409A.py
b5d64d8e69939839e4534b9d1c0c62fc669fc834
[]
no_license
masudurHimel/Problematic_Adventure
0d1a8b0d3cc6339d3d9a4f8ed9be9c1635ab290f
3f32f5195c497e1c44d1a37c80ea644c31a53688
refs/heads/master
2023-05-01T23:34:15.697852
2023-04-28T09:30:00
2023-04-29T09:22:33
226,885,967
0
1
null
null
null
null
UTF-8
Python
false
false
305
py
n = int(input()) for i in range(n): a, b = map(int, input().split()) if a == b: print(0) continue diff_abs = abs(a-b) step = 0 for j in range(10, 0, -1): if diff_abs//j != 0: step += diff_abs//j diff_abs = diff_abs % j print(step)
[ "masudurhimel@gmail.com" ]
masudurhimel@gmail.com
dcde52d8d1e7cda7719a66c2bc0f132c213960a8
43ff15a7989576712d0e51f0ed32e3a4510273c0
/app/migrations/0010_auto_20160712_1040.py
e5c34056b176ac89bbcdf1bcefd4ce23094e8c03
[]
no_license
v1cker/kekescan
f2b51d91a9d6496e2cdc767eb6a600171f513449
3daa1775648439ba9e0003a376f90b601820290e
refs/heads/master
2020-09-19T16:26:56.522453
2017-06-15T02:55:24
2017-06-15T02:55:24
94,495,007
6
3
null
null
null
null
UTF-8
Python
false
false
777
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-07-12 02:40 from __future__ import unicode_literals import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0009_auto_20160712_1037'), ] operations = [ migration...
[ "liyueke@huobi.com" ]
liyueke@huobi.com
ebf4bdc53c74f65f3d597c85336264c25abf9174
242da8865e037f9fffb76269c3acddb73ce9fa14
/packages/pyright-internal/src/tests/samples/tuples10.py
f111dbbb6122c9440b75b9f703c03c87600c2765
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
khyveasna11111908/pyright
f42eceae044f6fbc27552c1765b03ebd345a451c
493d47807b96137995e4bb6ca341930e4de911f9
refs/heads/main
2023-08-30T00:08:36.191799
2021-09-25T19:17:13
2021-09-25T19:17:13
410,361,483
1
1
NOASSERTION
2021-09-25T19:15:23
2021-09-25T19:15:22
null
UTF-8
Python
false
false
721
py
# This sample tests that inferred types for tuples strip # literals under the appropriate circumstances. from typing import List, Literal, Tuple a1 = (1, 2) t1: Literal["tuple[Literal[1], Literal[2]]"] = reveal_type(a1) a2 = list((1, 2)) t2: Literal["list[int]"] = reveal_type(a2) a3: List[Literal[1]] = list((1,))...
[ "erictr@microsoft.com" ]
erictr@microsoft.com
b9e8aa1f4c274670cb8f1b15a15dd85cd3bc852c
5341e31c0a210bd9449dcc4aa63d5ce5ab161e3a
/bin/cron_command.py
b1d4854f6c919ff2a88f67a2816330f03654c2ed
[ "MIT" ]
permissive
ipashchenko/watcher
efc347cd261c1483f4bc18cd030d3d42d09422d9
ab55615b0ad8d23f98317bd49c2c9291c4add69b
refs/heads/master
2021-01-10T10:20:09.504787
2016-01-25T12:27:44
2016-01-25T12:27:44
49,568,390
0
0
null
null
null
null
UTF-8
Python
false
false
3,122
py
#!/usr/bin python # -*- coding: utf-8 -*- import os import sys import shutil import smtplib import netrc from difflib import context_diff from email.mime.application import MIMEApplication from filecmp import cmp from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from os.path import ba...
[ "in4pashchenko@gmail.com" ]
in4pashchenko@gmail.com
586847bd394d5bf213a98ea55153760e22ad456c
2b8fe23680fb8c6596c8b4fd53a2547e32e84617
/1-DS-Array-String/String_Compress.py
43bcad128033c460e03812bfdc4ce87e60f0064c
[]
no_license
jigarshah2811/Python-Programming
b441c4815f80bef4d17611cdea851254c59739a9
a60a11ad29e9dde9e9960006f887d9b66d29e427
refs/heads/master
2022-11-20T18:09:11.955564
2022-11-04T05:58:19
2022-11-04T05:58:19
67,324,037
1
0
null
null
null
null
UTF-8
Python
false
false
1,822
py
""" https://nbviewer.org/github/donnemartin/interactive-coding-challenges/blob/master/arrays_strings/compress/compress_challenge.ipynb Problem: Compress a string such that 'AAABCCDDDD' becomes 'A3BC2D4'. Only compress the string if it saves space. """ import unittest class TestSolution(unittest.TestCase): def t...
[ "jshah@pinterest.com" ]
jshah@pinterest.com
94ec424c89decabfdda8c83f68cfd5daceac066b
9c7581c3b862174878a5e71609f94b3e5a2de5c9
/CursoEmVideo/Aula20/ex097.py
db52582c0213396493f58974d80d72cb11e57046
[ "MIT" ]
permissive
lucashsouza/Desafios-Python
6d9fdc3500e0d01ce9a75201fc4fe88469928170
abb5b11ebdfd4c232b4f0427ef41fd96013f2802
refs/heads/master
2020-06-21T16:49:32.884025
2019-07-23T01:23:07
2019-07-23T01:23:07
143,765,113
0
0
null
null
null
null
UTF-8
Python
false
false
392
py
# Exercicio 097 - Função para texto ''' Faça um programa que tenha uma função chamada escreva(), que receba um texto qualquer como parâmetro e mostre uma mensagem com o tamanho adaptável ''' def mensagem(txt): tam = len(txt) print('~'*tam) print(txt) print('~'*tam, '\n') mensagem('Hello, worl...
[ "noreply@github.com" ]
lucashsouza.noreply@github.com
b0acf56f2da7e65ce7b8ef6af2945ed5cf4c5bd0
4abce782dad606b10d7646763b21277689e8cedd
/async-pydevd/tests/test_generate.py
552980c42eaf9220bb5c76d07dd48fff99bf2108
[]
no_license
wordhui/pycharm-evaluate-async-code
8cca3ee4a5b74eff1073a442c1f014de30b02b5b
64ccd29b0ee286ad6fe45172334926e9f517d162
refs/heads/master
2023-05-14T18:10:20.786741
2021-06-08T07:04:05
2021-06-08T07:04:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
from async_pydevd import FILES, generate def test_generate(): result = generate() assert '"""' not in result for f in FILES: normalized = ( f.read_text("utf-8").replace('"""', "'''").replace(" # pragma: no cover", "").strip() ) assert normalized in result asser...
[ "1998uriyyo@gmail.com" ]
1998uriyyo@gmail.com
ed4d0a72fc25b24f5a5ba572bb628ea20168a043
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_friends.py
120a772768eee00c88d6902834549d9e7b6fe04a
[ "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
238
py
from xai.brain.wordbase.verbs._friend import _FRIEND #calss header class _FRIENDS(_FRIEND, ): def __init__(self,): _FRIEND.__init__(self) self.name = "FRIENDS" self.specie = 'verbs' self.basic = "friend" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
32b70266bcc9034ed202f467bfd9da532c09fc20
edbb5293b14fae626ad38f0087e66c996acd80de
/run.py
3a094f50bdc2aa60b87f6bb15133904c69f742fc
[]
no_license
furuiyang0715/sync_services
4d8b2f425814920e409580080d946b1437ed17b3
95bb50180129ddd4cc78ef086d5e415f2740ea2b
refs/heads/master
2020-06-12T10:31:57.314671
2019-07-12T02:00:07
2019-07-12T02:00:07
194,272,233
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
#!/usr/bin/env python3 # coding=utf8 import subprocess def start(): cmd = """ python index_run.py start; python finance_run.py start; python calendars_run.py start; """ subprocess.getoutput(cmd) def stop(): cmd = """ python index_run.py stop; python finance_run.py stop; python calendar...
[ "furuiyang0715@gmail.com" ]
furuiyang0715@gmail.com
460b589029a28f4fa3fa3f781280627857374c0b
c6f14a40b13121e8266882a38fa7ff3ff6c943a2
/apps/ndvi_anomaly/utils.py
d2ed9a3b5d738907c70718714555adcf22309a69
[ "Apache-2.0" ]
permissive
gijs/data_cube_ui
443572c7b25734a13f576ea284687145bb3e72cf
831f4d4f1fe44d7cb81caebf241e3d2add5d7b5d
refs/heads/master
2021-01-17T11:56:21.657787
2017-01-20T23:53:08
2017-01-20T23:53:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,120
py
# Copyright 2016 United States Government as represented by the Administrator # of the National Aeronautics and Space Administration. All Rights Reserved. # # Portion of this code is Copyright Geoscience Australia, Licensed under the # Apache License, Version 2.0 (the "License"); you may not use this file # except in c...
[ "alfredo.h.delos_santos@ama-inc.com" ]
alfredo.h.delos_santos@ama-inc.com
b0098d8416b34e015d6c88c4e7f600a0ab479460
98cd5ddf45a73aea64bbfac0c0104829d7231b81
/S - Sound Jaws-Image/info.py
f063b8a755be8e9c8b7362e3492b7a13b012ff08
[]
no_license
atheis4/ETC_Modes_Extra
42508d523cfe632a3335e29f6e1e40af91df231b
d0ce221562105382a7a73cc6d280f4ad0eabf6f3
refs/heads/master
2022-04-04T11:15:07.335910
2020-01-03T20:27:32
2020-01-03T20:27:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
name = "S - Sound Jaws-Image" description = "Oscilloscope teeth with background image cycle and tooth color cycle" knob1 = "Clench" knob2 = "Number of Teeth" knob3 = "Tooth Shape" knob4 = "Colorshift Speed" released = "September 7 2017"
[ "media@critterandguitari.com" ]
media@critterandguitari.com
80cb84142bdc36f93b641768e87520357a096f0a
01e82d70ee62824fcad3d2df57411c2ff620d6e0
/data/imsitu_loader.py
ddd1505a8b00336a0b571a85c31dd6cd54b6752c
[ "MIT" ]
permissive
kyoungrok0517/verb-attributes
3a54c99a096d4252116748dfb1188045f4a2dd70
a04931e3b2ef5be859bdb4c0f123148b194c9d42
refs/heads/master
2020-03-21T05:28:10.026977
2018-03-20T16:36:25
2018-03-20T16:36:25
138,162,475
2
0
null
2018-06-21T11:38:47
2018-06-21T11:38:47
null
UTF-8
Python
false
false
6,844
py
""" Dataset and dataloader for imsitu experiments. This allows us to: 1) Finetune on Imsitu 2) Finetune on a zero shot setting """ import spacy import torch import os from config import IMSITU_TRAIN_LIST, IMSITU_VAL_LIST, IMSITU_TEST_LIST, IMSITU_IMGS from torchvision.transforms import Scale, RandomCrop, CenterCrop, ...
[ "rowanz@cs.washington.edu" ]
rowanz@cs.washington.edu
5d91735118f1452267c4e02054d07b1411cadc2e
2624007528d2e37f2a2460c7a2d2964890deed16
/synapse/rest/client/knock.py
0152a0c66a509b24012d562c6d0f97a525001cbb
[ "Apache-2.0" ]
permissive
matrix-org/synapse-dinsic
a5386060fb6a9575dbec86547fd0943e46d63ac7
3da3ecc22d36f129eade97b679e1791176e3d9fa
refs/heads/dinsic
2023-02-19T22:15:54.550679
2022-07-07T13:24:51
2022-07-07T13:24:51
206,570,942
8
7
Apache-2.0
2023-02-08T02:50:31
2019-09-05T13:29:44
Python
UTF-8
Python
false
false
3,759
py
# Copyright 2020 Sorunome # Copyright 2020 The Matrix.org Foundation C.I.C. # # 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...
[ "noreply@github.com" ]
matrix-org.noreply@github.com
8c3f4059018913519c05f57b490e763a80e25559
bd2b8551aca9728d1dd37a6f2ac988f03e93b2bf
/120_SquareRemainders_(MakeFaster).py
9f6fb23b41b0421fb2c8235d29a7060338585464
[]
no_license
acganesh/euler
c7fc6bb0873df4474765598a2933baf413d094e7
1a870e9ecfaec770d162eec32dbaa327269ac5ce
refs/heads/master
2020-06-25T13:07:59.976765
2019-10-15T00:19:41
2019-10-15T00:19:41
199,316,809
2
0
null
null
null
null
UTF-8
Python
false
false
839
py
from datetime import datetime s = datetime.now() cache = [[-1]*(2*a**2) for a in range(1000+1)] def cache_pow(a, n, mod): try: val = cache[a][n] except: print 'failed', a, n if val != -1: return val else: val = pow(a, n, mod) cache[a][n] = val return val def remainder(a, n): mod = a**2 val = (pow(...
[ "acganesh@stanford.edu" ]
acganesh@stanford.edu
34c460b320afaa0d7a0a6778bb245ac99c089f7a
205fe9835ee9ae9dee72635c870bd836f911d331
/src/cloudx/migrations/0002_auto_20170903_1445.py
0c823947ecfad2dc0289f569f91dc98f706f9f97
[]
no_license
msrshahrukh100/testxml
8bc9b2f5e40dd3878499a988579a3e76beec6582
30fa9523fd8d507964b127a640949534515c5b2e
refs/heads/master
2021-01-22T06:11:59.410452
2017-09-03T18:43:54
2017-09-03T18:43:54
102,286,417
0
0
null
null
null
null
UTF-8
Python
false
false
451
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-09-03 14:45 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cloudx', '0001_initial'), ] operations = [ migrations.AlterField( ...
[ "msr.concordfly@gmail.com" ]
msr.concordfly@gmail.com
32471ddbd0a025de389d955a990ab2f6f3e858c3
94f180b4b0b0a699d6948fd5e1216d16d6735edc
/source-code/Map Sum Pairs 677.py
4e7990ac2f79efb70905565c8fdeeb02907fc31e
[ "MIT" ]
permissive
ttungl/Coding-Interview-Challenge
7093b7f8da0c03abaf2f61340384cdc15c7a31e7
d80c3e15468d50b42ee53fcc73e9326c6c816495
refs/heads/master
2021-09-15T05:25:27.192040
2018-05-26T19:02:33
2018-05-26T19:02:33
115,586,997
0
0
null
null
null
null
UTF-8
Python
false
false
2,481
py
# 677. Map Sum Pairs # ttungl@gmail.com # Implement a MapSum class with insert, and sum methods. # For the method insert, you'll be given a pair of (string, integer). The string represents the key and the integer represents the value. If the key already existed, then the original key-value pair will be overridden to ...
[ "noreply@github.com" ]
ttungl.noreply@github.com
1d110680a248ff7b57501497a49da59bfba00b86
a9fd2e227f7f529fbec50caa82d5962019c5f3ee
/account/views.py
a0e85245023aad2768d6dcdd5e24d8ad8acb1832
[]
no_license
jsparmani/TeekaSchedule
1477f3b38aec484c77276fc0f731c85c12fa34d2
76c01dd742f692cfd50c299807413b99a20c5535
refs/heads/master
2020-07-15T06:36:11.500851
2019-09-01T05:46:57
2019-09-01T05:46:57
205,501,697
0
0
null
null
null
null
UTF-8
Python
false
false
3,949
py
from django.shortcuts import render, redirect from . import forms import random from . import models from django.contrib.auth import authenticate from django.contrib.auth import login as auth_login from django.contrib.auth.models import User from datetime import datetime from location import models as loc_models import...
[ "jsparmani@gmail.com" ]
jsparmani@gmail.com
3f4cb50a830c6cc835b54c6700548fc256c8fb0b
5ef46abb67b07646537b4fc1d5880fdc91e412b2
/Sea/adapter/couplings/Coupling2DCavities3D.py
01b99fed556d8c6968ba029fb6095735b7343e64
[]
no_license
python-acoustics/Sea
3f13f8d0d39200a4b35f9edfe8e3a7b2783c6966
e30b6dc59d8ab02cd41924f7b6c14d0d1e77e19e
refs/heads/master
2016-09-05T16:59:01.602835
2013-04-16T15:29:54
2013-04-16T15:29:54
7,466,520
7
2
null
null
null
null
UTF-8
Python
false
false
1,060
py
import numpy as np import Sea from Coupling import Coupling class Coupling2DCavities2D(Coupling): """ Coupling for cavity2D to cavity transmission. """ @property def impedance_from(self): """ Choses the right impedance of subsystem_from. Applies boundary conditions corr...
[ "fridh@fridh.nl" ]
fridh@fridh.nl
829b5c5c784978dd392e43c8f6430520201503fe
2a3743ced45bd79826dcdc55f304da049f627f1b
/venv/lib/python3.7/site-packages/bokeh/util/tests/test_dependencies.py
f27c2fd625febb1ffaad405c649ce2d9ae7294d0
[ "MIT" ]
permissive
Dimasik007/Deribit_funding_rate_indicator
12cc8cd7c0be564d6e34d9eae91940c62492ae2a
3251602ae5249069489834f9afb57b11ff37750e
refs/heads/master
2023-05-26T10:14:20.395939
2019-08-03T11:35:51
2019-08-03T11:35:51
198,705,946
5
3
MIT
2023-05-22T22:29:24
2019-07-24T20:32:19
Python
UTF-8
Python
false
false
2,956
py
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
[ "dmitriy00vn@gmail.com" ]
dmitriy00vn@gmail.com
5f93747a95298ff1f96092486f57e56a702b47cf
9f1039075cc611198a988034429afed6ec6d7408
/tensorflow-stubs/python/keras/engine/training.pyi
87a6a2450c166433875a253c15926a2225a32a76
[]
no_license
matangover/tensorflow-stubs
9422fbb1cb3a3638958d621461291c315f9c6ec2
664bd995ef24f05ba2b3867d979d23ee845cb652
refs/heads/master
2020-05-23T12:03:40.996675
2019-05-15T06:21:43
2019-05-15T06:21:43
186,748,093
0
0
null
null
null
null
UTF-8
Python
false
false
4,674
pyi
# Stubs for tensorflow.python.keras.engine.training (Python 3) # # NOTE: This dynamically typed stub was automatically generated by stubgen. from tensorflow.python.data.ops import dataset_ops as dataset_ops, iterator_ops as iterator_ops from tensorflow.python.data.ops.dataset_ops import Dataset as Dataset from tensorf...
[ "matangover@gmail.com" ]
matangover@gmail.com
1a6d659303222b5d59f9083a0bc38b15e669503e
1025bc2aa5aaa40970ad1a51d8d0b1202a1ea11e
/StatTools/python/RooFunctorFromWS.py
61a6d6dc6bf708de8fef6714998d0555c78dac99
[]
no_license
uwcms/FinalStateAnalysis
f2be318546728621676a4b90ed2678b2560c94e6
bcb164a8e27d459a9ac438780f6c8730d3e856bf
refs/heads/miniAOD_9_4_0
2022-11-09T01:28:52.199025
2019-03-15T19:25:10
2019-03-15T19:25:10
5,201,989
5
32
null
2020-11-19T17:02:32
2012-07-27T07:51:18
Python
UTF-8
Python
false
false
7,941
py
''' RooFunctorFromWS Builds a functor from a function in a RooWorkspace. This could be improved with cython. Author: Evan K. Friis, UW Madison >>> from FinalStateAnalysis.Utilities.rootbindings import ROOT >>> file = ROOT.TFile('../test/test_RooFunctorFromWS.root') >>> ws = file.Get('fit_efficiency') >>> functor =...
[ "Silvia.Taroni@cern.ch" ]
Silvia.Taroni@cern.ch
f3bfb9ab8e84fa184357abde57024da707ea358c
9e371869045a2f091f633e9335ab091b368f254c
/src/n_hop.py
0d97d1f5f79216f73ebf2f9686a240b122f69977
[ "MIT" ]
permissive
liaopeiyuan/information-obfuscation-demo
e10e0bedf49a4e92d387b1c72855455a6a6fb34b
018cb6a2cce5033bf836d78aa8824204ec5553f7
refs/heads/main
2023-07-14T12:06:59.544186
2021-08-13T11:06:14
2021-08-13T11:06:14
395,622,445
2
0
null
null
null
null
UTF-8
Python
false
false
1,181
py
# -*- coding: utf-8 -*- from models import (GAL_Nhop, NeighborClassifier, NodeClassifier, SharedBilinearDecoder) from node_attack import NodeAttackRunner class NHopAttackRunner(NodeAttackRunner): def __init__(self, args): super().__init__(args) def get_base_model(self): d...
[ "alexander_liao@outlook.com" ]
alexander_liao@outlook.com
14bc832d47b3da2154b8587a674dcb20b9082d4a
02c30e3e2c0f701d77f0a23591027ae62f37a512
/libs/uix/baseclasses/ico_dir/icobazaar.py
d1952e1f8fc355ded5e1550906d1a7a946896863
[ "MIT" ]
permissive
mkbeh/CRyptoLab
5341a48a403ecf23e10248c46e919c1381275551
424c938c16c9264e99eff71e4c1a27ca65314d42
refs/heads/master
2022-12-22T06:39:36.909313
2018-09-25T14:40:32
2018-09-25T14:40:32
144,743,677
0
2
MIT
2022-12-08T02:22:14
2018-08-14T16:09:19
Python
UTF-8
Python
false
false
4,537
py
# -*- coding: utf-8 -*- from kivy.lang.builder import Builder from kivy.properties import ObjectProperty from kivy.cache import Cache from kivy.uix.boxlayout import BoxLayout from libs.customwidgets.ico.cardicobazaar import CardIcoBazaar from libs.customwidgets.popupcm import PopupCM, PopupCMContent from libs.utils im...
[ "mkbehforever@gmail.com" ]
mkbehforever@gmail.com
ad68caba3c69fd1be9e8dfe396a14348fe8f627a
c79a397e81ecefbf66236d763e86a2d4a431449f
/union_find/union_find_2.py
97d4712392ff9e40b3fce8913eb53141654f497b
[]
no_license
liweiwei1419/Algorithms-Learning-Python
f9acd83598cfa38dbc35e93bd5ff4655a9836867
0288097ea6d49d6fc224c3879709ac0d6e9e5b97
refs/heads/master
2021-07-12T23:16:29.938315
2020-06-17T05:25:14
2020-06-17T05:25:14
162,683,186
12
8
null
null
null
null
UTF-8
Python
false
false
1,425
py
# 并查集第 2 版:设置 parent 数组,查找就变得慢了一些,得一直向上查找; # 合并的时候,就快了,把其中一个节点的父节点指向另一个节点即可。 # 参考:慕课网:liuyubobobo。 class UnionFind2: def __init__(self, n): # 直接就初始化了,每个元素的 id 就是自己 # 有多少个元素,就有多少个类 self.parent = [i for i in range(n)] self.count = n # 数据的个数 def find(self, p): """ ...
[ "121088825@qq.com" ]
121088825@qq.com
bef751699b606c824c94c94c6c1eafcd6fb8ca0d
d6760033989f2abbd94d68651eb54a8aac4ac61f
/EduNLP/I2V/i2v.py
c997537646c7d0274d0238f22d02aaf311c0d5fe
[ "Apache-2.0" ]
permissive
astrojuanlu/EduNLP
ba636cf39adc1580d0c2f3bf6f0646139f406c72
51bbf2e20828f12eed2f9cd8d176c8650ec357ef
refs/heads/master
2023-07-16T23:27:38.606705
2021-08-13T11:38:46
2021-08-13T11:38:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,967
py
# coding: utf-8 # 2021/8/1 @ tongshiwei import json from EduNLP.constant import MODEL_DIR from ..Vector import T2V, get_pretrained_t2v as get_t2v_pretrained_model from ..Tokenizer import Tokenizer, get_tokenizer from EduNLP import logger __all__ = ["I2V", "D2V", "get_pretrained_i2v"] class I2V(object): """ ...
[ "tongsw@mail.ustc.edu.cn" ]
tongsw@mail.ustc.edu.cn
512aa69661fa13678466cf8017c83fe50756b7f7
cdad738a7085a997b5349a94aedb4db8da78da8f
/PythiaCumulant/test/ConfFile_cfg.py
ed16acb4b043e5f41fcc0791745c74b0c6c9bde2
[ "MIT" ]
permissive
tuos/DirectLoopAnalysis
4851d122d4723e498705c1d2cb100cbf3eda8d43
6f5f02538454d2240d0232665b9b17d07eb79854
refs/heads/master
2020-06-12T22:24:01.081755
2020-01-21T17:49:37
2020-01-21T17:49:37
194,446,479
0
0
null
null
null
null
UTF-8
Python
false
false
771
py
import FWCore.ParameterSet.Config as cms process = cms.Process("Demo") process.load("FWCore.MessageService.MessageLogger_cfi") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(10) ) process.source = cms.Source("PoolSource", # replace 'myfile.root' with the source file you want to use file...
[ "shengquan.tuo@cern.ch" ]
shengquan.tuo@cern.ch
9414a6701142d165a30eef94ccded064ddac92a6
37cfcdfa3b8f1499f5899d2dfa2a48504a690abd
/test/functional/combine_logs.py
21e10d9f491b8b44f266a6f5a821e7b93491b7ff
[ "MIT" ]
permissive
CJwon-98/Pyeongtaekcoin
28acc53280be34b69c986198021724181eeb7d4d
45a81933a98a7487f11e57e6e9315efe740a297e
refs/heads/master
2023-08-17T11:18:24.401724
2021-10-14T04:32:55
2021-10-14T04:32:55
411,525,736
0
0
null
null
null
null
UTF-8
Python
false
false
6,352
py
#!/usr/bin/env python3 """Combine logs from multiple pyeongtaekcoin nodes as well as the test_framework log. This streams the combined log output to stdout. Use combine_logs.py > outputfile to write to an outputfile. If no argument is provided, the most recent test directory will be used.""" import argparse from col...
[ "cjone98692996@gmail.com" ]
cjone98692996@gmail.com
500dad7ffb9764ef76085a688676e4c8740d9482
1a59a9076c1e9f1eb98e24ff41a4c1c95e2b353e
/xcp2k/classes/_mm1.py
c5b93af6d2c6b11ace7e30bed1ee50a1f93ba2cc
[]
no_license
Roolthasiva/xcp2k
66b2f30ebeae1a946b81f71d22f97ea4076e11dc
fc3b5885503c6f6dc549efeb4f89f61c8b6b8242
refs/heads/master
2022-12-23T06:03:14.033521
2020-10-07T08:01:48
2020-10-07T08:01:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,236
py
from xcp2k.inputsection import InputSection from xcp2k.classes._forcefield1 import _forcefield1 from xcp2k.classes._neighbor_lists5 import _neighbor_lists5 from xcp2k.classes._poisson2 import _poisson2 from xcp2k.classes._periodic_efield2 import _periodic_efield2 from xcp2k.classes._print44 import _print44 class _mm1...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
f1a26d8535ee4e801718164bb5381dda69821129
a9fe1b5c320cdef138ac4a942a8b741c7f27de7c
/LC1165-Single-Row-Keyboard.py
b61ee59f2cb456449c1170110439d12eae92960f
[]
no_license
kate-melnykova/LeetCode-solutions
a6bbb5845310ce082770bcb92ef6f6877962a8ee
ee8237b66975fb5584a3d68b311e762c0462c8aa
refs/heads/master
2023-06-28T06:35:33.342025
2021-07-30T06:59:31
2021-07-30T06:59:31
325,106,033
2
1
null
null
null
null
UTF-8
Python
false
false
2,221
py
""" There is a special keyboard with all keys in a single row. Given a string keyboard of length 26 indicating the layout of the keyboard (indexed from 0 to 25), initially your finger is at index 0. To type a character, you have to move your finger to the index of the desired character. The time taken to move your fin...
[ "forkatemelnikova@gmail.com" ]
forkatemelnikova@gmail.com
d710e3ef0ea5e49cc3e3ccc4c458b75b14108bf1
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03062/s886815102.py
0d88d0f6b8fc038f5e52c29a4351c0e0d7bc5afb
[]
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
223
py
def main(): n=int(input()) a=list(map(int,input().split())) dp=[0,-10**18] for i in range(n-1): dp2=[max(dp[0]+a[i],dp[1]-a[i]),max(dp[0]-a[i],dp[1]+a[i])] dp=dp2 print(max(dp[0]+a[-1],dp[1]-a[-1])) main()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
371d66ddc5a6c081888fb63f8a81dac1623b1f4d
d3e4c3527884f28ac554c9a919b4859a4fb21a7a
/ckstyle/CssCheckerWrapper.py
5d86c4842c7202e70c9958514c6b8432ece320fa
[ "BSD-3-Clause" ]
permissive
kxws888/CSSCheckStyle
4032ca1d2b86d5ac85613bc17125389361678bfc
4b4b89495fd8bb6a211d22a559e76032cd1b860c
refs/heads/master
2021-01-16T19:39:23.440607
2012-11-09T03:37:44
2012-11-09T03:37:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,836
py
#/usr/bin/python #encoding=utf-8 import os from plugins.Base import * class CssChecker(): '''CSS检查类,需要CSS解析器作为辅助''' def __init__(self, parser, config = None): self.parser = parser self.config = config # 错误记录,log是2级,warn是1级,error是0级 self.logMsgs = [] self.warningMsgs =...
[ "wangjeaf@gmail.com" ]
wangjeaf@gmail.com
79e9eb04ba894732a459e4b01ae2261d362576b6
0639b8366a5ec5b65fa2097354eafd5a1f73ad0f
/hoodalert/migrations/0004_rename_post_posts_description.py
a95d995b2021efa24eef56d75d243980d8350f44
[ "MIT" ]
permissive
COdingaorg/Neighbourhood_Alert
cc27a32af7df070f9d49380c4d3f0067f8535668
44e202469b4a2410d1dab2244e62915575f8ea84
refs/heads/main
2023-06-20T20:38:19.301358
2021-07-27T22:36:34
2021-07-27T22:36:34
388,885,612
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
# Generated by Django 3.2.4 on 2021-07-25 21:22 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('hoodalert', '0003_rename_location_business_location_or_description'), ] operations = [ migrations.RenameField( model_name='posts', ...
[ "calemasanga@gmail.com" ]
calemasanga@gmail.com
0554493246cab9a13e295982e86c557585680403
e0c8662a56d89730043146ddc340e9e0b9f7de72
/plugin/11dde802-1596.py
7382d4960741b91aca87fcdb6f1f45c45dde3640
[]
no_license
izj007/bugscan_poc
f2ef5903b30b15c230b292a1ff2dc6cea6836940
4490f3c36d4033bdef380577333722deed7bc758
refs/heads/master
2020-09-22T17:20:50.408078
2019-01-18T09:42:47
2019-01-18T09:42:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
798
py
#coding:utf-8 from lib.curl import * # -*- coding: utf-8 -*- """ POC Name : 企慧通培训系统通用型SQL注入 2 Author : a mail : a@lcx.cc refer : http://www.wooyun.org/bugs/wooyun-2015-0129326 """ def assign(service, arg): if service == 'qht_study': #企慧通网络培训系统 return True,arg def audit(arg): p = "S...
[ "yudekui@wsmtec.com" ]
yudekui@wsmtec.com
2a493183c3d04027dce5a0966c86c5e83e023540
8f2f83bc1381d4ce7fc968aec72fa400aae4155d
/api/smartcontractwallet/requestmodels/createtransactionrequest.py
45a7a4eb65363aeada372be706d0cc2d9c527908
[ "MIT" ]
permissive
nifrali/pyStratis
c855fb33be77064c9a741255e324003319a4789f
b1a80bf155b7941e9ef8fc2ea93fa1b08a0c4366
refs/heads/master
2023-06-20T16:02:30.863589
2021-07-01T19:24:18
2021-07-01T19:24:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,929
py
from typing import Optional, List from pydantic import Field, SecretStr, validator, conint from pybitcoin import Model, Outpoint, SmartContractParameter from pybitcoin.types import Address, Money, hexstr class CreateContractTransactionRequest(Model): """A request model for the smartcontractwallet/create endpoint....
[ "skaal@protonmail.com" ]
skaal@protonmail.com
8c3c54a6db6ad3c4483c0d3590021ca975729a91
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r9/Gen/DecFiles/options/27495730.py
fbd2677bd68269f36de53c1ffd7c30736c15bdcc
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
1,001
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/27495730.py generated: Fri, 27 Mar 2015 16:10:18 # # Event Type: 27495730 # # ASCII decay Descriptor: {[ D_s2*+ -> D0 K+, D*0 K+, D+ K_S0, D*+ K_S0 ]cc} # from Configurables import Generation Generation().EventType = 27495730 Generation().SampleGeneration...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
54799a216da1ac96622d8c6b155e31f987d78435
03b724302ee3989b97ea11c5323fab639349661a
/thjobsthai/migrations/0001_initial.py
bf3cce65c0e0a00c06cc5eb40a971a42a4608a32
[]
no_license
saisai/django_jobs_apply
8e2eccd9e0884d2788d09407c24da12b4c80de53
816602e05bdfbef8d5306ca3592fa0d4df538c5e
refs/heads/master
2022-12-01T19:54:36.119216
2020-08-18T23:31:21
2020-08-18T23:31:21
288,165,221
0
0
null
null
null
null
UTF-8
Python
false
false
730
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-10 06:37 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='JobTha...
[ "you@example.com" ]
you@example.com
3d34bbaa9221ae9eaeb9290f8d4c2c6720415cc8
02e5ec4b8b038d335d726d12047d5dacea01456e
/person_django_rest_swagger/serializers.py
b2cc273d6ea98a7394b26d6304baca7b2bcc0e4b
[]
no_license
rahulmoundekar/django_rest_curd_app_swagger
d298d18356ac9253b16320255b329aacd4904a56
3473812ae21c5be7b8f2105e8d16aebab54d4fa8
refs/heads/master
2021-05-24T19:08:27.658832
2020-04-07T06:58:52
2020-04-07T06:58:52
253,710,900
1
0
null
null
null
null
UTF-8
Python
false
false
214
py
from rest_framework import serializers from person_django_rest_swagger.models import Person class PersonSerializer(serializers.ModelSerializer): class Meta: model = Person fields = '__all__'
[ "rahulmoundekar44@gmail.com" ]
rahulmoundekar44@gmail.com
72e629552847f36e6921f8e65c120df05721b1c7
9e2d79a2cf1dbeaffe8ef897bb53f94af8b5b68c
/ichnaea/models/tests/test_mac.py
68cca667cd7319c1acf7541ccab7d0f515cab920
[ "Apache-2.0" ]
permissive
amolk4games/ichnaea
a7d1cbd12b6aa5c0d877fca380080b08fcff24b8
907c542da05b428c8e994bce1537390e22b3ca58
refs/heads/master
2021-01-19T07:21:54.851167
2016-04-08T15:20:37
2016-04-08T15:21:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,198
py
from ichnaea.models.mac import ( decode_mac, encode_mac, ) from ichnaea.tests.base import ( TestCase, ) class TestMacCodec(TestCase): def test_decode(self): value = decode_mac(b'\xab\xcd\xed\x124V') self.assertEqual(value, 'abcded123456') value = decode_mac(b'q83tEjRW', codec...
[ "hanno@hannosch.eu" ]
hanno@hannosch.eu
d6173e859ed2ee3b0ead3b81a2fbabed554928d5
82555c9b4615a14bfe4bb46a0981820b7ccba8d7
/D/test_pasted_from_page.py
584aee8f24d578cb618a5ce84a837a36ea5a8976
[ "MIT" ]
permissive
staguchi0703/ABC160
2f3cc23e0566943a76f288d190ee4977131817bb
d71c9756a2195a4f8b98dc0bb2d220e90cacdce3
refs/heads/master
2021-05-17T10:56:30.289570
2020-03-28T13:47:29
2020-03-28T13:47:29
250,745,685
0
0
null
null
null
null
UTF-8
Python
false
false
1,137
py
# from resolve import resolve #################################### #################################### # 以下にプラグインの内容をペーストする # import sys from io import StringIO import unittest class TestClass(unittest.TestCase): def assertIO(self, input, output): stdout, stdin = sys.stdout, sys.stdin sys.stdout...
[ "s.taguchi0703@gmail.com" ]
s.taguchi0703@gmail.com
a867dfcb3aaf4c1336a595ff3acbdb224162f108
80a1be2c9642341545e625685886ed8c93ed23b9
/arriendoMiLibro/misLibrosOwner/forms.py
df2006d27b344b2e36f793597f6a4f7bb93ae2a6
[]
no_license
leoBravoRain/arriendoMiLibro
94a1923b68b052c3fd719412775db37508589459
35afd4b65385c15fd8372722200796329a225218
refs/heads/master
2020-08-07T16:09:06.065021
2018-06-26T02:34:55
2018-06-26T02:34:55
131,909,292
0
0
null
null
null
null
UTF-8
Python
false
false
2,345
py
# -*- coding: utf-8 -*- from django import forms from libros.models import LibrosParaArrendar from django.forms import ModelForm from usuarios.models import Usuario from arriendoMiLibro.variablesGlobales import maxLengthDefault # Editar informacion de usuaior class EditarInformacionPerfilUsuario(ModelForm): # ci...
[ "gian.bravo@alumnos.usm.cl" ]
gian.bravo@alumnos.usm.cl
ac340560aaff7c0d0112525dfb2bca7378791bdc
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/183/usersdata/355/107995/submittedfiles/escadarolante.py
1a3884391c6b48bee70782f254cce1adf18dbe87
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
299
py
# -*- coding: utf-8 -*- npessoas=int(input('Digite o número de pessoas detectadas pelo sensor: ')) soma=0 soma2=0 instante=0 for i in range(0,npessoas,1): soma=instante-soma soma2=soma2+soma instante=float(input('Digite o instante em que a pessoa foi detectada: ')) print(soma2+10)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
4ed63a194e46e6ec0133622fac16fb04d230513d
0b8eefbd29abda41cbe3725621a208c90aa9b6f0
/Problemset/relative-sort-array/relative-sort-array.py
01d5a054220ddad076f0d6e990023dee45ace2e1
[ "MIT" ]
permissive
KivenCkl/LeetCode
bf2d86c6d0a4a3cd136ed3ce74b3561ca26f510d
fcc97c66f8154a5d20c2aca86120cb37b9d2d83d
refs/heads/master
2021-07-07T12:57:28.252071
2020-09-13T05:19:13
2020-09-13T05:19:13
185,034,499
8
7
null
null
null
null
UTF-8
Python
false
false
620
py
# @Title: 数组的相对排序 (Relative Sort Array) # @Author: KivenC # @Date: 2019-07-18 14:56:57 # @Runtime: 48 ms # @Memory: 13.1 MB class Solution: def relativeSortArray(self, arr1: List[int], arr2: List[int]) -> List[int]: # 统计 arr1 中的元素,按照 arr2 相对顺序填放,剩下的元素按照升序放置 import collections counter = col...
[ "chen941229@126.com" ]
chen941229@126.com
4c2040871eb316dfbdd91a29953777fda947cfbb
360e1f69f4c0923c5d79bc82aa33c0fd4e80b71e
/RECURSION/Reverse_a_string_recurssion.py
53056e1653e7608aa8159a683d5cf2066771dbbd
[]
no_license
Vijay1234-coder/data_structure_plmsolving
04e52fe6c918313e13d39107a2ded8b47645bb12
d449b266295d1ae55613cdcfd9b22ad9cee3dfbe
refs/heads/master
2023-08-01T00:55:28.825972
2021-09-12T15:20:12
2021-09-12T15:20:12
387,782,783
1
0
null
null
null
null
UTF-8
Python
false
false
194
py
def reverse(s): if len(s)<= 1: return s else: return reverse(s[1:])+s[0] # 'bc'+'a' #'c'+'b'+'a' print(reverse('abc'))
[ "77201164+Vijay1234-coder@users.noreply.github.com" ]
77201164+Vijay1234-coder@users.noreply.github.com
2e6eacc165e2ade818208ef44b1eac4d38c1a04b
a9a90eae727590f0ccffaa255ffeaa194309fbe9
/Codekata/oddadd.py
f24be72dff28c32c3555a9d6cff21e247eba6288
[]
no_license
dhanuskarthikeyan/guvi
18c39674d3ee8e0012caef781d7905e541792174
671d64189f6039ffad8d91cab13942aafa87bf29
refs/heads/master
2020-06-03T00:07:45.041170
2019-07-08T17:39:33
2019-07-08T17:39:33
191,355,054
0
3
null
null
null
null
UTF-8
Python
false
false
153
py
num,n=(raw_input().split()) num=int(num) n=int(n) num=n+num if(num>=0): if(num%2==0): print "even" else: print "odd" else: print "invalid"
[ "noreply@github.com" ]
dhanuskarthikeyan.noreply@github.com
fa07553477e3bb2ecbeb87bd1383a2194282579c
b8eb666c8b6fe4610d87bff8048f4a95a1c5b549
/测试/UI自动化/测试工具__Selenium/selenium/Phy/元组学习.py
659d98f549399863fa07b324050146c658ed72dc
[]
no_license
cainiaosun/study
1e983e404005e537410b205634a27cee974faba0
91df9b63cda1839b7fc60de3b5f1eb19ccc33a1f
refs/heads/master
2020-05-30T09:59:19.749099
2019-11-22T10:39:12
2019-11-22T10:39:12
189,641,828
1
0
null
null
null
null
UTF-8
Python
false
false
2,244
py
#coding=UTF-8 import random import random list=[] s=0 for i in range(1,5): for j in range(1,5): for k in range(1,5): if i!=j and j<>k: list.append(str(i)+str(j)+str(k)) s=s+1 print len(list) print s if len(list)==s: print "是相等的!" else: print "不相等!" print l...
[ "1551577567@qq.com" ]
1551577567@qq.com
ba376912f0e12d134b662c53c1aadd34496d5a74
3a9f63f506172ac2d4a1ca9744fedd8f9b2b1628
/pytext/data/__init__.py
0ea8bef648e40c61f8aa137845996fdabce86390
[ "BSD-3-Clause" ]
permissive
czHP0616/pytext
4c40a8f3afa48284e2919e54d1b489830a321eed
64ab1835905dea2e7797e6bc11398c55941fa728
refs/heads/master
2020-05-25T09:21:52.394044
2019-05-20T21:36:39
2019-05-20T21:39:33
187,734,243
0
0
NOASSERTION
2019-05-21T00:46:06
2019-05-21T00:46:06
null
UTF-8
Python
false
false
1,807
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from .batch_sampler import ( BaseBatchSampler, EvalBatchSampler, RandomizedBatchSampler, RoundRobinBatchSampler, ) from .bptt_lm_data_handler import BPTTLanguageModelDataHandler from .compositional_data_handle...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
b9a66d204ad06b3325735e7e16ef709e831b14d2
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p4VQE/R4/benchmark/startPyquil57.py
4d55af20dcfac3d89ea1bfc7d95f538b60cedb64
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
1,165
py
# qubit number=4 # total number=10 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(0) # number=1 pr...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
65d874a8d7d0ba1e2d8d09e04d255d0fb375f38d
a84e1a1aac96612b32ba5adcc49a4005c0c5129e
/tensorflow_probability/python/internal/backend/numpy/raw_ops.py
79f2e95696806a3b0f7425925a0bac61afb756f4
[ "Apache-2.0" ]
permissive
jedisom/probability
4fc31473d691d242a3e88c179ae3a9c555a29bb6
6791e7ce1c2b0a9057a19a8ea697aeaf796d4da7
refs/heads/master
2022-04-23T00:21:46.097126
2020-04-22T20:03:04
2020-04-22T20:04:59
258,031,151
1
0
Apache-2.0
2020-04-22T22:08:57
2020-04-22T22:08:56
null
UTF-8
Python
false
false
1,831
py
# Copyright 2020 The TensorFlow Probability Authors. # # 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 o...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
f541408a9b1aac2d3114dd958181e6ed89be2153
c08e62724137acebcae7f7badf0176f7f73e64fd
/ecommerce/settings.py
f271e9e79c06df710e99651742f27a7a4a20ed0d
[]
no_license
keefm6776/ij-artefact-sales-site
91809b8d3c975ea7b681acae62382b2146348611
826db92776c77b57a3f6da7727ba5fe9471e6662
refs/heads/master
2022-12-08T10:43:06.847267
2020-01-13T14:52:26
2020-01-13T14:52:26
216,651,747
0
1
null
2022-11-22T04:46:49
2019-10-21T19:43:42
Python
UTF-8
Python
false
false
4,793
py
""" Django settings for ecommerce project. Generated by 'django-admin startproject' using Django 1.11.17. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os...
[ "keefm_6776@yahoo.com" ]
keefm_6776@yahoo.com
95b961d36c5737ee91cf28899c9db819935a2260
8db6b0404f179332e900c09bdb7acbc0779dc250
/reinforcement_learning/0x00-q_learning/0-load_env.py
113d10d342b3a1e2dabb244ba52a86677f8b7607
[]
no_license
chriswill88/holbertonschool-machine_learning
6f1f900a0e5da013608b4be3e60af15872dc1f99
05eabebe5e5c050b1c4a7e1454b947638d883176
refs/heads/master
2022-12-30T08:35:50.216909
2020-10-18T23:10:23
2020-10-18T23:10:23
255,544,135
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
#!/usr/bin/env python3 """this module contains a function for task 0""" import gym def load_frozen_lake(desc=None, map_name=None, is_slippery=False): """creates the frozen lake enviroment""" env = gym.make( 'FrozenLake-v0', desc=desc, map_name=map_name, is_slippery=is_slippery) return env
[ "williechri79@gmail.com" ]
williechri79@gmail.com
d9a98e0727826a2e9368331ebbee230d42859401
c6da4e00eb27ff33becd0b2f7e962b5cc43f9b20
/proximal.py
ef75b6639a3640ce62538b70545bdfd4dc29a26f
[]
no_license
cyber-meow/FISTA
93c61653e55e9b02eb5659cc8e60f17da7f8bb71
c85d5364083ab69f1476b225f6b71713ac4c02dd
refs/heads/master
2020-04-13T21:15:55.119870
2019-01-02T17:09:36
2019-01-02T17:09:36
163,451,363
1
0
null
null
null
null
UTF-8
Python
false
false
1,417
py
import numpy as np import torch import pywt def soft_thresholding(x, th): return np.sign(x) * np.maximum(np.abs(x)-th, 0) class SoftThresholding(object): def __init__(self, lamb): self.lamb = lamb def __call__(self, x, gamma): th = self.lamb * gamma device = 'cuda' if x.is_cuda...
[ "sjungle305@gmail.com" ]
sjungle305@gmail.com