blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
a1d7168df36367a6a9de58b2eef43b6e2a6c0481
14a58f0c6d0bcfeeb308a8a8719d0e9e728ee48e
/tests/test_custom.py
13238835eb34053c78b53794b33cf1e7e3e11830
[ "MIT" ]
permissive
wesselb/lab
262da5a30c1b3a78e576014d9b752aae52959774
275d041bdd47bbbad1fce5a10bbce0d7beceefdb
refs/heads/master
2023-06-08T11:04:03.523207
2023-05-27T10:15:07
2023-05-27T10:15:07
127,299,861
62
6
MIT
2023-09-01T09:53:02
2018-03-29T14:02:14
Python
UTF-8
Python
false
false
4,677
py
import jax import jax.numpy as jnp import lab as B import numpy as np import pytest import tensorflow as tf import torch from autograd import grad from fdm import check_sensitivity, gradient from lab.custom import ( toeplitz_solve, s_toeplitz_solve, bvn_cdf, s_bvn_cdf, expm, s_expm, logm, ...
[ "wessel.p.bruinsma@gmail.com" ]
wessel.p.bruinsma@gmail.com
b6b30a5211de514ccc29a84165549898bf818ab2
080c13cd91a073457bd9eddc2a3d13fc2e0e56ae
/GIT-USERS/TOM2/cs41long_lambda_mud_server/adv_project/settings.py
262f1bf5e8db671d85bf94889ff91cb1a1be8b13
[]
no_license
Portfolio-Projects42/UsefulResourceRepo2.0
1dccc8961a09347f124d3ed7c27c6d73b9806189
75b1e23c757845b5f1894ebe53551a1cf759c6a3
refs/heads/master
2023-08-04T12:23:48.862451
2021-09-15T12:51:35
2021-09-15T12:51:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,698
py
""" Django settings for adv_project project. Generated by 'django-admin startproject' using Django 2.1. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os ...
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
e92b8e4b15c288eff358cd8ca006e1290b4b5e34
36b04c5d9ae181a780d44764dd85bcc784e72101
/cifar10_resnet/ensemble/saved_models/load_model.py
5334b291c6071e015285bbce9ab03b85e6023c65
[]
no_license
chengning-zhang/Ensemble-Method-in-Image-Classification
9783b6b30f3e174fad1504a44cca57093f8c8730
a7c4176334f8e7701fe9cae77fc31b3b6ed0704d
refs/heads/master
2022-12-30T09:07:30.546966
2020-10-21T20:03:51
2020-10-21T20:03:51
112,964,609
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
from keras.models import load_model from resnet import * if __name__ == "__main__": # Training parameters batch_size = 64 epochs = 2 data_augmentation = True num_classes = 10 # Subtracting pixel mean improves accuracy n = 3 # Model version # Orig paper: version = 1 (ResNet v1), Im...
[ "zhang623@wisc.edu" ]
zhang623@wisc.edu
ac96698f9e823501b4e9678648199c29f14f8d32
236c6d7f53d61dfbddefa3b6574f181ccef72e60
/lessons/lesson18/demo/migrations/0001_initial.py
5c3a99d8634bbc9b10b49ec5bf5f502928440c92
[]
no_license
maxchv/LearnPython
94193c9770dc7b788099076316a1dbd6a5112cf4
561f74f39644cd6694ef36869beb7ddb6ff006dc
refs/heads/master
2022-07-07T18:31:02.274159
2022-06-15T15:10:40
2022-06-15T15:10:40
65,457,162
1
7
null
2019-10-23T05:42:30
2016-08-11T09:30:53
Python
UTF-8
Python
false
false
677
py
# Generated by Django 4.0.4 on 2022-05-11 18:48 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Task', fields=[ ('id', models.BigAutoField(...
[ "maxshaptala@gmail.com" ]
maxshaptala@gmail.com
2d73c2e24886dc741ce1d0a7e7c2efb1f6f6cda2
0e383ccac5fdf21dc5059502b9aae26412fd6a88
/shared_lib/readers.py
3ce6f7460240524ae740f15057482645e5bbafea
[ "MIT" ]
permissive
jimsrc/seatos
63c8ad99f2b5d4ae5f203cdc8f8e061948f257f4
e775dba1a2a96ff44b837cf8d85101ccfef302b1
refs/heads/master
2021-01-02T08:38:51.349670
2017-09-01T01:59:35
2017-09-01T01:59:35
99,040,968
0
1
null
2017-09-01T01:59:36
2017-08-01T20:33:55
Python
UTF-8
Python
false
false
23,271
py
#!/usr/bin/env ipython # -*- coding: utf-8 -*- from scipy.io.netcdf import netcdf_file import numpy as np from numpy.linalg import norm from datetime import datetime, timedelta from h5py import File as h5 import os, sys, h5py, argparse #--- shared libs from shared.ShiftTimes import ShiftCorrection, ShiftDts import shar...
[ "jimmy.ilws@gmail.com" ]
jimmy.ilws@gmail.com
46465500fcd64b9c80c677b23f3c2d5ec50ef1f0
b7e0ea14903ac611413e490c741f5b7e4ffb29df
/MySQL数据库命令.py
d4c6c66dc2a7bd74f2e64fba37b1caaab13b8d63
[]
no_license
pointworld/python
c729d6fc029edf28a3b331adf7de888af0216646
06bee716f2615526757a67dcd35be59abc31ff41
refs/heads/master
2021-07-13T13:14:55.540038
2017-10-09T14:45:50
2017-10-09T14:45:50
103,842,172
0
0
null
null
null
null
UTF-8
Python
false
false
6,636
py
编程常见命令集合 MySQL数据库命令 登录到MySQL mysql -h localhost -u root -p localhost:IP地址; root:用户名; database:数据库名(可以省略,如果有,跟在-p面) 删除数据库: mysqladmin -u root -pwrf956750621 drop awesome 初始化数据库: mysql –u root –p密码 <D:\computer_learning\backup\schema.sql mysql -u root -p 2.mysql -h localhost -u root -p database...
[ "onerf@sina.com" ]
onerf@sina.com
f7d6c4be894a80d920335e88119b8b8f5cb8e7ba
325bee18d3a8b5de183118d02c480e562f6acba8
/germany/germany_l/germany/ScriptDir/Move_2_Nas.py
ad52465414998306bcd3649c403736db8a51f842
[]
no_license
waynecanfly/spiderItem
fc07af6921493fcfc21437c464c6433d247abad3
1960efaad0d995e83e8cf85e58e1db029e49fa56
refs/heads/master
2022-11-14T16:35:42.855901
2019-10-25T03:43:57
2019-10-25T03:43:57
193,424,274
4
0
null
2022-11-04T19:16:15
2019-06-24T03:00:51
Python
UTF-8
Python
false
false
1,962
py
# -*- coding: utf-8 -*- import pymysql from ftplib import FTP import os class Move2Nas(object): num = 0 def __init__(self): self.conn = pymysql.connect(host="10.100.4.99", port=3306, db="opd_common", user="root", passwd="OPDATA", charset="utf8") self.cursor = self.conn.cursor() def get_f...
[ "1370153124@qq.com" ]
1370153124@qq.com
eb9c6c4846c223dc0bc16732c3ae5abb061b94d9
e84242b4e00b2afdcda6d9b68292631c3c86d9f1
/hangar_2019/vinogradov.py
bfe7181d8335edf9fb5ed44ce09f9ddd4b9a056b
[]
no_license
Gleb-bit/astrobox-project
ac12b92255febafd196cf2ba717ecd4aa3771fb5
de6a74db001a4d4e9456d8946a741164190b32ae
refs/heads/main
2023-03-18T18:19:32.730946
2021-02-27T15:49:07
2021-03-03T16:06:31
346,435,875
0
0
null
null
null
null
UTF-8
Python
false
false
2,016
py
from astrobox.core import Drone ASTEROIDS_DRONES = {} class VinogradovDrone(Drone): def on_born(self): if len(ASTEROIDS_DRONES) == 0: self._fill_holder() asteroid = self.choose_asteroid() self.move_at(asteroid) def on_stop_at_asteroid(self, asteroid): if not sel...
[ "suguby@gmail.com" ]
suguby@gmail.com
89cf0d50fb6e2df3124bee8b77421b3fd186c0fb
3940b4a507789e1fbbaffeb200149aee215f655a
/lc/primes.py
c910b9b14a132ba9a5b1670d224af1c8c2d70824
[]
no_license
akimi-yano/algorithm-practice
15f52022ec79542d218c6f901a54396a62080445
1abc28919abb55b93d3879860ac9c1297d493d09
refs/heads/master
2023-06-11T13:17:56.971791
2023-06-10T05:17:56
2023-06-10T05:17:56
239,395,822
0
0
null
null
null
null
UTF-8
Python
false
false
645
py
def setup(): primes = [] for num in range(2,100000+1): is_prime = True for p in primes: if num%p == 0: is_prime = False break if is_prime: primes.append(num) return primes primes = setup() def prime_factors(num): ans = [] ...
[ "akimi.mimi.yano@gmail.com" ]
akimi.mimi.yano@gmail.com
d374f557f75fbfa71084b996ee9029ef19b9f982
fa7e0fd1013762eac8d878b70582544a5598600d
/django_3_2_18/users/views.py
748e20b3538248543b14b3b7547299dacb80c910
[]
no_license
gy0109/django_2.18
b8c48005027720ab46e7e050ff139b57437ff5f6
0c9971fae249a4f1932b3fc20d29fc7232b244ab
refs/heads/master
2020-04-24T01:41:05.553801
2019-02-21T12:37:36
2019-02-21T12:37:36
171,608,336
0
0
null
null
null
null
UTF-8
Python
false
false
1,666
py
import json from django.http import HttpResponse, JsonResponse from django.shortcuts import render # Create your views here. 视图 # /user/index/ def index(request): """ index视图部分 :param request: 接收到的请求对象 :return: 响应对象 """ return HttpResponse('hello world!') def weather(request, city, year):...
[ "1974326896@qq.com" ]
1974326896@qq.com
2a79ebc762ce1b21a171102de8c4921db995312e
afc8d5a9b1c2dd476ea59a7211b455732806fdfd
/Configurations/ggH_SF/Full2018/DNN/configuration_2018.py
b9aa3c9058017e04aa91fb0713b0804969ea1ced
[]
no_license
latinos/PlotsConfigurations
6d88a5ad828dde4a7f45c68765081ed182fcda21
02417839021e2112e740607b0fb78e09b58c930f
refs/heads/master
2023-08-18T20:39:31.954943
2023-08-18T09:23:34
2023-08-18T09:23:34
39,819,875
10
63
null
2023-08-10T14:08:04
2015-07-28T07:36:50
Python
UTF-8
Python
false
false
917
py
# example of configuration file treeName= 'Events' tag = 'ggH_SF_split2' # used by mkShape to define output directory for root files outputDir = 'rootFile' # file with TTree aliases aliasesFile = 'aliases.py' # file with list of variables variablesFile = 'variables.py' # file with list of cuts cutsFile = 'cuts_al...
[ "davide.di.croce@cern.ch" ]
davide.di.croce@cern.ch
57b410d649fbf712a2dc614d4c684ae1b830064c
46900ffadf08b92f656ff5d0a0b71a7717e4415c
/old_trash/renthop_src/stacking/stacking_no_mngr_medians.py
0813eec07659754692009389b16c91cbee03e00e
[]
no_license
ubbikk/kaggle
9765ca9530d139525752b4286c20e971b0a97be7
cc7ea173ad8215a42108a973abe2cf0095517588
refs/heads/master
2021-01-19T10:32:44.615755
2017-11-11T19:28:42
2017-11-11T19:28:42
82,200,964
0
0
null
null
null
null
UTF-8
Python
false
false
36,496
py
import json import os import traceback from time import time, sleep import seaborn as sns import pandas as pd from collections import OrderedDict import sys from matplotlib import pyplot from scipy.sparse import coo_matrix from sklearn.linear_model import LogisticRegression from sklearn.ensemble import GradientBoosti...
[ "dd.petrovskiy@gmail.com" ]
dd.petrovskiy@gmail.com
9d5a6ba6446140a91ac8195ae11cdf52026435c4
ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1
/res/packages/scripts/scripts/client/tutorial/control/quests/__init__.py
e0557fa51737e0fce1a443bfd0b2043093d7aa71
[]
no_license
webiumsk/WOT-0.9.20.0
de3d7441c5d442f085c47a89fa58a83f1cd783f2
811cb4e1bca271372a1d837a268b6e0e915368bc
refs/heads/master
2021-01-20T22:11:45.505844
2017-08-29T20:11:38
2017-08-29T20:11:38
101,803,045
0
1
null
null
null
null
WINDOWS-1250
Python
false
false
3,036
py
# 2017.08.29 21:51:51 Střední Evropa (letní čas) # Embedded file name: scripts/client/tutorial/control/quests/__init__.py from tutorial.control.lobby.context import LobbyBonusesRequester from tutorial.control.quests import queries from tutorial.data.effects import EFFECT_TYPE from tutorial.control import ControlsFactor...
[ "info@webium.sk" ]
info@webium.sk
cd009ea532016e6d794b44635f9cf787d176f987
d374478ba42d027e730e2b9d378b0a08de9c23b5
/4. Building your Deep Neural Network/linear_backward.py
a7d5789fc96744d2b4c971623e11c58a98dfa9a2
[]
no_license
kuangzijian/Neural-Networks-and-Deep-Learning
8ffe46e7b99611c033f54d553a897313b36ea22b
781d62679497e9dfa6e6556d2b49a6366c6f945f
refs/heads/master
2023-08-08T07:32:13.280785
2021-05-05T16:44:49
2021-05-05T16:44:49
217,354,065
0
0
null
2023-07-22T19:42:15
2019-10-24T17:20:55
Python
UTF-8
Python
false
false
990
py
# GRADED FUNCTION: linear_backward import numpy as np def linear_backward(dZ, cache): """ Implement the linear portion of backward propagation for a single layer (layer l) Arguments: dZ -- Gradient of the cost with respect to the linear output (of current layer l) cache -- tuple of values (A_prev, ...
[ "kuangzijian1@hotmail.com" ]
kuangzijian1@hotmail.com
8aba2942340cc5f1e675229a80ce52ff0a0f4244
3d19e1a316de4d6d96471c64332fff7acfaf1308
/Users/M/martharotter/wikipediavisualiser.py
8077e845b760b04b80b2c4f75a79ad8f643a9261
[]
no_license
BerilBBJ/scraperwiki-scraper-vault
4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc
65ea6a943cc348a9caf3782b900b36446f7e137d
refs/heads/master
2021-12-02T23:55:58.481210
2013-09-30T17:02:59
2013-09-30T17:02:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
998
py
import scraperwiki scraperwiki.sqlite.attach("wikipedia_paper_scraper_until_jan_20") data = scraperwiki.sqlite.select( '''* from wikipedia_paper_scraper_until_jan_20.swdata order by id desc limit 10''' ) print "<table>" print "<tr><th>ID</th><th>Tweet</th><th>User</th>" for...
[ "pallih@kaninka.net" ]
pallih@kaninka.net
24993c1168307724a1daf85bbc352dab641caf90
aff612112744272579ec081b189d087e636d923a
/website/app.py
789fc0ef8f5bd290937b4740b7d49ae7270b8eda
[]
no_license
pythonguru101/CrpytoCurrentMarket
a76bfe9ab647058fcedfd63bbe41f8f421ac385e
b207f54e15883db277b31f60bc8bbca42c9f61b5
refs/heads/master
2022-12-16T00:50:02.828610
2020-02-27T04:04:38
2020-02-27T04:04:38
236,615,768
0
1
null
2022-12-08T03:35:04
2020-01-27T23:10:02
Python
UTF-8
Python
false
false
36,685
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import time import os import commands # import subprocess import base64 import csv import re import json import libdb_mysql_web import decimal from operator import itemgetter from flask import Flask, render_template, request, jsonify, redirect, url_for, send_fi...
[ "pythonguru101@gmail.com" ]
pythonguru101@gmail.com
c564cb8a4f8fb15ca5244ece24f0664747b45e2e
2dc17d12ff6ea9794177c81aa4f385e4e09a4aa5
/archive/513FindBottomLeftTreeValue.py
b9b3b6ac780a028c6dda69b1deef818d7aa4d7fd
[]
no_license
doraemon1293/Leetcode
924b19f840085a80a9e8c0092d340b69aba7a764
48ba21799f63225c104f649c3871444a29ab978a
refs/heads/master
2022-10-01T16:20:07.588092
2022-09-08T02:44:56
2022-09-08T02:44:56
122,086,222
0
0
null
null
null
null
WINDOWS-1252
Python
false
false
1,254
py
# coding=utf-8 ''' Created on 2017�2�15� @author: Administrator ''' from collections import deque # Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def findBottomLeftVal...
[ "yanhuang1293@gmail.com" ]
yanhuang1293@gmail.com
e0f12a86fb901108bf9f2a170c3607667e2e6e21
22215eae0bf31c1021cf927155d310ba57adf0fb
/automaton/state_machine.py
913aa3461a9dcbe5fe1166eb378e5cace0ed6ba7
[ "MIT" ]
permissive
pombredanne/automaton-5
37e466f26d55e3ed34c8780e63b0b9ce1cac66dc
3f5b6dc4521bc8ee284f732daa7883e49b3433e2
refs/heads/master
2020-12-31T03:42:52.956371
2013-12-28T01:02:37
2013-12-28T01:02:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
673
py
# -*- coding: utf-8 -*- def to_state_machine(node): state_machine = {} nodes = set([node]) visited_nodes = set() accepting_states = set() while True: start_node = nodes.pop() for edge in node.alphabet(): end_node = start_node.derive(edge).reduce() if end_no...
[ "anler86@gmail.com" ]
anler86@gmail.com
50e0d7ba43a2d2eddaf378c06555d32d6b5d604f
a28e1e659e4dd82be5e253443b0c7a808cdcee92
/SortAlgorithm/QuickSort.py
ff67210431d9014a59585e9e5f3016511d39ca00
[]
no_license
LeBron-Jian/BasicAlgorithmPractice
b2af112e8f1299fe17cf456111276fce874586cb
51943e2c2c4ec70c7c1d5b53c9fdf0a719428d7a
refs/heads/master
2023-06-07T19:12:16.362428
2023-05-27T06:58:12
2023-05-27T06:58:12
217,682,743
13
14
null
2020-09-12T01:50:35
2019-10-26T08:59:04
Python
UTF-8
Python
false
false
4,569
py
# -*- coding: utf-8 -*- ''' 快速排序 让指定的元素归位,所谓归位,就是放到他应该放的位置 左边的元素比他小,右边的元素比他大,然后对每个元素归位,就完成了排序 正常情况下,快速排序的复杂度是O(nlogn) 快速排序存在一个最坏的情况,就是每次归位,都不能把列表分成两部分, 此时的复杂度就是O(n**2) 如果避免设计成这种最坏情况,可以在取第一个数的时候不要去取第一个元素 而是取一个列表中的随机数。 ''' # 归位函数 def partition(data, left, right): # 左右分别指向两端的元素 # 把左边第一个元素赋值给tmp,此时left指向空...
[ "1171737614@qq.com" ]
1171737614@qq.com
1d59a9449e1faa81ca0cc15a68fdd61b3aed9c02
29ad60d0f4e4207aaf0374f811c9728b16942da2
/Report/files/switchoff.py
9ebd115adc375c7740070dff463253315afc67ba
[]
no_license
LCAV/AcousticRobot
c97e03bc06c59650556832794aca38cfe2d873a5
9f33434f64cb882897b1e0e3b8ad01642e91148a
refs/heads/master
2021-01-10T16:46:51.989150
2017-10-11T08:26:58
2017-10-11T08:26:58
43,871,589
2
5
null
2017-03-06T16:15:09
2015-10-08T07:58:42
HTML
UTF-8
Python
false
false
831
py
mport RPi.GPIO as GPIO import os import time #set up GPIO using BCM numbering GPIO.setmode(GPIO.BCM) GPIO.setup(10,GPIO.IN, pull_up_down=GPIO.PUD_DOWN) #function called on pin interrupt def button_triggered(channel): counter = 0 counter_on = 0 while (counter <= 6): time.sleep(1) counter+=1...
[ "frederike.duembgen@epfl.ch" ]
frederike.duembgen@epfl.ch
5823a62afd3d08698685ab28c56917e64b1a3011
21818228cb62d31b9685de44deb27cfd90430573
/ccxt/async/bter.py
9945a46c62c3d907e8cc92124daada92fbb822ac
[]
no_license
mico/cryptoArbitrage
d9d5d2f89e3fccc0b84d9c13b771edef0f2b00a1
ea9ef03e79f302b36948746c77e4acbb3d6f01b7
refs/heads/master
2021-03-22T00:17:30.448593
2018-05-28T05:08:21
2018-05-28T05:08:21
108,232,310
2
4
null
null
null
null
UTF-8
Python
false
false
9,931
py
# -*- coding: utf-8 -*- from ccxt.async.base.exchange import Exchange import hashlib from ccxt.base.errors import ExchangeError class bter (Exchange): def describe(self): return self.deep_extend(super(bter, self).describe(), { 'id': 'bter', 'name': 'Bter', 'countries'...
[ "artur.komarov@gmail.com" ]
artur.komarov@gmail.com
7f2852b0f4be4f781576595cef92b728b46f471b
c2ce7155a393e1056b5fdc4d3f9b9a89046e9285
/scripts/pipeline.py
3d981873f2ffb78575182feb447d1effe251678a
[ "MIT" ]
permissive
blyucs/aw_nas
9c068dab1bd84a35e58a4c426f7c852a67b93882
8a32196ce342b8ad9e3885895735d1286e25beba
refs/heads/master
2023-08-19T11:00:00.526229
2021-08-21T05:16:13
2021-08-21T05:16:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,413
py
from __future__ import print_function import os import re import random import shutil import logging import argparse import subprocess import yaml import numpy as np DERIVE_N = 10 def _get_genotype_substr(genotypes): return re.search(r".+?Genotype\((.+)\)", genotypes).group(1) def _get_perf(log, type_="cnn"): ...
[ "foxdoraame@gmail.com" ]
foxdoraame@gmail.com
eb91d4a5ee4783d3343c61260473eedbd4c4dd18
5b93930ce8280b3cbc7d6b955df0bfc5504ee99c
/nodes/Geron17Hands/C_PartII/E_Chapter13/E_Exercises/index.py
31dbc036a2281c1cf4c61b4da842159f9b8249e8
[]
no_license
nimra/module_gen
8749c8d29beb700cac57132232861eba4eb82331
2e0a4452548af4fefd4cb30ab9d08d7662122cf4
refs/heads/master
2022-03-04T09:35:12.443651
2019-10-26T04:40:49
2019-10-26T04:40:49
213,980,247
0
1
null
null
null
null
UTF-8
Python
false
false
10,826
py
# Lawrence McAfee # ~~~~~~~~ import ~~~~~~~~ from modules.node.HierNode import HierNode from modules.node.LeafNode import LeafNode from modules.node.Stage import Stage from modules.node.block.CodeBlock import CodeBlock as cbk from modules.node.block.HierBlock import HierBlock as hbk from modules.node.block.ImageBlock ...
[ "lawrence.mcafee@gmail.com" ]
lawrence.mcafee@gmail.com
51e3944307e72804a1265a356f3d0a5f606b613f
c49590eb7f01df37c8ec5fef00d0ffc7250fa321
/openapi_client/models/existing_normal_order.py
a13bb994a8a5c32393770f610b14317804a73b72
[]
no_license
harshad5498/ks-orderapi-python
373a4b85a56ff97e2367eebd076f67f972e92f51
237da6fc3297c02e85f0fff1a34857aaa4c1d295
refs/heads/master
2022-12-09T19:55:21.938764
2020-09-03T05:22:51
2020-09-03T05:22:51
293,533,651
0
0
null
2020-09-07T13:19:25
2020-09-07T13:19:24
null
UTF-8
Python
false
false
7,092
py
# coding: utf-8 """ KS Trade API's The version of the OpenAPI document: 1.0 """ import pprint import re # noqa: F401 import six from openapi_client.configuration import Configuration class ExistingNormalOrder(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://o...
[ "thebhushanp@gmail.com" ]
thebhushanp@gmail.com
ce3f3e77b734c979ff3d49bc82b04f891d0df5bd
4d1cca31a3aae847bd6ee2dc12eca3971b263fc4
/src/flua/Compiler/Output/python/PythonClass.py
a2ffea6ea236df51bc99c98170c3846e3c94f63c
[]
no_license
akyoto/flua
4cc27202c326a6eedd088c5bb88c644905e7be64
e09d50e0d50fc4f4faa1b0ee482756eaef4e60ec
refs/heads/master
2021-06-06T10:55:32.795005
2016-12-04T00:17:20
2016-12-04T00:17:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,714
py
#################################################################### # Header #################################################################### # Target: Python Code # Author: Eduard Urbach #################################################################### # License ###########################################...
[ "e.urbach@gmail.com" ]
e.urbach@gmail.com
080327cbd21766ac54d21ecf1f08d7336c162d80
cb57a9ea4622b94207d12ea90eab9dd5b13e9e29
/lc/python/289_game_of_life.py
7db24705a3c6af0951103e9edb5e780f16317398
[]
no_license
boknowswiki/mytraning
b59585e1e255a7a47c2b28bf2e591aef4af2f09a
5e2f6ceacf5dec8260ce87e9a5f4e28e86ceba7a
refs/heads/master
2023-08-16T03:28:51.881848
2023-08-10T04:28:54
2023-08-10T04:28:54
124,834,433
1
0
null
null
null
null
UTF-8
Python
false
false
1,563
py
#!/usr/bin/python -t #time O(m*n) space O(1) #0,2 are "dead", and "dead->live" #1,3 are "live", and "live->dead" class Solution(object): def gameOfLife(self, board): """ :type board: List[List[int]] :rtype: None Do not return anything, modify board in-place instead. """ m ...
[ "taobo0626@gmail.com" ]
taobo0626@gmail.com
b4c66f8a260da4fe83eb670aeb5e4b6544e3ef5b
00b6699ea1302149ab2b9fd57e115656f7a26e7d
/models/transformer_encoder.py
605c2d2f1ea94fdd68595454e41d279e6400e3ec
[]
no_license
gauravaror/catastrophic_forgetting
97ac8e1c999db4f36d01ae19a0fb307f8109eb8b
60e53f61c45f6ce24a28bf8454c8078559bb9e6f
refs/heads/master
2021-06-30T21:07:27.448889
2020-10-05T09:37:36
2020-10-05T09:37:36
174,500,380
5
1
null
null
null
null
UTF-8
Python
false
false
3,573
py
import math import torch import torch.nn as nn from torch.nn import TransformerEncoder, TransformerEncoderLayer from models.utils import Hardsigmoid, BernoulliST from models.kv_memory import KeyValueMemory # It's actually TransformerEncoder custom with PositionalEncoder but we use # name: TransformerRepresentation to ...
[ "gauravarora.daiict@gmail.com" ]
gauravarora.daiict@gmail.com
bf5ff811dd36959cbb56b862856ef8a46fcdaabe
a7e5aa55139641ca49d27c8b0c275c25f8cc0c54
/src/main/python/modules/window_statusbar/gui/bar.py
209b4a51917b5adec045657e13011b29c5680617
[]
no_license
AlexWoroschilow/AOD-Reader
5a5fa4ea8184ea2df2301870ccd67717eab307f1
6e643958a4fae62128f036821030b8ea9f937d07
refs/heads/master
2022-02-24T05:48:48.549468
2019-09-20T23:42:03
2019-09-20T23:42:03
197,986,058
0
0
null
null
null
null
UTF-8
Python
false
false
1,795
py
# -*- coding: utf-8 -*- # Copyright 2015 Alex Woroschilow (alex.woroschilow@gmail.com) # # 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 # # Unles...
[ "alex.woroschilow@gmail.com" ]
alex.woroschilow@gmail.com
df5280e7916d11004414fad03e054bf80f089274
730154818de1d81d0bca2546ca1a3ab029945860
/test/cli/test_commands.py
7fcb502ab2a37d9db734c94829a20e64fdfc5b1d
[ "MIT" ]
permissive
mnalband/schemathesis
b2b4cba8505dfc0f7779ac7fb10abbf42c566076
42b351589fae3f407a1de248750bc82d6b5796d1
refs/heads/master
2020-08-21T12:30:58.006890
2019-10-16T08:59:36
2019-10-18T21:28:32
216,160,468
0
0
MIT
2019-10-19T06:31:13
2019-10-19T06:31:13
null
UTF-8
Python
false
false
9,661
py
import pytest from _pytest.main import ExitCode from hypothesis import HealthCheck, Phase, Verbosity from requests.auth import HTTPDigestAuth from schemathesis.runner import DEFAULT_CHECKS def test_commands_help(cli): result = cli.run_subprocess() assert result.ret == ExitCode.OK assert result.stdout.ge...
[ "Stranger6667@users.noreply.github.com" ]
Stranger6667@users.noreply.github.com
5133a67b4edd0c59c4ea5de641e73dca50cb2c73
bf8d344b17e2ff9b7e38ad9597d5ce0e3d4da062
/ppdet/modeling/cls_utils.py
3ae8d116959a96bb2bf337dee7330c5909bc61ac
[ "Apache-2.0" ]
permissive
PaddlePaddle/PaddleDetection
e7e0f40bef75a4e0b6dcbacfafa7eb1969e44961
bd83b98342b0a6bc8d8dcd5936233aeda1e32167
refs/heads/release/2.6
2023-08-31T07:04:15.357051
2023-08-18T02:24:45
2023-08-18T02:24:45
217,475,193
12,523
3,096
Apache-2.0
2023-09-10T10:05:56
2019-10-25T07:21:14
Python
UTF-8
Python
false
false
1,325
py
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
[ "noreply@github.com" ]
PaddlePaddle.noreply@github.com
c6c6323c6e8149cfa777226d6b774aadd0f6d089
aa1e637de90f69f9ae742d42d5b777421617d10c
/nitro/resource/config/ntp/ntpparam.py
eeeb63f88a5a0e1502be215dfd0c498591acd78f
[ "Apache-2.0", "Python-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
km0420j/nitro-python
db7fcb49fcad3e7a1ae0a99e4fc8675665da29ba
d03eb11f492a35a2a8b2a140322fbce22d25a8f7
refs/heads/master
2021-10-21T18:12:50.218465
2019-03-05T14:00:15
2019-03-05T15:35:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,294
py
# # Copyright (c) 2008-2015 Citrix Systems, Inc. # # 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 l...
[ "lennart.weller@hansemerkur.de" ]
lennart.weller@hansemerkur.de
c05336076541453c1569b9d8c09221f777d63f7b
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/2nciiXZN4HCuNEmAi_6.py
0bd7f17fca7fe6993cac5c0ec60e2e367d3dc816
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
def flatten(r, resp=None, a="main"): if resp is None: resp = list() if type(r) == list: for i in r: resp.append(flatten(i, resp, "rec")) else: return r return resp if a== "rec" else [i for i in resp if type(i)!=list]
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
8122cd63318c83fba3251e64209f9f3899bd2f3b
35942792e6dbec7862dd7bbc1aaec2b76ec0bc85
/ABC/C/c110.py
433dbf7458b7562b7e2b7332698102a7372d8afb
[]
no_license
hokekiyoo/AtCoder
97f870421b513a5366681d1e05ba1e5038dfa077
2be1558c71a3ad8e1852645df050bca494b3afca
refs/heads/master
2020-04-27T17:51:11.337193
2019-10-28T11:42:47
2019-10-28T11:42:47
174,541,189
0
0
null
null
null
null
UTF-8
Python
false
false
612
py
from collections import Counter S = input() T = input() import numpy as np S_num = dict(Counter(S)).values() T_num = dict(Counter(T)).values() Ss = np.array([s for s in S_num]) Ts = np.array([s for s in T_num]) if len(Ss) != len(Ts): print("No") else: if all(np.sort(Ss)==np.sort(Ts)): print("Yes") ...
[ "imslotter1@gmail.com" ]
imslotter1@gmail.com
5cbbb3255cb564286de601d5a17ec543b88b7f58
b2b03fe08e5b97f2a53852538c738aa60677a2af
/python/tests/unit/test_maasdriver_vlan.py
6094efea069d8060b8ca4c388d31aa163f90046c
[ "Apache-2.0" ]
permissive
spyd3rweb/drydock
8685b82f340f590f75a3893244486754f77c048f
9d1c65dc87807b694d00564bb9fa4fdd25297dc6
refs/heads/master
2020-09-02T09:51:42.220866
2020-04-05T18:53:10
2020-04-05T18:53:10
219,194,440
0
0
Apache-2.0
2019-11-17T05:41:12
2019-11-02T18:12:00
null
UTF-8
Python
false
false
1,813
py
# Copyright 2018 AT&T Intellectual Property. All other rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
[ "sh8121@att.com" ]
sh8121@att.com
a38cb63d4933a71216ca298c2595eaceb6005c82
d32fd3dce3d7a3f6b3c0c47d21e9d21e78e140e1
/day1/ex6_math.py
1cf29b6d6ff36c00318ac3a5633a929a55d1a004
[ "Apache-2.0" ]
permissive
ktbyers/pynet_ons
0fe77d14d5e1f119396c1f72d98eaeb56849c2ab
7e84060f547ee8346a6ecb2db68a89d0ddf17aa6
refs/heads/master
2021-01-17T17:30:58.832361
2016-10-05T23:23:02
2016-10-05T23:23:02
63,434,341
2
13
null
2016-08-01T19:02:47
2016-07-15T16:01:39
Python
UTF-8
Python
false
false
297
py
#!/usr/bin/env python num1 = int(raw_input("Enter first number: ")) num2 = int(raw_input("Enter second number: ")) print "\n\nSum: {}".format(num1 + num2) print "Difference: {}".format(num1 - num2) print "Product: {}".format(num1 * num2) print "Division: {:.2f}".format(num1/float(num2)) print
[ "ktbyers@twb-tech.com" ]
ktbyers@twb-tech.com
910d89742125c89f6d83d759cdbd1a70be21888b
b29589f95734682663ae6cd40ab00eb0a94b6d87
/longwave/lblnew_20160916/study__g1_threshold/h2o/conc_None/band02_wn_340_540/nv_1000/dv_0.001/ng_11/g_ascending_k_descending/refPTs_P_1_T_250__P_10_T_250__P_500_T_250/ng_refs_2__3__6/ng_adju_-2__-2__0/getabsth_auto__auto__auto/absth_dlogN_uniform__dlogN_uniform__dlogN_uniform/klin_none/atmpro_saw/wgt_k_1/wgt_0.6_0.6__...
3f670efc4d7a78f1fba5f8514ea4cd44e2aa502f
[]
no_license
qAp/offline_radiation_notebooks
02c2b2414ef1410f235776001a668f7df0b9f1cf
44fb62391c27e4e314ad68ae3e91f6111b3172c5
refs/heads/master
2020-04-15T14:31:34.675322
2019-07-08T04:45:54
2019-07-08T04:45:54
43,118,324
0
0
null
null
null
null
UTF-8
Python
false
false
1,073
py
DIR_FORTRAN = '/chia_cluster/home/jackyu/radiation/crd/LW/examples/separate_g_groups/study__lblnew_g1_threshold/h2o/conc_None/band02_wn_340_540/nv_1000/dv_0.001/ng_11/g_ascending_k_descending/refPTs_P_1_T_250__P_10_T_250__P_500_T_250/ng_refs_2__3__6/ng_adju_-2__-2__0/getabsth_auto__auto__auto/absth_dlogN_uniform__dlogN...
[ "llacque@gmail.com" ]
llacque@gmail.com
546a1923ba578b58a263e4e4a8c6151cc1b740ea
84b04d0787cf4cca686f54dcb4ca8eb0a480bdd5
/src/plonetheme/kasteeldehaar/tests/test_robot.py
637d955684aa80abb6b0c6a48ffd0cdc2dd7c458
[]
no_license
plone-ve/plonetheme.kasteeldehaar
357c1399d2d14d1b07cbd507521af4bfd4182897
136e0304b935f3ffb085824ed85d7a71a71924d4
refs/heads/master
2023-08-25T15:10:11.249942
2016-11-04T16:58:00
2016-11-04T16:58:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
901
py
# -*- coding: utf-8 -*- from plonetheme.kasteeldehaar.testing import plonetheme.kasteeldehaar_ACCEPTANCE_TESTING # noqa from plone.app.testing import ROBOT_TEST_LEVEL from plone.testing import layered import os import robotsuite import unittest def test_suite(): suite = unittest.TestSuite() current_dir = os...
[ "andreslb1@gmail.com" ]
andreslb1@gmail.com
9d2fa34a66d6dbc7159a496377e64a378cf8bf8a
ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f
/P.O.R.-master/pirates/npc/BossAI.py
20a0702863d316eba876ab90f147f6b3362cec96
[]
no_license
BrandonAlex/Pirates-Online-Retribution
7f881a64ec74e595aaf62e78a39375d2d51f4d2e
980b7448f798e255eecfb6bd2ebb67b299b27dd7
refs/heads/master
2020-04-02T14:22:28.626453
2018-10-24T15:33:17
2018-10-24T15:33:17
154,521,816
2
1
null
null
null
null
UTF-8
Python
false
false
568
py
from direct.distributed import DistributedObjectAI class BossAI(DistributedObjectAI.DistributedObjectAI): def ___init___(self, air): DistributedObjectAI.DistributedObjectAI.__init__(self, air) def announceGenerate(self): DistributedObjectAI.DistributedObjectAI.announceGenerate(self) def ...
[ "brandoncarden12345@gmail.com" ]
brandoncarden12345@gmail.com
d64822947bd318ef999a252c8a3923e1a6f107a8
f654f5f07dd8109c0ee31ba89dd4804e6b288343
/src/programy/utils/oob/email.py
7ce0678ee5141d87a71f7ce51bfe85ecb32f96c5
[ "MIT" ]
permissive
sprinteroz/program-y
3d1f5f28e4f3be770705d4bef15410b8b78f19da
454c6bde225dce7c3fb01c549d46249248caf7b5
refs/heads/master
2021-01-19T16:05:25.636700
2017-08-22T03:56:33
2017-08-22T03:56:33
100,986,551
1
0
null
2017-08-21T19:43:43
2017-08-21T19:43:43
null
UTF-8
Python
false
false
1,220
py
import logging import xml.etree.ElementTree as ET from programy.utils.oob.oob import OutOfBandProcessor """ <oob> <email> <to>recipient</to> <subject>subject text</subject> <body>body text</body> </email> </oob> """ class EmailOutOfBandProcessor(OutOfBandProcessor): def __init__(...
[ "keith@keithsterling.com" ]
keith@keithsterling.com
f5db9f6c7200aa09c359fa4156c99124cbaf9b9a
a7e09640c081cf858f30c3cc3fe2d6ffc986eb7c
/gui/system/migrations/0008_auto_20170906_2335.py
ead8a168e06533db3ffd002005ee3b25fcc68f3b
[]
no_license
cbwest3/freenas
3fbeffe66c78a375843f138afd1ee306954a9c87
9947174014dd740145d540f03c1849a851f3b6e7
refs/heads/master
2021-04-30T13:59:53.975592
2018-02-12T05:25:55
2018-02-12T05:25:55
121,202,118
1
0
null
2018-02-12T05:01:39
2018-02-12T05:01:38
null
UTF-8
Python
false
false
869
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-09-06 23:35 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('system', '0007_auto_201708211858'), ] operations = [ migrations.AddField( ...
[ "wg@FreeBSD.org" ]
wg@FreeBSD.org
df93f65d97755a6b38917bb204e856bbf90a7efd
a0947c2778742aec26b1c0600ceca17df42326cd
/Python/PythonInADay2/CSV-Files-Drill/37of79-119.py
7707852ef6e09fc8a3743fa9851f02ce0b0f3c43
[]
no_license
JohnCDunn/Course-Work-TTA
5758319d4607114914ba9723328658bed8fb2024
8c4f60d51007dac2ac4cceb84b0f9666e143c0d7
refs/heads/master
2021-01-10T16:37:02.609879
2016-02-01T18:05:38
2016-02-01T18:05:38
49,983,248
0
0
null
null
null
null
UTF-8
Python
false
false
5,560
py
import wx, db_program class Frame(wx.Frame): def __init__(self, title): wx.Frame.__init__(self, None,\ title=title, size=(800,600)) panel = wx.Panel(self) # Creating the menu bar menuBar = wx.MenuBar() fileMenu = wx.Menu() exitItem = fileMenu.Append(wx...
[ "JohnClydeDunn@Gmail.com" ]
JohnClydeDunn@Gmail.com
1cb1a5a7d714a543f49ebabf54a2b5ea99009cc6
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp-with-texts/DFL260-MIB.py
125dad8d74ee966bee6ebfc13c5c740e0dec552b
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
96,348
py
# # PySNMP MIB module DFL260-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DFL260-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:42:07 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:...
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
d19988ad33589d48cc57918d518294a2fd6150d7
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/exp-big-490.py
878f7cc3ed471a6dd801ce1f464e12d880342a22
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
3,180
py
# Compute x**y def exp(x: int, y: int) -> int: a: int = 0 a2: int = 0 a3: int = 0 a4: int = 0 a5: int = 0 def f(i: int) -> int: nonlocal a nonlocal a2 nonlocal a3 nonlocal a4 nonlocal a5 def geta() -> int: return a if i <= 0: ...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
ac25687848306c6a9cff59e9ab2267b666d426d9
71f00ed87cd980bb2f92c08b085c5abe40a317fb
/BestOreo/W2V_CNN_robustchecking.py
e2d480f65e769e2d5e81dee662d63187818b0ca9
[]
no_license
factoryofthesun/Rao-NLP
2bd8269a8eed1cb352c14c8fde88e3111ccca088
87f9723f5ee51bd21310d58c3425a2a7271ec3c5
refs/heads/master
2023-04-18T08:54:08.370155
2020-06-09T23:24:07
2020-06-09T23:24:07
248,070,291
0
1
null
2021-04-30T21:13:04
2020-03-17T20:49:03
Python
UTF-8
Python
false
false
9,146
py
# -*- coding: utf-8 -*- """Shuaiqi_train.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/11DfSUkrGQfPsEtfHoJxewiBcqBM8OlfZ """ # Commented out IPython magic to ensure Python compatibility. # %tensorflow_version 1.x import tensorflow as tf import ...
[ "guanzhi97@gmail.com" ]
guanzhi97@gmail.com
e6a936ccc3de105e36ffef350ea2096d974dc9f0
760e1c14d056dd75958d367242c2a50e829ac4f0
/剑指offer/6_旋转数组最小的数字.py
795e06ad064cd143007a5bdc31ea65296446baea
[]
no_license
lawtech0902/py_imooc_algorithm
8e85265b716f376ff1c53d0afd550470679224fb
74550d68cd3fd2cfcc92e1bf6579ac3b8f31aa75
refs/heads/master
2021-04-26T22:54:42.176596
2018-09-23T15:45:22
2018-09-23T15:45:22
123,894,744
0
0
null
null
null
null
UTF-8
Python
false
false
950
py
# _*_ coding: utf-8 _*_ """ 把一个数组最开始的若干个元素搬到数组的末尾,我们称之为数组的旋转。 输入一个非递减排序的数组的一个旋转,输出旋转数组的最小元素。 例如数组{3,4,5,1,2}为{1,2,3,4,5}的一个旋转,该数组的最小值为1。 NOTE:给出的所有元素都大于0,若数组大小为0,请返回0。 __author__ = 'lawtech' __date__ = '2018/5/9 下午9:35' """ class Solution: def minNumberInRotateArray(self, rotateArray): # write code here ...
[ "584563542@qq.com" ]
584563542@qq.com
a82beeb3c4f4b2b11632854d1f7251427ba6389b
9d5c9d9373002ab4ed1b493136517e8b4ab160e5
/saas/backend/apps/application/migrations/0009_auto_20200902_1134.py
1040ea6a30228a6fcf4b7f4921d2955e0bf91fbf
[ "MIT" ]
permissive
robert871126/bk-iam-saas
f8299bb632fc853ef0131d445f84c6084fc84aba
33c8f4ffe8697081abcfc5771b98a88c0578059f
refs/heads/master
2023-08-23T19:23:01.987394
2021-10-22T09:45:28
2021-10-22T09:45:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,183
py
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-权限中心(BlueKing-IAM) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with th...
[ "zhu327@gmail.com" ]
zhu327@gmail.com
a315cc93eb48378a0694c0131b8d1a8bd460e157
432b9b1ba469ef94ffd93065d4fde5d8c89f1a6e
/DM3/src/data.py
22298997aad2e1ff16e001bfe849a1acca56c01a
[]
no_license
NelleV/SVM
0ea9931e2152d6200ef094325a9f1838eed99943
a46cfecb7f5d4361a93d36bdf85c2cc76c72838b
refs/heads/master
2020-06-05T07:31:34.034416
2012-03-06T19:36:40
2012-03-06T19:36:40
3,238,738
0
0
null
null
null
null
UTF-8
Python
false
false
392
py
import csv import numpy as np def libras_movement(): """ Fetches the Libras Movement dataset Returns ------- X, Y """ dataset = csv.reader(open('data/movement_libras.data', 'r')) X = [] Y = [] for element in dataset: X.append(element[:-1]) Y.append(element[-...
[ "nelle.varoquaux@gmail.com" ]
nelle.varoquaux@gmail.com
915d93ebfb350f0981dab2804861e7fe19306cc7
b0ede55e98d454f558e5397369f9265893deedb5
/SWEA/D3/4698_special_prime.py
7e90335df7e3a59a8beb755177ef82b1905f53a7
[]
no_license
YeonggilGo/python_practice
5ff65852900c4c6769d541af16f74a27a67920ec
43082568b5045a8efc1d596074bdca3e66b2fed1
refs/heads/master
2023-06-22T02:09:31.906745
2023-06-17T01:27:22
2023-06-17T01:27:22
280,361,205
0
0
null
null
null
null
UTF-8
Python
false
false
499
py
primes = [] numbers = [True] * 1000001 numbers[0], numbers[1] = False, False for i in range(2, 1000001): if numbers[i]: primes.append(i) for j in range(i, 1000001, i): numbers[j] = False T = int(input()) for tc in range(1, T + 1): D, A, B = map(int, input().split()) ans = 0 for prim...
[ "dudrlf1859@naver.com" ]
dudrlf1859@naver.com
ba59ebba2e068546face3a92c586930dc6c334c9
a45c87da1d573891a6009546b58320e6e9e0a54e
/html_compiler/compiler.py
ca07b433b7198def73b4a5f7ebd278ef26c0fcb4
[ "MIT" ]
permissive
hsuanhauliu/html-compiler
f805254a5b58c3b21a95882d98784f55d63547fb
17f2659b95153690b517f58964f9002426c08c03
refs/heads/master
2020-09-11T12:00:12.677145
2019-12-14T06:10:05
2019-12-14T06:10:05
222,057,278
2
0
null
null
null
null
UTF-8
Python
false
false
1,204
py
""" Compiler module. """ import os from bs4 import BeautifulSoup def compile(path): """ Recursive function for merging components """ soup = "" next_dir, filename = _separate_dir_and_file(path) with cd(next_dir): with open(filename, "r") as rfile: soup = BeautifulSoup(rfile, ...
[ "hsuanhal@usc.edu" ]
hsuanhal@usc.edu
b8fbc89b00c608ef7d1a47c1ca35b6688318a5ea
2776f806297ae2f05d6c6bcbf2205ed8eb3b9db8
/ico/tests/contracts/test_require_customer_id.py
3dfa23e0d176551f9efd672c9a4c5a07982db7b1
[ "Apache-2.0" ]
permissive
ZOLTbyZENUM/ico
138207db242053ded62ecc9a4f7d273209232a3f
26e4ae717e5f04a3f41f32f5f52f7dddedaac65d
refs/heads/master
2022-12-12T16:01:40.922647
2018-02-28T12:47:33
2018-02-28T12:47:33
123,442,497
0
0
NOASSERTION
2022-12-08T00:42:32
2018-03-01T14:02:07
Python
UTF-8
Python
false
false
2,433
py
"""Customer id tracking.""" import uuid import pytest from ethereum.tester import TransactionFailed from eth_utils import to_wei from ico.tests.utils import time_travel from ico.state import CrowdsaleState from sha3 import keccak_256 from rlp.utils import decode_hex @pytest.fixture def crowdsale(uncapped_flatprice,...
[ "mikko@opensourcehacker.com" ]
mikko@opensourcehacker.com
fc9ba580ad9a11c6f67bcea854c79af053e832b4
2a5145f811c0679b35af367d25fce5914c2e0e40
/Algorithm/169_MajorityElement.py
641252ef81bfbf55f340168da7a95c33bb00a40e
[]
no_license
lingtianwan/Leetcode
8f93fc3fc85db289ca8f618143af2a43711425ba
bf2edab87dd96afab1ff411df35d3163c1dfdc55
refs/heads/master
2021-01-12T19:16:31.918703
2017-02-09T01:50:53
2017-02-09T01:50:53
81,396,498
0
0
null
null
null
null
UTF-8
Python
false
false
485
py
# Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. # # You may assume that the array is non-empty and the majority element always exist in the array. class Solution(object): def majorityElement(self, nums): """ :type num...
[ "lingtian.wan@gmail.com" ]
lingtian.wan@gmail.com
d935698ed1490a86579c7639a9248a6761ca3fde
0125bbe0ce453e94604ff5834fbc280fe44f3220
/transquest/algo/sentence_level/siamesetransquest/readers/__init__.py
ae4c6526b6069a91c156cfd8a0f55c7f847bb325
[ "Apache-2.0" ]
permissive
mfomicheva/TransQuest
fc51bcb90e386534845841fd75a3860054e76dd7
4225f7195a703414ed13ce597854cc1a59703229
refs/heads/master
2023-06-12T14:52:49.066705
2021-05-07T10:35:21
2021-05-07T10:35:21
263,876,762
6
1
Apache-2.0
2020-05-14T09:52:07
2020-05-14T09:52:06
null
UTF-8
Python
false
false
231
py
# from .input_example import InputExample # from .label_sentence_reader import LabelSentenceReader # from .nli_data_reader import NLIDataReader # from .qe_data_reader import QEDataReader # from .triplet_reader import TripletReader
[ "rhtdranasinghe@gmail.com" ]
rhtdranasinghe@gmail.com
ce69a986c534d70a5aa60a0025175768ba380815
52b5773617a1b972a905de4d692540d26ff74926
/.history/clouds_20200703155257.py
611b20c61a4e392632a8177a3ecf3c4d6ae86dde
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
def jumpingClouds(c): i = 0 jumps = 0 while i < len(c)-2: if c[i+2] == 0: print('c------>',i,c[i]) print('here1') jumps +=1 elif c[i+1] == 0: print('here') jumps +=1 i +=1 print(jumps) ...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
e41960c52ed9f1d8f4899297c7aa4df4e18f5413
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/6/og-.py
e881559c8f292114595ae1314a66e46d1d5952e6
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
28ded34c244dfde21440e7b8a4c967128d3118be
b39d72ba5de9d4683041e6b4413f8483c817f821
/GeneVisualization/ass1/Lib/site-packages/itk/itkImageDuplicatorPython.py
feba22d089e1bed3a6240415b04b2f8985228d76
[]
no_license
ssalmaan/DataVisualization
d93a0afe1290e4ea46c3be5718d503c71a6f99a7
eff072f11337f124681ce08742e1a092033680cc
refs/heads/master
2021-03-13T05:40:23.679095
2020-03-11T21:37:45
2020-03-11T21:37:45
246,642,979
0
0
null
null
null
null
UTF-8
Python
false
false
149,049
py
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.8 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (3, 0, 0): new_instancemethod = lambda func, inst, cls: _itkI...
[ "44883043+ssalmaan@users.noreply.github.com" ]
44883043+ssalmaan@users.noreply.github.com
158c8568933800e1a190e58735a06e07f2d82e6b
21d21402c70d8a95d9a4b492078e3fb36e2c9af1
/shivi_khanuja/django/DojoNinja/apps/dojoninja/apps.py
d4941bb2d14a3111f7bbf5c0ed2410810df42a05
[]
no_license
hmp36/python_aug_2017
df897a1b0aa161300386192d48e3fcac9eb495c8
8747429b91b09349e5b5469d8932593b06f645e1
refs/heads/master
2021-04-29T23:16:50.149226
2017-09-11T20:14:37
2017-09-11T20:14:37
121,552,666
1
0
null
2018-02-14T19:34:54
2018-02-14T19:34:54
null
UTF-8
Python
false
false
166
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class DojoninjaConfig(AppConfig): name = 'dojoninja'
[ "shivalikhanuja.net@gmail.com" ]
shivalikhanuja.net@gmail.com
cc7e2f7e8d161493bd6b230d519996a73308c768
7b6377050fba4d30f00e9fb5d56dfacb22d388e1
/brownies/bin/lev-vis.py
f897e5f5de2f2be76fa12584493985dffe688620
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
LLNL/fudge
0a4fe8e3a68b66d58e42d1f4d209ea3f713c6370
6ba80855ae47cb32c37f635d065b228fadb03412
refs/heads/master
2023-08-16T21:05:31.111098
2023-08-01T22:09:32
2023-08-01T22:09:32
203,678,373
21
4
NOASSERTION
2023-06-28T20:51:02
2019-08-21T23:22:20
Python
UTF-8
Python
false
false
7,520
py
#! /usr/bin/env python import sys import os import argparse import brownies.BNL.RIPL.level_density as LD import brownies.BNL.RIPL.level_scheme as LS from PoPs.chemicalElements .misc import symbolFromZ as elementSymbolFromZ import numpy as np import matplotlib.pyplot as plt HOME=os.environ['HOME'] DESKTOP=HOME+'/Deskto...
[ "mattoon1@llnl.gov" ]
mattoon1@llnl.gov
bd0caf3452ccfe76d5df1c8d98d8f0cb9a1b329a
384d0be5ac54b306b945cf38c10d9b0a44c975ea
/stack/keystone/keystone/logic/types/biller.py
00a135b11cbea421c4b431b0ff3dd0914cf9dfc5
[ "Apache-2.0" ]
permissive
ashokcse/openstack-bill
05ae313637b3cfecba946d2a9b32e8c7609fc721
1a3d7575d4b341f64fa1764ed47e47a7504a9bcc
refs/heads/master
2021-01-18T14:05:24.696165
2012-09-12T11:29:20
2012-09-12T11:29:20
5,424,267
5
2
null
null
null
null
UTF-8
Python
false
false
19,643
py
# Copyright (c) 2010-2011 OpenStack, LLC. # # 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 ...
[ "ashokcse@live.com" ]
ashokcse@live.com
56c82dd9a2f16f67ef47c7062fa1ce5db1ae45cf
029948b3fd0e41d80d66c84d808abff4fcb24ac8
/test/test_path_response_result_response_egress_physical_interface.py
b1100af354156581698006d61033889305c3445f
[]
no_license
yijxiang/dnac-api-client
842d1da9e156820942656b8f34342d52c96d3c37
256d016e2df8fc1b3fdad6e28f441c6005b43b07
refs/heads/master
2021-09-25T21:10:09.502447
2018-10-25T14:39:57
2018-10-25T14:39:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,169
py
# coding: utf-8 """ Cisco DNA Center Platform v. 1.2.x (EFT) REST API (EFT) # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import dnac_api_client from dnac_api_client.models...
[ "cunningr@cisco.com" ]
cunningr@cisco.com
d3238509ecaea8d3e0a51a8943890b4578e5a8da
e3d447a81c5462d2d14201f2bc6b82cdcbbca51a
/chapter10/c10_6_addition.py
af50d5e3378247cb7a726c51df05b727370cecc4
[]
no_license
barcern/python-crash-course
f6026f13f75ecddc7806711d65bc53cb88e24496
8b55775c9f0ed49444becb35b8d529620537fa54
refs/heads/master
2023-04-19T17:28:44.342022
2021-02-07T23:51:06
2021-02-07T23:51:06
257,201,280
2
3
null
2021-05-12T17:35:56
2020-04-20T07:14:28
Python
UTF-8
Python
false
false
2,214
py
# -*- coding: utf-8 -*- """ Created on Sun Jul 26 12:27:25 2020 @author: barbora One common problem when prompting for numerical input occurs when people provide text instead of numbers. When you try to convert the input to an int, you'll get a ValueError. Write a program that prompts for two numbers. Add them toge...
[ "bcernakova01@gmail.com" ]
bcernakova01@gmail.com
562d159153258105237dee275a61136e7c194853
e6dab5aa1754ff13755a1f74a28a201681ab7e1c
/.parts/lib/django-1.3/django/contrib/localflavor/generic/forms.py
b8a111a6b5f57fa81698f292b86258925d561b4a
[]
no_license
ronkagan/Euler_1
67679203a9510147320f7c6513eefd391630703e
022633cc298475c4f3fd0c6e2bde4f4728713995
refs/heads/master
2021-01-06T20:45:52.901025
2014-09-06T22:34:16
2014-09-06T22:34:16
23,744,842
0
1
null
null
null
null
UTF-8
Python
false
false
109
py
/home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.3/django/contrib/localflavor/generic/forms.py
[ "ron.y.kagan@gmail.com" ]
ron.y.kagan@gmail.com
bdf4f576aceba31d7d274c2ec7efd61e1f4a337c
5d48aba44824ff9b9ae7e3616df10aad323c260e
/bfs/127.word_ladder.py
0e02bffe5c4014c13978aea31a08fd842253ceea
[]
no_license
eric496/leetcode.py
37eab98a68d6d3417780230f4b5a840f6d4bd2a6
32a76cf4ced6ed5f89b5fc98af4695b8a81b9f17
refs/heads/master
2021-07-25T11:08:36.776720
2021-07-01T15:49:31
2021-07-01T15:49:31
139,770,188
3
0
null
null
null
null
UTF-8
Python
false
false
1,705
py
""" Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence from beginWord to endWord, such that: Only one letter can be changed at a time. Each transformed word must exist in the word list. Note that beginWord is not a transformed word. Note: Return 0...
[ "eric.mlengineer@gmail.com" ]
eric.mlengineer@gmail.com
8ddbe698c1c73e311e9b99a820e4b99697b3fd9b
50008b3b7fb7e14f793e92f5b27bf302112a3cb4
/recipes/Python/576811_Rename_MP3_files_ID3_tags_does_not_require/recipe-576811.py
292eebcc019eb27b01d8285188c18bb6380e649e
[ "MIT" ]
permissive
betty29/code-1
db56807e19ac9cfe711b41d475a322c168cfdca6
d097ca0ad6a6aee2180d32dce6a3322621f655fd
refs/heads/master
2023-03-14T08:15:47.492844
2021-02-24T15:39:59
2021-02-24T15:39:59
341,878,663
0
0
MIT
2021-02-24T15:40:00
2021-02-24T11:31:15
Python
UTF-8
Python
false
false
26,410
py
""" Read ID3 tags from a file. Ned Batchelder, http://nedbatchelder.com/code/modules/id3reader.html http://nedbatchelder.com/code/modules/id3reader.py * original code modified by ccpizza: added code to main method to rename files in current folder from ID3 tags, e.g. 'Track_01.mp3' >> '01 - Cha...
[ "betty@qburst.com" ]
betty@qburst.com
be45bcb1e674793f5bb4889a3cdcada07a013a45
5b71e2952f34dd3bb20148874d952fee06d31857
/app/mf/crud/migrations/0100_auto_20210206_1820.py
41f0df779972b165576ab9f2962e9261c1ec7a13
[]
no_license
isela1998/facebook
a937917cddb9ef043dd6014efc44d59d034102b1
a0f2f146eb602b45c951995a5cb44409426250c5
refs/heads/master
2023-07-18T02:14:50.293774
2021-08-28T03:26:06
2021-08-28T03:26:06
400,613,743
0
0
null
null
null
null
UTF-8
Python
false
false
432
py
# Generated by Django 3.1.1 on 2021-02-06 22:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('crud', '0099_debts_rate'), ] operations = [ migrations.AlterField( model_name='debts', name='rate', fiel...
[ "infantefernandezisela@gmail.com" ]
infantefernandezisela@gmail.com
f22af6b6113dc3091f9553766e30977fce309d38
db5264994305e8c926f89cb456f33bd3a4d64f76
/Sklep zielarski/account/urls.py
8f5e4dae0dd33bbbd640d540c02340a153233e68
[]
no_license
marcinpelszyk/Django
7842e20d5e8b213c4cd42c421c1db9ab7d5f01d5
aff2b9bd20e978a22a4a98994bf8424892d3c82f
refs/heads/main
2023-05-01T19:20:37.267010
2021-05-18T17:51:53
2021-05-18T17:51:53
356,532,628
0
0
null
null
null
null
UTF-8
Python
false
false
3,026
py
from django.contrib.auth import views as auth_views from django.urls import path from django.views.generic import TemplateView from . import views from .forms import PwdResetConfirmForm, PwdResetForm, UserLoginForm app_name = 'account' urlpatterns = [ path('login/', auth_views.LoginView.as_view(template_name='...
[ "marcin.pelszyk90@gmail.com" ]
marcin.pelszyk90@gmail.com
88850f9c8b1aef4142ac6d51fb5ce192a8482057
be1e8444482e40df5d02d57964f61cfbd9249f13
/Django-0.90/django/core/db/backends/postgresql.py
b1b2d9cb52d964e5d1fd6012266dabed23eedd4c
[ "BSD-3-Clause", "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
tungvx/deploy
9946d4350f5fbc5da25d45505b75384fd40e6088
9e1917c6c645b4ce0efe115b0da76027d4bc634c
refs/heads/master
2021-01-02T09:08:45.691746
2011-11-12T19:44:48
2011-11-12T19:44:48
2,763,145
1
0
null
null
null
null
UTF-8
Python
false
false
7,276
py
""" PostgreSQL database backend for Django. Requires psycopg 1: http://initd.org/projects/psycopg1 """ from django.core.db import base, typecasts import psycopg as Database DatabaseError = Database.DatabaseError class DatabaseWrapper: def __init__(self): self.connection = None self.queries = [] ...
[ "toilatung90@gmail.com" ]
toilatung90@gmail.com
c3a204b93156cbcd8e27787d9c7665ae8196a3c3
ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f
/Sourcem8/pirates/instance/DistributedTeleportMgr.py
b9c0736e2218759b8f8a6859c8f75acb8541aa1b
[]
no_license
BrandonAlex/Pirates-Online-Retribution
7f881a64ec74e595aaf62e78a39375d2d51f4d2e
980b7448f798e255eecfb6bd2ebb67b299b27dd7
refs/heads/master
2020-04-02T14:22:28.626453
2018-10-24T15:33:17
2018-10-24T15:33:17
154,521,816
2
1
null
null
null
null
UTF-8
Python
false
false
31,217
py
from pandac.PandaModules import * from direct.task import Task from direct.distributed import DistributedObject from pirates.piratesbase import PiratesGlobals from pirates.world import ZoneLOD from direct.showbase.PythonUtil import report from otp.otpbase import OTPLocalizer from pirates.piratesbase import PLocalizer f...
[ "brandoncarden12345@gmail.com" ]
brandoncarden12345@gmail.com
3ea0bb442577424dd93a06877b4cb480971dc827
d7f4e330f5d803c8cd495729fd86da61b89565f3
/torch/_meta_registrations.py
0511b5188fbea63e9c0427f06428dc9859aa3885
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
awf/pytorch
55ff84549c17579a1f62910ef2ac7b1dcd6fa897
0dceaf07cd1236859953b6f85a61dc4411d10f87
refs/heads/master
2023-02-08T13:19:22.073279
2023-01-29T10:36:40
2023-01-29T10:36:43
239,372,903
0
0
NOASSERTION
2020-02-09T20:55:23
2020-02-09T20:55:22
null
UTF-8
Python
false
false
82,649
py
import math from typing import List, Optional, Union import torch import torch._prims_common as utils from torch import Tensor from torch._decomp import _add_op_to_registry, global_decomposition_table, meta_table from torch._ops import OpOverload from torch._prims import _elementwise_meta, ELEMENTWISE_PRIM_TYPE_PROMOT...
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
8eda4c8d2fd5781128748cfa3f14c23c06229fc3
10e19b5cfd59208c1b754fea38c34cc1fb14fdbe
/desktop/core/ext-py/Babel-0.9.6/babel/messages/tests/data/project/ignored/this_wont_normally_be_here.py
f26ddee1f7972ffe1050d7bb17ab8f960c38096a
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
sarvex/hue
780d28d032edd810d04e83f588617d1630ec2bef
6e75f0c4da2f3231e19c57bdedd57fb5a935670d
refs/heads/master
2023-08-15T21:39:16.171556
2023-05-01T08:37:43
2023-05-01T08:37:43
32,574,366
0
0
Apache-2.0
2023-09-14T16:55:28
2015-03-20T09:18:18
Python
UTF-8
Python
false
false
295
py
# -*- coding: utf-8 -*- # This file won't normally be in this directory. # It IS only for tests from gettext import ngettext def foo(): # Note: This will have the TRANSLATOR: tag but shouldn't # be included on the extracted stuff print ngettext('FooBar', 'FooBars', 1)
[ "bcwalrus@cloudera.com" ]
bcwalrus@cloudera.com
1621790e8faa136dc64077fdd7cd47ca87f200ae
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/85/usersdata/228/54502/submittedfiles/funcoes1.py
881c334b3cea4bdaa4890004b8352ae9eab83fdf
[]
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
1,624
py
# -*- coding: utf-8 -*- n=int(input('digite o número de elementos:')) lista1=[] lista2=[] lista3=[] for i in range(0,n,1): elemento1=int(input('digite o elemento:')) lista1.append(elemento1) elemento2=int(input('digite o elemento:')) lista2.append(elemento2) elemento3=int(input('digite o element...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
ea81a3f2769fe2186891c4edce86d5f3c483d4e5
940622a48cc8711a39dd7f36122bae1e25ee2fcc
/QuestionTime/QuestionTime/urls.py
a68ebcf6bfba297eff05f5c23e941b75964ca7f5
[]
no_license
merveealpay/django-vue-question-app
144d1f9b49cd1f0cbd91820c2c11cc42ff95a09d
f12c88bdbfcac685b7098145370e13be935c8d8f
refs/heads/main
2023-02-05T12:58:28.651036
2020-12-27T18:05:35
2020-12-27T18:05:35
319,586,207
2
0
null
null
null
null
UTF-8
Python
false
false
1,738
py
"""QuestionTime 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-...
[ "merveealpay@gmail.com" ]
merveealpay@gmail.com
2317b9612a821152993d2c8d3d77909c6a5d504f
69266a7696f5f8be7c78fd29ef68a7619e41d28d
/Tools/ComputeTool.py
9353c424e8d6deac1c49914c31c6768d29dd1ec4
[]
no_license
microelly2/PyFlowWWW
52deb54deb2db668cd21e9ce251894baaa663823
0b3d0009494327b2ec34af9fbca2a5fee1fef4a4
refs/heads/master
2022-04-14T02:35:08.999370
2020-04-11T19:48:54
2020-04-11T19:48:54
254,876,907
0
0
null
null
null
null
UTF-8
Python
false
false
3,464
py
## Copyright 2015-2019 Ilgar Lunin, Pedro Cabrera, microelly ## 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 applic...
[ "thomas@freecadbuch.de" ]
thomas@freecadbuch.de
2b63fb46758a1f007ae3ed5ce851d0c3a99bb6e0
f5788e1e1d8522c0d4ae3b4668faa5537680cb07
/mutual_sale_discount_total/__openerp__.py
55acff682f3f211f074ab7660a836cc839f366de
[]
no_license
mutualSecurity/mutual-erp-residential
8549e179af6df1ffceadf42369d69d4dd44f07ac
88debefc662dd1510a1d52a877ede4673c319532
refs/heads/master
2021-11-11T13:33:37.878051
2021-11-02T10:14:49
2021-11-02T10:14:49
71,433,705
1
2
null
null
null
null
UTF-8
Python
false
false
1,007
py
{ 'name': 'Sale Discount on Total Amount', 'version': '1.0', 'category': 'sale', 'sequence': 6, 'summary': "Discount on total in Sale and invoice with Discount limit and approval", 'author': 'Cybrosys Techno Solutions', 'company': 'Cybrosys Techno Solutions', 'website': 'http://www.cybro...
[ "pk_bscs@yahoo.com" ]
pk_bscs@yahoo.com
e72f4db6ed6a6653152baab96d0fa3235cbf675b
9c13bffaf12c83b049375cf24e12183fcab3a2aa
/venv/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py
a8e60f360279eb602a4e07bb27447e0a0d22f3b3
[]
no_license
brielino/SDCCTestAnsible
b702d48c934c8bde9638ceba3b27fabf9dd40071
857f66860de2ad889455789b60a162506d3125a1
refs/heads/master
2022-12-09T13:15:29.030558
2020-09-12T14:51:31
2020-09-12T14:51:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
29,310
py
# -*- coding: utf-8 -*- """ requests.session ~~~~~~~~~~~~~~~~ This module provides a Session object to manage and persist settings across requests (cookies, auth, proxies). """ import os import sys import time from datetime import timedelta from collections import OrderedDict from .auth import _basic_auth_str from ....
[ "melissaripaolo@gmail.com" ]
melissaripaolo@gmail.com
d5672859a1c11baa0302a06e15050c61a8db266f
70ac291bcf11d8452c6b1ade5fbadd0003d9e613
/machine_learning_机器学习/准确率(Accuracy)、精确率(Precision)、召回率(Recall)、F值(F-Measure)等评估指标的计算.py
8c51fb9bad3621e3c8e70198ca29c52253849f25
[]
no_license
SnowWhiteZ/hello-world
10cc1faf508340f835fffbf3c587101e3e0e78a5
e43793b413016eb2f52b40990a8f1b493d29c983
refs/heads/master
2022-03-12T22:10:42.163091
2019-12-02T09:58:15
2019-12-02T09:58:15
225,376,506
1
0
null
null
null
null
UTF-8
Python
false
false
4,456
py
#!/usr/bin/python3 # coding: utf-8 import numpy as np from sklearn.metrics import f1_score, accuracy_score, fbeta_score, precision_score, recall_score from sklearn.metrics import classification_report from sklearn.metrics import accuracy_score, f1_score, roc_auc_score # 真实标签 y_true = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ "gswyhq@126.com" ]
gswyhq@126.com
e3f5bdca5d9a2bf0d000ba393a7b25ae175ccf9a
63f8b7a3c3b5ab4c67f3ec6c60c3c327245afe66
/experiments/scripts/compare_throughput.py
3e3109181a11913d7287b510eae2e8bd42115c33
[]
no_license
DanielTakeshi/dqn
719da28568963f1b2ba041652e32a3d2a62ec191
6f9dc0d8aedb1319fd5333295e6561027c68bab2
refs/heads/main
2021-01-13T01:48:38.235101
2020-11-11T01:35:45
2020-11-11T01:35:45
311,830,436
3
0
null
null
null
null
UTF-8
Python
false
false
18,967
py
"""This combines a bunch of learning curves for all the games. For bar charts, see `combine_student_results.py`. """ import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import seaborn as sns from matplotlib import offsetbox from matplotlib.ticker import FuncFormatter import argparse, csv, math, os,...
[ "takeshidanny@gmail.com" ]
takeshidanny@gmail.com
c52d673bdcbfae703d470556fea4604762501224
91f2e23782b05aa1fb273f3170c50dc4185e8dc1
/clif/pybind11/staging/virtual_funcs_basics_test.py
6238c3144d5233fd2ad32b961ceef33c93be6b74
[ "Apache-2.0" ]
permissive
anukaal/clif
152fd58e575b90d626a300875aac71cdf69ec6a3
8ff675bf93599f4d4a4865376b441d8d0551fd54
refs/heads/main
2023-08-03T19:47:00.538660
2021-09-14T05:50:43
2021-09-30T01:00:14
406,238,691
0
0
Apache-2.0
2021-09-14T05:39:04
2021-09-14T05:39:03
null
UTF-8
Python
false
false
3,058
py
# Copyright 2020 Google LLC # # 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, ...
[ "rwgk@google.com" ]
rwgk@google.com
4c1785f655e01342cbdda1667b1a388889254f6b
2daa3894e6d6929fd04145100d8a3be5eedbe21c
/tests/artificial/transf_pow3/trend_poly/cycle_7/ar_12/test_artificial_32_pow3_poly_7_12_100.py
7f5a2931b6b59c48d8a1216fadd94ec7826eabbc
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Henri-Lo/pyaf
a1f73a0cc807873bd7b79648fe51de9cfd6c126a
08c968425d85dcace974d90db7f07c845a0fe914
refs/heads/master
2021-07-01T12:27:31.600232
2017-09-21T11:19:04
2017-09-21T11:19:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art dataset = tsds.generate_random_TS(N = 32 , FREQ = 'D', seed = 0, trendtype = "poly", cycle_length = 7, transform = "pow3", sigma = 0.0, exog_count = 100, ar_order = 12); art.process_dataset(dataset);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
9dc8e842d1c50ed74d1c5b4728ef47282db16f7c
cf43421567c1634abe1df885c6e185a180659708
/Extract/common.py
cd7e1ac1c4a6b11a70a4290fe71d6d2217580e77
[]
no_license
fabio-gz/ETL_newspaper
4c5239892098840a730ecf3b58452054a50e914b
7458701eab76821a1fd65f0821356b1e7924bc97
refs/heads/master
2023-01-11T05:01:39.773346
2020-11-16T22:10:57
2020-11-16T22:10:57
292,719,167
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
# cargar yaml import yaml #global var __config = None def config(): global __config if not __config: with open('config.yml', mode='r') as f: __config = yaml.safe_load(f) return __config
[ "fabiogomez.silva@gmail.com" ]
fabiogomez.silva@gmail.com
3cbc9bfba6c7cc7ac49325cfc8ffaf1622d354b1
bdaed512916fcf96e5dc915538fe8598aeb2d3cf
/mcex/history/nphistory.py
f042a176b3e0f6b83b0c8e8c2c2c693ec6657ff1
[]
no_license
jsalvatier/mcex
9657cc2e8083f4e4dd013baaaceba08f9a48754e
040f49bfd6eb467ef4d50d15de25033b1ba52c55
refs/heads/master
2021-06-18T19:02:07.055877
2017-01-22T01:10:01
2017-01-22T01:10:01
1,455,409
9
3
null
2012-06-21T18:07:36
2011-03-08T17:02:42
Python
UTF-8
Python
false
false
954
py
''' Created on Mar 15, 2011 @author: jsalvatier ''' import numpy as np class NpHistory(object): """ encapsulates the recording of a process chain """ def __init__(self, max_draws): self.max_draws = max_draws self.samples = {} self.nsamples = 0 def record(self, point): ...
[ "jsalvatier@gmail.com" ]
jsalvatier@gmail.com
665fa4ba03e6c225b3c0e1b947ee5d50644e1b6b
4b660991e5c9c93c83dccccdd3ea91531201e8a3
/DSA/stack/balanced_parentheses.py
b4f1220d5f0ec9e0f22a0eb60703bc0198df83f8
[ "MIT" ]
permissive
RohanMiraje/DSAwithPython
2a1515fa5f9e5cc76b08a3e6f0ce34e451fb6f4b
ea4884afcac9d6cc2817a93e918c829dd10cef5d
refs/heads/master
2022-09-24T08:57:04.695470
2021-10-21T01:06:06
2021-10-21T01:06:06
238,381,770
2
0
null
null
null
null
UTF-8
Python
false
false
1,280
py
def check_balanced_parentheses(string): stack = list() matches = [("(", ")"), ("{", "}"), ("[", "]")] if len(string) % 2: """ base condition to early check assuming string has only parentheses """ return False for char in string: if char in ['(', '{', '[']: ...
[ "rohanmiraje19@gmail.com" ]
rohanmiraje19@gmail.com
14349834269be1eb71541b0b9ba7c9447bd65661
6f9a5717fed38b0a79c399f7e5da55c6a461de6d
/Baekjoon/TreeDiameter.py
403cdb3ebca8db3488b4692be26727c85cc6920a
[]
no_license
Alfred-Walker/pythonps
d4d3b0f7fe93c138d02651e05ca5165825676a5e
81ef8c712c36aa83d1c53aa50886eb845378d035
refs/heads/master
2022-04-16T21:34:39.316565
2020-04-10T07:50:46
2020-04-10T07:50:46
254,570,527
1
1
null
null
null
null
UTF-8
Python
false
false
2,267
py
# 트리의 지름이란, 트리에서 임의의 두 점 사이의 거리 중 가장 긴 것을 말한다. # 트리의 지름을 구하는 프로그램을 작성하시오. # # 입력 # 트리가 입력으로 주어진다. # 먼저 첫 번째 줄에서는 트리의 정점의 개수 V가 주어지고 (2≤V≤100,000) # 둘째 줄부터 V개의 줄에 걸쳐 간선의 정보가 다음과 같이 주어진다. # (정점 번호는 1부터 V까지 매겨져 있다고 생각한다) # # 먼저 정점 번호가 주어지고, 이어서 연결된 간선의 정보를 의미하는 정수가 두 개씩 주어지는데, # 하나는 정점번호, 다른 하나는 그 정점까지의 거리이다. # 예를 들어 네 번째...
[ "studio.alfred.walker@gmail.com" ]
studio.alfred.walker@gmail.com
d3980370454d25fd98274030292d5c8ed674a8f7
4116790ee11de30eade92cabd5cddcb0978eb2c9
/employeerest/company/company/views.py
bce69d005ffe90441d1cc9375a9ca66db31e094a
[]
no_license
Joel-hanson/djangomytutorial
4e8aadbccea831bb8f7e4cf0de3d35e4bfeaadc0
93d2925ae1a8d5f5dcec03e0c85b3ff0e492d125
refs/heads/master
2021-08-30T10:48:42.207229
2017-12-17T14:43:34
2017-12-17T14:43:34
108,539,027
1
0
null
null
null
null
UTF-8
Python
false
false
267
py
from django.views.generic import TemplateView class TestPage(TemplateView): template_name = 'firstapp/test.html' class ThanksPage(TemplateView): template_name = 'firstapp/thanks.html' class HomePage(TemplateView): template_name = 'firstapp/index.html'
[ "joelhanson025@gmail.com" ]
joelhanson025@gmail.com
eca0f1c99ec492e8b3c6a27b02d6557f8aa3ae1b
84c2fa4aed9094b5ec3cc612d28980afe5d42d34
/leetcode/day11_24.py
a6e997a5b64e66b53c1eb8fab9ec554c45fcd371
[]
no_license
cyg2695249540/generatewework
186831a1b5c788e9b99e90d1a08bf6a8638131ce
cd01b0fc4a69cc2f2ed4c109afdf8771bee3bffd
refs/heads/master
2023-01-20T17:13:13.186034
2020-12-01T12:05:01
2020-12-01T12:05:01
310,201,995
0
0
null
null
null
null
UTF-8
Python
false
false
925
py
# !/usr/bin/env Python3 # -*- coding: utf-8 -*- # @FILE : day11_24.py # @Author : Pluto. # @Time : 2020/11/24 16:06 """ exp:66. 加一 给定一个由 整数 组成的 非空 数组所表示的非负整数,在该数的基础上加一。 最高位数字存放在数组的首位, 数组中每个元素只存储单个数字。 你可以假设除了整数 0 之外,这个整数不会以零开头。 示例1: 输入:digits = [1,2,3] 输出:[1,2,4] 解释:输入数组表示数字 123。 示例2: 输入:digits = [4,3,2,1] 输出:...
[ "2695249540@qq.com" ]
2695249540@qq.com
c6216e017e386c6fcba6a03eb401c29dae4b42b7
abfa70e1da5b4ba8e465cdc046fa36e81386744a
/base_ml/10.1.Iris_DecisionTree.py
68bd1cb46b1c29c5cf1e31ca7b17b59b9c34a20c
[]
no_license
superman666ai/crazy_project
f850819ff2287e345b67500111733bafa5629d1f
99dcba0fe246ecaf3f556f747d44731a04231921
refs/heads/master
2020-05-15T09:32:56.523875
2019-05-16T00:57:23
2019-05-16T00:57:23
182,179,544
0
0
null
null
null
null
UTF-8
Python
false
false
4,473
py
#!/usr/bin/python # -*- coding:utf-8 -*- import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl from sklearn import tree from sklearn.tree import DecisionTreeClassifier from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler from sklearn.pipeline impor...
[ "keepingoner@163.com" ]
keepingoner@163.com
edbfd9f211f972906a7be68a3b1de4ba080d1d03
4e2a22470c983bc6f8463b4d0bd2563e2b4fadba
/manage.py
91afffd0eea54135379279692eb3ab4988697b8b
[]
no_license
payush/ayush-crowdbotics-375
8537f9a86fcdcda7418a0c10a5f258bafc07dd9c
c11bdd721d91e765bcb04379dac476279e6ca599
refs/heads/master
2020-03-23T22:34:09.700234
2018-07-24T16:09:19
2018-07-24T16:09:19
142,182,994
0
0
null
null
null
null
UTF-8
Python
false
false
819
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ayush_crowdbotics_375.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. En...
[ "ayushpuroheet@gmail.com" ]
ayushpuroheet@gmail.com
7f19e8afa6fdab3a0d7af9f55578ca1ba59afa65
81061f903318fceac254b60cd955c41769855857
/server/paiements/migrations/0003_auto__chg_field_transaction_extra_data.py
b059e9dea63be589ea180dbfe9a60bdc411cea7a
[ "BSD-2-Clause" ]
permissive
agepoly/polybanking
1e253e9f98ba152d9c841e7a72b7ee7cb9d9ce89
f8f19399585293ed41abdab53609ecb8899542a2
refs/heads/master
2020-04-24T06:15:16.606580
2015-10-26T19:52:03
2015-10-26T19:52:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,133
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'Transaction.extra_data' db.alter_column(u'paiements_transaction', 'extra_data', self.gf('...
[ "maximilien@theglu.org" ]
maximilien@theglu.org
1cb69e60aa615509cf524ab1fb086168647ae432
7dc80048f72e106f977b49ea882c63cc9623e3ef
/notebooks/other/Y2017M07D28_RH_python27setup_v01.py
250e214bbfc2fd21afe44797cb7e69bbeb700a16
[]
no_license
YanCheng-go/Aqueduct30Docker
8400fdea23bfd788f9c6de71901e6f61530bde38
6606fa03d145338d48101fc53ab4a5fccf3ebab2
refs/heads/master
2022-12-16T03:36:25.704103
2020-09-09T14:38:28
2020-09-09T14:38:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
742
py
# coding: utf-8 # # Test Python 27 setup # # * Purpose of script: test python 27 environement against several libraries # * Author: Rutger Hofste # * Kernel used: python27 # * Date created: 20170728 # # # In[3]: packages = {"earth engine":-1,"gdal":-1,"geopandas":-1,"arcgis":-1} # In[6]: try: import ee ...
[ "rutgerhofste@gmail.com" ]
rutgerhofste@gmail.com
fa831199505226547d9cfa53b8caf0ccbd1afd58
fa7e75212e9f536eed7a78237a5fa9a4021a206b
/OLD_ROOT/Backend/SMQTK_Backend/utils/jsmin/test.py
7aba6993dc941efa2e6ea9557fd99d5a9b43b720
[]
no_license
kod3r/SMQTK
3d40730c956220a3d9bb02aef65edc8493bbf527
c128e8ca38c679ee37901551f4cc021cc43d00e6
refs/heads/master
2020-12-03T09:12:41.163643
2015-10-19T14:56:55
2015-10-19T14:56:55
44,916,678
1
0
null
2015-10-25T15:47:35
2015-10-25T15:47:35
null
UTF-8
Python
false
false
8,702
py
import unittest import sys # modified path since this is now being embeded in another project. from SMQTK_Backend.utils import jsmin class JsTests(unittest.TestCase): def _minify(self, js): return jsmin.jsmin(js) def assertEqual(self, thing1, thing2): if thing1 != thing2: print(re...
[ "paul.tunison@kitware.com" ]
paul.tunison@kitware.com
6aa6cad3f09fd39c8de6b26302daf10e485cedb5
27ece9ab880a0bdba4b2c053eccda94602c716d5
/.history/save_20181129231105.py
50671059975cdfa4cf895b943b529349ae4d201e
[]
no_license
Symfomany/keras
85e3ad0530837c00f63e14cee044b6a7d85c37b2
6cdb6e93dee86014346515a2017652c615bf9804
refs/heads/master
2020-04-08T20:21:35.991753
2018-11-30T08:23:36
2018-11-30T08:23:36
159,695,807
0
0
null
null
null
null
UTF-8
Python
false
false
2,777
py
import os, argparse import tensorflow as tf # The original freeze_graph function # from tensorflow.python.tools.freeze_graph import freeze_graph dir = os.path.dirname(os.path.realpath(__file__)) def freeze_graph(model_dir, output_node_names): """Extract the sub graph defined by the output nodes and convert ...
[ "julien@meetserious.com" ]
julien@meetserious.com
ff90cd1f1161c0d09ab2942b7f313e655ef548a0
a6bd898302ffebe9066595b264f9e5e38e6fa8e6
/settings_template.py
069b2d192200ef4343a3508486203a989c2cb909
[]
no_license
symroe/teamprime_retweets
65e8ec57095b138be45496eb115fb4da1d1e1af0
08e817da6191a8058b3606b076ba9de6bd253b12
refs/heads/master
2021-01-10T22:04:16.968867
2013-09-20T13:32:03
2013-09-20T13:32:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
CONSUMER_KEY = "" CONSUMER_SECRET = "" ACCESS_TOKEN_KEY = "" ACCESS_TOKEN_SECRET = "" username = "TeamPrimeLtd" TWEET_PATH = "tweets"
[ "sym.roe@talusdesign.co.uk" ]
sym.roe@talusdesign.co.uk
a083a001d9f5a9559169c82b7ac70022a8d131c7
c534fba89ff0462334cc724ff4010cbed829e294
/web/myadmin/migrations/0012_auto_20191019_1638.py
8bbaa46d7e85d15be38f10c54609829eb800d7f6
[]
no_license
victorfengming/python_bookshop
974f5f8ff3b53b024b573f0f256409204116e114
c0a4757fc2031a015d4b198ba889be69a2a4a3c5
refs/heads/master
2020-09-02T18:02:07.547345
2019-11-04T15:10:44
2019-11-04T15:10:44
219,275,403
1
1
null
null
null
null
UTF-8
Python
false
false
366
py
# Generated by Django 2.2.3 on 2019-10-19 16:38 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('myadmin', '0011_auto_20191018_2225'), ] operations = [ migrations.DeleteModel( name='Booktype', ), migrations.DeleteMode...
[ "fengming19981221@163.com" ]
fengming19981221@163.com
6cd666cf9ad2d4f9fbbfd2c624ff106e65444172
7c70f3cbaecfa4d77928c784ae12f232c273112e
/api_client/test_helper.py
92caf6ea0aa0d2d82ca5d95fe1af6896fce47376
[ "MIT" ]
permissive
uktrade/lite-tests-common
d029298d9144a447404d38899ab35ff8e54bf53d
8ae386e55f899d0ffd61cc0a9156cd4db340d6d1
refs/heads/master
2020-08-03T19:20:39.673522
2020-07-21T09:59:01
2020-07-21T09:59:01
211,858,651
1
0
MIT
2020-07-21T09:59:03
2019-09-30T12:49:33
Python
UTF-8
Python
false
false
2,474
py
from .sub_helpers.documents import Documents from .sub_helpers.applications import Applications from .sub_helpers.cases import Cases from .sub_helpers.document_templates import DocumentTemplates from .sub_helpers.ecju_queries import EcjuQueries from .sub_helpers.flags import Flags from .sub_helpers.goods import Goods f...
[ "noreply@github.com" ]
uktrade.noreply@github.com
5aa68c22244a5396ea453095dedc1d96aba4aa72
d9b53673b899a9b842a42060740b734bf0c63a31
/leetcode/python/easy/p645_findErrorNums.py
0b9b378910292d7af736c77ca60c91c415bce9a7
[ "Apache-2.0" ]
permissive
kefirzhang/algorithms
a8d656774b576295625dd663154d264cd6a6a802
549e68731d4c05002e35f0499d4f7744f5c63979
refs/heads/master
2021-06-13T13:05:40.851704
2021-04-02T07:37:59
2021-04-02T07:37:59
173,903,408
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
class Solution: def findErrorNums(self, nums): helper = [0] * len(nums) for i in nums: helper[i - 1] += 1 for i, n in enumerate(helper): print(i, n) if n == 0: lack = i + 1 elif n == 2: more = i + 1 r...
[ "8390671@qq.com" ]
8390671@qq.com
c571164d09a9dfe8ee2571e96a5c3e2bb982d580
44064ed79f173ddca96174913910c1610992b7cb
/Second_Processing_app/temboo/Library/Google/Drive/Revisions/Delete.py
21b2277599036d6311d9fc5895330b8646d5bce5
[]
no_license
dattasaurabh82/Final_thesis
440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5
8edaea62f5987db026adfffb6b52b59b119f6375
refs/heads/master
2021-01-20T22:25:48.999100
2014-10-14T18:58:00
2014-10-14T18:58:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,974
py
# -*- coding: utf-8 -*- ############################################################################### # # Delete # Removes a revision. # # Python version 2.6 # ############################################################################### from temboo.core.choreography import Choreography from temboo.core.choreogra...
[ "dattasaurabh82@gmail.com" ]
dattasaurabh82@gmail.com
36d6fbac09d283afec24203a8c80c252d0e04c93
d7016f69993570a1c55974582cda899ff70907ec
/sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/_backup_protection_containers_operations.py
977185266eeefe7c362fb3931a8a7fd029b3b0e0
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
kurtzeborn/azure-sdk-for-python
51ca636ad26ca51bc0c9e6865332781787e6f882
b23e71b289c71f179b9cf9b8c75b1922833a542a
refs/heads/main
2023-03-21T14:19:50.299852
2023-02-15T13:30:47
2023-02-15T13:30:47
157,927,277
0
0
MIT
2022-07-19T08:05:23
2018-11-16T22:15:30
Python
UTF-8
Python
false
false
6,974
py
# pylint: disable=too-many-lines # 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) AutoRe...
[ "noreply@github.com" ]
kurtzeborn.noreply@github.com
4077ee7230fdd5fcb8bf27ad4eec1e47ecf60567
3d19e1a316de4d6d96471c64332fff7acfaf1308
/Users/J/JasonSanford/great_american_beer_festival.py
ccc57650e41049eee111fa8bbfab0a4bd1f01ccf
[]
no_license
BerilBBJ/scraperwiki-scraper-vault
4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc
65ea6a943cc348a9caf3782b900b36446f7e137d
refs/heads/master
2021-12-02T23:55:58.481210
2013-09-30T17:02:59
2013-09-30T17:02:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,020
py
import scraperwiki import lxml.html html = scraperwiki.scrape("http://www.greatamericanbeerfestival.com/at-the-festival/breweries-at-the-2012-festival") root = lxml.html.fromstring(html) i = 1 for tr in root.cssselect("#brewery_table tbody tr"): tds = tr.cssselect("td") data = { 'id' : i, ...
[ "pallih@kaninka.net" ]
pallih@kaninka.net
4dc75a5c5ad9b9adc0eee92205b2a3ec96120685
1a220abd21c56728aa3368534506bfc9ced8ad46
/프로그래머스/lv0/120862. 최댓값 만들기 (2)/최댓값 만들기 (2).py
2150e823f28bad1d9f1692f23f12517ff6e88e54
[]
no_license
JeonJe/Algorithm
0ff0cbf47900e7877be077e1ffeee0c1cd50639a
6f8da6dbeef350f71b7c297502a37f87eb7d0823
refs/heads/main
2023-08-23T11:08:17.781953
2023-08-23T08:31:41
2023-08-23T08:31:41
197,085,186
0
0
null
2023-02-21T03:26:41
2019-07-15T23:22:55
Python
UTF-8
Python
false
false
630
py
def solution(numbers): answer = 0 negative = [] positive = [] for i in numbers: if i < 0: negative.append(i) else: positive.append(i) negative.sort() positive.sort() max_positive, max_negative, mix = -1e9, -1e9, -1e9 if len(positive) == 1 and ...
[ "43032391+JeonJe@users.noreply.github.com" ]
43032391+JeonJe@users.noreply.github.com
b1dc61b9b0266ed2642cd5bf9517f09540601de5
7abb3d309a011a36247e0b4dcda3759537c45b2c
/utils/vb-meta-to-json-topology.py
031f8c9a3763b172b8281d83709ffc18311a4b0b
[ "BSD-3-Clause" ]
permissive
TomPlano/varbench
7937a8a7221117e2d817549eb8ba22746c324869
83933380e1876da388dd07a78e554e65f388861b
refs/heads/master
2020-04-02T14:34:11.376400
2018-10-27T19:10:09
2018-10-27T19:10:09
154,529,766
0
0
BSD-3-Clause
2018-10-24T16:01:55
2018-10-24T16:01:54
null
UTF-8
Python
false
false
2,486
py
#!/usr/bin/env python import os import sys import getopt import json def usage(argv, exit=None): print "Usage: %s [OPTIONS] <VB metadata file> <VB JSON topology file (output)>" % argv[0] print " -h (--help) : print help and exit" print " -v (--vbs-path=) : path to VB Stats python module" if exit...
[ "brian.kocoloski@wustl.edu" ]
brian.kocoloski@wustl.edu
7f3e63f22434cad4df3c5f31228f840cee385144
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/all-gists/5259522/snippet.py
530896846672f9f888ff87c34b403125582a7bbd
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
1,252
py
#!/usr/bin/env python import sys files = [] if len(sys.argv) > 2: for file in sys.argv[1:]: files.append(str(file)) else: print "Usage: Wordcount.py file1 file2 file3 ..." words_to_ignore = ["that","what","with","this","would","from","your","which","while","these"] things_to_strip = [".",",","?",")","(","\"",":...
[ "gistshub@gmail.com" ]
gistshub@gmail.com