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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
573e195a6ee0cf64d44548b0b3cf38f0233749b1 | 7c843f80a08db6725fd8d2e85099d9e6c13f6426 | /lib/yllibInterface.py | ec7a24ba3216459a602d8f2be161df434745f8a3 | [] | no_license | wanfade/scaffolding_Seg | e983c1d1cdd60efcd7d381728c277993a1cf4721 | 12ba8892eb44d3ce47fa2609973b0510904c4753 | refs/heads/master | 2023-03-16T05:57:28.808341 | 2017-11-25T13:53:11 | 2017-11-25T13:53:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # -*- coding: utf-8 -*-
import sys
from os.path import abspath,join,dirname
yllibPath = abspath(join(dirname(abspath(__file__)),'./yl'))
if yllibPath not in sys.path:
sys.path = [yllibPath] + sys.path
import tool
import ylimg as imglib
import ylml as mllib
import ylnp as nplib
from tool import *
from ylimg i... | [
"ylxx@live.com"
] | ylxx@live.com |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
03d4807bf6ae79a977ee60b6b4de35c94aeb6e7f | 88a5dae03f0304d3fb7add71855d2ddc6d8e28e3 | /main/ext/__init__.py | 362e9cace53732e41d9341d5e951472eba630fbc | [
"Apache-2.0"
] | permissive | huangpd/Shape | eabb59781ac6a055f7b7036fef926023cbcd4882 | fddbbb765e353584752066f7c839293ebd10c4df | refs/heads/master | 2020-03-26T13:04:22.224367 | 2018-05-10T09:06:10 | 2018-05-10T09:06:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #-*-coding:utf-8-*-
from flask_bcrypt import Bcrypt
bcrypt = Bcrypt()
from flask_bootstrap import Bootstrap
bootstrap = Bootstrap()
from flask_mail import Mail
mail=Mail()
from flask_login import LoginManager
login_manager = LoginManager()
login_manager.login_view="auth.login_index"
login_manager.session_protection=... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
b4e76b67a52d7e11e271463c76c756cd39c39301 | f09978f2a0850278255bd198222cd3990cb0c687 | /gear/schema.py | 9e678012c38374b5baee61fdf28ff22143a7874c | [] | no_license | szpone/climbing-gear | 0e4e53b99a0b550c0e172af21c2c9e08e2c3f1ba | 78ab13b97b4b66464859b95ba6e5ed8587d5e60c | refs/heads/master | 2022-12-12T11:08:57.277056 | 2019-06-05T16:06:02 | 2019-06-05T16:06:02 | 185,016,538 | 1 | 0 | null | 2022-11-22T03:49:28 | 2019-05-05T10:30:11 | Python | UTF-8 | Python | false | false | 514 | py | import graphene
from graphene_django.types import DjangoObjectType, ObjectType
from .models import Gear
class GearType(DjangoObjectType):
class Meta:
model = Gear
class Query(ObjectType):
gear = graphene.Field(GearType, id=graphene.Int())
gears = graphene.List(GearType)
def resolve_gear(sel... | [
"nikola.adamus@gmail.com"
] | nikola.adamus@gmail.com |
4eee374d40da98978fa6eead0dbd109ebd17f59e | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2449/60657/249828.py | b6f2e07860c983d2311d854da47037a89843a79d | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | import math
A=input().split(',')
B=input()
def judge(A,B):
if A.count(B)!=0:
return A.index(B)
else:
return -1
print(judge(A,B)) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
7b91e3b074f85271a746505ec2100144aaa01af3 | d7641647d67d110e08997767e85bbea081c2537b | /bitmovin_api_sdk/models/filter.py | 6836a5d837fc6e5d357ec0e2fa2c5884394e48d2 | [
"MIT"
] | permissive | aachenmax/bitmovin-api-sdk-python | d3ded77c459852cbea4927ff28c2a4ad39e6026a | 931bcd8c4695a7eb224a7f4aa5a189ba2430e639 | refs/heads/master | 2022-11-16T08:59:06.830567 | 2020-07-06T07:16:51 | 2020-07-06T07:16:51 | 267,538,689 | 0 | 1 | MIT | 2020-07-06T07:16:52 | 2020-05-28T08:44:44 | Python | UTF-8 | Python | false | false | 1,781 | py | # coding: utf-8
from six import string_types, iteritems
from bitmovin_api_sdk.common.poscheck import poscheck_model
from bitmovin_api_sdk.models.bitmovin_resource import BitmovinResource
import pprint
class Filter(BitmovinResource):
discriminator_value_class_map = {
'CROP': 'CropFilter',
'CONFO... | [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
f59eef689da00fb5d14fdfaddf69c05fcdb4d412 | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/labservices/azure-mgmt-labservices/azure/mgmt/labservices/models/lab_account_fragment.py | 0e3a2fb1fa1897771c1c81ee386226f6730a5827 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 2,376 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
d82cf9e821ecf30bd91d020d422728952809a303 | 597ed154876611a3d65ca346574f4696259d6e27 | /dbaas/workflow/steps/tests/test_vm_step.py | 1f05feed7c79364c570f0ed132f5da3578825a91 | [] | permissive | soitun/database-as-a-service | 41984d6d2177734b57d726cd3cca7cf0d8c5f5d6 | 1282a46a9437ba6d47c467f315b5b6a3ac0af4fa | refs/heads/master | 2023-06-24T17:04:49.523596 | 2018-03-15T19:35:10 | 2018-03-15T19:35:10 | 128,066,738 | 0 | 0 | BSD-3-Clause | 2022-05-10T22:39:58 | 2018-04-04T13:33:42 | Python | UTF-8 | Python | false | false | 1,661 | py | from mock import patch
from physical.tests.factory import HostFactory, EnvironmentFactory
from ..util.vm import VmStep, MigrationWaitingBeReady
from . import TestBaseStep
@patch('workflow.steps.util.vm.get_credentials_for', return_value=True)
@patch('workflow.steps.util.vm.CloudStackProvider', return_value=object)
cl... | [
"mauro_murari@hotmail.com"
] | mauro_murari@hotmail.com |
1dfee621f2c8bf35b8a73f7fbbb1a64d238e125a | bbb21bb79c8c3efbad3dd34ac53fbd6f4590e697 | /week3/TODO/TODO/settings.py | 947cd11c197d9ed2bf30a09cd9c4016007788b22 | [] | no_license | Nusmailov/BFDjango | b14c70c42da9cfcb68eec6930519da1d0b1f53b6 | cab7f0da9b03e9094c21efffc7ab07e99e629b61 | refs/heads/master | 2020-03-28T21:11:50.706778 | 2019-01-21T07:19:19 | 2019-01-21T07:19:19 | 149,136,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,094 | py | """
Django settings for TODO project.
Generated by 'django-admin startproject' using Django 2.1.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
# Bu... | [
"nusmailov@gmail.com"
] | nusmailov@gmail.com |
cdc0900d3b2677c0be666cbdd443353d5385757e | 64ffb2e803a19e5dc75ec8fa0f277609d34e0cc7 | /dynamodb/update_counter_atomically.py | ddfbf9dfad90311a0332a3cbd1a990c0830b6c51 | [] | no_license | arunpa0206/awstraining | 687bc4206dfd65693039c525e8a4ff39d14e89d5 | 2eae2353b75a2774f9f47b40d76d63c7f9e08bb4 | refs/heads/master | 2021-05-10T15:06:48.652021 | 2019-08-20T10:36:29 | 2019-08-20T10:36:29 | 118,538,574 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | from __future__ import print_function # Python 2/3 compatibility
import boto3
import json
import decimal
# Helper class to convert a DynamoDB item to JSON.
class DecimalEncoder(json.JSONEncoder):
def default(self, o):
if isinstance(o, decimal.Decimal):
if o % 1 > 0:
return float... | [
"mail_arunn@yahoo.com"
] | mail_arunn@yahoo.com |
303d2e67444557cb4fd051f1250a360cb9ef821c | 892c7bd301eeadf57b546f039faf499448112ddc | /organizacion/migrations/0004_escuelacampo.py | 0f8af8ca46dffde4815519fa6295128bd78c2024 | [
"MIT"
] | permissive | ErickMurillo/aprocacaho | beed9c4b031cf26a362e44fc6a042b38ab246c27 | eecd216103e6b06e3ece174c89d911f27b50585a | refs/heads/master | 2022-11-23T15:03:32.687847 | 2019-07-01T19:16:37 | 2019-07-01T19:16:37 | 53,867,804 | 0 | 1 | MIT | 2022-11-22T01:02:51 | 2016-03-14T15:23:39 | HTML | UTF-8 | Python | false | false | 903 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-04 14:26
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('organizacion', '0003_auto_20160803_2128'),
]
operat... | [
"erickmurillo22@gmail.com"
] | erickmurillo22@gmail.com |
1b595d943f2f3026a02236c4b6a6caade13ea718 | ea6b3b74c8f1ff9333c5d4b06a0e4dd9bbdb3bba | /tests/protocol/test_json_protocol.py | 5a79da739005fd27e01a88e27d335942a77b03c2 | [
"MIT"
] | permissive | sgalkina/venom | d495d296a388afcb25525491bbbe590bfd258a05 | e372ab9002e71ba4e2422aabd02143e4f1247dba | refs/heads/master | 2021-01-23T03:27:17.239289 | 2017-03-24T15:05:56 | 2017-03-24T15:05:56 | 86,077,951 | 0 | 0 | null | 2017-03-24T14:40:46 | 2017-03-24T14:40:46 | null | UTF-8 | Python | false | false | 5,448 | py | from unittest import SkipTest
from unittest import TestCase
from venom import Message
from venom.common import StringValue, IntegerValue, BoolValue, NumberValue
from venom.exceptions import ValidationError
from venom.fields import String, Number, Field, Repeat
from venom.protocol import JSON
class Foo(Message):
... | [
"lars@lyschoening.de"
] | lars@lyschoening.de |
3129d119bb1773e4909ac9e1ecf759cef0cad06e | 539789516d0d946e8086444bf4dc6f44d62758c7 | /inference/python/inference.py | 7fc210e7978a31556f20ba12d8a1baa22d2ff6c4 | [] | no_license | hoangcuong2011/etagger | ad05ca0c54f007f54f73d39dc539c3737d5acacf | 611da685d72da207870ddb3dc403b530c859d603 | refs/heads/master | 2020-05-03T15:15:33.395186 | 2019-03-28T01:40:21 | 2019-03-28T01:40:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,683 | py | from __future__ import print_function
import sys
import os
path = os.path.dirname(os.path.abspath(__file__)) + '/../..'
sys.path.append(path)
import time
import argparse
import tensorflow as tf
import numpy as np
# for LSTMBlockFusedCell(), https://github.com/tensorflow/tensorflow/issues/23369
tf.contrib.rnn
# for QRNN... | [
"hazzling@gmail.com"
] | hazzling@gmail.com |
da0de991295a250dbfc4238a27b5f8573f7770a8 | 48c6b58e07891475a2c60a8afbbbe6447bf527a7 | /src/tests/control/test_orders.py | 74c7007fa3a989b7c5f5133361a5abbc1a3dcc33 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | awg24/pretix | a9f86fe2dd1f3269734ed39b3ea052ef292ff110 | b1d67a48601838bac0d4e498cbe8bdcd16013d60 | refs/heads/master | 2021-01-15T23:40:28.582518 | 2015-08-27T14:05:18 | 2015-08-27T14:05:18 | 42,126,402 | 1 | 0 | null | 2015-09-08T16:58:52 | 2015-09-08T16:58:51 | null | UTF-8 | Python | false | false | 3,084 | py | from datetime import timedelta
from decimal import Decimal
import pytest
from django.utils.timezone import now
from pretix.base.models import (
Event, EventPermission, Item, Order, OrderPosition, Organizer,
OrganizerPermission, User,
)
@pytest.fixture
def env():
o = Organizer.objects.create(name='Dummy'... | [
"mail@raphaelmichel.de"
] | mail@raphaelmichel.de |
56ac5f435c1505b586a07d2bf83a64eff2564702 | 60b5a9a8b519cb773aca004b7217637f8a1a0526 | /customer/urls.py | 2bf028b3dc13eed4b4e9793741b3f478b4d5d355 | [] | no_license | malep2007/dag-bragan-erp-backend | 76ce90c408b21b0bda73c6dd972e2f77b7f21b1f | e98182af2848a6533ddd28c586649a8fee1dc695 | refs/heads/master | 2021-08-11T01:29:27.864747 | 2019-01-15T17:46:26 | 2019-01-15T17:46:26 | 151,831,965 | 0 | 0 | null | 2021-06-10T20:56:21 | 2018-10-06T11:10:12 | Python | UTF-8 | Python | false | false | 437 | py | from django.urls import path, reverse
from . import views
urlpatterns = [
path('', views.CustomerListView.as_view(), name='index'),
path('<int:pk>/', views.CustomerDetailView.as_view(), name="detail"),
path('edit/<int:pk>/', views.CustomerUpdateView.as_view(), name='edit'),
path('add/', views.CustomerC... | [
"ephraim.malinga@gmail.com"
] | ephraim.malinga@gmail.com |
a1b2d1e62a5a9c0b2e499246d138951a2a9f20f9 | 64a80df5e23b195eaba7b15ce207743e2018b16c | /Downloads/adafruit-circuitpython-bundle-py-20201107/lib/adafruit_wsgi/wsgi_app.py | 44171f51cfa9e62e9b7fdc09a66fc806d95d7b4a | [] | no_license | aferlazzo/messageBoard | 8fb69aad3cd7816d4ed80da92eac8aa2e25572f5 | f9dd4dcc8663c9c658ec76b2060780e0da87533d | refs/heads/main | 2023-01-27T20:02:52.628508 | 2020-12-07T00:37:17 | 2020-12-07T00:37:17 | 318,548,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,807 | py | # The MIT License (MIT)
#
# Copyright (c) 2019 Matthew Costi for Adafruit Industries
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation ... | [
"aferlazzo@gmail.com"
] | aferlazzo@gmail.com |
2ebfb27d864daa8609758160bd3ee3c6122b704a | e147827b4f6fbc4dd862f817e9d1a8621c4fcedc | /apps/doc/views.py | ab450d855ef75b700dd41676295f6518652efa34 | [] | no_license | Jsummer121/DjangoBolgProject | ba3ebe27a1ac67439de67b9f10c17d1c16e43f84 | d64f9579d29ac5e3979d40303e84f4be6852fa96 | refs/heads/master | 2023-01-30T16:26:33.566665 | 2020-12-15T12:00:16 | 2020-12-15T12:00:16 | 321,654,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,834 | py | from django.shortcuts import render
from django.views import View
from django.http import HttpResponse, FileResponse, StreamingHttpResponse, Http404
from doc import models
import requests
from django.utils.encoding import escape_uri_path
from Django_pro.settings import DOC_FILE_URL
def doc(request):
docs = models... | [
"jxxaizwt@icloud.com"
] | jxxaizwt@icloud.com |
8329fa5bea57d4f6278bd16ce249d56f50672bc7 | 2c872fedcdc12c89742d10c2f1c821eed0470726 | /pyNet/day06/code/test_poll.py | 5f18a3bc99a060b68f525c9f9e72ac31b6e740a3 | [] | no_license | zuigehulu/AID1811 | 581c3c7a37df9fa928bc632e4891fc9bafe69201 | 10cab0869875290646a9e5d815ff159d0116990e | refs/heads/master | 2020-04-19T16:33:04.174841 | 2019-01-30T07:58:24 | 2019-01-30T07:58:24 | 168,307,918 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | from multiprocessing import Pool
from time import sleep
L = [1,2,3,4,5]
def a(ne):
print(ne**2)
sleep(2)
pool = Pool()
for i in L:
pool.apply_async(a,(i,))
pool.close()
pool.join() | [
"442315617@qq.com"
] | 442315617@qq.com |
0a5a579dd0a6d232526835dc574518dcbab6e108 | 8393f28f390e222b0429fc4f3f07590f86333d8d | /linux-stuff/bin/svn-merge-meld | 7c7beb77f18c8c2b9a4dbfe1bd016a679f58f12d | [] | no_license | jmangelson/settings | fe118494252da35b175d159bbbef118f22b189fb | df9291f8947ba1ceb7c83a731dfbe9e775ce5add | refs/heads/master | 2021-01-16T17:39:24.105679 | 2015-02-20T01:17:26 | 2015-02-20T01:17:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | #!/usr/bin/env python
# svn merge-tool python wrapper for meld
import sys
import subprocess
# path to meld ($ which meld)
meld = "/usr/bin/meld"
log = False
f = open('/tmp/svn-merge-meld.log', 'a')
def main():
if log:
f.write("call: %r\n" % sys.argv)
# file paths
base = sys.argv[1]
theirs = sys... | [
"devnull@localhost"
] | devnull@localhost | |
0a551818b8e85dd12f84691ab34b3df1f13c138e | 14ddda0c376f984d2a3f7dcd0ca7aebb7c49648d | /bnn_mcmc_examples/examples/mlp/noisy_xor/setting2/mcmc/metropolis_hastings/pilot_visual_summary.py | 34d2bb1186d2c1da6be83394dc47fe6431283c68 | [
"MIT"
] | permissive | papamarkou/bnn_mcmc_examples | 62dcd9cc0cf57cda39aa46c2f2f237bbcd2d35bb | 7bb4ecfb33db4c30a8e61e31f528bda0efb24e3d | refs/heads/main | 2023-07-12T20:51:28.302981 | 2021-08-22T13:06:17 | 2021-08-22T13:06:17 | 316,554,634 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,553 | py | # %% Import packages
import kanga.plots as ps
from kanga.chains import ChainArray
from bnn_mcmc_examples.examples.mlp.noisy_xor.setting2.mcmc.constants import diagnostic_iter_thres
from bnn_mcmc_examples.examples.mlp.noisy_xor.setting2.mcmc.metropolis_hastings.constants import sampler_output_pilot_path
from bnn_mcmc... | [
"theodore.papamarkou@gmail.com"
] | theodore.papamarkou@gmail.com |
44dc7ace3c96940a36a7ea468124c78e03900455 | 1620e0af4a522db2bac16ef9c02ac5b5a4569d70 | /Ekeopara_Praise/Phase 2/LIST/Day44 Tasks/Task4.py | e3f303c59954e7bec5cf6fa62b4f49925de56d80 | [
"MIT"
] | permissive | Ekeopara-Praise/python-challenge-solutions | cda07902c9ffc09ba770ae7776e5e01026406a05 | 068b67c05524b5c5a0d6084315eca3424c768421 | refs/heads/master | 2022-12-15T15:29:03.031583 | 2020-09-25T06:46:27 | 2020-09-25T06:46:27 | 263,758,530 | 2 | 0 | null | 2020-05-13T22:37:33 | 2020-05-13T22:37:32 | null | UTF-8 | Python | false | false | 141 | py | '''4. Write a Python program to concatenate elements of a list. '''
num = ['1', '2', '3', '4', '5']
print('-'.join(num))
print(''.join(num)) | [
"ekeoparapraise@gmail.com"
] | ekeoparapraise@gmail.com |
46b56de9bf7ead1838fe58206ae4c91ce5bcfbb2 | 00792a90bfa302af8614f4a5f955c071ed320acf | /apps/control_params/tests.py | c93cb528dd87a34cb25ffb1ba372511159998b42 | [] | no_license | elcolie/HT6MInterface | dceb8f5e9b501b8836904559bd40259ccfe49085 | 04abf3cc73618c1cf059fa67da8a043ec9fb43b3 | refs/heads/master | 2022-02-04T08:02:49.023460 | 2021-01-21T06:55:39 | 2021-01-21T06:55:39 | 123,398,906 | 0 | 0 | null | 2022-01-21T20:20:29 | 2018-03-01T07:30:16 | JavaScript | UTF-8 | Python | false | false | 4,395 | py | from django.test import TestCase
from apps.control_params.api.serializers import ControlParameterSerializer
from apps.control_params.models import ControlParameter
from apps.heating_params.models import HeatingParameter
class TestControlParameter(TestCase):
def setUp(self):
pass
def test_blank_initi... | [
"sarit@elcolie.com"
] | sarit@elcolie.com |
07feee452428ecf97bd5edc3add50468a4a465d2 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_309/ch26_2019_08_19_14_12_37_089425.py | 8dadd9e96c3304269c01917bc7478e247c45840a | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | dias = int(input("dias:"))
horas = int(input("horas:"))
minutos = int(input("minutos:"))
segundos = int(input("segundos:"))
print((dias*86.400 + horas*3.600 + minutos*60 + segundos))
| [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.