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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ce554e2695eb9840c6d0399b1f782c9eb8d9d10e | d30cb6a597f6a5fad9a01da77594a225daf9a211 | /Lesson 4 - File Handling/project/attempt_1/suffix.py | 34ed3d75c984c7bdfaaf0517676f8b2ac263c7dd | [] | no_license | jmwoloso/Python_2 | 290ef8b0c7db8347fa25cf39da26f39e218d9c68 | 06c45545ed064d0e9c4fd15cc81cf454cb079c9d | refs/heads/master | 2020-04-24T02:18:34.058148 | 2015-08-02T21:02:02 | 2015-08-02T21:02:02 | 37,082,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | #!/usr/bin/python3
# A Program Used for Assigning Suffixes
# suffix.py
#
# Created by: Jason Wolosonovich
# 02-24-2015
#
# Lesson 4 - Project 1, Attempt 1
"""
Contains a dict that houses the extensions of many common
file types.
"""
#global file_suffix_dict
file_suffix_dict = {
1 : ".txt",
... | [
"jmwoloso@asu.edu"
] | jmwoloso@asu.edu |
15ffd68d61b4a460ef95ddadae10b0d714791ef3 | bc233c24523f05708dd1e091dca817f9095e6bb5 | /bitmovin_api_sdk/models/dolby_digital_plus_downmixing_preferred_mode.py | dbe4b9349d8eabb5c12189d531b9a85ed63ac8e2 | [
"MIT"
] | permissive | bitmovin/bitmovin-api-sdk-python | e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd | b0860c0b1be7747cf22ad060985504da625255eb | refs/heads/main | 2023-09-01T15:41:03.628720 | 2023-08-30T10:52:13 | 2023-08-30T10:52:13 | 175,209,828 | 13 | 14 | MIT | 2021-04-29T12:30:31 | 2019-03-12T12:47:18 | Python | UTF-8 | Python | false | false | 268 | py | # coding: utf-8
from enum import Enum
from six import string_types, iteritems
from bitmovin_api_sdk.common.poscheck import poscheck_model
class DolbyDigitalPlusDownmixingPreferredMode(Enum):
LO_RO = "LO_RO"
LT_RT = "LT_RT"
PRO_LOGIC_II = "PRO_LOGIC_II"
| [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
db4947dd7f21941b4aac995c4fe2285f661d7466 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_noisy1448.py | ae49b0570c58881f82ac7b3f628b829ccd29533b | [
"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,294 | py | # qubit number=5
# total number=51
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
2646f88f0590dd62b8ba725e67e06c4e9c20406e | b0fce7b572c78ee67ea0e2bd27e2837fffe66891 | /setup.py | 87b23bf3cfa596e1163e4cf81c7292a8ba217f97 | [
"MIT"
] | permissive | ZizhouJia/pyson | 300bd4c68cec3c0a42c5f3135e0447149ca86ebe | ba80336e6ec43456c0d1bf3e71109609b9489181 | refs/heads/master | 2020-08-15T07:55:24.704936 | 2019-11-29T08:46:35 | 2019-11-29T08:46:35 | 215,304,822 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | import setuptools
setuptools.setup(
name="pypyson",
version='0.01',
description="A JSON like more powerful object notation for python",
license="MIT License",
author="ZizhouJia",
author_email="jiazizhou@126.com",
url="http://github.com/ZizhouJia/pyson",
packages=setuptools.find_packages... | [
"jiazizhou@126.com"
] | jiazizhou@126.com |
1d831cb9cfb9b9f7db96f0499fe3f0d02ab6c4ee | 6302d46032f704aa2c8bb6e2810c19e3bb90c1c4 | /server/netflix_backend/movies_api/migrations/0002_auto_20210219_1954.py | 7ccbe630791c36378645ba0357d4a4f295324d1c | [] | no_license | raghavendra-musubi/netflix-django-rest-react-redux | 304d28f68e13e9962f31593441ae1b7b36743952 | fe78061ccc1c27ff78697cb5f21d92a313b8a7c0 | refs/heads/main | 2023-03-09T21:32:30.409919 | 2021-02-24T19:03:32 | 2021-02-24T19:03:32 | 340,214,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | # Generated by Django 3.1.6 on 2021-02-19 19:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('movies_api', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='movie',
name='category_id',
... | [
"raghavendra@techis.io"
] | raghavendra@techis.io |
0907267e98b96a3bfb69062100eb901fb42b8d3d | f7463bd0ab18b41611d5ac725f65d3db3a3a7a1d | /Generation Python - A Beginner's Course/13_Functions/13.5(return_v2)/7.py | 05f6fc472054d62e8f0ac4d289c449cf867dab43 | [] | no_license | Sergey-Laznenko/Stepik | f81c5aeead3fbd20628129d60ccce92b34724b97 | 5e1a1a76c3f6ed487cf8fc847913c890c8eac840 | refs/heads/master | 2022-12-28T19:01:48.670540 | 2020-10-18T15:23:58 | 2020-10-18T15:23:58 | 279,022,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | def is_palindrome(a):
if str(a) == str(a)[::-1]:
return True
else:
return False
def is_prime(b):
if b in (0, 1):
return False
if b % 2 == 0:
return False
for i in range(3, round(b ** (1 / 2) + 1), 2):
if b % i == 0:
return False
return True
... | [
"Laznenko.Sergey@gmail.com"
] | Laznenko.Sergey@gmail.com |
70cb3d09402bd71b84303f0fe648479b8846a4b2 | e93d1931789c99922a6b5ff3cf7e3bfe1c8bce3d | /blog/urls.py | feda7193e8da66168c2c798b1763fd13b33d3f73 | [] | no_license | nhutphong/djangoblog | 2653fcc34285788e7b34048acc7a078c88536c5c | e4bf2a0d43727c248b2a2006910a68063f99f186 | refs/heads/master | 2023-03-16T10:59:51.700275 | 2022-10-18T03:40:39 | 2022-10-18T03:40:39 | 237,549,725 | 1 | 0 | null | 2022-03-12T01:04:49 | 2020-02-01T02:23:09 | Python | UTF-8 | Python | false | false | 1,089 | py | from django.urls import path
from django.contrib.auth.decorators import login_required
from .views import (
ArticleListView,
ArticleCreateView,
ArticleDetailView,
ArticleUpdateView,
ArticleDeleteView,
PaginationListView,
SearchResultsView,
)
from . import views_filter
app_name = 'ar... | [
"nhutphong@outlook.com"
] | nhutphong@outlook.com |
71574601ac2b63d3341288b90ea931c5e3941b71 | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/scikits/statsmodels/tools/decorators.py | b67ab7f9182886af449a828b1f8d2348ab11ea16 | [
"Unlicense"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 7,973 | py | from numpy.testing import *
import warnings
__all__ = ['resettable_cache','cache_readonly', 'cache_writable']
class CacheWriteWarning(UserWarning):
pass
class ResettableCache(dict):
"""
Dictionary whose elements mey depend one from another.
If entry `B` depends on entry `A`, changing the values of ... | [
"tbutler.github@internetalias.net"
] | tbutler.github@internetalias.net |
9da746164e40ff74bb887fd59775557656eb228e | 21e87dc5abaf8c8dfe7adfb72c38648f415d038c | /16_developer_tools/11_compileall/example/subfolder2/c.py | 4713d0f8c91464a958dcfae43283a515af70bba3 | [] | no_license | ariesduanmu/python3_standard_library | f2badbb6047b6003ddeccb77ba2892074510f0ff | 905ae53d0970be442bcf3d2a9dc3eadbc58367e5 | refs/heads/master | 2022-04-23T21:05:52.862076 | 2020-04-23T16:44:14 | 2020-04-23T16:44:14 | 241,277,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | # -*- coding: utf-8 -*-
# @Author: Li Qin
# @Date: 2020-02-24 09:30:22
# @Last Modified by: Li Qin
# @Last Modified time: 2020-02-24 09:30:56
def minus(a, b):
return a-b | [
"aries.duanmu@gmail.com"
] | aries.duanmu@gmail.com |
d06b868fa88c5d499dd32895fd542a19fc18deb0 | eed7b5aa4861086d34e539e7bbfeff4286506692 | /src/Game/Effects/spend_power.py | 2286d1f6e407736c8ea6bf6088203090a386bc5c | [] | no_license | dfwarden/DeckBuilding | 0be2ccb68fc9a69c8eaa1d8acedeaa7cebef1a31 | 0b5a7573a3cf33430fe61e4ff8a8a7a0ae20b258 | refs/heads/master | 2021-01-18T09:52:51.880892 | 2015-02-03T03:21:17 | 2015-02-03T03:21:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py |
class SpendPower:
""" Represents an effect to spend power this turn """
def __init__(self, power):
""" Initialize the Effect with the power to spend """
self.power = power
def perform(self, context):
""" Perform the Game Effect """
context.owner.spend... | [
"cloew123@gmail.com"
] | cloew123@gmail.com |
5309fa1188f170b8efbe4b43b64fe524a1b8e1e9 | db8ab70de135d8bddc2c6df865b98ed76c2b92ee | /model/toxic_comment_classifier.py | f0bf2a9509d6372736d134cd7b3551e2797e332d | [] | no_license | boyuan12/ToxicBlockPlus | 718af4970f27e9eba9c454268a75c53c007f7737 | f90a46b9748a8d4dcdfc9e8c19279cc6aeed46c5 | refs/heads/main | 2023-02-26T21:20:56.878995 | 2021-02-09T01:15:34 | 2021-02-09T01:15:34 | 335,865,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | from typing import List
from bentoml import api, artifacts, env, BentoService
from bentoml.frameworks.keras import KerasModelArtifact
from bentoml.service.artifacts.common import PickleArtifact
from bentoml.adapters import DataframeInput, JsonOutput
from keras.preprocessing import text, sequence
import numpy as np
im... | [
"boyuanliu6@yahoo.com"
] | boyuanliu6@yahoo.com |
434bfb4f4cc27692073954c84c66e1218f428b56 | af47e1dd1405ebd5267e7f8cf22f7b4429fcef00 | /scattertext/termscoring/g2.py | 7ba2d01a83690dfca816ad03c8a93d0365684bad | [
"MIT",
"CC-BY-NC-SA-4.0",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | JasonKessler/scattertext | 72ce3b35d71af595f7797de845ba93b4bb0091b4 | b41e3a875faf6dd886e49e524345202432db1b21 | refs/heads/master | 2023-05-11T06:42:51.108527 | 2023-05-06T19:23:59 | 2023-05-06T19:23:59 | 63,827,736 | 2,187 | 303 | Apache-2.0 | 2023-05-06T19:24:00 | 2016-07-21T01:47:12 | Python | UTF-8 | Python | false | false | 4,143 | py | import numpy as np
import pandas as pd
from scipy.stats import chi2
from statsmodels.stats.multitest import fdrcorrection
from scattertext.termscoring.CorpusBasedTermScorer import CorpusBasedTermScorer
def g2_term(O, E):
res = O.astype(np.float64) * (np.log(O) - np.log(E))
res[O == 0] = 0
return res
de... | [
"JasonKessler@users.noreply.github.com"
] | JasonKessler@users.noreply.github.com |
2ef11f6cdbf8403c0d448a2d67022c40b83c6620 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=3.5_rd=0.8_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=60/sched.py | 48c7bde40359bfb09d24223c9a5ccb1161b938c2 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | -X FMLP -Q 0 -L 3 104 400
-X FMLP -Q 0 -L 3 78 300
-X FMLP -Q 0 -L 3 69 300
-X FMLP -Q 0 -L 3 64 300
-X FMLP -Q 1 -L 2 62 250
-X FMLP -Q 1 -L 2 54 175
-X FMLP -Q 1 -L 2 49 300
-X FMLP -Q 2 -L 2 49 150
-X FMLP -Q 2 -L 2 43 150
-X FMLP -Q 2 -L 2 37 250
-X FMLP -Q 3 -L 1 35 250
-X FMLP -Q... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
0397c9f0d2e40acf497622b8b4cb2e5299202bba | 471ea669e21abdb4e4915610b4b5eb43ea3cffe9 | /剑指Offer/31.整数中1出现的次数.py | d663b71492aabfba5cd8ae82b899c772a9d0eb39 | [] | no_license | JiahuaLink/nowcoder-leetcode | 26aed099e215cfc1d8e8afffc62fafa26b26b06f | 0155fc33511cbe892f58550d561d3aa3efcd56b9 | refs/heads/master | 2023-07-09T03:05:31.227720 | 2021-08-03T06:50:36 | 2021-08-03T06:50:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | # 方法一:判断整数每个数字
class Solution:
def NumberOf1Between1AndN_Solution(self, n):
count = 0
for i in range(1, n+1):
temp = i
while(temp):
if temp%10 == 1:
count += 1
temp /= 10
return count
# 方法二:将整数转为字符串逐位判断
... | [
"noreply@github.com"
] | JiahuaLink.noreply@github.com |
3220c6fedfbdef66c2d1bc9c9c4a39bc047ce8ae | 40c2bce56832d97797c115f60d1e0459fd4ebf93 | /Eclipse_Project_2/Section_1_5/database.py | 3c56f2e590f4f519ae6e0c1a2f4d52010d0af71a | [] | no_license | amanoj319319319/Eclipse_Python_LastSeleniumTest | 0be2e7f615160248f329b4df0e9d109612b29560 | 4d0978e4c2dfe9c3a9d4b429f7ff6340278c0252 | refs/heads/master | 2023-04-27T09:14:38.726807 | 2021-05-19T08:18:40 | 2021-05-19T08:18:40 | 267,038,244 | 0 | 0 | null | 2021-05-19T08:17:45 | 2020-05-26T12:35:36 | Python | UTF-8 | Python | false | false | 6,224 | py | #connecting to the database using database credentials and finding version of the database
'''
import cx_Oracle
con=cx_Oracle.connect('system/Manoj319319319')
if con!=None:
print ("successfully connected")
print ("Version is:-",con.version)
else:
print ("connection failed")
'''
#creating a table name in t... | [
"a.manoj16@gmail.com"
] | a.manoj16@gmail.com |
57c166495a5ba9c4d4d739bff152b1a67f6e3fea | 5ceea4106e0df754ae581c1f5e2d16082d7b6386 | /hackerRank/Algorithms/Implementation/bon-appetit.py | 0da733b5b6475b0511073b0a9b33e4e31f2c3664 | [] | no_license | vikramlance/Python-Programming | b0d4bd70145bfaa7a66434656c5970fbc57e8bd3 | 4094961e3c613e33f2d8a6d30281c60ed09d8c80 | refs/heads/master | 2022-06-17T00:58:50.646615 | 2022-06-03T03:39:35 | 2022-06-03T03:39:35 | 53,989,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | '''
https://www.hackerrank.com/challenges/bon-appetit
'''
n,k=raw_input().split()
n=int(n)
k=int(k)
a=map(int, raw_input().split())
b=int(raw_input())
if (2*b== (sum(a) - a[k])):
print "Bon Appetit"
else:
print ( b - ((sum(a) - a[k])//2))
| [
"noreply@github.com"
] | vikramlance.noreply@github.com |
76f8185eb90a42766f86ea066b38f022fd6156e5 | 131688c1006670be2bab5ce062521ce9b79b64af | /week2/design_hashset.py | ff2fc0f9e3e5b52cdb2f8f1875abad001dd4aa75 | [
"MIT"
] | permissive | ravichalla/wallbreaker | 4e3dc98ff02fd8a7bace2466c071c65a37124426 | 0d587f12c60df5e4bca47f9183484a69d284d1f5 | refs/heads/master | 2020-06-08T05:44:35.510146 | 2020-01-29T02:25:19 | 2020-01-29T02:25:19 | 193,169,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | class MyHashSet:
def __init__(self):
self.capacity = 5000
self.arr = [None] * self.capacity
def add(self, key):
hash_val = hash(key) % self.capacity
if self.arr[hash_val] == None:
self.arr[hash_val] = [key]
else:
if key not in self.arr[hash_val]:
... | [
"ravichalla95@gmail.com"
] | ravichalla95@gmail.com |
3c8d65c57a7bdbf95d8cdf533395ad17aa5f6a99 | 03e115c1937ec7bd1e249f82db0225828eaaa186 | /2-GUI (tkinter)/3imagenes.py | 5d2a2f4a214587d17e084764b7496fb9400deb31 | [] | no_license | mivargas/Master-python | 236c04205637ddd44d1cc879de2b7c48418153f9 | 9d1c04a8d658aa0dd8620ed792fa2133adfa57e7 | refs/heads/master | 2023-03-06T13:35:58.177058 | 2021-02-16T00:06:00 | 2021-02-16T00:06:00 | 321,731,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | from tkinter import *
from PIL import Image, ImageTk
ventana = Tk()
ventana.geometry("700x500")
Label(ventana, text="HOLA SOY MIGUEL").pack(anchor=W)
imagen = Image.open("./imagenes/labsxd.png")
render = ImageTk.PhotoImage(imagen)
Label(ventana, image=render).pack(anchor=E)
ventana.mainloop() | [
"miguelvargas619@gmail.com"
] | miguelvargas619@gmail.com |
5c02e94311a37dbaf15d56d180884328cdaf081d | 761a20a79420bc6da491c5a487f6cf218f598b66 | /DemoTest/graphicsTkinter003.py | d8eb0e19c8eb84a4b963313d1955a8126b63903c | [] | no_license | namexiaohuihui/linuxlogin | 50b21e247d2e06c479907aa2f94f4b5979b4025d | ad8ffce5e87624f40f89eedc0229ba70cd66699b | refs/heads/master | 2020-03-24T16:56:06.313441 | 2018-08-03T14:06:48 | 2018-08-03T14:06:48 | 142,843,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | # -*- coding: utf-8 -*-
"""
@__author__ :DingDong
@file: graphicsTkinter001.py
@time: 2018/5/17 21:37
@Entry Name:operating
"""
from tkinter import *
from tkinter.messagebox import showinfo
def reply(name):
showinfo(title='弹窗',message='你的名字: %s !' % name)
top = Tk()
top.title('账号登陆')
# top.iconbitma('1178420.gif... | [
"704866169@qq.com"
] | 704866169@qq.com |
aef37705f286e46903ffcd71491000c635addd56 | 2dc17d12ff6ea9794177c81aa4f385e4e09a4aa5 | /archive/531LonelyPixelI.py | 85d2ad88ff367da5b050933632ef6d2bb1308b12 | [] | 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 | 913 | py | # coding=utf-8
'''
Created on 2017�4�11�
@author: Administrator
'''
class Solution(object):
def findLonelyPixel(self, picture):
"""
:type picture: List[List[str]]
:rtype: int
"""
if picture:
rows = [0] * len(picture)
cols = [0] * len(picture[... | [
"yanhuang1293@gmail.com"
] | yanhuang1293@gmail.com |
b09d2c84b36ef30c97f1bc81ce017ce57b4ec3d9 | 7f863ca7ed47981f69e42fc1add75ba4acad921a | /code-lab/DSA - Long Hike(Fractional Knapsack).py | f4d12e06067fcbb5aa404a68e6bcd836d7d613b3 | [
"CC0-1.0"
] | permissive | Nahid-Hassan/fullstack-software-development | e9f920be9a999c78f156e6102683b93a50c4e597 | 892ffb33e46795061ea63378279a6469de317b1a | refs/heads/main | 2023-08-19T14:16:57.801056 | 2021-09-29T15:34:35 | 2021-09-29T15:34:35 | 376,595,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | weights = 1
weights_values = [(14, 2), (20, 4), (18, 3)]
def knapsack_slow(weights_values, weights):
values_by_weights = [(x / y, y) for x, y in weights_values]
values_by_weights.sort(reverse=True)
# print(values_by_weights)
print(values_by_weights)
bags = []
for i in range(len(values_by_wei... | [
"nahid.cseru@gmail.com"
] | nahid.cseru@gmail.com |
f1033a3a96ab29a179996c21324e2e9a90a9b91e | 8ecd899a8558ad0a644ecefa28faf93e0710f6fb | /ABC163/ABC163_A.py | bb4bb6c963e85231718a3704fce4761be0b06a79 | [] | no_license | yut-inoue/AtCoder_ABC | b93885547049788d452e86b442a4a9f5ee191b0e | 3d2c4b2b2f8871c75f86040ad07ccd7736ad3dbe | refs/heads/master | 2021-07-03T09:09:20.478613 | 2021-02-21T13:20:31 | 2021-02-21T13:20:31 | 227,140,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | r=int(input())
#a,b=map(int,input().split())
#l=list(map(int,input().split()))
#l=[list(map(int,input().split())) for i in range(n)]
ans=2*r*3.14159
print('{:.5f}'.format(ans))
| [
"yinoue.1996787@gmail.com"
] | yinoue.1996787@gmail.com |
abc19a89f586d28d24cd2468c387a49113282b1c | 03520abb58a66aeed9a556d53e3a21006af02dde | /named_storms/migrations/0079_nsempsa_covered_data_snapshot.py | 73c0e3338456b81ae6bf6fe88566507a8f794e9c | [] | no_license | flackdl/cwwed | 23ce1d1a5e48a57ee2cb3229860f1b97ccc81636 | 0a1454897d397cd5e1652643616abe883ccc853b | refs/heads/master | 2023-07-21T20:05:35.093270 | 2023-06-29T15:29:26 | 2023-06-29T15:29:26 | 118,942,664 | 1 | 0 | null | 2023-09-12T21:56:59 | 2018-01-25T17:06:47 | Python | UTF-8 | Python | false | false | 530 | py | # Generated by Django 2.2.6 on 2019-10-17 17:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('named_storms', '0078_auto_20191017_1705'),
]
operations = [
migrations.AddField(
model_name='ns... | [
"flackattack@gmail.com"
] | flackattack@gmail.com |
a5c3f6f93d1f5122a502c4bff3c84593cf568c96 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/2402.py | f7e5ebea73232aadb5a3d4e17099e09452301ea6 | [] | 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,266 | py | def increment_by_value(d, l, index, value):
if index in d:
d[index] += value
else:
d[index] = value
l.append(index)
l.sort()
def occupy(s):
num_stalls, num_people = [int(x) for x in s.split(" ")]
free, free_index = dict(), []
free[num_stalls] = 1
free_index.appe... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
cfbf28112e456f0999b8c8dc64ea310f31fb5227 | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /Sourcem8/pirates/leveleditor/worldData/del_fuego_building_int_tattoo.py | 615b94089f0e48bcfbf591d8fc665740418ee377 | [] | 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 | 3,540 | py | from pandac.PandaModules import Point3, VBase3, Vec4
objectStruct = {
'Objects': {
'1153434880.63dzlu0': {
'Type': 'Building Interior',
'Name': '',
'AdditionalData': [
'interior_spanish_store_tattoo'],
'Instanced': True,
'Objects': ... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
cf38d83b92adeb028ec0a5e36ef6ed766d954ac0 | 0e4d09b2a1b93aaa6d623d16905854d993a934ae | /Python/Django/surprise_me/surprise_me/settings.py | f424efc942cbefeba7f250e60cd038b1cc08d43a | [] | no_license | freefaller69/DojoAssignments | ee7f6308b02041be3244f795422e0e044d4a41b2 | f40426ac448026c1172048665f36024ad22f0d81 | refs/heads/master | 2021-01-17T10:23:39.419514 | 2017-07-25T00:50:41 | 2017-07-25T00:50:41 | 84,012,790 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,253 | py | """
Django settings for surprise_me project.
Generated by 'django-admin startproject' using Django 1.11.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
... | [
"freefaller@gmail.com"
] | freefaller@gmail.com |
a8ba2d5c8302ea20dac6cf2c653d709d5b012a3b | c35d5713b9991efeb0f8a2665c91c74127138594 | /bufferbloat.py | 4e0431721722d6c7a93a6b3fc70e29396676f8fa | [] | no_license | vs9390/bufferbloat | 70849c13f24e0f7744a7852e8ed838a6235dbd0f | cc5341b5f0c0f835e6ec2e3d536abd2d80a5b096 | refs/heads/master | 2020-04-21T14:16:58.228215 | 2019-02-07T19:30:32 | 2019-02-07T19:30:32 | 169,629,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,038 | py | #!/usr/bin/python
"CS144 In-class exercise: Buffer Bloat"
from mininet.topo import Topo
from mininet.node import CPULimitedHost
from mininet.link import TCLink
from mininet.net import Mininet
from mininet.node import RemoteController
from mininet.log import lg, info
from mininet.util import dumpNodeConnections
from m... | [
"None"
] | None |
781728cd41d7b2d6039a59dec118afaea02aea57 | df3e3e937e85ae03bc6714bf9aa487d9338d44fd | /mpmp/exceptions.py | feb76e4c5975c4adf3db8b9f293ccc2c91ce9877 | [
"BSD-3-Clause"
] | permissive | mayala1925/mpmp | 9a6b4be43f9bc29874e9c0cdfa0866d70b61263c | 7bd4d49e4acd745447dc0018ac121d1a45e8bfbc | refs/heads/master | 2023-08-16T13:23:08.019630 | 2021-10-13T23:09:07 | 2021-10-13T23:09:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,675 | py | """
Exceptions specific to pan-cancer prediction experiments
"""
class ResultsFileExistsError(Exception):
"""
Custom exception to raise when the results file already exists for the
given gene and cancer type.
This allows calling scripts to choose how to handle this case (e.g. to
print an error mes... | [
"jjc2718@gmail.com"
] | jjc2718@gmail.com |
2bc1432323a455395c7e8d97b4f3896a33278eb9 | c1c00ced90d47b9425fa11b6e0e5148a26a70085 | /tests/test_cli.py | d3438f75559b5b4993b1f8da97e7d6b0531eb024 | [
"MIT"
] | permissive | destos/Patterner | a8e90e30f0f2ca9411beb39e4cb8ef9e25fedc23 | 3e32468e843ec817b94da9df543c891ca69927fc | refs/heads/master | 2020-04-25T14:44:23.872391 | 2019-02-27T05:50:01 | 2019-02-27T05:50:01 | 172,852,064 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | """Sample integration test module using pytest-describe and expecter."""
# pylint: disable=redefined-outer-name,unused-variable,expression-not-assigned
import pytest
from click.testing import CliRunner
from expecter import expect
from patterner.cli import main
@pytest.fixture
def runner():
return CliRunner()
... | [
"patrick@forringer.com"
] | patrick@forringer.com |
7581ff553d9d2380b9a3fa8d04bc19aa2433dd6d | 664c3ced94ab0e9a5bac547028db59a3ca1f2074 | /10. Use classes to create active objects /EG10-07 Time Tracker with exception handler.py | 6ab5ddc9eaa23b6a53954e815d434c237f056033 | [
"MIT"
] | permissive | nikcbg/Begin-to-Code-with-Python | 2b1283a7818e26d3471677b51d1832cde52c4ddc | a72fdf18ca15f564be895c6394a91afc75fc3e2c | refs/heads/master | 2021-06-23T23:09:36.009442 | 2021-06-23T11:17:24 | 2021-06-23T11:17:24 | 209,285,197 | 0 | 0 | MIT | 2021-03-17T07:48:09 | 2019-09-18T10:50:51 | Python | UTF-8 | Python | false | false | 6,121 | py | # EG10-07 Time Tracker with exception handler
import pickle
from BTCInput import *
# Create the contact class
class Contact:
min_session_length = 0.5
max_session_length = 3.5
@staticmethod
def validate_session_length(session_length):
'''
Validates a session length and retur... | [
"nkcbg@yahoo.com"
] | nkcbg@yahoo.com |
8fda8333924bdd0b3d4d4a1fc03469652dc5986d | df823d33423d37251c49b4be12ee022170138071 | /python/mycurses.py | 198e2605f0b0559ffdd2ed3200c896e81e5f5c89 | [] | no_license | von/sandbox | ca2a87870f0f5e3153cb33fd940f1b4cb9da7985 | 5e47e93c32bc85f986f39b1d4df8a384c7ff0019 | refs/heads/main | 2023-04-30T02:14:36.466490 | 2023-04-18T14:11:54 | 2023-04-18T14:11:54 | 331,739 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | #!/usr/bin/env python3
import curses
import os
def main(stdscr):
win1 = curses.newwin(3, 30, 2,0)
win1.border()
win2 = curses.newwin(10, 30, 10,0)
win2.border()
stdscr.addstr(0,0, "Testing...")
win1.addstr(0,0, "Foobar")
win2.addstr(0,0, "I win")
stdscr.refresh()
win1.refresh()
... | [
"von@vwelch.com"
] | von@vwelch.com |
4d97fad9266a037d603b5a43d20dff72f6a5cdfc | ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f | /PORMain/pirates/shipparts/WheelInteractive.py | ac3fc5be3f7f39bac48476e6aa630f9acf8c2189 | [] | 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 | 620 | py | from pirates.interact.SimpleInteractive import SimpleInteractive
from pirates.piratesbase import PLocalizer
class WheelInteractive(SimpleInteractive):
def __init__(self, ship):
self.ship = ship
wheel = ship.model.locators.find('**/location_wheel')
if not wheel:
wheel = ship.mod... | [
"brandoncarden12345@gmail.com"
] | brandoncarden12345@gmail.com |
184b601a9277e7e6f8aa27a0c38c389b529ad172 | 59b3dce3c770e70b2406cc1dd623a2b1f68b8394 | /python_3/lessons/Timing_Computations/src/ count_thirtyone_days.py | 682d87d1e84181941930cc296f2428ddc1f00032 | [] | no_license | patrickbeeson/python-classes | 04ed7b54fc4e1152a191eeb35d42adc214b08e39 | b5041e71badd1ca2c013828e3b2910fb02e9728f | refs/heads/master | 2020-05-20T07:17:36.693960 | 2015-01-23T14:41:46 | 2015-01-23T14:41:46 | 29,736,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | from datetime import datetime, timedelta
now = datetime.now()
delta = timedelta(31)
delivery = now + delta
print("Today: %s" % now.strftime("%d"))
print("Delivery: %s" % delivery.strftime("%d"))
| [
"patrickbeeson@gmail.com"
] | patrickbeeson@gmail.com |
b9c8c3198ea3b91ca79b7666122aeba124f8d46b | 8be217fe977aa0bcd9e375c75b0fb522f5bf0101 | /mergetwosortedlists21.py | 0065e807191a8350423dd2e81ae12019e30106ab | [] | no_license | blueones/LeetcodePractices | c63a5e773bebea17e988e8bb4962e012d7d402ba | 194375ba0c07e420f420aafec98aede2f9f5d8fa | refs/heads/master | 2021-07-14T14:21:55.389334 | 2021-01-24T22:13:21 | 2021-01-24T22:13:21 | 230,814,709 | 0 | 1 | null | 2020-02-25T02:58:04 | 2019-12-29T23:18:25 | Python | UTF-8 | Python | false | false | 947 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def mergeTwoLists(self, l1: ListNode, l2: ListNode) -> ListNode:
beforeN = ListNode(0)
dummyN = beforeN
if l1 == None and l2 == None:
ret... | [
"yiq.shang@gmail.com"
] | yiq.shang@gmail.com |
d8d742854ec7842465b985ad93830852b7b6d3a1 | 8d14d526969d8e970254f08563ff2c6e6583dd35 | /Python/2019/Hafta20191122/venv/Scripts/easy_install-script.py | 530572ec9997ac842f173dfe02dcf73848586a38 | [] | no_license | osmanraifgunes/MedipolCodes | c29db62896162c4b1a2c8c274877fff63149f826 | 943b014269e9a7b529e74741ce14447dbd7d5df5 | refs/heads/master | 2023-01-09T10:31:02.907945 | 2020-06-09T18:05:04 | 2020-06-09T18:05:04 | 218,612,787 | 6 | 13 | null | 2023-01-07T18:58:55 | 2019-10-30T19:59:16 | Python | UTF-8 | Python | false | false | 453 | py | #!C:\code\MedipolCodes\Python\Hafta20191122\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?... | [
"osmanraifgunes@gmail.com"
] | osmanraifgunes@gmail.com |
699c75b97c7a8afdb70e4ce79f91ad7f94158668 | 95a2bb2ef56ca80ad7cb51d67a42242bf18fa337 | /jump/models.py | b17ca1bff68351cf244316d1a03fec9d36836f23 | [] | no_license | zhangxianbo/soms | ac2183c0a285fe56456461101ecc78ca314c3929 | 0ba1802b0e2e9111e0f1855480723be8e2941bcd | refs/heads/master | 2021-04-09T15:46:14.086425 | 2016-07-14T08:15:21 | 2016-07-14T08:15:21 | 62,615,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,671 | py | #coding=utf-8
from django.db import models
from datetime import datetime
# Create your models here.
class Host(models.Model):
hostid = models.AutoField(primary_key=True)
idc = models.CharField('机房',max_length=50)
addr = models.CharField('机架等标识',max_length=50)
sn = models.CharField('序列号',max_length=30,b... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
cffdbd0ab90b9b59ef7a69aff564ea1323fbe6b4 | 3181efe062a6745fc2e5d182260b8e94ce6c5701 | /0MyProject_Quant/海龟反转策略/4_2.方向过滤参数自动选择及策略回测_并行.py | 2c92a341e8f5ec2c95609c7db032528948d0fb42 | [] | no_license | LibreChou/PythonLearning | e240fddc559dc8614d4db95e79d047b18cc1be52 | 562ded21e84b68f43c539c65b91aed3a880162ce | refs/heads/master | 2023-03-12T12:18:33.501881 | 2021-03-04T11:33:42 | 2021-03-04T11:33:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,317 | py | # Author:Zhang Yuan
import warnings
warnings.filterwarnings('ignore')
from MyPackage import *
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.patches as patches
import seaborn as sns
import statsmodels.api as sm
from scipy import stats
#----------------------------------------... | [
"39754824+MuSaCN@users.noreply.github.com"
] | 39754824+MuSaCN@users.noreply.github.com |
7c5b13fc736557163c95d289141ff4870117e2e0 | b5a9469cb779031936bb613719397d7b3c279626 | /backend/apps/privacy/sitemaps.py | 2bc9aa6eae410f25322fcf965d670fd616158b73 | [] | no_license | arsavit/Cidsfg_copy | a34858d63749db0e821cb2f26b1eb31c4565c0f9 | 0145e9f1a397899b03a8d767fb96f1d238ec21f9 | refs/heads/main | 2023-07-08T11:18:10.042595 | 2021-08-11T08:09:27 | 2021-08-11T08:09:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | from django.contrib.sitemaps import Sitemap
from .models import Privacy
class PrivacySitemap(Sitemap):
""" Получение страницы ПОЛИТИКА КОНФИДЕНЦИАЛЬНОСТИ """
changefreq = 'weekly'
priority = 0.9
location = '/privacy/'
def items(self):
return Privacy.objects.all().order_by('-id')[:1]
... | [
"arsavit@gmail.com"
] | arsavit@gmail.com |
9d9a806f2ec508f3d202103ff17d592e98259b7b | 26f23588e80acc2b28d4cc70a8fbcf78c5b33a20 | /PythonSkills/decorator/basic02.py | ac7856a1b7b8a973b0e4280108fd34948670b37e | [] | no_license | Timehsw/PythonCouldbeEverything | aa31b3e32bf68b49fe8e96b971637353a8ef644f | 85d4f1a2c93c7b1edc34ceb9e8bb3c8d7beb30e9 | refs/heads/master | 2021-01-01T15:38:25.253094 | 2018-01-22T06:49:05 | 2018-01-22T06:49:05 | 97,661,530 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | # -*- coding: utf-8 -*-
'''
Created by hushiwei on 2018/1/7.
学习装饰器
闭包
函数里面可以定义函数
函数可以被传递赋值
函数可以被返回
那么装饰器就是,在函数之前额外做些事情
'''
'''
装饰器
有参函数
'''
def a_new_decorator(a_func):
def wrapTheFunction(*args,**kwargs):
print "I am doing some boring work before execution a_func()"
... | [
"hsw.time@gmail.com"
] | hsw.time@gmail.com |
627bcc579421c9e68946a4001c3726b2fc02b966 | e7b665624c1134f7a6b3ab7c043cfa5ec83227bb | /CycleGAN/__init__.py | c73deef2fd0626ca2afa3252d2b902d7958b1f51 | [] | no_license | zhijie-ai/GAN | 46f896909d1f5caedb7725cf44d328e24f4ad699 | 5e64b416209058721c582c3b71a1e9ca25cf169d | refs/heads/master | 2022-10-26T10:28:08.279901 | 2019-08-26T14:09:15 | 2019-08-26T14:09:15 | 204,423,289 | 1 | 3 | null | 2022-10-07T00:52:36 | 2019-08-26T07:45:08 | Python | UTF-8 | Python | false | false | 622 | py | #----------------------------------------------
# -*- encoding=utf-8 -*- #
# __author__:'xiaojie' #
# CreateTime: #
# 2019/7/5 22:13 #
# #
# 天下风云出我辈, ... | [
"15311484394@189.cn"
] | 15311484394@189.cn |
dcb95199ae8b2d00c2e425403a3da419cc0d1c69 | c8a41e7b2caa015903dc5aff2d8e34a5cbd34b8d | /python/itertools/compress-the-string.py | 0208eec6cbcbd5eed48a9fa26c1a73150292dc0a | [] | no_license | mauricioabreu/hacker-rank | bad197fec3582979df148a8212d330097191c2b7 | 3d2aaae53f438e4ef8d9382cc0c22003248c6787 | refs/heads/master | 2021-01-10T07:25:23.869714 | 2018-06-16T23:17:51 | 2018-06-16T23:17:51 | 46,177,986 | 6 | 1 | null | 2016-08-27T16:18:36 | 2015-11-14T14:38:13 | Python | UTF-8 | Python | false | false | 212 | py | from itertools import groupby
chars = raw_input().strip()
groups = []
for key, value in groupby(chars):
groups.append((len(list(value)), int(key)))
print ' '.join(['(%s, %s)' % (k, v) for k, v in groups])
| [
"mauricio.abreua@gmail.com"
] | mauricio.abreua@gmail.com |
ec3c3e9a1609b3241c9287dcf01219c6d607eeb7 | d12b53101c289a1d752862e20ffc079e3ab4e057 | /2.0/overturn.py | a15642ab7a89395e9a8230990f94277a71dc0b9f | [] | no_license | UCAS007/adavanced-aritificial-intelligence | 13708985b65fe0d27ed1fe93e05eb54ddef9949d | d88fcc8f5a59f290a866a04db6bcbe133bdc3ba3 | refs/heads/master | 2021-01-10T15:21:07.819354 | 2016-05-03T14:03:00 | 2016-05-03T14:03:00 | 45,598,387 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,038 | py | """
Fmax=0.995512 Perceptron
"""
import pickle
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.linear_model import SGDClassifier,Perceptron
from sklearn.grid_search import GridSearchCV
from sklearn.pipeline import Pipeline
from sklear... | [
"youdaoyzbx@163.com"
] | youdaoyzbx@163.com |
069240fe041da4600557e9ba6ab166a4c5a27da8 | 0c6bd6305cbd128fe7426f66ec9bf4d01fb9b40c | /backend_apps_web_based/flask/RESTful_api_part3/test.py | fe6c099a291d13fe3bef662c606846c898e25092 | [] | no_license | yennanliu/web_development | 08dbffc549214952f7b02dc29837474b0ad6e980 | 8dc6b224040b3953999d5e8d4a7f26d8e92ca931 | refs/heads/master | 2021-05-24T03:12:24.344381 | 2020-12-30T09:31:15 | 2020-12-30T09:31:15 | 72,651,027 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | import sys, os, json, requests
import pytest, unittest
from flask_sqlalchemy import SQLAlchemy
# main flask app
from app import app
db = SQLAlchemy(app)
def TestHelloworld():
response = requests.get('http://0.0.0.0:5000/')
assert response.status_code == 200
def TestApi():
response = requests.get('http:... | [
"f339339@gmail.com"
] | f339339@gmail.com |
e35602b4e63050a98f36b2620a2b840278beb790 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02972/s165580953.py | 33b7efe88d0ed61cd2af5b945b54fc7bd16ee28d | [] | 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 | 590 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Created: Jul, 13, 2020 08:25:55 by Nobody
# $Author$
# $Date$
# $URL$
__giturl__ = "$URL$"
from sys import stdin
input = stdin.readline
def main():
N = int(input())
A = [-1]+list(map(int, input().split()))
D = [-1]*(N+1)
for i in range(N, 0, -1):
if i ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
57ba84aabc962427d8bb568812dcabaa61ca840a | e705de3a44a7cc922e93c76c3aa6e6108222e538 | /problems/0128_longest_consecutive_sequence.py | 5e3a863543e3dfb214407f3bf1547862272121e1 | [] | no_license | sokazaki/leetcode_solutions | 34d4877dc7d13dc80ef067211a316c48c6269eca | 42cf52eeef537806c9e3ec7a6e5113c53d0f18a3 | refs/heads/master | 2021-06-21T22:23:25.403545 | 2021-02-21T16:47:19 | 2021-02-21T16:47:19 | 193,951,202 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | # O(N) Solution with Hashmap
import unittest
def longestConsecutive(nums):
nums = set(nums)
res = 0
while nums:
first = last = nums.pop()
while first-1 in nums:
first -= 1
nums.remove(first)
while last+1 in nums:
last += 1
nums.remov... | [
"noreply@github.com"
] | sokazaki.noreply@github.com |
06a59e43096e806dd20c21c29f851772da55e59a | e2a0d262b5a3c26a30ed02c78cb905363df9241c | /com/11_class2.py | 2d657a02b7bdf2f9b0f1bb5a9fc78a3329a1a38c | [] | no_license | Kyeongrok/python_selinium | 75b158f0c46aa5d2b7b627dd4a6775c3c6ab66ef | 233c90b3294949813cc910a8b0b2f5fed7df80a9 | refs/heads/master | 2020-04-01T03:35:06.925347 | 2018-10-27T05:03:51 | 2018-10-27T05:03:51 | 152,827,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | class people():
name = "kyeongrok"
def sayHello(self):
print("hello")
def leftHand(self):
print("i'm left hand")
def rightHand(self):
print("i'm right hand")
def setName(self, name):
self.name = name
kyeongrok = people()
kyeongrok.setName("iu")
print(kyeongrok.n... | [
"kyeongrok.kim@okiconcession.com"
] | kyeongrok.kim@okiconcession.com |
042eb90c4d3065ab75fc8c59d35336f3d37f6d12 | cc08f8eb47ef92839ba1cc0d04a7f6be6c06bd45 | /Personal/JaipurCity/smart_city/models.py | 4edef2ae9219cc2bf12785fae1060189c82a680f | [] | no_license | ProsenjitKumar/PycharmProjects | d90d0e7c2f4adc84e861c12a3fcb9174f15cde17 | 285692394581441ce7b706afa3b7af9e995f1c55 | refs/heads/master | 2022-12-13T01:09:55.408985 | 2019-05-08T02:21:47 | 2019-05-08T02:21:47 | 181,052,978 | 1 | 1 | null | 2022-12-08T02:31:17 | 2019-04-12T17:21:59 | null | UTF-8 | Python | false | false | 2,081 | py | from django.contrib.gis.db import models
from django.contrib.gis.geos import Point
class SmartRestaurant(models.Model):
restaurant = models.CharField(max_length=254)
rating = models.FloatField()
type = models.CharField(max_length=254)
cuisines = models.CharField(max_length=254)
cost = models.CharF... | [
"prosenjitearnkuar@gmail.com"
] | prosenjitearnkuar@gmail.com |
4b208c47d8b238082b1f0e0926b8ca03994e7acb | 50a20e25c1cb7ac05b0d7eb05bf174973a866a4b | /Day20/Day20.py | a80a573319bf5001f8c8df8dc3bb1248856c81d2 | [] | no_license | bakkerjangert/AoC_2016 | 1733b15bbb762d9fff0c986e33d404c5b7148591 | 3ccafab3f6d8b8efb4bf7de0549e22a4bd4de527 | refs/heads/master | 2023-02-04T06:09:32.862621 | 2020-12-18T14:39:00 | 2020-12-18T14:39:00 | 322,620,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | import numpy as np
import pylab as plt
with open('input.txt') as f:
lines = f.read().splitlines()
start = []
end = []
for line in lines:
start.append(int(line.split('-')[0]))
end.append(int(line.split('-')[1]))
# for i in range(len(start)):
# print(start[i], '-', end[i])
ips = np.array([start, end])... | [
"gert-jan.bakker@rhdhv.com"
] | gert-jan.bakker@rhdhv.com |
316c6f696121e8eb21ad87bd9966d1689f929134 | 37cfcdfa3b8f1499f5899d2dfa2a48504a690abd | /test/functional/p2p_disconnect_ban.py | 1886e64fb2499ff15b887e636597f96dd7018069 | [
"MIT"
] | permissive | CJwon-98/Pyeongtaekcoin | 28acc53280be34b69c986198021724181eeb7d4d | 45a81933a98a7487f11e57e6e9315efe740a297e | refs/heads/master | 2023-08-17T11:18:24.401724 | 2021-10-14T04:32:55 | 2021-10-14T04:32:55 | 411,525,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,354 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2018 The Pyeongtaekcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test node disconnect and ban behavior"""
import time
from test_framework.test_framework import ... | [
"cjone98692996@gmail.com"
] | cjone98692996@gmail.com |
6f136cc6daa5a8670845de0e72b5aa253d75137b | de5dc978e0a5b9fc4ecbbdd00c1cebe57c465775 | /wso2_apim_storeclient/models/__init__.py | 5c4b27271173e651942c4c622035cbca741cb8fe | [] | no_license | junetigerlee/python-wso2-apim-storeclient | 8c3502dfd039eca0093c218cb6ac1183c050edb5 | 60c84988a2417a0104aaa53ed082902012d6247d | refs/heads/master | 2021-01-01T16:12:12.197633 | 2017-07-25T06:21:21 | 2017-07-25T06:21:21 | 97,787,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,500 | py | # coding: utf-8
"""
WSO2 API Manager - Store
This specifies a **RESTful API** for WSO2 **API Manager** - Store. Please see [full swagger definition](https://raw.githubusercontent.com/wso2/carbon-apimgt/v6.0.4/components/apimgt/org.wso2.carbon.apimgt.rest.api.store/src/main/resources/store-api.yaml) of the AP... | [
"junetigerlee@gmail.com"
] | junetigerlee@gmail.com |
570bc08e2531a3c60bc6778ff86427b795d3d936 | 9e610e88158b973a2129cb794176dc1a9b0b6bfd | /juicer/util/jinja2_custom.py | 535940968e98e01641d04d94dbc96fd93dc925e3 | [] | no_license | eubr-bigsea/juicer | 8735b3aefcf66a5207364270e7ee9ec809b94ad4 | 4714187a6cb8ca7d1e09d8eae4cf4898ae7dcc58 | refs/heads/master | 2023-08-31T07:01:52.091443 | 2023-08-14T21:45:03 | 2023-08-14T21:56:48 | 68,124,762 | 6 | 8 | null | 2023-08-01T01:21:18 | 2016-09-13T16:09:11 | Python | UTF-8 | Python | false | false | 903 | py | # -*- coding: utf-8 -*-
from jinja2 import nodes
from jinja2.ext import Extension
import autopep8
class AutoPep8Extension(Extension):
# a set of names that trigger the extension.
tags = {'autopep8'}
def __init__(self, environment):
super(AutoPep8Extension, self).__init__(environment)
# a... | [
"waltersf@gmail.com"
] | waltersf@gmail.com |
7d6112f173be2b434f9779490f1979f1d893a056 | 01d92ca39cd4836aaef67e2efcf88a44671c7213 | /code_pack_19/basic_logger_2.py | 360836d78049880cad49c8acca8c494b507ccf7d | [] | no_license | manuelpereira292/py3_bootcamp | 247f411b80f09c46aeeba90a96e6a5d3fd329f2c | 1988553394cb993db82c39993ed397e497bd5ae8 | refs/heads/master | 2022-08-20T02:25:51.265204 | 2020-05-15T22:26:27 | 2020-05-15T22:26:27 | 263,367,513 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | import logging
logging.basicConfig(filename="code_pack_19/sample1.log", level=logging.INFO)
log = logging.getLogger("ex")
try:
raise RuntimeError
except RuntimeError:
log.exception("Error!")
# Let's use our file reading knowledge to
# read the log file
with open("code_pack_19/sample1.log") as fi... | [
"manuelpereira292@gmail.com"
] | manuelpereira292@gmail.com |
98697225e835037618221274549d17e44739d9f0 | b31e7898aa5131125f243eaff973049b17e08512 | /.venv/lib/python3.10/site-packages/anyio/_core/_signals.py | 8ea54af86c4be12340de02dc2a6f7eba387e0d98 | [] | no_license | ramsred/MyProjects | f2978eeda3d73421daf0da9f2d012caef6c3ccda | a7f90ef1ecfbc7517be61e71286bd14405985de5 | refs/heads/master | 2023-07-09T03:19:17.683705 | 2023-07-02T19:30:19 | 2023-07-02T19:30:19 | 71,980,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | from __future__ import annotations
from typing import AsyncIterator
from ._compat import DeprecatedAsyncContextManager
from ._eventloop import get_asynclib
def open_signal_receiver(
*signals: int,
) -> DeprecatedAsyncContextManager[AsyncIterator[int]]:
"""
Start receiving operating system signals.
... | [
"venkataramireddy534@gmail.com"
] | venkataramireddy534@gmail.com |
5a58a787ab85afbf656093287cdf31bb5fd3798e | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/network/get_hub_virtual_network_connection.py | a68415eeb18718c1b8b9c127daf3badcdf55b420 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,803 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
from ... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
e78649e5c08756d7f0bd2c588219d7302dd0f4e2 | df716b2868b289a7e264f8d2b0ded52fff38d7fc | /plaso/parsers/sqlite_plugins/safari.py | 22bb6098cb41d93825e091cb3aafa5f5caee31fd | [
"Apache-2.0"
] | permissive | ir4n6/plaso | 7dd3cebb92de53cc4866ae650d41c255027cf80a | 010f9cbdfc82e21ed6658657fd09a7b44115c464 | refs/heads/master | 2021-04-25T05:50:45.963652 | 2018-03-08T15:11:58 | 2018-03-08T15:11:58 | 122,255,666 | 0 | 0 | Apache-2.0 | 2018-02-20T21:00:50 | 2018-02-20T21:00:50 | null | UTF-8 | Python | false | false | 5,409 | py | # -*- coding: utf-8 -*-
"""Parser for the Safari History files.
The Safari History is stored in SQLite database files named History.db
"""
from __future__ import unicode_literals
from dfdatetime import cocoa_time as dfdatetime_cocoa_time
from plaso.containers import events
from plaso.containers import time_events
fr... | [
"onager@deerpie.com"
] | onager@deerpie.com |
04c13e2c86dc8ea3c26a9f4c6c9286fc9ec47a0e | 7eb3009e95a15a992c0c21afe0884008ba10544d | /game/src/leveleditor/objectproperties/ColorEditor.py | 6262d9c64458825c0e02be2bb60267cca144a4fc | [] | no_license | tsp-team/ttsp-src | be391ebc44f01463ff2e802ab039438e07a645f3 | 9bf1869adbc4f0c1dff69095c04f4604a515c4e4 | refs/heads/master | 2022-12-04T09:50:36.944988 | 2020-08-23T21:01:32 | 2020-08-23T21:01:32 | 263,228,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,649 | py | from .BaseEditor import BaseEditor
from src.leveleditor import LEUtils
from PyQt5 import QtWidgets, QtCore
class ColorEditor(BaseEditor):
def __init__(self, parent, item, model):
BaseEditor.__init__(self, parent, item, model)
self.lineEdit = QtWidgets.QLineEdit("", self)
self.lineEdit.ret... | [
"brianlach72@gmail.com"
] | brianlach72@gmail.com |
2ba8af9a37d1b2976828cea090385da648a31a6a | 45cb74f15ebf96b431e5689e554fcdc42062ee08 | /4-magnet_particles/solution.py | 2c864f0e918fe8e2abfb2ca11901b3067432a85e | [] | no_license | acu192/codewars | d296bc95fd067f0059045494fc445f62f95c060a | 905c5397461976335dbcf6a5bb0ffb6b359a29c0 | refs/heads/master | 2021-01-23T03:52:58.009582 | 2017-08-04T05:03:06 | 2017-08-04T05:03:06 | 86,128,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | """
https://www.codewars.com/kata/magnet-particules-in-boxes
"""
from math import pow
def doubles(maxk, maxn):
return sum(sum(pow(n+1, -2*k) for n in range(1, maxn+1))/k for k in range(1, maxk+1))
def assertFuzzyEquals(actual, expected, msg=""):
merr = 1e-6
inrange = abs(actual - expected) <= merr
... | [
"ryan@rhobota.com"
] | ryan@rhobota.com |
057418d9203386866b6b7fbc6ffe76f306489dcc | bddc40a97f92fafb8cbbbfdbdfe6774996578bb0 | /exercicioLista_funcoes/ex12.py | ee26987f60bcef8d32b6fc9a3cf3d93898187be6 | [] | no_license | andrehmiguel/treinamento | 8f83041bd51387dd3e5cafed09c4bb0a08d0e375 | ed18e6a8cfba0baaa68757c12893c62a0938a67e | refs/heads/main | 2023-01-31T13:15:58.113392 | 2020-12-16T02:47:44 | 2020-12-16T02:47:44 | 317,631,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | # 12. Embaralha palavra . Construa uma função que receba uma string como parâmetro e
# devolva outra string com os carateres embaralhados. Por exemplo: se função
# receber a palavra python , pode retornar npthyo , ophtyn ou qualquer outra
# combinação possível, de forma aleatória. Padronize em sua função que todos os
#... | [
"andrehmiguel@outlook.com"
] | andrehmiguel@outlook.com |
f44bca1b4446469132b9c580b3d500987df2806b | 0902ddd4a455c10c2c7dedac872069b8223e7250 | /ppomppu_scraper/__init__.py | 0701f16db84fd59186ef86e4a4e6ae60f5c5b01e | [] | no_license | kyuhwas/ppomppu_scraper | f77f8561b6eb4a4aab18f3e0da32da230ebdc7b9 | a4e24b969898c164d7ef33f034495b50c097e94d | refs/heads/master | 2021-10-19T00:33:14.382761 | 2019-02-16T00:04:49 | 2019-02-16T00:04:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | from .utils import now
from .utils import get_soup
from .utils import normalize_text
from .utils import strf_to_datetime
from .utils import news_dateformat
from .utils import user_dateformat
from .parser import parse_page
from .scraper import yield_parsed_page | [
"soy.lovit@gmail.com"
] | soy.lovit@gmail.com |
fe8c1da06cb5220b0e5ee515224cc1101de51d57 | 6be8aa517e679b33b47d35f100e6590902a8a1db | /DP/Problem54.py | 72cbb8c1c999c705d1e1d21afdf23d8dfda03060 | [] | no_license | LeeJuhae/Algorithm-Python | 7ca4762712e5e84d1e277abecb3bf39c9cbd4e56 | 729947b4428205adfbac194a5527b0eeafe1c525 | refs/heads/master | 2023-04-24T01:02:36.430970 | 2021-05-23T07:17:25 | 2021-05-23T07:17:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | # https://www.acmicpc.net/problem/17182
import sys
from itertools import permutations
read = sys.stdin.readline
n, st = map(int, read().strip().split())
dp = [list(map(int, read().strip().split())) for _ in range(n)]
for k in range(n):
for i in range(n):
for j in range(n):
dp[i][j] = min(dp[i]... | [
"gusdn0657@gmail.com"
] | gusdn0657@gmail.com |
9d7fa1949f2329fb360cf30a14031fc756ee8814 | 83f0cdbc9e1f7261dcd1ff5fc0c8ef4280e84fbb | /ADaM/python/cdisc_library.py | 8437f8e380df5cc47b45fd6272dc69f18a942760 | [
"MIT"
] | permissive | mihir-shinde/CSS2020-Hackathon | 0c39d59ddb1503f0c4170b230f789b8f29fee9ae | f9538ee425fe7eb0573757cdd2346d1f8c7998c1 | refs/heads/master | 2023-03-16T05:06:26.518324 | 2020-09-25T16:20:12 | 2020-09-25T16:20:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,958 | py | import requests
class CDISCConnector:
BASE_URL = "https://library.cdisc.org/api/"
def __init__(self, username, password):
self._client = None
self._username = username
self._password = password
self._cache = {}
@property
def client(self):
if self._clien... | [
"glow@mdsol.com"
] | glow@mdsol.com |
cc2d67c10951e85ac38fb33a2a8857e71a6610fd | 1c67732a24042a991cc9f7e764d4640522391972 | /back/gamedata/admin.py | d0e2b17e7528b7c6c839144c30b720f95932f249 | [] | no_license | sungguenja/bsgg | 1061ccc6f5f08ed9ad14d3a332af020ec7a5df22 | 447283378ac3bb8f489e2a4662bfb6513bc37be2 | refs/heads/master | 2023-04-01T14:15:05.491775 | 2021-04-06T09:46:25 | 2021-04-06T09:46:25 | 318,800,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | from django.contrib import admin
from .models import Area, Animal, Item, AreaItem, AreaAnimal, AnimalItem
# Register your models here.
admin.site.register(Area)
admin.site.register(Animal)
admin.site.register(Item)
admin.site.register(AreaItem)
admin.site.register(AreaAnimal)
admin.site.register(AnimalItem) | [
"59605197+sungguenja@users.noreply.github.com"
] | 59605197+sungguenja@users.noreply.github.com |
0315172cd8f2f418b8753f197edeb6c03507474d | ac0b9c85542e6d1ef59c5e9df4618ddf22223ae0 | /kratos/applications/FluidDynamicsApplication/python_scripts/apply_custom_velocity_constraints.py | 22b0262260595debdf02adca990f94e5f573eb8c | [] | no_license | UPC-EnricBonet/trunk | 30cb6fbd717c1e78d95ec66bc0f6df1a041b2b72 | 1cecfe201c8c9a1b87b2d87faf8e505b7b1f772d | refs/heads/master | 2021-06-04T05:10:06.060945 | 2016-07-15T15:29:00 | 2016-07-15T15:29:00 | 33,677,051 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | from KratosMultiphysics import *
from FluidDynamicsApplication import *
def Factory(settings, Model):
if(type(settings) != Parameters):
raise Exception("expected input shall be a Parameters object, encapsulating a json string")
return ApplyCustomVelocityConstraintProcess(Model, settings["Parameters"])
... | [
"enriquebonetgil@hotmail.com"
] | enriquebonetgil@hotmail.com |
8251ffe046d39813fb96ab3eda7aaf564efa9dde | 21155deb4419380b995c09946a680a261c524b5b | /meraki/models/subnet_model.py | f08d566a104c927c12dbea3f8f178de10ea8c155 | [
"MIT"
] | permissive | dexterlabora/meraki-python-sdk | 620efab5e6b6eb32ca52308be1cb740748fc0f30 | f6e6d61bd8694548169cd872b0642def69115bcb | refs/heads/master | 2023-05-25T06:50:21.845198 | 2019-06-13T12:22:34 | 2019-06-13T12:22:34 | 182,791,973 | 0 | 1 | NOASSERTION | 2023-05-22T21:37:22 | 2019-04-22T13:22:08 | Python | UTF-8 | Python | false | false | 1,690 | py | # -*- coding: utf-8 -*-
"""
meraki
This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ).
"""
class SubnetModel(object):
"""Implementation of the 'Subnet' model.
TODO: type model description here.
Attributes:
local_subnet (string): T... | [
"git@apimatic.io"
] | git@apimatic.io |
7eede2990f6e638af015bc568bd54608b7a9581e | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /events_write_1/event-bu_delete.py | 1d62d387f9b2e00234829669c850e7bdd2a0f3aa | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_one_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/events/delete-event-bus.html
if __name__ == '__m... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
67a4431f2cf41a56085422a65fa040772f0312e1 | 5edbc16216806de0c32634fae1ae67c4773fbf65 | /wiki/migrations/0002_auto_20160820_2351.py | 8878c2f9679bb51843d6d084ebf7537e0c527bb0 | [] | no_license | MilesWilliams/klaritywiki | 431d9139309c2997aeaeeb02afce9b4da43cff8d | 197c0f9c4094a64e437eb2a51b531747c262290b | refs/heads/master | 2020-12-02T20:44:30.703329 | 2016-08-22T12:10:48 | 2016-08-22T12:10:48 | 66,269,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-08-20 21:51
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('wiki', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name... | [
"miles@klarity.co.za"
] | miles@klarity.co.za |
ebec3629eb42d836bab2a456034eb71b975018dd | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/workloads/azure-mgmt-workloads/setup.py | 98da49aa95a0f0e5fcc66f523e70cc2345923cf2 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 2,764 | py | #!/usr/bin/env python
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#----------------------------------------------------------------... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
8aa95b8aee556ee8fa7fb2ff5c965d5021d95fbd | 60561fd3efd5ecd8f984c4767c8e1017f66dbfd0 | /apps/unsubscribes/migrations/0002_unsubscribeemail_user.py | a5468036448b33392ed58db1295c00f26159ef47 | [] | no_license | kaushalaman97/react | fd3b691340ba877ace3b9feec0a93103b30f466f | 4b34ace3357fbba0aa6616d761da2f501993bcc4 | refs/heads/main | 2023-03-08T16:33:48.675925 | 2021-02-26T14:23:38 | 2021-02-26T14:23:38 | 342,596,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | # Generated by Django 3.1.4 on 2021-02-24 08:54
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"mohit.kaushal@techstriker.com"
] | mohit.kaushal@techstriker.com |
a60bfa7980001c986bed8b71d56e75e0c5b2a66e | 1730f8cea72838a677b52fe82e72d91aa8f68f75 | /003_queues/003_solutionCourseProvided.py | 37326ef9b6a6f674a399d5971a030bad629104f7 | [
"MIT"
] | permissive | remichartier/026_UdacityTechnicalInterviewPrep | 354097e25972a7214b8d1f84fcd3e80b69e79333 | fa52b5f57bdd4e79751059971bb9f73fa0ca8004 | refs/heads/main | 2023-04-07T15:25:16.499791 | 2021-04-18T05:15:23 | 2021-04-18T05:15:23 | 354,467,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | # I managed to write all of the methods in one line!
class Queue(object):
def __init__(self, head=None):
self.storage = [head]
def enqueue(self, new_element):
self.storage.append(new_element)
def peek(self):
return self.storage[0]
def dequeue(self):
return self.storage... | [
"remipr.chartier@gmail.com"
] | remipr.chartier@gmail.com |
f165e00d444f850aee54fecab36cf98b9209d337 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_noisy2453.py | 5211053a79a7324e34dd64e88d63b85985dd3c0e | [
"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,238 | py | # qubit number=4
# total number=42
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
56369aec96a4cef7cf632a602fd07ffec540ec5f | ee3e8773f86da51e39fe1b1a57237ad558c0f991 | /plotting/easy_plotting.py | ef5f64774999291358476bfc58818463ad0dfdd9 | [] | no_license | qyx268/plato | 72cd9ca2a6d5e28cd1618433ebc6af21fd2161e7 | b7c84c021bc26d63c768e9d08e28bbaf77d79a87 | refs/heads/master | 2021-01-15T21:07:56.182831 | 2016-04-15T12:33:21 | 2016-04-15T12:33:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,316 | py | from collections import OrderedDict
from general.nested_structures import flatten_struct
from plotting.data_conversion import vector_length_to_tile_dims
import plotting.matplotlib_backend as eplt
import numpy as np
__author__ = 'peter'
def ezplot(anything, plots = None, hang = True, **plot_preference_kwargs):
""... | [
"peter.ed.oconnor@gmail.com"
] | peter.ed.oconnor@gmail.com |
29cc73d94435bfd91f4071297e290173c3e70a6f | 86cc876d2b7cbc29d5c13a73d4d985079c73ed68 | /thingflow/adapters/mqtt.py | fe0b20c00a3689ab9dac8f62fb3d9c69fce6d0b5 | [
"Apache-2.0"
] | permissive | masayoshi-louis/thingflow-python | 74fe6f90a37803a27bd69eff9163f7fb668836b4 | c191a8fedac6a962994945830c872e957f929e29 | refs/heads/master | 2020-03-26T08:13:58.334964 | 2017-08-08T03:59:09 | 2017-08-08T03:59:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,643 | py | # Copyright 2016 by MPI-SWS and Data-Ken Research.
# Licensed under the Apache 2.0 License.
import time
from collections import namedtuple
try:
import paho.mqtt.client as paho
except ImportError:
print("could not import paho.mqtt.client")
import ssl
from thingflow.base import InputThing, OutputThing, EventLo... | [
"jeff@data-ken.org"
] | jeff@data-ken.org |
e06d2b176396a29ae9f62cab21aeb06a0c165897 | e0980f704a573894350e285f66f4cf390837238e | /.history/news/models_20201124125405.py | ad4367cc96dbe5bc9bd177dc7020584d0a479ff6 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from django.db import models
from wagtail.contrib.forms.models import AbstractEmailForm
# Create your models here.
class NewsPage(AbstractEmailForm):
tempalte ='news/news_page.html'
leanding_page_template = '' | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
e7f9eb6f18a705e2446062b9a7609948f8193c95 | 46349356d4812a6bf04a1dff4ee3311864f8b7ff | /ma_py/mic_utils/estimate_gg_pdf_nm_fast/estimate_gg_pdf.py | 494d1dd50b6c30a772ba4dcee8a2594e1c295ed2 | [] | no_license | alexdoberman/ma | 1ca9d20f64d0e8c87feff9f7bb04d09d3088aeb3 | 219e5e87b80c6a795c0d4161b3ad22b9973ed745 | refs/heads/master | 2022-07-17T13:15:21.672335 | 2020-05-12T15:10:40 | 2020-05-12T15:10:40 | 263,365,873 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,807 | py | # -*- coding: utf-8 -*-
import numpy as np
import soundfile as sf
import matplotlib.pyplot as plt
import glob
import math
from scipy import optimize
import scipy.stats as stats
def fun_ML_c(f, *args):
"""
Calc log likelihood for complex data
:param f: - shape
:param args:
:return:
"""
(s... | [
"lavrentyev@speechpro.com"
] | lavrentyev@speechpro.com |
c70d686b8a66449aa75277ec024a414043f77dab | 8b00e2b136636841b38eb182196e56f4721a1e4c | /trio/_util.py | 121513b20e80d517c58bc5e6fb5c7f2255ca441a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | xyicheng/trio | 77c8c1e08e3aa4effe8cf04e879720ccfcdb7d33 | fa091e2e91d196c2a57b122589a166949ea03103 | refs/heads/master | 2021-01-23T00:05:59.618483 | 2017-03-16T04:25:05 | 2017-03-16T04:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,494 | py | import sys
from functools import wraps
import async_generator
__all__ = ["aitercompat", "acontextmanager"]
# Decorator to handle the change to __aiter__ in 3.5.2
def aiter_compat(aiter_impl):
if sys.version_info < (3, 5, 2):
@wraps(aiter_impl)
async def __aiter__(*args, **kwargs):
ret... | [
"njs@pobox.com"
] | njs@pobox.com |
5a813bd10a9a6555bcb7a31df0d331852598cdba | 5088fffefcbb3458ee2c8fca6d822487e13c4169 | /04-zanke/monte_carlo.py | 92515bfcf694126c02f491519d94ea6ab3eda678 | [] | no_license | matijapretnar/uvod-v-programiranje | 95de86fb63d6d06558984c05a40690f78d15aa5f | 464a9c566ed3564a6baba60e7c79f9e25399d45e | refs/heads/master | 2023-04-06T00:28:57.011142 | 2023-04-04T10:49:56 | 2023-04-04T10:49:56 | 52,275,510 | 5 | 34 | null | 2022-03-16T10:12:55 | 2016-02-22T13:32:48 | Python | UTF-8 | Python | false | false | 853 | py | import random
def oceni_pi(n):
v_krogu = 0
for i in range(1, n + 1):
x = random.uniform(-1, 1)
y = random.uniform(-1, 1)
if x ** 2 + y ** 2 <= 1:
v_krogu += 1
print(4 * v_krogu / i)
delez_v_krogu = v_krogu / n
return 4 * delez_v_krogu
def nakljucna_tocka_v_k... | [
"matija@pretnar.info"
] | matija@pretnar.info |
9a0ceb1f8a9e8cca78d4939bcf31c244e4acd324 | e1abd868bfad11bf93c50eee1dc9976674de2358 | /scaffold/suite/mass_flux_spatial_scales_plot.py | e0c9cd702c8515ce963bc91851a1de04cd43b566 | [] | no_license | markmuetz/scaffold_analysis | 5c7e9d04b24abe3462c8946381f4cab264bf09e0 | c02d32536c801b23ac8a71e36d25fa922e7cfd94 | refs/heads/master | 2022-06-03T16:13:54.775718 | 2022-05-31T13:22:24 | 2022-05-31T13:22:24 | 92,677,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,255 | py | from itertools import groupby
import matplotlib
import numpy as np
matplotlib.use('Agg')
import pylab as plt
from omnium import Analyser
from scaffold.utils import cm_to_inch
class MassFluxSpatialScalesPlotter(Analyser):
"""Plots histograms of mass flux for each power of 2 (n), and expt."""
analysis_name =... | [
"markmuetz@gmail.com"
] | markmuetz@gmail.com |
236a43ce48ae7a3dc607333f6288c4fc335cd1aa | 99feebd7e64a1961bd3f3c3b152c013b35bc9bad | /testCase/accounts_login_password_test.py | 9c57ce1499bc222b00590c7440c7932a340c9b86 | [] | no_license | andy-29/AutomatedTest | a551fb8d2d608c5191a9f1d71a30188f9a19bba5 | 1c3d2b5295f4b6df4e9321f6a75740a3970df3e4 | refs/heads/master | 2020-06-16T15:24:24.418593 | 2019-06-05T06:26:19 | 2019-06-05T06:26:19 | 195,621,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,518 | py | import os, sys
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(BASE_DIR)
func = os.path.basename(__file__).split('_test.py')[0]
from common.gmpackage import *
@ddt
class Accounts_Login_Password(unittest.TestCase):
'''
登入接口
'''
def setUp(self):
self.host... | [
"dayuezaichunji@163.com"
] | dayuezaichunji@163.com |
8f9ef0086d4ee19c301005731bf09b20b0fc8a5c | 9c21e49150c99751231ad399bdba1850bb60c88c | /keepers/migrations/0012_auto_20180619_0056.py | 359b76f9d01a20e6c2e0917a4540eb44a4c47177 | [
"MIT"
] | permissive | netvigator/auctions | 3ab4086cb0bfbc736b17ede4e928f3ead2b08a4c | fc3766226cc65ac8694dffc74e893ecff8e7d07c | refs/heads/main | 2023-05-25T15:55:01.249670 | 2023-05-06T14:51:12 | 2023-05-06T14:51:12 | 92,816,101 | 0 | 0 | MIT | 2023-02-16T05:24:34 | 2017-05-30T09:14:39 | Python | UTF-8 | Python | false | false | 669 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-06-19 00:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('keepers', '0011_auto_20180615_1818'),
]
operations = [
migrations.AlterField(... | [
"gravesricharde@yahoo.com"
] | gravesricharde@yahoo.com |
3118055357e21e818369addcd8052d38382bdada | 060ce17de7b5cdbd5f7064d1fceb4ded17a23649 | /fn_soar_utils/fn_soar_utils/components/funct_soar_utils_artifact_hash.py | fa0c9212fa4a7c4ee6fd5991f38a41c0ca9545f1 | [
"MIT"
] | permissive | ibmresilient/resilient-community-apps | 74bbd770062a22801cef585d4415c29cbb4d34e2 | 6878c78b94eeca407998a41ce8db2cc00f2b6758 | refs/heads/main | 2023-06-26T20:47:15.059297 | 2023-06-23T16:33:58 | 2023-06-23T16:33:58 | 101,410,006 | 81 | 107 | MIT | 2023-03-29T20:40:31 | 2017-08-25T14:07:33 | Python | UTF-8 | Python | false | false | 2,521 | py | # -*- coding: utf-8 -*-
# (c) Copyright IBM Corp. 2018, 2022. All Rights Reserved.
# pragma pylint: disable=unused-argument, no-self-use
"""Function implementation"""
from json import dumps
from logging import getLogger
from hashlib import algorithms_guaranteed, new
from resilient_lib import get_file_attachment, get_... | [
"travis@example.org"
] | travis@example.org |
a694e62f4c790eab767286b4be22a9c5f5e4a41e | 8b20fdc16253b2b4e07ce28f4fd3120db4566783 | /pythainlp/__init__.py | 47bffa93eda32cec984d87f336d8c648c66c28bf | [
"Apache-2.0",
"Swift-exception"
] | permissive | johnnyduo/pythainlp | d8a850fa7b6d9dfed5eb23f84264caea1703f5fb | dbefc4c88ee8051a14e3be1a10a57670f861cd37 | refs/heads/master | 2021-06-19T23:49:43.564140 | 2017-07-06T10:36:58 | 2017-07-06T10:36:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import six
if six.PY3:
"""
ไว้ใส่ความสามารถที่รองรับเฉพาะ Python 3.4+ เท่านั้น
"""
from pythainlp.sentiment import sentiment
from pythainlp.spell import hunspell,spell
from pythainlp.romanization import romanization,pyicu,royin
from pythainlp.tokenize... | [
"wannaphong@yahoo.com"
] | wannaphong@yahoo.com |
11af023167cde8c35bb2c4b22b1dd4d44852c42d | e89164093c99b2be87b201804718aa73a2ffdae3 | /leetcode/783. Minimum Distance Between BST Nodes.py | df5419cd15909bd4d9943cca22830c3f802cb3ea | [] | no_license | gsrr/leetcode | 748d585d0219ad1a1386794910c7410b50ce3c93 | 992bb618b605c3345318a0eeb2d2df4d11f6a2d5 | refs/heads/master | 2021-07-06T12:40:03.052470 | 2021-05-28T17:28:43 | 2021-05-28T17:28:43 | 76,116,620 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
def ldr(node, arr):
if node.left != None:
ldr(node.left, arr)
arr.append(node.val)
if node.right != None:
ldr(node.r... | [
"jerrycheng1128@gmail.com"
] | jerrycheng1128@gmail.com |
069534b71755db5b1b403c9d65cf61f1b0a9f491 | 6b6e20004b46165595f35b5789e7426d5289ea48 | /workers/test/test_exportactionlogsworker.py | 0e4a728b421dd60c2b029851e5dfe04326ee7a91 | [
"Apache-2.0"
] | permissive | anwarchk/quay | 2a83d0ab65aff6a1120fbf3a45dd72f42211633b | 23c5120790c619174e7d36784ca5aab7f4eece5c | refs/heads/master | 2020-09-12T18:53:21.093606 | 2019-11-15T19:29:02 | 2019-11-15T19:29:02 | 222,517,145 | 0 | 0 | Apache-2.0 | 2019-11-18T18:32:35 | 2019-11-18T18:32:35 | null | UTF-8 | Python | false | false | 4,628 | py | import json
import os
from datetime import datetime, timedelta
import boto
from httmock import urlmatch, HTTMock
from moto import mock_s3_deprecated as mock_s3
from app import storage as test_storage
from data import model, database
from data.logs_model import logs_model
from storage import S3Storage, StorageContex... | [
"jimmy.zelinskie+git@gmail.com"
] | jimmy.zelinskie+git@gmail.com |
ca87e2d4a6d85f9a84b735aec448de0ffb39330a | 8ac156c3bfeb4ce28836a1820cb88959424dab14 | /test/test_ocr_page_result_with_lines_with_location.py | db398b1f5b831b331b45a635bf3ed2b22f00da5b | [
"Apache-2.0"
] | permissive | Cloudmersive/Cloudmersive.APIClient.Python.OCR | 7b593464d31d3038663bedca3c085a161e356f20 | 90acf41a9b307213ef79f63ea4c749469ef61006 | refs/heads/master | 2023-04-03T06:03:41.917713 | 2023-03-27T05:30:38 | 2023-03-27T05:30:38 | 138,450,272 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | # coding: utf-8
"""
ocrapi
The powerful Optical Character Recognition (OCR) APIs let you convert scanned images of pages into recognized text. # noqa: E501
OpenAPI spec version: v1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
imp... | [
"35204726+Cloudmersive@users.noreply.github.com"
] | 35204726+Cloudmersive@users.noreply.github.com |
816c45d294921e6362d0eaa5cc2305ba0fb01d7f | a2fd604a8ef45b4e08cf832348d20b65e4468a79 | /phoenix/tests/test_caches.py | a4d7e9263d733aae95b47899c92b2a290f0313d0 | [] | no_license | darraes/data_structures | 8ca76a3fc3e961860861cd43f5b866b8e7e50427 | 4ff2c60e05d9275b163db59ed37b9f46ba50f3c0 | refs/heads/master | 2020-04-17T10:19:59.357548 | 2019-02-28T21:42:44 | 2019-02-28T21:42:44 | 166,497,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | import unittest
from phoenix.cache import *
class TestFunctions(unittest.TestCase):
def test_lru_new_insertions(self):
cache = LRUCache(3)
cache.put("k1", "v1")
self.assertEqual("v1", cache.get("k1"))
cache.put("k2", "v2")
self.assertEqual("v2", cache.get("k2"))
cac... | [
"daniel.arraes@gmail.com"
] | daniel.arraes@gmail.com |
34177aaf3d8e4472f51189bd33d2c6658fe3cd66 | 9b422078f4ae22fe16610f2ebc54b8c7d905ccad | /xlsxwriter/test/comparison/test_image_bytes01.py | 02dba5d0f8a119b040fad480338e187a1031b18b | [
"BSD-2-Clause-Views"
] | permissive | projectsmahendra/XlsxWriter | 73d8c73ea648a911deea63cb46b9069fb4116b60 | 9b9d6fb283c89af8b6c89ad20f72b8208c2aeb45 | refs/heads/master | 2023-07-21T19:40:41.103336 | 2023-07-08T16:54:37 | 2023-07-08T16:54:37 | 353,636,960 | 0 | 0 | NOASSERTION | 2021-04-01T08:57:21 | 2021-04-01T08:57:20 | null | UTF-8 | Python | false | false | 1,466 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
from io import BytesIO
class TestCompareXLSXFiles(ExcelC... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
3c51dcc2e73e3f43318e71887d695fe2532c06b9 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_appliance/site/_delete.py | f453c8731d6e69b3932912be786b732d7da64fb3 | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 5,731 | py | # --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
60570467f232d79d8b785162fa8abe654121701e | b9dda07897d552466695c735c14d624cf89315bc | /triggerflow/service/eventsources/model.py | 220393130c315f170e96204d7db7a6ce32a801ff | [
"Apache-2.0"
] | permissive | JosepSampe/triggerflow | 02792ba96059f27c2d163ca88d50a10e030026ae | 66d8adcd6b31692663ee861c334608b74fecf884 | refs/heads/master | 2023-01-12T12:12:33.007616 | 2020-10-20T13:14:18 | 2020-10-20T13:14:18 | 264,998,376 | 0 | 0 | Apache-2.0 | 2020-05-18T16:32:06 | 2020-05-18T16:32:05 | null | UTF-8 | Python | false | false | 383 | py | from multiprocessing import Process
from threading import Thread
class EventSourceHook(Thread):
def __init__(self, name: str, *args, **kwargs):
super().__init__()
self.name = name
def run(self):
raise NotImplementedError()
def commit(self, records):
raise NotImplementedEr... | [
"aitor.a98@gmail.com"
] | aitor.a98@gmail.com |
e378342db455f9d7483d9f6cf7982882e5d2ca99 | b72596aa97a724f9f2cc6947b86a9b972846277f | /setup.py | 8cba9868cc12580e64d54561b344cf8fca1cdca5 | [
"MIT"
] | permissive | dumpmemory/hourglass-transformer-pytorch | 698cfcbc6a1b572efef37b5926d45dd598ff457b | 4be33bb41adfedf1b739cd24bec9481bc83a93e2 | refs/heads/main | 2023-09-03T01:45:41.994192 | 2021-11-10T15:49:06 | 2021-11-10T15:49:06 | 426,081,172 | 0 | 0 | MIT | 2021-11-10T15:55:51 | 2021-11-09T03:41:56 | Python | UTF-8 | Python | false | false | 750 | py | from setuptools import setup, find_packages
setup(
name = 'hourglass-transformer-pytorch',
packages = find_packages(),
version = '0.0.6',
license='MIT',
description = 'Hourglass Transformer',
author = 'Phil Wang',
author_email = 'lucidrains@gmail.com',
url = 'https://github.com/lucidrains/hourglass-tra... | [
"lucidrains@gmail.com"
] | lucidrains@gmail.com |
523b42f752bced31bc63bb710b3b4fded293c9cf | 20e3010608e40a6ec5ea56f69d122a62182e4bdb | /1 - Python-2/4 - strings functions/HW4/3. Make an IP adress unclickable.py | f6b7f30215f124961d64f2ec6f1ae189675582a4 | [] | no_license | LarisaOvchinnikova/Python | ee65eac221cd03563d60110118175692564c5b2d | 9cc86a260828662995dec59a6d69528f96d37e79 | refs/heads/master | 2021-08-22T21:41:02.351589 | 2021-05-25T18:37:09 | 2021-05-25T18:37:09 | 253,842,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | # Input: address = "1.1.1.1"
# Output: "1[.]1[.]1[.]1"
def ip_address(address):
return address.replace(".", "[.]")
print(ip_address("1.1.1.1")) | [
"larisaplantation@gmail.com"
] | larisaplantation@gmail.com |
caa9cb15bb5cd49e3cb59f5ace978e207c998922 | db37e5eab7b60057bbc1ae153df8693f0159b02c | /examples/decoupledibpm/flapping2dRe75/run/scripts/plot_vorticity_compare_li_et_al_2015.py | 63ee97afbb13882c1575b1ae99fc77dbdad3f383 | [
"BSD-3-Clause"
] | permissive | stjordanis/petibm-examples | 83f7212eadbc1bbfb2071d550969b252cbcfcd89 | 794de3613967c14750c750aed386602c988cff05 | refs/heads/master | 2022-04-12T20:29:33.566464 | 2020-02-29T22:45:39 | 2020-02-29T22:45:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,078 | py | """Plot the vorticity at saved time steps."""
from matplotlib import pyplot, image
import numpy
import pathlib
import petibmpy
simudir = pathlib.Path(__file__).absolute().parents[1] # simulation directory
datadir = simudir / 'output' # directory with field solution files
name = 'wz' # name of the variable to lo... | [
"mesnardo@gwu.edu"
] | mesnardo@gwu.edu |
c212488374a2e7a4dcf011707fabc37464e8b920 | f79102231c83674a4c01e56e3953b2a65cb14da2 | /leetcode/base/list/环形链表.py | 31d0d694e9e23ee41583a99337ef25a65410b65f | [] | no_license | Activity00/Python | 4971b177beaf72df0de97f7e78f400d48104dce1 | 166d97f36bbeea74c84ec57466bd0a65b608ed09 | refs/heads/master | 2020-12-24T07:53:06.782982 | 2020-09-29T10:55:43 | 2020-09-29T10:55:43 | 73,362,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | # coding: utf-8
"""
@author: 武明辉
@time: 19-3-20 下午9:35
"""
"""
给定一个链表,判断链表中是否有环。
为了表示给定链表中的环,我们使用整数 pos 来表示链表尾连接到链表中的位置(索引从 0 开始)。 如果 pos 是 -1,则在该链表中没有环。
示例 1:
输入:head = [3,2,0,-4], pos = 1
输出:true
解释:链表中有一个环,其尾部连接到第二个节点。
示例 2:
输入:head = [1,2], pos = 0
输出:true
解释:链表中有一个环,其尾部连接到第一个节点。
示例 3:
输入:head = [1], ... | [
"1032662429@qq.com"
] | 1032662429@qq.com |
d294ee636acb84148e16ac385f849a18ab6a1d2d | e63f11c621ffa2c54a8bc4714c6fb0f868f902d6 | /LianJia_Scrapy/item_url.py | 964827b681f15e340e7a2dee5981496f848a2108 | [] | no_license | aquablue1/LianJia_Scrapy | 5821fd93eca796d319f408d351cc30d860a0edb4 | 580ced19204d5eb9614c6a8b362b2cb9eba88388 | refs/heads/master | 2021-05-05T22:07:14.261137 | 2018-01-06T05:01:43 | 2018-01-06T05:01:43 | 116,090,808 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class LianjiaScrapyItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
url = scrapy.Field() | [
"94apieceofcake@gmail.com"
] | 94apieceofcake@gmail.com |
94c044bdea784aa5da43326d563b722a3d5c4fc6 | 29da2ca6def1270be13a3096685a8e5d82828dff | /CIM14/CDPSM/GIS_Connectivity/IEC61970/Core/SubGeographicalRegion.py | 0030c2438ce680b5ea6c4d046032e16e4f3f5353 | [
"MIT"
] | permissive | rimbendhaou/PyCIM | 75eb3bcd3729b2410c03f3d5c66d6f1e05e21df3 | d578bb0bf1af344342bd23344385ed9c06c2d0ee | refs/heads/master | 2022-04-28T01:16:12.673867 | 2020-04-16T02:19:09 | 2020-04-16T02:19:09 | 256,085,381 | 0 | 0 | MIT | 2020-04-16T02:15:20 | 2020-04-16T02:08:14 | null | UTF-8 | Python | false | false | 3,823 | py | # Copyright (C) 2010-2011 Richard Lincoln
#
# 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 the
# rights to use, copy, modify, merge, publish... | [
"rwl@thinker.cable.virginmedia.net"
] | rwl@thinker.cable.virginmedia.net |
d53b1fc1e1689725994bab778b7f669f9af08d11 | bd1362c60313784c90013dfc9f0169e64389bf27 | /scripts/feature/min_Xhour.py | 0f41041b31ea7c176d8d0c2e6714c2969c296d22 | [] | no_license | ForceCry/iem | 391aa9daf796591909cb9d4e60e27375adfb0eab | 4b0390d89e6570b99ca83a5fa9b042226e17c1ad | refs/heads/master | 2020-12-24T19:04:55.517409 | 2013-04-09T14:25:36 | 2013-04-09T14:25:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | # Generate some comparison data between ASOS sites, tricky, me thinks
import iemdb
import datetime
import numpy
import mx.DateTime
ASOS = iemdb.connect('asos', bypass=True)
acursor = ASOS.cursor()
acursor.execute("SET TIME ZONE 'GMT'")
maxv = 0
def get_data(year, station):
global maxv
data = {}
acursor.e... | [
"akrherz@95f8c243-6001-0410-b151-932e6a9ed213"
] | akrherz@95f8c243-6001-0410-b151-932e6a9ed213 |
48c2c3dca0b6a2b6c85044a00f274533db952693 | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/Windows/Controls/__init___parts/ContextMenuEventArgs.py | ddb3667cf2693b5c400b6c59a3043b012c6b0300 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | class ContextMenuEventArgs(RoutedEventArgs):
""" Provides data for the context menu event. """
CursorLeft=property(lambda self: object(),lambda self,v: None,lambda self: None)
"""Gets the horizontal position of the mouse.
Get: CursorLeft(self: ContextMenuEventArgs) -> float
"""
CursorTop=property(lambda self... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
e821be69dbcc904309be14ca117f4bbb2b7155e6 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /tests/cloudformation/checks/resource/aws/test_ECRImmutableTags.py | 2bafbbce0a26573bbd0e9e83dbbd29b4d6be0c56 | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 827 | py | import os
import unittest
from checkov.cloudformation.checks.resource.aws.ECRImmutableTags import check
from checkov.cloudformation.runner import Runner
from checkov.runner_filter import RunnerFilter
class TestECRImmutableTags(unittest.TestCase):
def test_summary(self):
runner = Runner()
current... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
1152ab09724194cae4e2fab10d422c80f3789189 | 57265c1c743f5da6778d5c065e03be93d4f0c93f | /djkombu/tests/testproj/manage.py | b9066fff599f1c1260d7622099fa544098000b78 | [
"BSD-3-Clause"
] | permissive | barseghyanartur/django-kombu | fb63dab46cce7048f50c5131a8edde98f0734c5e | 0f7dbdbd153e7a6d9971dfbb030433a6a85dd984 | refs/heads/master | 2021-01-23T04:59:18.617326 | 2017-06-02T11:51:07 | 2017-06-02T11:51:07 | 92,947,716 | 0 | 0 | null | 2017-05-31T13:21:10 | 2017-05-31T13:21:10 | null | UTF-8 | Python | false | false | 320 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproj.settings")
sys.path.insert(0, os.path.join(os.getcwd(), '..', '..', '..'))
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"artur.barseghyan@gmail.com"
] | artur.barseghyan@gmail.com |
4530e7da967992e4e873d204c25802ea30dd670f | 9afb5742e08add8800ad2086ecddd74f017ac9a5 | /tests/test_errors.py | 2c27177c209173f9920701ae351953c2f5064ff8 | [
"BSD-2-Clause"
] | permissive | blockdiag/sphinxcontrib-actdiag | e7fac2739b7aef862f6b0dbea69548ec51960df9 | 8b7ec29b310e718c4510a99fd22c624adc5b19bf | refs/heads/master | 2023-04-10T07:36:45.862708 | 2021-12-05T14:37:35 | 2021-12-05T14:37:35 | 34,159,673 | 1 | 2 | NOASSERTION | 2023-03-18T23:32:50 | 2015-04-18T09:11:37 | Python | UTF-8 | Python | false | false | 1,992 | py | # -*- coding: utf-8 -*-
from mock import patch
from sphinx_testing import with_app
import sys
import unittest
class TestSphinxcontribActdiagErrors(unittest.TestCase):
@with_app(srcdir='tests/docs/basic', write_docstring=True)
def test_parse_error(self, app, status, warning):
"""
.. actdiag::... | [
"i.tkomiya@gmail.com"
] | i.tkomiya@gmail.com |
da144278f9b5122abe6a2ada6e8b937379d84335 | 9e643d565e38de1728eabf31304e7dcbdf3ebfdd | /Python/Django/manyToMany/apps/manyToManyApp/migrations/0001_initial.py | 522b5d14fb92bd5b6297d49a27747de163be6a68 | [] | no_license | joeyzoland/DojoAssignments | 88dca37ad1d5b585a4af1dabc49935ef34adf6a0 | 0cae15aa448c490af931b41939638456456cef63 | refs/heads/master | 2021-01-11T17:55:13.775179 | 2018-09-17T07:32:12 | 2018-09-17T07:32:12 | 79,875,553 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-23 16:22
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Intere... | [
"joeyzoland@gmail.com"
] | joeyzoland@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.