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
51703a989853c75d13edcea9e53aa6ece050f724
2324dea2cb3003c8ab7e8fd80588d44973eb8c77
/Euler_1_12.py
5734c779f4c0af8eadd33888278b66b26ca706d5
[]
no_license
MikeOcc/MyProjectEulerFiles
5f51bc516cb6584732dc67bb2f9c7fd9e6d51e56
4d066d52380aade215636953589bf56d6b88f745
refs/heads/master
2021-01-16T18:45:44.133229
2015-05-27T18:28:43
2015-05-27T18:28:43
5,876,116
0
0
null
null
null
null
UTF-8
Python
false
false
1,070
py
sum=0 x = 500*499/2 maxum = 0 maxsum = 0 bestrow = 0 rstart = 12375 estart = 12377 showall = False for r in range(rstart,estart): trinum = r*(r+1)/2 #trinum = r sum=0 if trinum%2==0: endrange = (trinum/2) + 1 elif trinum%3==0: endrange = (trinum/3) + 1 elif trinum%5==0: endrange...
[ "mike.occhipinti@mlsassistant.com" ]
mike.occhipinti@mlsassistant.com
9c47603886a4c6ed2a21d6996118f3276f77d34b
770f7b7155c33d2f8c27846b93b9b73db45b2e2a
/gofedinfra/system/helpers/artefactkeygenerator/golangprojectdistributioncontracts.py
fa997f75dbfb7f4e5d02dc12ec4815bd664b40c5
[]
no_license
gofed/infra
b0f6186486e8aa7c8c640411ee92d6648cbc77ec
2f402bbdf1e5fa7cb68262cc3408a2fc1436269f
refs/heads/master
2022-10-16T02:46:09.226939
2018-06-07T23:16:44
2018-06-08T11:31:37
48,703,326
1
5
null
2022-10-11T11:17:16
2015-12-28T17:08:28
Python
UTF-8
Python
false
false
503
py
from infra.system.core.meta.metaartefactkeygenerator import MetaArtefactKeyGenerator import logging class GolangProjectDistributionContractsKeyGenerator(MetaArtefactKeyGenerator): def generate(self, data, delimiter = ":"): # return a list of fields keys = [] for key in ["artefact", "product", "distribution", "...
[ "jchaloup@redhat.com" ]
jchaloup@redhat.com
badfda65db90fba0d138df86bdf89c553f163981
1ec1e418fc5c9aac055c9218f1074332adf1e720
/rand_param_envs/gym/envs/classic_control/mountain_car.py
fd564b1a6e7c7322b34b749b615ac33353677373
[]
no_license
CHEN-yongquan/mier_public
344e34137343aa564b261c7125edac3b3ff10eb0
af56fa84811dc7a697feb1b9dff01836d2148810
refs/heads/master
2022-10-15T13:21:35.198458
2020-06-12T08:22:16
2020-06-12T08:22:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,400
py
""" https://webdocs.cs.ualberta.ca/~sutton/MountainCar/MountainCar1.cp """ import math from rand_param_envs import gym from rand_param_envs.gym import spaces from rand_param_envs.gym.utils import seeding import numpy as np class MountainCarEnv(gym.Env): metadata = { 'render.modes': ['human', 'rgb_array']...
[ "russellm@berkeley.edu" ]
russellm@berkeley.edu
07e5017f2acb0a1965c7ecaf4bc866b332dd9c41
09d3599c8e53b38104e96d479b2b40ac549d0bef
/Rakesh/merge-sorting/merge_sort_code.py
fdcfc5be250ad399af146275c3c7b1928f480b15
[]
no_license
rakeshsukla53/interview-preparation
54764c83c86a52c566899ec87d74dad84216764d
09355094c85496cc42f8cb3241da43e0ece1e45a
refs/heads/master
2016-09-06T02:08:50.436414
2016-02-01T00:31:52
2016-02-01T00:31:52
40,916,511
9
3
null
2015-12-31T05:00:55
2015-08-17T17:59:55
HTML
UTF-8
Python
false
false
831
py
def mergeSort(alist): print("Splitting ",alist) if len(alist)>1: mid = len(alist)//2 lefthalf = alist[:mid] righthalf = alist[mid:] mergeSort(lefthalf) mergeSort(righthalf) i = 0 j = 0 k = 0 while i < len(lefthalf) and j < len(righthalf):...
[ "rakesh.sukla53@gmail.com" ]
rakesh.sukla53@gmail.com
9fe70e6e9311515a57fe7f9f89e914f226914708
09cead98874a64d55b9e5c84b369d3523c890442
/py200912b_python2m6/day14_201212/homework/kevin/stem1402b_python_homework_12_KEvin (1).py
df9bca9af96dc347be56451b3a84d2e749a06e03
[]
no_license
edu-athensoft/stem1401python_student
f12b404d749286036a090e941c0268381ce558f8
baad017d4cef2994855b008a756758d7b5e119ec
refs/heads/master
2021-08-29T15:01:45.875136
2021-08-24T23:03:51
2021-08-24T23:03:51
210,029,080
0
0
null
null
null
null
UTF-8
Python
false
false
1,274
py
""" 1. Read an HTML file, and copy all content into a new file 2. Read a CSV file, and copy all content into a new file 3. Read a CSV file, and copy its first half lines into a new file """ # Question 1. file = open("myweb.html") content = file.read() file.close() file = open("myweb.txt", 'w') file.write(content)...
[ "lada314@gmail.com" ]
lada314@gmail.com
3698d09b3ef585be930e2cdaae23a99451a3fe60
6a95b330e1beec08b917ff45eccfd6be3fd4629f
/kubernetes/client/models/v1beta1_pod_disruption_budget.py
1f4a7e680204daa09f3226b789c49eddb7556fd5
[ "Apache-2.0" ]
permissive
TokkoLabs/client-python
f4a83d6540e64861b59e322c951380a670578d7f
f1ad9c6889105d8510472606c98f8d3807f82020
refs/heads/master
2023-07-14T01:36:46.152341
2017-12-21T21:32:11
2017-12-21T21:32:11
115,042,671
0
0
Apache-2.0
2021-08-06T03:29:17
2017-12-21T20:05:15
Python
UTF-8
Python
false
false
7,321
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.8.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
[ "mehdy@google.com" ]
mehdy@google.com
2f7b470ae7b0fec585de036aeb4572515b45c7cc
3fd8fd35d61d997b586e40ed8d938805ce5fdf3b
/Nonsense/sqlite3_select_variations.py
0e0b6abd418f5905d994320c035d6cff5d79e1f4
[]
no_license
ChocolatePadmanaban/Cooking_Scheduler
8afd967cd5128b15c9865aa44ae3d298ee3027ad
3cd91009e68064f92408fb5bba55519ba77767c3
refs/heads/master
2023-01-03T10:55:25.306425
2020-11-01T07:13:50
2020-11-01T07:13:50
260,551,843
0
0
null
null
null
null
UTF-8
Python
false
false
772
py
import sqlite3 db_filename = 'todo.db' with sqlite3.connect(db_filename) as conn : cursor = conn.cursor() cursor.execute(""" select name, description, deadline from project where name = 'pymotw' """) name, description, deadline = cursor.fetchone() print('\nProject details for {} ({}) \...
[ "pradeeppadmanaban7@gmail.com" ]
pradeeppadmanaban7@gmail.com
b1b0836558fca7fbe061c4eb80f07882c4fc2efe
abfa0fcab2bc9a9c3cccbc3a8142cdd4b2a66ee9
/171-excel sheet column number.py
ecf0f4089ecebf1bb3c5d9513e327b54f6b2dd8b
[]
no_license
JinnieJJ/leetcode
20e8ccf3f8919028c53e0f0db86bcc2fbc7b6272
26c6ee936cdc1914dc3598c5dc74df64fa7960a1
refs/heads/master
2021-04-15T09:18:08.450426
2021-03-06T01:53:27
2021-03-06T01:53:27
126,275,814
3
1
null
null
null
null
UTF-8
Python
false
false
304
py
class Solution(object): def titleToNumber(self, s): """ :type s: str :rtype: int """ base = ord('A') - 1 n = len(s) result = 0 for i in range(n): result += (ord(s[n - 1 - i]) - base) * pow(26, i) return result
[ "noreply@github.com" ]
JinnieJJ.noreply@github.com
2085ad269f187efe33fbf9c09c32fd5e88473c84
60d5b5b1f1c912d1655de3884efc09dfddd8d132
/sites/kotourism/interop/admin.py
6386d5b15eb775e20b5d54615fdec0aabf661348
[]
no_license
alexgula/django_sites
15033c739401f24603e957c5a034d63652f0d21f
038834c0f544d6997613d61d593a7d5abf673c70
refs/heads/master
2016-09-05T11:02:43.838095
2014-07-07T11:36:07
2014-07-07T11:36:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
304
py
# coding=utf-8 from django.contrib import admin from .models import Log class LogAdmin(admin.ModelAdmin): list_display = ('action_date', 'success', 'results', ) search_fields = ('results', ) date_hierarchy = 'action_date' list_filter = ('success', ) admin.site.register(Log, LogAdmin)
[ "alexgula@gmail.com" ]
alexgula@gmail.com
2b5c20e9871a400e3e7f65eacec72607e68aa9f6
5de0c9652b13fc57009626bfdec4c6c761ec450c
/test/test_app.py
af68128fa5a510cf84ced78968e43c33f2f9cfa3
[]
no_license
Quastrado/project_o_mail_service
7e845e5c6a70db0a3c32a1dde52e26dc8f1450f0
4de6e6e52d6fa1955372fbf2ba9408bad8955863
refs/heads/master
2023-02-05T08:26:27.726227
2020-03-18T14:45:12
2020-03-18T14:45:12
196,257,710
2
0
null
2023-02-02T06:38:38
2019-07-10T18:40:00
Python
UTF-8
Python
false
false
540
py
import pytest from flask_sqlalchemy import SQLAlchemy from owl_mail import create_app from owl_mail.models import User @pytest.fixture def app(): app=create_app() return app def test_app(client): response = client.get('/menu') assert response.status_code == 200 @pytest.fixture(scope='module') def...
[ "you@example.com" ]
you@example.com
3e39a7286d81302fbf3055a8e211ba990ae3791b
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/inspections/PyStringFormatInspection/NewStylePackedFunctionCall.py
9975f8d86d2a4696b19a165fee177feccb261cce
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
132
py
def f(): return dict(foo=0) '{foo}'.format(**f()) <warning descr="Too few arguments for format string">"{}"</warning>.format()
[ "valentina.kiryushkina@jetbrains.com" ]
valentina.kiryushkina@jetbrains.com
675c93c2b83444bcbb09534e5f4c2034726bac37
86f22c67e65438948b982663f8b72a29090504a2
/fem-sim/utils/compute_tf_jacobian_models.py
e81972fcb7bfee25c67fd9c3d6446709ca2b27b8
[]
no_license
itsvismay/research-experiments
2738270859db259d917e2baf8a6af4115c195d8f
4e49063f9fa53eda156e5cd5ded9c1caf45170ca
refs/heads/master
2021-09-03T23:01:40.704813
2018-01-11T22:37:54
2018-01-11T22:37:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,404
py
import numpy def generate_jacobian_for_tf_model(model_input_path, jacobian_output_path): import tensorflow as tf from tensorflow_forward_ad import forward_gradients from tensorflow.python.platform import gfile from tensorflow.core.protobuf import saved_model_pb2 from tensorflow.python.util import ...
[ "lawsonfulton@gmail.com" ]
lawsonfulton@gmail.com
89efbf5e371a384b3aa9d461d00aaf07b1198537
e457376950380dd6e09e58fa7bee3d09e2a0f333
/plugin/src/test/resources/highlighting/assignmentTargetWith.py
f516b41c6b1a48f24989f6489055467af0259ba0
[ "Apache-2.0" ]
permissive
consulo/consulo-python
b816b7b9a4b346bee5d431ef6c39fdffe40adf40
e191cd28f043c1211eb98af42d3c0a40454b2d98
refs/heads/master
2023-08-09T02:27:03.585942
2023-07-09T08:33:47
2023-07-09T08:33:47
12,317,018
0
0
Apache-2.0
2020-06-05T17:16:50
2013-08-23T07:16:43
Java
UTF-8
Python
false
false
83
py
with open("") as <error descr="can't assign to operator">my_<<var</error>: pass
[ "vistall.valeriy@gmail.com" ]
vistall.valeriy@gmail.com
ffa75cb32ceab6e5171f6dd2ae16fc7e89d527af
e8f99a162207cba82d4e0f969d7bcdb2b9d8b522
/imooc/python3_shizhan/nine/__init__.py
7152865099aa16024441ce4dd7cec00450259742
[]
no_license
TesterCC/Python3Scripts
edb5446278ebf13edb64336001081941ca27d67d
58be67e1ffc74ef50289a885aa4ad05f58e2c383
refs/heads/master
2023-08-30T21:16:38.328045
2023-08-17T11:23:08
2023-08-17T11:23:08
93,401,996
6
3
null
null
null
null
UTF-8
Python
false
false
102
py
#!/usr/bin/env python # -*- coding:utf-8 -*- # __author__ = 'TesterCC' # __time__ = '17/10/30 23:58'
[ "testerlyx@foxmail.com" ]
testerlyx@foxmail.com
918a53cc6d7de7ff0e39d6779f5f5f5f0b340572
27c27208a167f089bb8ce4027dedb3fcc72e8e8a
/ProjectEuler/UC solutions/Successful 101-150/Q107.py
be8c9a5ca40b89e684d9ebaf533ae69bec056b9f
[]
no_license
stankiewiczm/contests
fd4347e7b84c8c7ec41ba9746723036d86e2373c
85ed40f91bd3eef16e02e8fd45fe1c9b2df2887e
refs/heads/master
2021-05-10T16:46:41.993515
2018-02-16T09:04:15
2018-02-16T09:04:15
118,587,223
0
0
null
null
null
null
UTF-8
Python
false
false
1,639
py
from Numeric import * #NET = [zeros(40)]*40; TOT = 0; netses = []; NETS = []; for line in file("../TXTdata/network.txt"): netses.append(line); for line in netses: sq = list(); N = 0; for ch in line: if (ch in ['0','1','2','3','4','5','6','7','8','9']): N = 10*N+int(ch...
[ "mstankiewicz@gmail.com" ]
mstankiewicz@gmail.com
459168961ff18e611eb3a20384429e8466f547ec
ecf0d106831b9e08578845674a457a166b6e0a14
/programming_basics/EXAM_PREPARATION/6_baking_competition.py
9552197aa4b84f14c2e538ac66c099c7e7be2450
[]
no_license
ivo-bass/SoftUni-Solutions
015dad72cff917bb74caeeed5e23b4c5fdeeca75
75612d4bdb6f41b749e88f8d9c512d0e00712011
refs/heads/master
2023-05-09T23:21:40.922503
2021-05-27T19:42:03
2021-05-27T19:42:03
311,329,921
8
5
null
null
null
null
UTF-8
Python
false
false
1,187
py
sweets_prices = {"cookies": 1.50, "cakes": 7.80, "waffles": 2.30} sweets_count_total = {"cookies": 0, "cakes": 0, "waffles": 0} participants_count = int(input()) for _ in range(participants_count): sweets_per_participant = {"cookies": 0, "cakes": 0, "waffles": 0} baker = input() sweets_type = input() ...
[ "ivailo.ignatoff@gmail.com" ]
ivailo.ignatoff@gmail.com
0792edfcdab56134a64173a4679ac2670b36c589
e9973cbb3ceef6941ed6bc9744b0619d1cbac157
/blender/arm/logicnode/action_set_visible.py
1cefa30d81bd176229e2378961fc0e677cd855db
[ "Zlib", "GPL-2.0-only" ]
permissive
ForestCSharp/armory
5da5551a9ef344ad7ea44f55b6c52c07fa6302d5
89586682154e5fcef1529b2123c5a2d48ac7e982
refs/heads/master
2020-12-15T04:09:12.063333
2020-03-07T14:44:02
2020-03-07T14:44:02
234,990,289
1
0
Zlib
2020-03-07T14:44:03
2020-01-20T00:42:21
Python
UTF-8
Python
false
false
565
py
import bpy from bpy.props import * from bpy.types import Node, NodeSocket from arm.logicnode.arm_nodes import * class SetVisibleNode(Node, ArmLogicTreeNode): '''Set visible node''' bl_idname = 'LNSetVisibleNode' bl_label = 'Set Visible' bl_icon = 'QUESTION' def init(self, context): self.in...
[ "lubos.lenco@gmail.com" ]
lubos.lenco@gmail.com
191db65073f52a890b3b84415c335f3be5793331
b4484e6309bc538f87ca9f4692b6e5c47da4c449
/stacks-and-queues/stack-and-queue-NEW/dynamicArrayQueue/main.py
df83210062c4b75d4a6dc7195976c17f5f418188
[]
no_license
teknofage/CS-1.3-Core-Data-Structures
5178077c5995655bfecfe5e2c29d4405b1dabc6b
c2a439188113c0fc4175ff99cebba831ac5960d5
refs/heads/master
2022-12-22T18:17:50.463788
2020-10-07T23:58:29
2020-10-07T23:58:29
291,888,423
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
from Queue import Queue '''#CREATE a queue #front at index 0 #back at index n - 1 my_queue = [] #UPDATE, ADD #enqueue my_queue.append("A") my_queue.append("B") my_queue.append("C") #DELETE #dequeue my_queue.pop(0) #READ #front print(my_queue[0])''' #CREATE my_queue = Queue() my_queue.enqueue("A") #["A"] my_queue....
[ "teknofage@gmail.com" ]
teknofage@gmail.com
b7215d422a5dfcf2055f1a7256eecebe08f2f804
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02934/s538390286.py
0244438040ed16b0988ea23f2cb1e3db34324d0a
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
323
py
#!/usr/bin/env python3 import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines def main(): N = int(readline()) As = map(int, readline().split()) ans = 0 for a in As: ans += 1 / a print(1/ans) if __name__ == '__main__': main...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e98dbe14df42a16853ab45a34a4f32dbb1f2e053
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2638/60836/314330.py
dd3bfd48d6ff027cf4fab8a595b1773601811862
[]
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
1,345
py
""" 第一行包含两个正整数N、M,分别表示数列中实数的个数和操作的个数 第二行包含N个实数,其中第i个实数表示数列的第i项 接下来M行,每行为一条操作,格式为以下两种之一: 操作1:1 x y k ,表示将第x到第y项每项加上k,k为一实数 操作2:2 x y ,表示求出第x到第y项这一子数列的平均数 操作3:3 x y ,表示求出第x到第y项这一子数列的方差 5 5 1 5 4 2 3 2 1 4 3 1 5 1 1 1 1 1 2 2 -1 3 1 5 """ NM=[int(m) for m in str(input()).split(" ")] N=NM[0] M=NM[1] arr=[int(m) for m in s...
[ "1069583789@qq.com" ]
1069583789@qq.com
42fe82c8265bc7a52b94883083b19770d75793da
006341ca12525aa0979d6101600e78c4bd9532ab
/CMS/Zope-3.2.1/Dependencies/zope.app-Zope-3.2.1/zope.app/applicationcontrol/zopeversion.py
85daa3ab7e652fa583597c1d4a5e1a8224c1ba05
[ "ZPL-2.1", "Python-2.0", "ICU", "LicenseRef-scancode-public-domain", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "ZPL-2.0" ]
permissive
germanfriday/code-examples-sandbox
d0f29e20a3eed1f8430d06441ac2d33bac5e4253
4c538584703754c956ca66392fdcecf0a0ca2314
refs/heads/main
2023-05-30T22:21:57.918503
2021-06-15T15:06:47
2021-06-15T15:06:47
377,200,448
0
0
null
null
null
null
UTF-8
Python
false
false
3,288
py
############################################################################## # # Copyright (c) 2001, 2002 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # T...
[ "chris@thegermanfriday.com" ]
chris@thegermanfriday.com
109e8140c1ba99a672fa1b549b8707bd4b670ffe
8df5df20ac10a8dc81f7ac6e21e835553a8f5e2d
/src/sleekapps/graphql/threads/schemas/post.py
8c40cb5a4ae534582fcb193dc02a176600fe4dd5
[]
no_license
adepeter/sleekforum
7be71907d26623c43cd78a6da77a2398c1c25e26
35385e648974cdf009732af4c50b69a1825f7fda
refs/heads/master
2022-09-18T02:45:42.522128
2021-10-23T06:41:44
2021-10-23T06:41:44
208,669,487
0
0
null
null
null
null
UTF-8
Python
false
false
185
py
from ..queries.post import PostQuery from ..mutations.post import PostMutation class PostQuerySchema(PostQuery): pass class PostMutationSchema(PostMutation): pass
[ "adepeter26@gmail.com" ]
adepeter26@gmail.com
9558f84e7749ea48130268d84fe966aaf4c5aaf9
2b468b1d22ecc5668529255676a1d43936829074
/codes/personal_backend/tuoen/abs/middleware/data/base.py
875691898921e3a908140f96a3591c6809f9de51
[]
no_license
MaseraTiGo/4U
5ac31b4cccc1093ab9a07d18218c3d8c0157dc9c
f572830aa996cfe619fc4dd8279972a2f567c94c
refs/heads/master
2023-07-26T09:44:21.014294
2023-07-13T03:43:34
2023-07-13T03:43:34
149,217,706
0
0
null
2020-06-05T20:38:16
2018-09-18T02:34:29
Python
UTF-8
Python
false
false
9,616
py
# coding=UTF-8 import math import time import datetime import xlrd from xlrd import xldate_as_tuple import threading from tuoen.sys.utils.cache.redis import redis from tuoen.sys.core.exception.business_error import BusinessError from tuoen.sys.utils.common.dictwrapper import DictWrapper from tuoen.sys.core.field.ba...
[ "344627181@qq.com" ]
344627181@qq.com
8b15af25bd12ee28dd60bfa50ef64233eade6b3e
503d2f8f5f5f547acb82f7299d86886691966ca5
/atcoder/abc170_d.py
b793c3b0e59bf00a5329e943ebdaf51604ca831c
[]
no_license
Hironobu-Kawaguchi/atcoder
3fcb649cb920dd837a1ced6713bbb939ecc090a9
df4b55cc7d557bf61607ffde8bda8655cf129017
refs/heads/master
2023-08-21T14:13:13.856604
2023-08-12T14:53:03
2023-08-12T14:53:03
197,216,790
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
# https://atcoder.jp/contests/abc170/tasks/abc170_d import numpy as np import sys input = sys.stdin.buffer.readline N = int(input()) A = list(map(int, (input().split()))) A.sort() cnt = np.zeros(10**6+10, dtype=np.int32) for x in A: if cnt[x] != 0: cnt[x] = 2 continue cnt[x::x] +...
[ "hironobukawaguchi3@gmail.com" ]
hironobukawaguchi3@gmail.com
4963ddc9ec0ab89e820dc166e2b0b09e119c8279
c0724512d43de4629985cb0af1a6a23a206c1302
/torch/fx/experimental/symbolic_shapes.py
9ece19aff10daee0968a3ae23ebebf99bd8df662
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
malfet/pytorch
77abb3a68259c8ea28a458fd5b3fd5ec5b71498c
79db5bcc9d3febad00e5a2234b44c7db87defdab
refs/heads/master
2023-08-03T12:14:18.308137
2023-02-01T03:41:16
2023-02-01T03:41:20
139,209,347
0
1
null
2018-06-30T01:15:55
2018-06-30T01:15:55
null
UTF-8
Python
false
false
45,918
py
import torch from typing import Set, Dict, List, Type, Optional, cast, Union import sys import itertools import operator import math import functools import threading from contextlib import contextmanager from functools import lru_cache import traceback import collections import textwrap import logging # NB: The sym_*...
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
ecbffecc0cc2e41903c8ea05f722a15622f58247
16bcda63a6bba61af0c835aabd73b0467696be4a
/itertools.permutations()/new 1.py
fc66ce8640fb164b234f6d40cbf4f58b749a3cac
[]
no_license
ZirvedaAytimur/HackerRank_Python
8ea7d629e75b4db31e04c64d102bf7a0a0b5632b
175017ed3d8ff11385e12e926b94da97797fc094
refs/heads/master
2023-03-13T13:00:42.225364
2021-03-10T20:36:18
2021-03-10T20:36:18
288,210,152
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
from itertools import permutations S, N = input().split() print(*[''.join(i) for i in permutations(sorted(S), int(N))], sep="\n")
[ "zirvedaytimur@gmail.com" ]
zirvedaytimur@gmail.com
fe770d37c3f012383470ba567f00d7c563d70240
c37e63a902106bbde63fb5517f420e2c043c7f93
/6.第六類/PYD608.py
f2831263799476d02d6107d8dda3737c6e08f4e2
[]
no_license
junyi1997/TQC_Python
35b1320ca7a1b2f8eee4b9e8d4f1b9d7f4a5c02f
befe177880a7034f37848ff404bb7d33f9a07ff9
refs/heads/master
2020-04-25T04:05:57.508858
2019-03-24T17:03:07
2019-03-24T17:03:07
172,499,205
0
0
null
null
null
null
UTF-8
Python
false
false
571
py
# -*- coding: utf-8 -*- """ Created on Thu Jun 7 20:16:26 2018 @author: user 最大最小值索引 """ data=[] d_max=0 d_min=99999 for i in range(3): data.append([]) for j in range(3): num=eval(input()) data[i].append(num) if num > d_max: d_max=num d_ind=(i,j) if n...
[ "q5896799@gmail.com" ]
q5896799@gmail.com
7762a95c3c88f5454866b49404c19391dca3536e
54df8336b50e8f2d7dbe353f0bc51a2b3489095f
/Django/Django_Old/disa-py/member/views.py
30f6e4591e70ac1b02496798d564776ff26613a4
[]
no_license
SurendraKumarAratikatla/MyLenovolapCodes1
42d5bb7a14bfdf8d773ee60719380ee28ff4947a
12c56200fcfd3e5229bfeec209fd03b5fc35b823
refs/heads/master
2023-06-17T15:44:18.312398
2021-07-19T10:28:11
2021-07-19T10:28:11
387,358,266
0
0
null
null
null
null
UTF-8
Python
false
false
11,082
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import sys reload(sys) sys.setdefaultencoding("utf8") from django.views.generic import TemplateView from rest_framework import viewsets from django.conf import settings from django.core.mail import EmailMessage from django.db import connection from django...
[ "suendra.aratikatla1608@gmail.com" ]
suendra.aratikatla1608@gmail.com
b46c0d94a3c555f1f2593bb99544a3614bf282bd
4bf3aaf77c309a489100b98a8c03532632df152c
/Python/동빈북/그리디/무지의먹방라이브.py
c99f1764e90f9f5916ae8413225428dd15fcbe6a
[]
no_license
murane/PS
7fbfc54d962231949efc67f1a35c4b0119de0780
e938c6c503aeac08bf65e1e66709172b0e5da6ef
refs/heads/master
2023-05-06T22:51:54.105811
2021-05-30T03:34:53
2021-05-30T03:34:53
293,699,199
0
0
null
null
null
null
UTF-8
Python
false
false
674
py
import heapq def solution(food_times, k): heap=[] if sum(food_times)<=k: return -1 for idx,time in enumerate(food_times): heapq.heappush(heap,(time,idx+1)) tot_cnt=0 cur_cnt=0 while heap: tmp_time,tmp_idx=heapq.heappop(heap) tot_cnt+=(tmp_time-cur_cnt)*(len(heap)+...
[ "murane@naver.com" ]
murane@naver.com
2edf5053669ffa0143f87c4e40cfcf93088f2495
c753216f44c4c5f34d50763a02d720e064ed5d13
/OPSI/web2/test/test_log.py
5909fce6269025ae6359143e64908bd32be8d23e
[]
no_license
mpice-mn/python-opsi
7fefcd590213a5b698022323b166710e8cbf5641
76dcd4e38100e019f64731539b31be6e8af60af7
refs/heads/stable
2023-05-02T05:25:31.478822
2020-02-05T21:16:50
2020-02-05T21:16:50
104,738,074
0
0
null
2017-09-25T10:49:13
2017-09-25T10:49:13
null
UTF-8
Python
false
false
4,489
py
# Copyright (c) 2001-2007 Twisted Matrix Laboratories. # See LICENSE for details. from OPSI.web2 import log, resource, http from OPSI.web2.test.test_server import BaseCase, BaseTestResource from twisted.python import log as tlog class BufferingLogObserver(log.BaseCommonAccessLoggingObserver): """ A web2 log ...
[ "j.schneider@uib.de" ]
j.schneider@uib.de
283d5c1bd4575915f70b11a4be5c0d487bfa15f2
99ed889f5d679f0712a9578435819ff9fe1038e9
/run_scripts/functional/generate_dataset.py
972ff5ae78479770f3dfaec2da57e2a2f0771851
[]
no_license
WMViolet/baselines_tactile
7e7800c44167d6e29f4f4a187e49d92462f49100
761193122ff8c914d8b983d93620a7ffc63ea917
refs/heads/main
2023-02-24T00:30:04.616016
2021-02-01T23:45:53
2021-02-01T23:45:53
322,393,115
2
0
null
null
null
null
UTF-8
Python
false
false
13,633
py
import sys import re import multiprocessing import os.path as osp from envs import gym from collections import defaultdict import os import json import tensorflow as tf import numpy as np from experiment_utils.run_sweep import run_sweep import tactile_baselines.her.experiment.config as configure from tactile_baselines....
[ "violetfuyao@berkeley.edu" ]
violetfuyao@berkeley.edu
f722f47de9df0ad22072198f7ee90be74d106206
1dd0e0cbe481e965b1c9886a3d44ca3a122ae2af
/medikit/pipeline.py
59c97241d4e208de7b4bbea3d0301dc62eb5f615
[]
no_license
sei-nicolas/medikit
7dffc0a2866cba54023e19f5ebcd7c70b57359e8
e06fe8bc80cfa9af6fdeedf1f5fc2ef2f662dd9b
refs/heads/master
2020-07-07T00:02:18.040553
2019-06-30T08:33:42
2019-06-30T08:33:42
203,179,919
0
0
null
2019-08-19T13:36:52
2019-08-19T13:36:52
null
UTF-8
Python
false
false
2,278
py
""" Pipelines are a way to describe a simple step-by-step process, for example the release process. """ import datetime import json import logging logger = logging.getLogger(__name__) class Pipeline: """ Class to configure a pipeline. """ def __init__(self): self.steps = [] def add(se...
[ "romain@dorgueil.net" ]
romain@dorgueil.net
784081e775bbe964c1190f6cd858499aab6d04fd
dc3b3615e0e94e730508229c0fc758fc09390856
/src_nlp/tensorflow/toward_control/model/discriminator.py
3b73306d82b4046fa5b0514ff421f7b6998eda2a
[ "MIT" ]
permissive
ashishpatel26/finch
63993c208e0fc0ed52512420d38d03ce456116c1
bf2958c0f268575e5d51ad08fbc08b151cbea962
refs/heads/master
2020-04-20T21:59:25.292770
2018-12-25T01:31:50
2018-12-25T01:31:50
169,125,127
0
1
MIT
2019-02-04T18:17:06
2019-02-04T18:17:06
null
UTF-8
Python
false
false
4,199
py
from base import BaseModel from configs import args import tensorflow as tf class _Discriminator(BaseModel): def __init__(self, build_graph=True): super().__init__('Discriminator') with tf.variable_scope(self._scope): self.embedding = tf.get_variable('lookup_table', [args.vocab_size,...
[ "zhedongzheng@outlook.com" ]
zhedongzheng@outlook.com
c37099ecc1222f0c5828a745aa379d5e3379a1f6
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/cdn/azure-mgmt-cdn/generated_samples/custom_domains_delete.py
a6329d05e663555c4614fd72f5abf4438f6b3885
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,593
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
Azure.noreply@github.com
e1823faa28ca7cfcca7c723b670ba84b7359aad2
7972f2a08d201325f13847086d9c6e3161fa0e95
/OpenCV.xcodeproj/lib/python3.7/site-packages/numpy/polynomial/tests/test_laguerre.py
bc94afbefd1951fbcc5e416ace0ad745b67e4868
[]
no_license
valiok98/testing
d430e1a2bfa6c4ec758f6629cb0e11f3d19e1480
b022b04e92f14d5c7fa69d589bfa8983160890a4
refs/heads/master
2022-01-14T22:11:00.365164
2019-05-14T11:53:08
2019-05-14T11:53:08
184,013,779
0
0
null
null
null
null
UTF-8
Python
false
false
107
py
../../../../../../Cellar/numpy/1.16.3_1/lib/python3.7/site-packages/numpy/polynomial/tests/test_laguerre.py
[ "valentinkostadinov@w208-51-v4.eduroam.dynamic.rbg.tum.de" ]
valentinkostadinov@w208-51-v4.eduroam.dynamic.rbg.tum.de
5149a29ec22475fb3f959d83ecc335c7692de590
d48a10791e607b1690eea9c6c7191416cd60dc2d
/src/tlog/receiver/parse/syslog.py
1691afeb50010f7356e35dd4e226981e5d97f225
[]
no_license
thomaserlang/TLog
d84d1f51d5454598539fa8ab56b26292a13899f9
3f331c7169c90d1fac0d1922b011b56eebbd086a
refs/heads/master
2020-06-02T19:26:41.600474
2014-08-23T19:00:34
2014-08-23T19:00:34
12,624,537
2
0
null
2013-09-13T16:00:48
2013-09-05T17:52:29
JavaScript
UTF-8
Python
false
false
7,392
py
import logging import re import dateutil.parser from tlog.receiver.parse.parsed import Parsed class Syslog(object): ''' Class for parsing different syslog standards. Parse a syslog message: Syslog.parse('some syslog'). Returns none if the log format is not supported. Supported ...
[ "thomas@erlang.dk" ]
thomas@erlang.dk
6930b3b01ee36c759829bd4f634118dc666a853f
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startQiskit2987.py
472b1cd797ec2131dde4ee210490114eef1d7309
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
4,147
py
# qubit number=4 # total number=39 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2 import numpy as np import networkx as nx def bitwise_...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
bab103f06638d1b892180096303b9bf0e6475feb
92a7d8b7cef98a8af9e11c3a3e32537e42a5909f
/temp.py
bb3d3707f91aad9a5bb630f9d7575eccac34a46d
[]
no_license
shanto268/focus-stacking
3b8f74ec7338f2664ac35f88f32bcdc304c011ff
e3e9dba2adfdb4a85a3a5b4a0c4f9f40e4240a9a
refs/heads/master
2023-04-11T04:36:16.236913
2021-04-22T20:08:43
2021-04-22T20:08:43
360,668,996
1
0
null
null
null
null
UTF-8
Python
false
false
1,086
py
def getNeatTomograms(csvFile): I_matrices_reshaped = np.loadtxt(csvFile) filters = [ 'none', 'nearest', 'bilinear', 'bicubic', 'spline16', 'spline36', 'hanning', 'hamming', 'hermite', 'kaiser', 'quadric', 'catrom', 'gaussian', 'bessel', 'mitchell', 'sinc', 'lanczos' ] for j in ...
[ "sadman-ahmed.shanto@ttu.edu" ]
sadman-ahmed.shanto@ttu.edu
b1efdec2c8d1b55d5b698c8a63e0cd204b58a672
7950c4faf15ec1dc217391d839ddc21efd174ede
/problems/0947.0_Most_Stones_Removed_with_Same_Row_or_Column.py
cd63b6a1fee276fbeb5a6d85dbc93e57564f6f69
[]
no_license
lixiang2017/leetcode
f462ecd269c7157aa4f5854f8c1da97ca5375e39
f93380721b8383817fe2b0d728deca1321c9ef45
refs/heads/master
2023-08-25T02:56:58.918792
2023-08-22T16:43:36
2023-08-22T16:43:36
153,090,613
5
0
null
null
null
null
UTF-8
Python
false
false
1,275
py
''' Runtime: 355 ms, faster than 64.84% of Python3 online submissions for Most Stones Removed with Same Row or Column. Memory Usage: 14.6 MB, less than 72.25% of Python3 online submissions for Most Stones Removed with Same Row or Column. ''' class UF: def __init__(self, n): self.p = list(range(n)) ...
[ "laoxing201314@outlook.com" ]
laoxing201314@outlook.com
60348d5d0dcc591878cc15c5daf0973aebeb18b0
b15ccd04d3edfb4d6278a055422610be09c3916c
/4615_재미있는 오셀로 게임/sol3.py
1c09cf931c77a05419f6e8447e49b0e62a0ad716
[]
no_license
hksoftcorn/Algorithm
d0f3a1a6009f47e4f391e568b29a3b51d6095d33
81b067b8105ba305172dd8271787c19f04d170ba
refs/heads/master
2023-05-12T21:15:34.668580
2021-06-08T07:57:04
2021-06-08T07:57:04
337,121,489
0
0
null
null
null
null
UTF-8
Python
false
false
1,049
py
import sys sys.stdin = open('sample_input.txt', 'r') def check(col, row, color): global arr, N def reversi(col, row, color): global arr # 상하좌우 / 대각선 dx = [-1, 1, 0, 0, -1, -1, 1, 1] dy = [0, 0, -1, 1, -1, 1, -1, 1] for i in range(8): d_x = dx[i] d_y = dy[i] change_li...
[ "hksoftcorn.dev@gmail.com" ]
hksoftcorn.dev@gmail.com
0c9583a3811439fcc5cda71bf42497a2544f7d7b
3c27b86f0165ab24e6b04d505e8471e032594f0b
/pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGL/GLES1/IMG/user_clip_plane.py
b8f7827c07884c9fba7dd0ac8e86eab155bfd9a7
[ "LicenseRef-scancode-warranty-disclaimer", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "LGPL-2.1-or-later", "GPL-3.0-only", "LGPL-2.0-or-later", "GPL-3.0-or-later", "MIT" ]
permissive
alexus37/AugmentedRealityChess
8b9ccdfffc8aee93a86a44b8ef53c034ec6a10d1
7f600ad153270feff12aa7aa86d7ed0a49ebc71c
refs/heads/master
2020-12-24T13:29:21.967833
2020-02-27T09:38:50
2020-02-27T09:38:50
31,264,034
1
1
MIT
2020-02-27T09:38:52
2015-02-24T14:36:34
Python
UTF-8
Python
false
false
938
py
'''OpenGL extension IMG.user_clip_plane This module customises the behaviour of the OpenGL.raw.GLES1.IMG.user_clip_plane to provide a more Python-friendly API The official definition of this extension is available here: http://www.opengl.org/registry/specs/IMG/user_clip_plane.txt ''' from OpenGL import platform, co...
[ "alexlelidis@gmx.de" ]
alexlelidis@gmx.de
1b93ddc9c6c1399eaa6bec5b56290bfafa63f575
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-2/b93d3b23f51ef282c90dcf924475eb1fcaa4151d-<__getitem__>-fix.py
5adbfa85f57ff1603ef0188a487be24d8bd31338
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,046
py
def __getitem__(self, key): if isinstance(key, slice): (start, stop) = (key.start, key.stop) if (start is None): start = 0 if (stop is None): stop = self.data.shape[0] if ((stop + self.start) <= self.end): idx = slice((start + self.start), (stop ...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
62162d4ab0cfb57a6d6fefa1e484bb594dd92685
ec15546fbcf6a2523f08950f0da01ade4451524f
/example_project/testapp/streams.py
dd63d45ce22d39cd8fdddc679a4b03ef35dece2e
[ "BSD-3-Clause" ]
permissive
seaw688/django-activity-stream
5869f3716e8d261296d520455f6412cbeca3c2db
b4e470444bcccb666bfb3711c0bced7863936ff9
refs/heads/master
2020-12-18T10:57:24.140620
2020-01-21T15:39:07
2020-01-21T15:39:07
235,354,434
0
0
BSD-3-Clause
2020-01-21T13:55:13
2020-01-21T13:55:12
null
UTF-8
Python
false
false
378
py
from datetime import datetime from actstream.managers import ActionManager, stream class MyActionManager(ActionManager): @stream def testfoo(self, obj, time=None): if time is None: time = datetime.now() return obj.actor_actions.filter(timestamp__lte = time) @stream def t...
[ "justquick@gmail.com" ]
justquick@gmail.com
3e0281fe6bf7c9011f21574c13f9ca744ce5653c
8efe56ee34c455a6b1336897f6d457acbc9c10f9
/examples/torch/pearl_half_cheetah_vel.py
0e468a052eb49096c983e7c4462f42d069776847
[ "MIT" ]
permissive
neurips2020submission11699/metarl
ab18d11e708bf569d76cb2fab2bcce089badd111
ae4825d21478fa1fd0aa6b116941ea40caa152a5
refs/heads/master
2022-10-15T22:03:09.948673
2020-06-11T19:22:55
2020-06-11T19:30:58
268,410,657
4
0
null
null
null
null
UTF-8
Python
false
false
6,501
py
#!/usr/bin/env python3 """PEARL HalfCheetahVel example.""" import click from metarl import wrap_experiment from metarl.envs import MetaRLEnv, normalize from metarl.envs.mujoco import HalfCheetahVelEnv from metarl.experiment import LocalRunner from metarl.experiment.deterministic import set_seed from metarl.experiment....
[ "neurips2020submission11699@gmail.com" ]
neurips2020submission11699@gmail.com
684cc61e7ed14e6b451bd27e39aa48200081c2b3
d7ec9d21fd426f4037908d4cd1b0532d3ea4288d
/simdb/settings.py
21040d8caed58785045b8d33aebbfca021820f57
[]
no_license
simmons-tech/simdb
53fdbfeb999ad2f31a442d31b90205ac1529ead9
be1938fb2139ee394dd9cfbcba8fd762b58c78d9
refs/heads/master
2020-04-22T10:06:28.846310
2016-10-13T03:36:51
2016-10-13T03:36:51
67,450,667
0
0
null
null
null
null
UTF-8
Python
false
false
4,096
py
""" Django settings for simdb project. Generated by 'django-admin startproject' using Django 1.10.1. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os ...
[ "ammubhave@gmail.com" ]
ammubhave@gmail.com
b36824f0be40160f9c5f18035f4391791f1f4e17
2f122071e3cee6a150392edee2e4a2b0770309bb
/src/apps/search/views.py
e68ce7f9bef692437b25cd0939469393610d31bc
[]
no_license
snicoper/ofervivienda
4ca63472ca50406469977057f53b91a81c30f57f
44b8d2934105ccbf02ff6c20896aa8c2b1746eaa
refs/heads/master
2020-04-01T09:30:31.640803
2018-10-15T08:23:59
2018-10-15T08:23:59
153,077,955
1
0
null
null
null
null
UTF-8
Python
false
false
5,490
py
from django.shortcuts import Http404 from django.views.generic import FormView, ListView from anuncios.mixins.views import ClassFromCategoryNameMixin from anuncios.models import Anuncio from anuncios.settings import ANUNCIO_PAGINATE_BY from favorites.mixins.views import FavoriteListContextMixin from utils.text import ...
[ "snicoper@gmail.com" ]
snicoper@gmail.com
a8c9730f594067c302297e85bf27f363f28b7440
220535ba153c2fca757c264cab56d2ff835f4fd4
/02_K-近邻算法KNN/KNN.py
12d160bc82b9aaca1311f5b885db5491a719ccfc
[]
no_license
cp4011/Machine-Learning
d41b5b8533b8d2210d1e69b944f8ea997c2488b4
7f4576278990f8a2de302e69eb6373d169f9fbc8
refs/heads/master
2020-04-04T15:41:53.912450
2019-03-26T15:37:35
2019-03-26T15:37:35
156,048,459
2
0
null
2018-11-04T06:14:57
2018-11-04T04:16:03
Python
UTF-8
Python
false
false
9,066
py
from numpy import * from os import listdir """k-近邻算法 优点:精度高、对异常值不敏感、无数据输入假定。 缺点:计算复杂度高、空间复杂度高。 使用数据范围:数值型和标称型。 伪代码: 对未知类别属性的数据集中的每个点依次执行以下操作: (1).计算已知类别数据集中的点与当前点之间的距离; (2).按照距离递增次序排序; (3).选取与当前点距离最小的k个点; (4).确定前k个点所在类别的出现频率; (5).返回前k个点出现频率最高的类别作为当前点的预测分类。 """ # k-近邻算法 def classify0(inputX, dataSet, labels, k): ...
[ "957628963@qq.com" ]
957628963@qq.com
afc12e1e19a07dc5ca5449d3f2a3421f0d611459
33e4a68cfb7b37b2a75afab0867be0004d569daa
/landcarve/constants.py
f83b743aa5731f96329ce3a1232ed8863c4205ed
[]
no_license
phillipvan/landcarve
ac4976adbe6c8ddae391d87d203bcf0cb49a0a07
ab717c63255d3568ad00517bd6fe08a23502da85
refs/heads/master
2023-08-15T02:41:04.175401
2021-09-29T22:43:37
2021-09-29T22:43:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
15
py
NODATA = -1000
[ "andrew@aeracode.org" ]
andrew@aeracode.org
4aea3afea6a9199732f404cf7c84b91ca28615e2
0ed050cd8d23bf4679860694bbc5d6f2e45f229a
/src/q13es/tests.py
0056b741b65be1b6294b2fc08682a819429d57ee
[]
no_license
dsysme/hackforisrael
5404563d57f0034b1cefe09586abb6d65f8d5442
6081533fb8fbdecf28b4a4d85b7e9822d8969ca4
refs/heads/master
2020-12-13T20:54:55.744381
2013-11-03T23:34:07
2013-11-03T23:34:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,672
py
from django import forms from django.contrib.auth import get_user_model from django.test import TestCase from django.utils.translation import gettext as _ from q13es.forms import create_form, split_form_file, parse_field, parse_form from q13es.models import Answer import os.path User = get_user_model() class Q13esTe...
[ "udioron@gmail.com" ]
udioron@gmail.com
8cdbd7afe50b400f3a05da8118e35216bc8e369c
fa0d15b56a0d2bfd33a3bc5ca48c02d9b389af3d
/ggrc-core/src/ggrc/app.py
794c4eb71bb29963b8b85425288d1423f465950a
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Bryan-Guner-Backup/WULF
5f50ca4069f267e2ce0b1b6537f340ead5d78984
59d70ce2d4fe148e78ed112746d6963eeccaa6e9
refs/heads/master
2023-08-22T13:15:51.457279
2021-10-29T08:16:03
2021-10-29T08:16:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,667
py
# Copyright (C) 2016 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """Sets up Flask app.""" import re from flask import Flask from flask.ext.sqlalchemy import get_debug_queries from flask.ext.sqlalchemy import SQLAlchemy from tabulate import tabulate from ggrc import contr...
[ "bgoonz4212@gmail.com" ]
bgoonz4212@gmail.com
1da2545df8d545a097b32fdc32594028de41246c
d8346eaf1c910ff02c7b243692a2766b8b089f06
/for-post/python-standard-library-threading/s2-timer-loop/loop.py
fb38dc289d93392d4877804a4926fc8e4cb27eda
[]
no_license
dustinpfister/examples-python
55304c99ba3af82cd8784ee98745546632155c68
a9910ee05d4df524f951f61b6d9778531a58ccbf
refs/heads/master
2023-03-06T21:10:18.888654
2021-02-26T20:32:52
2021-02-26T20:32:52
318,595,538
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
import threading def printMess(): print('hello'); def loop(func, sec): def wrapper(): loop(func, sec) func() t = threading.Timer(sec, wrapper) t.start() return t t=loop(printMess, 1)
[ "dustin.pfister@gmail.com" ]
dustin.pfister@gmail.com
915ce9e4b26a80de0c7696c731b048a00f6e8272
adbcfc92d71e9be39ccef49b3aee0d06cdcb0af1
/alembic/versions/48e2185b4a81_added_foreign_key_to_the_line_stops.py
50b33102a1ea440040fdc9b085a9132fe3c8f2b6
[]
no_license
linxaddict/mpkscraper
67e5cf5806974d4fe78f1c892f12870008951a91
a3b48a16f5db448692751c7de1f443dc3b0b30e7
refs/heads/master
2020-06-15T03:33:19.935314
2016-12-17T21:07:20
2016-12-17T21:07:20
75,334,083
0
0
null
null
null
null
UTF-8
Python
false
false
541
py
"""added foreign key to the line_stops Revision ID: 48e2185b4a81 Revises: 44516a7495c7 Create Date: 2016-12-17 21:50:48.779742 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '48e2185b4a81' down_revision = '44516a7495c7...
[ "mprzepiorkowski@gmail.com" ]
mprzepiorkowski@gmail.com
75809450259f12afa6cc106612dff03bb1da556b
6958566f07393cc0dbdc3d8cefdcc741153f721b
/flask0518/utils/settings.py
678992a18fc5ba456baa786cf55a1bc20675649f
[]
no_license
iversongit/20180518
6ffeb7f91c7b66f07c9f4f0df7616accec473ba1
9ae2fb839815155c4784936a8c099cc98ebc15cf
refs/heads/master
2020-03-17T19:55:33.897986
2018-05-19T02:11:41
2018-05-19T02:11:41
133,884,415
0
0
null
null
null
null
UTF-8
Python
false
false
796
py
import os from utils.functions import get_db_url # 放置所有配置相关的操作,形同Django的setting.py # 基础路径 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # 页面模板 templates_dir = os.path.join(BASE_DIR,"templates") # 静态模板 static_dir = os.path.join(BASE_DIR,"static") # 连接数据库 DATABASE = { # 用户 'USER':'root'...
[ "1564329410@qq.com" ]
1564329410@qq.com
fde93cf368188861818c16d04c7084c0c3f7a84a
52b5773617a1b972a905de4d692540d26ff74926
/.history/fizz_20200607124449.py
500600f0a3fd3de68b394839af6489449e8e04aa
[]
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
445
py
def fizz(num): newNumber = [] for i in range(1,num+1): newNumber.append(i) for j in range(len(newNumber)): if newNumber[j] % 3== 0: newNumber[j] = "Fizz" elif newNumber[j] % 5 == 0: newNumber[j] = "Buzz" elif newNumber[j] % 3 == 0 and newNumber[j] % ...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
4965dbda8f463902986b1c3f3580791ed62f75cd
99c4d4a6592fded0e8e59652484ab226ac0bd38c
/code/batch-1/vse-naloge-brez-testov/DN4-M-96.py
e73ef8577fed38746d0fd9c7193bff1d7ac9d17f
[]
no_license
benquick123/code-profiling
23e9aa5aecb91753e2f1fecdc3f6d62049a990d5
0d496d649247776d121683d10019ec2a7cba574c
refs/heads/master
2021-10-08T02:53:50.107036
2018-12-06T22:56:38
2018-12-06T22:56:38
126,011,752
0
0
null
null
null
null
UTF-8
Python
false
false
1,382
py
# Tu pišite svoje funkcije: from math import* def koordinate(ime, kraji): s = () for i, x, y in kraji: if ime == i: s = s + (x,y) return(s) else: return None def razdalja_koordinat(x1, y1, x2, y2): razdalja = sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2) return razd...
[ "lenart.motnikar@gmail.com" ]
lenart.motnikar@gmail.com
f6f0b4e89f6ced5ee2a6039dd64dee6a3c957630
6a2b1b1d6092a8d2492a6677b6fd19d27b0f461f
/14-Python-Advance/06-python-regex/04-Match-Object/02-Match-Attributes/02-Match-pos-endpos-attribute.py
f9cd514798dea81ea6dd5771c3af7ef8e2ded8ef
[]
no_license
Uttam1982/PythonTutorial
3cfbe237199e048967502f3d0c1936f2b878cb87
8e28cc5c4be5826a011059db66f6952871248c82
refs/heads/master
2022-12-17T18:47:28.397383
2020-09-22T08:55:23
2020-09-22T08:55:23
288,524,784
0
1
null
null
null
null
UTF-8
Python
false
false
1,358
py
# match.pos # match.endpos #-------------------------------------------------------------------------------------------- # Contain the effective values of <pos> and <endpos> for the search. # Remember that some methods, when invoked on a compiled regex, # accept optional <pos> and <endpos> arguments that limit the s...
[ "uttampat@gmail.com" ]
uttampat@gmail.com
de72767d2ff972eb773a57d625072fad3a34062a
fb605733922e6e65c3a8537e0eddca18a98bd161
/bin/sql-to-markdown
bb2563e15394de6c4e827ed47f792398a8323fff
[]
no_license
EarthCubeGeochron/Sparrow-docs
5f3c73851d8a0a4ddb3b019c81b7e6066d3988a9
ad6ad2e337e98170fb33a5384640ff01c9462f03
refs/heads/master
2020-04-29T07:02:42.555203
2019-04-18T22:25:32
2019-04-18T22:25:32
175,939,002
0
0
null
null
null
null
UTF-8
Python
false
false
626
#!/usr/bin/env python # -*- coding: utf-8 -*- import fileinput import pyparsing from textwrap import dedent print("~~~sql") in_doc = False docs = "" for line in fileinput.input(): docstart = "/*" in line docend = "*/" in line if docstart: in_doc = True if not in_doc: print(line, end="")...
[ "dev@davenquinn.com" ]
dev@davenquinn.com
2c3d5b4e9124467eb3bf4af0a2652746057a9351
45ba55b4fbdaf1657fde92beaeba4f173265afcd
/tests/b.py
f646816b0c9a3e696aef98558f548199055989fd
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
strawberry-graphql/strawberry
af96afd4edd1788c59e150597a12501fbc7bf444
6d86d1c08c1244e00535840d9d87925431bc6a1c
refs/heads/main
2023-08-30T03:34:12.929874
2023-08-24T12:01:09
2023-08-24T12:01:09
162,690,887
3,408
529
MIT
2023-09-14T21:49:44
2018-12-21T08:56:55
Python
UTF-8
Python
false
false
779
py
from __future__ import annotations from typing import TYPE_CHECKING, Optional from typing_extensions import Annotated import strawberry if TYPE_CHECKING: from tests.a import A @strawberry.type class B: id: strawberry.ID @strawberry.field async def a(self) -> Annotated[A, strawberry.lazy("tests.a")...
[ "noreply@github.com" ]
strawberry-graphql.noreply@github.com
43e50a203f2e925342a83dcf7976dde81970e1e1
bc441bb06b8948288f110af63feda4e798f30225
/ucpro_sdk/model/notify/operation_log_pb2.pyi
fc93c0734ad12ed730d7c1a374e421a9a3cbc2ca
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
false
6,962
pyi
# @generated by generate_proto_mypy_stubs.py. Do not edit! import sys from google.protobuf.descriptor import ( Descriptor as google___protobuf___descriptor___Descriptor, ) from google.protobuf.internal.containers import ( RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC...
[ "service@easyops.cn" ]
service@easyops.cn
010368ccaa1fe15b704c69b83731653d4d069dff
9709da49cf74e0f1248848e029c5084af22e4e27
/e2yun_addons/odoo12/wx_tools/models/res_partner.py
56975b035d93ea387a4aa843381cea659c9a17e1
[]
no_license
guwenfeng/filelib
27ff44ecac988bbf1ed30e7e4d33bdfbc790393f
bc9003b47f06d7f10c0dc93034179d0fafccc683
refs/heads/master
2020-06-30T21:27:49.204212
2019-08-06T09:58:32
2019-08-06T09:58:32
200,955,551
0
1
null
2019-08-07T02:17:12
2019-08-07T02:17:12
null
UTF-8
Python
false
false
3,851
py
# coding=utf-8 import logging from geopy.distance import vincenty from odoo import models, fields, api _logger = logging.getLogger(__name__) class WXResPartner(models.Model): _inherit = 'res.partner' wxcorp_user_id = fields.Many2one('wx.corpuser', '关联企业号用户') wx_user_id = fields.Many2one('wx.user', '微信...
[ "hepeng1@163.com" ]
hepeng1@163.com
ac6d3308b07574f96e885441150f069ca1b51439
29db04da44804aae807f113dc0bb9134563b084e
/Python2-Core/src/main/prompto/statement/MethodCall.py
b483b2baa4a61ce28a56d38c5583e9fdd8129d0d
[]
no_license
prompto/prompto-python2
0f84e6e6f0f6889a4c866fc300d351fd7ee8a6b1
f929df1dd55e0b5d8ec9f39398a924503fce4019
refs/heads/master
2022-12-07T12:41:27.297404
2022-11-27T17:37:43
2022-11-27T17:37:43
32,623,630
3
1
null
2019-05-04T11:01:41
2015-03-21T07:17:05
Python
UTF-8
Python
false
false
8,090
py
from prompto.declaration.IDeclaration import IDeclaration from prompto.declaration.AbstractMethodDeclaration import AbstractMethodDeclaration from prompto.declaration.ArrowDeclaration import ArrowDeclaration from prompto.error.PromptoError import PromptoError from prompto.error.SyntaxError import SyntaxError from promp...
[ "eric.vergnaud@wanadoo.fr" ]
eric.vergnaud@wanadoo.fr
3bfb51f0aa7f3004baf108569efcc7120a220413
d60ee49abaee6c74c5b777f8f112a7f75f71f029
/genome/variants2/filter/VCF/somatic/genes/indels/rare_variants.py
6062b31fd198971fea91fd9fa2620ed59197a345
[]
no_license
ak352/melanomics
41530f623b4bfdbd5c7b952debcb47622d1a8e88
fc5e6fdb1499616fb25a8dc05259add8a65aeca0
refs/heads/master
2020-12-24T16:14:42.271416
2015-08-06T12:48:52
2015-08-06T12:48:52
18,439,919
0
0
null
null
null
null
UTF-8
Python
false
false
2,593
py
import sys from common_rsid import get_non_flagged #Creates a dictionary of fields pointing to column numbers, makes the code more readable def ParseFields(line): fields = {} var = line[:-1].split("\t") for x in range(0, len(var)): fields[var[x]] = x return fields def read_tsv(infile): wit...
[ "ak@uni.fake" ]
ak@uni.fake
b1aa5b9263b56dd44182ac4f6d3ae9f712c62267
5b2590bc39cf0cb44b7257f2be3be72a0e58d068
/torchkbnufft/nufft/sparse_interp_mat.py
4f2ef88a46f98241db14e644a685efbb30416c0f
[ "MIT" ]
permissive
zaccharieramzi/torchkbnufft
efc59f4bed6675173b8064d5dec7ec9eeb43b0f2
37e5808ab73ddb52cbd4655f3d7fd6273b3dd89a
refs/heads/master
2020-12-26T08:17:44.180049
2020-08-03T17:17:40
2020-08-03T17:17:40
273,199,030
0
0
MIT
2020-06-18T09:39:00
2020-06-18T09:39:00
null
UTF-8
Python
false
false
5,225
py
import itertools import numpy as np import torch from ..math import complex_mult, conj_complex_mult from .interp_functions import calc_coef_and_indices def get_interpob(model): """Retrieves the interpolation dictionary from model. Different nufft objects use different interpolation objects. This function ...
[ "matt.muckley@gmail.com" ]
matt.muckley@gmail.com
445094ac9443d4043d0a46684d8716d700979415
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Scripts/pyinstaller/tests/old_suite/interactive/test_pygame.py
e3c84c9dfc7af1c578e2a92a953046ea790ce1d4
[]
no_license
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
128
py
version https://git-lfs.github.com/spec/v1 oid sha256:3026e58b95b7ac74eb29a2e0e663c0a7e96472b2bf98d1be45c60efdd0b9458b size 922
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
50fa5a76956a5e9f87fc8b39fcc81f05fde6feeb
365967082720f3fda31afccfc237b7a67e8ffc07
/math/UglyNumber.py
80cd2786b22e2532548ebd0cad9f942395e607c6
[]
no_license
hulaba/geekInsideYou
ec68dee3fa24d63f5470aa40b600ef34d37c5da1
72c1f1b4fbf115db91c908a68c9ac3ca4cb22a4f
refs/heads/master
2022-12-11T11:11:03.149336
2020-09-12T16:12:40
2020-09-12T16:12:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
422
py
def divide(no, div): while no % div == 0: no = no / div return no def isUgly(num): num = divide(num, 2) num = divide(num, 3) num = divide(num, 5) return 1 if num == 1 else 0 def nthUgly(n): count = 1 i = 1 while n > count: i += 1 if isUgly(i): ...
[ "nainamehta2110@gmail.com" ]
nainamehta2110@gmail.com
552b509615b8838ca1c4f36eb4f2afc80db01eb6
377d86194fd6d23c8ef3df3e6f7d90092dd8f9b4
/workout_tracker/auth/urls.py
81a75b085386e9757309abff228e83dd0d38bc59
[ "MIT" ]
permissive
e-dang/Workout-Tracker
f20f44b012e895244bad413a46103415ffae5732
00a27597ea628cff62b320d616f56b2df4f344a0
refs/heads/master
2022-12-28T07:49:34.179307
2020-10-12T20:48:28
2020-10-12T20:48:28
293,937,958
0
0
null
null
null
null
UTF-8
Python
false
false
334
py
from django.urls import path, include from rest_auth.views import PasswordResetConfirmView urlpatterns = [ path('', include('rest_auth.urls')), path('register/', include('rest_auth.registration.urls')), path('password-reset-confirm/<uidb64>/<token>/', PasswordResetConfirmView.as_view(), name='password_rese...
[ "edang830@gmail.com" ]
edang830@gmail.com
82c411312abd5617b27f1cfbea9d327ce60f4dc8
51b6d2fc53d5c632fcf01319842baebf13901e84
/atcoder.jp/abc196/abc196_d/Main.py
08662bac5d300ada3cd847e151140d34667825e1
[]
no_license
mono-0812/procon
35db3b2c21eff74fbd7b52db07f249380f6834ef
68a4b53880a228a0164052b23d1326363efcbc20
refs/heads/master
2023-05-30T17:02:58.935074
2021-06-27T12:15:10
2021-06-27T12:15:10
345,896,553
0
0
null
null
null
null
UTF-8
Python
false
false
1,249
py
import bisect,collections,copy,heapq,itertools,math,string,sys,queue def I(): return input() def IS(): return input().split() def II(): return int(input()) def IIS(): return map(int,input().split()) def LIIS(): return list(map(int,input().split())) def ZER(N): return [False for _ in range(N)] INF=float("inf") MOD=10**9...
[ "frisk02.jar@gmail.com" ]
frisk02.jar@gmail.com
263f48233234deeabc43b9fed764e143d380396d
dd63082fe701392a132af4c52fba3ce2fb76e84c
/virtual/bin/django-admin.py
52ff4c4bd001d26a8f0e187c372daeff74962e1b
[]
no_license
CollinsMuiruri/multivendor
b53bfbe773e86d1793d09d87e4b8ecada79a7823
cf68cb3e9dbca8040dc781e173712f8e043cb42f
refs/heads/main
2023-04-11T07:54:04.488449
2021-04-19T23:05:40
2021-04-19T23:05:40
359,611,231
0
0
null
null
null
null
UTF-8
Python
false
false
707
py
#!/home/collins/Documents/proxy-services/multivendor/virtual/bin/python3 # When the django-admin.py deprecation ends, remove this script. import warnings from django.core import management try: from django.utils.deprecation import RemovedInDjango40Warning except ImportError: raise ImportError( 'django...
[ "wanyekicollins@gmail.com" ]
wanyekicollins@gmail.com
ea5160d5e285bd0f2ad8621191591fd191836803
ebf934fb6fd4e0ebbd870db857897fbb9d8022b7
/pyspark/ml/other/spark_ml_02.py
4e0ecd29cb3ae2cc49e494d27fa5864a6c628830
[]
no_license
AidenLong/ai
6ce2bcf5928f8350ba8b440e9032ea4c39dd69ec
0901e6010bbb51a165680e52d9adaeec7e510dc1
refs/heads/master
2020-05-03T13:27:38.698490
2019-08-22T03:18:09
2019-08-22T03:18:09
178,653,209
3
2
null
null
null
null
UTF-8
Python
false
false
1,667
py
# --encoding:utf-8 -- import os from pyspark.mllib.stat import Statistics from pyspark import SparkConf, SparkContext if 'SPARK_HOME' not in os.environ: os.environ['SPARK_HOME'] = 'D:\syl\dev\spark-1.6.1-bin-2.5.0-cdh5.3.6' # 创建Spark上下文 conf = SparkConf() \ .setMaster('local') \ .setAppName('spark ml 02'...
[ "807108578@qq.com" ]
807108578@qq.com
d9ad09a9d01aacf6b03f7ada5b2712a773f66e3c
9b20743ec6cd28d749a4323dcbadb1a0cffb281b
/11_Time_Series_Forecasting_with_Python/02/features_lag1.py
ec593a95a20499aae3844259bf5a6e6eb9850287
[]
no_license
jggrimesdc-zz/MachineLearningExercises
6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178
ee265f1c6029c91daff172b3e7c1a96177646bc5
refs/heads/master
2023-03-07T19:30:26.691659
2021-02-19T08:00:49
2021-02-19T08:00:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
357
py
# create a lag feature from pandas import DataFrame from pandas import concat from pandas import read_csv series = read_csv('daily-minimum-temperatures.csv', header=0, index_col=0, parse_dates=True, squeeze=True) temps = DataFrame(series.values) dataframe = concat([temps.shift(1), temps], axis=1) dataframe.columns = [...
[ "jgrimes@jgrimes.tech" ]
jgrimes@jgrimes.tech
a6f64d216a61ec6b1ffd4aea86d1986532e794ab
9edaf93c833ba90ae9a903aa3c44c407a7e55198
/autosar/models/data_transformation_subtypes_enum.py
a50f8760e3b21482a2c78717041e0d8b56a05c4d
[]
no_license
tefra/xsdata-samples
c50aab4828b8c7c4448dbdab9c67d1ebc519e292
ef027fe02e6a075d8ed676c86a80e9647d944571
refs/heads/main
2023-08-14T10:31:12.152696
2023-07-25T18:01:22
2023-07-25T18:01:22
222,543,692
6
1
null
2023-06-25T07:21:04
2019-11-18T21:00:37
Python
UTF-8
Python
false
false
166
py
from enum import Enum __NAMESPACE__ = "http://autosar.org/schema/r4.0" class DataTransformationSubtypesEnum(Enum): DATA_TRANSFORMATION = "DATA-TRANSFORMATION"
[ "tsoulloftas@gmail.com" ]
tsoulloftas@gmail.com
8e6929fa89c74d13a0c75c8d23b87b2a2effc313
b7125b27e564d2cc80a2ce8d0a6f934aa22c8445
/.history/display_board_20201107211818.py
025bebad29b34bbd089707fa7af0e9cfb8956bf5
[]
no_license
JensVL96/Puzzle-solver-for-fun
4c15dcd570c3705b7ac555efb56b52913e81083c
6d8a4378a480372213a596a336a4deca727a00fc
refs/heads/master
2021-07-15T05:19:42.185495
2020-11-08T13:59:49
2020-11-08T13:59:49
224,855,888
1
0
null
null
null
null
UTF-8
Python
false
false
6,807
py
from config import * import pygame as pg class Display_board(): def __init__(self, screen): self.screen = screen self.font_num = pg.font.SysFont("comicsans", NUMBER_SIZE) self.font_cdt = pg.font.SysFont("comicsans", CANDIDATE_SIZE) def draw_val(self, val, x, y): text1 = self....
[ "jle040@uit.no" ]
jle040@uit.no
8be82ede930331667dd607f674a2cefd5c1b9b0c
dbd8180d9c02c22b42baa5227437714ff352fd8e
/1-100/L237.py
2ab3f5f5b9eb4f3c53c14f04d1fca60d0a23b65e
[]
no_license
k8godzilla/-Leetcode
92953dfffc0f06907fa7bd0beea7bc27b16f9efa
58d5384155f481b1d1b0a7ca69566245dd779554
refs/heads/master
2020-06-12T15:35:43.380979
2019-08-07T11:14:49
2019-08-07T11:14:49
194,348,264
0
0
null
null
null
null
UTF-8
Python
false
false
1,636
py
# -*- coding: utf-8 -*- """ Created on Fri Jul 26 11:27:50 2019 @author: admin """ ''' 请编写一个函数,使其可以删除某个链表中给定的(非末尾)节点,你将只被给定要求被删除的节点。 现有一个链表 -- head = [4,5,1,9],它可以表示为:   示例 1: 输入: head = [4,5,1,9], node = 5 输出: [4,1,9] 解释: 给定你链表中值为 5 的第二个节点,那么在调用了你的函数之后,该链表应变为 4 -> 1 -> 9. 示例 2: 输入: head = [4,5,1,9], node = 1 ...
[ "k8sunyin@126.com" ]
k8sunyin@126.com
7e33ad8bbc4f98c052b5f081b07505b5b17aa3df
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/9_排序和搜索/经典题/826. 安排工作以达到最大收益.py
ec2e9799c526bbb8a42b79b5b4cd4c785cc7eb7f
[]
no_license
981377660LMT/algorithm-study
f2ada3e6959338ae1bc21934a84f7314a8ecff82
7e79e26bb8f641868561b186e34c1127ed63c9e0
refs/heads/master
2023-09-01T18:26:16.525579
2023-09-01T12:21:58
2023-09-01T12:21:58
385,861,235
225
24
null
null
null
null
UTF-8
Python
false
false
1,380
py
from typing import List from bisect import bisect_left # difficulty[i] 表示第 i 个工作的难度,profit[i] 表示第 i 个工作的收益。 # worker[i] 是第 i 个工人的能力,即该工人只能完成难度小于等于 worker[i] 的工作。 # !每一个工人都最多只能安排一个工作,但是一个工作可以完成多次。 # 我们能得到的最大收益是多少?(调整打怪策略,与什么样的怪兽战斗获得金币最多) # 1 <= n, m <= 104 # 不能二分查找:题目没有说难度高的工作收益也越大 # 总结: # !排序+遍历加指针记录 # ...
[ "lmt2818088@gmail.com" ]
lmt2818088@gmail.com
6476471730816d1b49b701f2b5d54bc73d71ef9f
83df1fb88f7abba1198284bb4b8dc8d0a7ff6f93
/src/third_party/catapult/systrace/systrace/systrace.py
2a5aa38573139a8b08a9ab0658343a790f717e9d
[ "BSD-3-Clause" ]
permissive
JamshedVesuna/telemetry
7f3385399e47b7b98f8d3eec80ade43690956cd7
1697886b155f22a42e13aa311538f1db65e6e6ed
refs/heads/master
2021-01-20T09:12:34.645395
2016-01-22T08:40:44
2016-01-22T08:40:44
47,851,831
3
2
null
2020-07-24T04:58:51
2015-12-11T21:25:59
HTML
UTF-8
Python
false
false
8,287
py
#!/usr/bin/env python # Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Android system-wide tracing utility. This is a tool for capturing a trace that includes data from both userland and the kernel...
[ "jamshed.vesuna@gmail.com" ]
jamshed.vesuna@gmail.com
3d5c8745030e29f443d5aefebb7a4c6d895d30ec
18e886106d2d84c978e12aa29691f5c0269409ca
/src/biotite/sequence/search.py
975603f8edc57daec4a299306d9c5f47044335c4
[ "BSD-3-Clause" ]
permissive
avestamh/biotite
fed37fb4733b4b064cad06b0fccb0193f295c6a2
d2066e1011bffa7ef83db9fddf6207da8834cc79
refs/heads/master
2020-08-06T06:59:21.326038
2019-09-27T17:03:06
2019-09-27T17:03:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,119
py
# This source code is part of the Biotite package and is distributed # under the 3-Clause BSD License. Please see 'LICENSE.rst' for further # information. __author__ = "Patrick Kunzmann" __all__ = ["find_subsequence", "find_symbol", "find_symbol_first", "find_symbol_last"] import numpy as np def find_sub...
[ "patrick.kunzm@gmail.com" ]
patrick.kunzm@gmail.com
ba108f845d88a211249cea333a6ee45a47788350
0fa517fb36fbffd3ffcc9c1a016f1812a8139102
/numpy_01_arrays.py
90971c221829f79b1720b2bb2e27d2a8362b7e47
[]
no_license
sooyoungkim/flipped-python-modules
2e7ed4d8590edcb87695d9eb3f5a096f7c362006
cfa5074b22429340e8586cb49b6a3c25df61e6f3
refs/heads/master
2020-03-09T10:57:45.480915
2018-04-09T10:01:18
2018-04-09T10:01:18
128,749,437
0
0
null
null
null
null
UTF-8
Python
false
false
4,497
py
import numpy as np ######################################################## # Arrays # - Numpy의 중심 feature는 Array object class이다. # - Python의 List와 비슷하지만 Array의 모든 원소는 같은 타입이다. # - 대개 float이나 int 타입 # - 엄청 큰 numeric 데이터를 매우 빠르고 효과적으로 계산. # - Arrays 는 multidimensional이라 할 수 있다. # - Array생성 : numpy.array(th...
[ "suri.kim@daumkakao.com" ]
suri.kim@daumkakao.com
7dd305bcfab4bc04364c22ec193187aa5f1f6479
5390e730defb07660fb6928f5de5970db80b5457
/docs/conf.py
c8a64641f11e45a5d5e7a0132d35e129d865d969
[ "BSD-2-Clause" ]
permissive
DrMeers/plata
a732831f001bdc25ab425d6e3c3f70c4d3d303fb
eedfdadda573e9f7b28beddf9ec578c91903355a
refs/heads/master
2021-01-18T10:32:01.027409
2013-06-28T07:42:40
2013-06-28T07:42:40
771,395
1
1
null
null
null
null
UTF-8
Python
false
false
6,605
py
# -*- coding: utf-8 -*- # # Plata documentation build configuration file # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that are commented...
[ "mk@spinlock.ch" ]
mk@spinlock.ch
df82af94f16968ac4caa95eaf4b55ce03d574d45
cd1ac53e02cf8879e092bdc4a625e465e241d6e0
/apps/goods/views.py
b763376cb7524115ff1f1d04353e31927bc680fd
[]
no_license
furuiyang0715/dailyfresh
a150d472237822730f6c372620c5da19da514590
98c678c34d5b26eda6b99f7a8d1ca74b6f4399d3
refs/heads/master
2022-12-18T17:38:22.200364
2020-09-17T08:49:30
2020-09-17T08:49:30
286,921,141
0
0
null
null
null
null
UTF-8
Python
false
false
3,199
py
import json from django.http import JsonResponse from django.shortcuts import render from django.views import View from django_redis import get_redis_connection from goods.models import GoodsType, IndexGoodsBanner, IndexPromotionBanner, IndexTypeGoodsBanner class IndexView(View): """首页""" def get(self, requ...
[ "furuiyang0715@gmail.com" ]
furuiyang0715@gmail.com
fa0969ec326cfb3e1f13c24ab9b1f289f1196e41
ccb73097804b2bf6070dba519658ab77bd9a044e
/leetcode/4_二叉树专题/08_二叉树中的最大路径和.py
38691afc21fef7b84f5b8f4dbaadddf093fe627c
[]
no_license
ryanatgz/data_structure_and_algorithm
4c43d426534381739891819c4c1e25b500f017ae
967b0fbb40ae491b552bc3365a481e66324cb6f2
refs/heads/master
2022-03-13T01:17:58.015457
2019-09-23T06:49:20
2019-09-23T06:49:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,681
py
# encoding: utf-8 """ @project:data_structure_and_algorithm @author: Jiang Hui @language:Python 3.7.2 [GCC 7.3.0] :: Anaconda, Inc. on linux @time: 2019/8/21 16:01 @desc: 第124题 """ """ 本题思路和上一题有相通之处,每一个节点有一个权重,以该节点为根结点的路径最大值有三种情况: (1) 从根结点往左子树走,不一定到达左子树的根结点,此时 max_path = root.val + L (2) 从根结点往右子树走,不一定到达右...
[ "942642428@qq.com" ]
942642428@qq.com
8f6f439a66a4f9dd1e2b7499a465f033c7001ddb
db8a9a6d2dd4abb762727b2f4570e553ed349c70
/opengever/task/response_syncer/comment.py
a75a331a2b66d20d65e2b28abc203ae559e24916
[]
no_license
braegelno5/opengever.core
75e8e31a6f15385c9f7551b9c671fdc75ba358be
88d9bec614544de8ca51bf9fcc8cfc0c05449bb5
refs/heads/master
2020-05-30T11:53:44.003641
2017-06-28T15:32:11
2017-06-28T15:32:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
832
py
from opengever.task.response_syncer import BaseResponseSyncerReceiver from opengever.task.response_syncer import BaseResponseSyncerSender from opengever.task.response_syncer import ResponseSyncerSenderException class CommentResponseSyncerSender(BaseResponseSyncerSender): TARGET_SYNC_VIEW_NAME = '@@sync-task-comm...
[ "e.schmutz@4teamwork.ch" ]
e.schmutz@4teamwork.ch
356abdb44404654a8daade1fdfc7d21c7b2833a7
9835b6949fe4c8018de57aee531dedf1509337cc
/October_2020/oct_09_Serialize_and_Deserialize_BST.py
a0bd3b0f3ad419ec369340ef77c919f66fd8aec5
[]
no_license
jcai0o0/My_Leetcode_Solutions
f6edea0693d252a99e6507a1724a89763113f8a0
3fc909c01c6a345f625c9ab9e0f1584ea5fa8ab4
refs/heads/master
2023-01-01T04:08:33.929184
2020-10-17T02:01:56
2020-10-17T02:01:56
289,094,613
0
0
null
null
null
null
UTF-8
Python
false
false
795
py
class Codec: def serialize(self, root): """ Encodes a tree to a single string. """ def postorder(root): return postorder(root.left) + postorder(root.right) + [root.val] if root else [] return ' '.join(map(str, postorder(root))) def deserialize(self, data):...
[ "44845593+jcai0o0@users.noreply.github.com" ]
44845593+jcai0o0@users.noreply.github.com
db09ee14b15a7db7c6252da33646d85dda887742
f0af28c525a6eac5dbdaf8ffba23dad1138e5b7e
/src/yaml/yaml_prefab.py
f8a39bc82164004356c0e20af7862cdf14451b93
[ "MIT" ]
permissive
adrianogil/SemanticCode
740886756d83e569dcfe1aa30d9f4e5db3f394cb
b826b99965f80fc42e654e33ebbebc3aad10f0cd
refs/heads/main
2021-01-22T18:02:25.065879
2020-10-22T20:51:19
2020-10-22T20:51:19
85,055,494
1
1
null
null
null
null
UTF-8
Python
false
false
2,416
py
import os, sys __file__ = os.path.normpath(os.path.abspath(__file__)) __path__ = os.path.dirname(__file__) # print(__path__) if __path__ not in sys.path: sys.path.insert(0, __path__) from yaml_element import YamlElement class YamlPrefab(YamlElement): guid = '' target_id = '' game_object = None ...
[ "adrianogil.san@gmail.com" ]
adrianogil.san@gmail.com
a66e50dea2e018898bfbd892032ea056afcd0c30
f0b741f24ccf8bfe9bd1950425d83b6291d21b10
/backend/api/v1beta1/python_http_client/kfp_server_api/models/api_run_storage_state.py
1175a3a1e85da38aa0bcbec22b383fc7873b53ff
[ "Apache-2.0" ]
permissive
kubeflow/pipelines
e678342b8a325559dec0a6e1e484c525fdcc8ce8
3fb199658f68e7debf4906d9ce32a9a307e39243
refs/heads/master
2023-09-04T11:54:56.449867
2023-09-01T19:07:33
2023-09-01T19:12:27
133,100,880
3,434
1,675
Apache-2.0
2023-09-14T20:19:06
2018-05-12T00:31:47
Python
UTF-8
Python
false
false
2,894
py
# coding: utf-8 """ Kubeflow Pipelines API This file contains REST API specification for Kubeflow Pipelines. The file is autogenerated from the swagger definition. Contact: kubeflow-pipelines@google.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import s...
[ "noreply@github.com" ]
kubeflow.noreply@github.com
0b6ce0e2925acd8b5d04ee7bf7b8649418802315
ca23b411c8a046e98f64b81f6cba9e47783d2584
/es_maml/task.py
d84fcbc1384da4dc3099407c9c88cf633642152d
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
pdybczak/google-research
1fb370a6aa4820a42a5d417a1915687a00613f9c
0714e9a5a3934d922c0b9dd017943a8e511eb5bc
refs/heads/master
2023-03-05T23:16:11.246574
2021-01-04T11:30:28
2021-01-04T11:30:28
326,629,357
1
0
Apache-2.0
2021-02-01T12:39:09
2021-01-04T09:17:36
Jupyter Notebook
UTF-8
Python
false
false
7,023
py
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
7ad079b58c3e966fe6c64ed4a5fb161abf1e06f0
07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8
/lib/python3.6/site-packages/matplotlib/tests/test_backend_qt5.py
5c472c488c0e5f50c53b7fb31b265f732c5bc4ca
[]
no_license
cronos91/ML-exercise
39c5cd7f94bb90c57450f9a85d40c2f014900ea4
3b7afeeb6a7c87384049a9b87cac1fe4c294e415
refs/heads/master
2021-05-09T22:02:55.131977
2017-12-14T13:50:44
2017-12-14T13:50:44
118,736,043
0
0
null
2018-01-24T08:30:23
2018-01-24T08:30:22
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:3a3557f8e3099b0a26d5723cd3f215b246a4b65b74b89afe5e5b2c08ef15cb85 size 5103
[ "seokinj@jangseog-in-ui-MacBook-Pro.local" ]
seokinj@jangseog-in-ui-MacBook-Pro.local
c5bb45f484309c77d1f5e6fcabcdb3a471336fc4
afc8d5a9b1c2dd476ea59a7211b455732806fdfd
/Configurations/VBF/Full2016/HTXS/structure.py
ec651bf0cdec72ef741ab3299277ae508df460c0
[]
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
8,304
py
# structure configuration for datacard #structure = {} # keys here must match keys in samples.py # structure['DY'] = { 'isSignal' : 0, 'isData' : 0 } structure['Wjets'] = { 'isSignal' : 0, 'isData' ...
[ "piergiulio.lenzi@cern.ch" ]
piergiulio.lenzi@cern.ch
72e60cc886839197cd64e36eae449aa89d95327f
ae711d6802fa43efdc25ac2357789a6d4e735a92
/ipypublish/export_plugins/__init__.py
45b81c1aeab5a61e4575c48ece103b5a3a64ad42
[ "BSD-3-Clause" ]
permissive
stonebig/ipypublish
8c946d0b3788874d348379f0485d9a4e4807be54
218bb3c557b09314ac91910d8ee79d312d0f481c
refs/heads/master
2021-01-16T19:07:09.729341
2017-08-08T22:01:45
2017-08-08T22:01:45
100,138,691
0
0
null
2017-08-12T21:29:17
2017-08-12T21:29:17
null
UTF-8
Python
false
false
83
py
#!/usr/bin/env python #from ipypublish.export_plugins import latex_ipypublish_main
[ "chrisj_sewell@hotmail.com" ]
chrisj_sewell@hotmail.com
8fff01e105f0aa6711b1988eac61df3ec5a04400
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_142/418.py
e273a5f2ab13e3c6917814dd6401043855e717f1
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,693
py
import math #YOLOSWAG def getRepeats(string): last = "" repeats = [] cur = -1 for c in string: if c == last: repeats[cur][1] += 1 else: repeats.append([c,1]) cur += 1 last = c return repeats def getMoves(checkLengths, repeats)...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
d8564359bfe77459d7cad265911cb5ead91e4c39
c61c9bedba1968bfaf571ac3996b696fc35890a6
/Chapter3/3-4.py
11467a4eb3c9f06b6bdd059979b31d2f5dca20e8
[]
no_license
ArunRamachandran/ThinkPython-Solutions
497b3dbdeba1c64924fe1d9aa24204a9ca552c5b
1a0872efd169e5d39b25134960168e3f09ffdc99
refs/heads/master
2020-04-01T10:23:20.255132
2014-11-07T17:04:52
2014-11-07T17:04:52
25,806,318
1
0
null
null
null
null
UTF-8
Python
false
false
1,360
py
# A fn. object is a value you can assign to a variable or pass as an argument # 'do_twice' is a fn that take a fn objct as an argument and calls it twice # def print_spam(): print "spam" def do_twice(f): f() f() do_twice(print_spam) # 2.Modify do_twice so that it takes two arguments, a fn objct and a value, # and...
[ "arunkramachandran92@gmail.com" ]
arunkramachandran92@gmail.com
1405f80452859a40af6dcef9d1d18726e19f09e1
300eb733976a31d73a68ddf20d986ba6aceb6ef5
/ewoexit2708/routes.py
1f90724f91805ba14797141cffb48edcf96512fa
[ "MIT" ]
permissive
ajthummar/jesse_strategies
f168ae455970bd91845807dd7b0346e77471db09
5d23b44f97006e6cecf8519a3951accbfde09fc7
refs/heads/master
2023-08-12T21:35:22.458840
2021-10-18T13:26:12
2021-10-18T13:26:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,595
py
# Some pairs have been disabled due to a lack of candle data. # You can restore them to test within recent months. routes = [ ('FTX Futures', 'ETC-USD', '15m', 'ewoexit2708', '86lZ6^AX3'), # ('FTX Futures', 'LUNA-USD', '15m', 'ewoexit2708', '86lZ6^AX3'), ('FTX Futures', 'FIL-USD', '15m', 'ewoexit2708', '86...
[ "yunusseyhandede@gmail.com" ]
yunusseyhandede@gmail.com
e976558a42813fa84f1375258c9478e7ecefb635
1a937b899af949d23e667782a7360b9de1634456
/SoftUni/Exam/Problem-2-Bunny-Wars/bunny_wars.py
526335b97d29876326703e478ca531c3d3c2278a
[]
no_license
stanislavkozlovski/data_structures_feb_2016
c498df6ea7cb65d135057a300e0d7e6106713722
adedac3349df249fe056bc10c11b0b51c49e24bb
refs/heads/master
2021-07-06T17:37:18.117104
2017-09-30T19:01:51
2017-09-30T19:01:51
75,526,414
2
2
null
null
null
null
UTF-8
Python
false
false
9,730
py
import datrie import string from sortedcontainers import SortedDict, SortedSet class Bunny: def __init__(self, name, teamid, room): self.name = name self.reversed_name = ''.join(reversed(name)) self.room = room self.health = 100 self.score = 0 self.team = teamid ...
[ "familyguyuser192@windowslive.com" ]
familyguyuser192@windowslive.com
4805be7815446bf43c70387ee55ae67dd9eb421b
cffe83637b3965ad27f5a679e187bfaf46afa690
/.stversions/cookbook/magic_browser/cookbook/cookbook/.stversions/blender/menus/utilities/DeleteDefaults~20201019-122406~20210212-114808.py
0e6df3d29eb9c86b1351c57ea11ff99386143025
[]
no_license
gmolinart/LC_MASTER
da768a592821fe4dc55bdf693291df3409c3f035
2f17eaf5c4c7f70be0c0b5976b479002da4e7d52
refs/heads/master
2023-04-29T07:38:24.653457
2021-05-17T18:42:34
2021-05-17T18:42:34
368,287,070
0
0
null
null
null
null
UTF-8
Python
false
false
749
py
import bpy # from cgl.plugins.blender import lumbermill as lm class DeleteDefaults(bpy.types.Operator): """ This class is required to register a button in blender. """ bl_idname = 'object.delete_defaults' bl_label = 'Delete Defaults' def execute(self, context): run() return {...
[ "gmolinart@gmail.com" ]
gmolinart@gmail.com
8a41096df1f6fffbe6e574d02dcbbe0cb1336a33
71acb7214efd91c0d327f6d8958e1798eadb4401
/locations/spiders/fast_stop_us.py
52aba2f44fcbdd93fc49d2c9ccbf9017896e264b
[ "CC0-1.0", "MIT" ]
permissive
alltheplaces/alltheplaces
21b9f8b4ace1352e52ae7b8f8825a930d2cb033e
1bcbb55cfcf06f2c714465570711f6e83f205c22
refs/heads/master
2023-08-30T19:45:35.098658
2023-08-30T17:51:54
2023-08-30T17:51:54
61,166,935
453
176
NOASSERTION
2023-09-14T17:16:40
2016-06-15T01:09:18
Python
UTF-8
Python
false
false
1,286
py
import re from urllib.parse import urljoin import chompjs from scrapy import Spider from locations.linked_data_parser import LinkedDataParser from locations.microdata_parser import convert_item, get_object class FastStopUSSpider(Spider): name = "fast_stop_us" item_attributes = {"brand": "FAST STOP", "brand_...
[ "noreply@github.com" ]
alltheplaces.noreply@github.com
61d4e1404221084feb930c2969ad4654b6919777
9b9a02657812ea0cb47db0ae411196f0e81c5152
/repoData/lethain-lifeflow/allPythonContent.py
e407c166df6bf7e187658a73694e7fea0de1ca30
[]
no_license
aCoffeeYin/pyreco
cb42db94a3a5fc134356c9a2a738a063d0898572
0ac6653219c2701c13c508c5c4fc9bc3437eea06
refs/heads/master
2020-12-14T14:10:05.763693
2016-06-27T05:15:15
2016-06-27T05:15:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
182,365
py
__FILENAME__ = admin from django.contrib import admin from lifeflow.models import * class CommentAdmin(admin.ModelAdmin): list_display = ('entry', 'name', 'email', 'webpage', 'date') search_fields = ['name', 'email','body'] admin.site.register(Comment, CommentAdmin) class AuthorAdmin(admin.Mo...
[ "dyangUCI@github.com" ]
dyangUCI@github.com
12acb8fffc162e13711169757c4c0ec9dd2a2c38
72ffd01f575aa38ae1f1b5d2a3c802dc684fdb33
/convlab2/nlg/sclstm/crosswoz/sc_lstm.py
4575ce7ab12acae902b85d4d9570a6a6071c3a8b
[ "Apache-2.0" ]
permissive
ArthurRizar/CrossWOZ
f721ea0459d6c3afad8aefb38f710139b8827f28
185d78b415f33bb6ad01314e6573d4bfef320aae
refs/heads/master
2021-03-07T06:20:50.066345
2020-03-09T12:29:50
2020-03-09T12:29:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,209
py
import configparser import os import zipfile from copy import deepcopy from collections import defaultdict from pprint import pprint import torch import re from convlab2.util.file_util import cached_path from convlab2.nlg.sclstm.multiwoz.loader.dataset_woz import SimpleDatasetWoz from convlab2.nlg.sclstm.model.lm_deep...
[ "zhuq96@hotmail.com" ]
zhuq96@hotmail.com
fc3dceb9403798a3866deac0936754eba2b83220
c30906c50ea0fbcccbf080b89eca84edb9f04673
/DaVinci_scripts/MC/twoBody/Kpi/2015_Bd_DKstar.py
29aa2cce06d3f6b0e0dbe7c4ca0c63a60f462224
[]
no_license
hpullen/DPhil_B02DKstar_analysis
543661c4c2e978fb7f60a1d81f27bc660710994d
651b3f333d3959e78512fc294afa334e3ea26fd9
refs/heads/master
2023-07-15T17:38:53.009366
2021-08-25T19:40:42
2021-08-25T19:40:42
107,555,335
0
0
null
null
null
null
UTF-8
Python
false
false
9,162
py
from GaudiConf import IOHelper from Configurables import DaVinci from Configurables import EventTuple from Configurables import DecayTreeTuple from Configurables import L0TriggerTisTos, TriggerTisTos from Configurables import TupleToolPropertime, TupleToolTISTOS from Configurables import TupleToolStripping, TupleToolDe...
[ "hannah.pullen@physics.ox.ac.uk" ]
hannah.pullen@physics.ox.ac.uk
2ba1d13a4758708ce06af4763c6bd9aad52b1632
39bcdb8ab7262e9a09556540d677cac162757f74
/items/models.py
e027feb7741490262fde716b9d8de4661da2957b
[]
no_license
NiiColeman/mywarehouse
c08c1aee3a4d8a5dd17642358a14e2b122d9cb14
d9b2fae9ab5d164a13b208042d8e3366e3b81b79
refs/heads/master
2023-04-06T22:29:52.771226
2021-04-16T23:19:10
2021-04-16T23:19:10
224,866,298
0
0
null
null
null
null
UTF-8
Python
false
false
7,424
py
from django.db import models # from django.contrib.auth.models import AbstractUser from django.contrib.auth.models import ( AbstractBaseUser, BaseUserManager, PermissionsMixin) # Create your models here. from departments.models import Department from django.shortcuts import reverse from django.utils import timezone...
[ "nii.cole@outlook.com" ]
nii.cole@outlook.com
2a193ad76eebcee16956107da08f264bb2ddbdf3
78d17c3a7332be85078b513eee02f7ae4f18b3db
/lintcode/unique_binary_search_treesII.py
5d39703efaeeda53c679c19120045959b595db4a
[]
no_license
yuhanlyu/coding-challenge
c28f6e26acedf41cef85519aea93e554b43c7e8e
9ff860c38751f5f80dfb177aa0d1f250692c0500
refs/heads/master
2021-01-22T21:59:27.278815
2017-11-26T07:34:04
2017-11-26T07:34:04
85,498,747
2
0
null
null
null
null
UTF-8
Python
false
false
807
py
""" Definition of TreeNode: class TreeNode: def __init__(self, val): self.val = val self.left, self.right = None, None """ class Solution: # @paramn n: An integer # @return: A list of root def generateTrees(self, n): if n == 0: return [None] DP = [[[None] for _ in xrange(...
[ "yuhanlyu@gmail.com" ]
yuhanlyu@gmail.com
1139ed09672ed55f980751bb9577805830e7ef9e
a9ef3be91fe746b44b8a4e2fcbd92b79ddc50305
/04day/4-文件备份.py
b9e012de78ed01c6cdd0a87069d210d7ad85e780
[]
no_license
ittoyou/2-1807
a7718791bbc4095b6ef07003e6a2ef0b07fcd6de
82bf09f57ccb86b88abfd4a60bca51c5cf757065
refs/heads/master
2020-03-25T10:29:53.324428
2018-09-06T01:14:43
2018-09-06T01:14:43
143,694,904
0
0
null
null
null
null
UTF-8
Python
false
false
373
py
class Tool(): def beifen(self): name = input('请输入要备份的文件名字(加上后缀名)') f = open(name,'r') position = name.rfind('.') newname = name[:position]+'备份'+name[position:] f1 = open(newname,'w') while True: content = f.read(1024) if len(content) == 0: break f1.write(content) f.close() f1.close() t = T...
[ "429013601@qq.com" ]
429013601@qq.com