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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c5ee38e527a3f33a828abc90ffe22a4974218edf | 4cf8bf7b45475082550f8d4e9088a80e5e754603 | /AprimeAlAlpha1/Source/MadWeight_File/Python/madweight.py | 2b9aae1c1d734c63db1878a18a2b23b075251d50 | [] | no_license | JeffersonLab/BDXEventGenerator | 8c73b5b664415139f8fae64f85d63287d8cf02b9 | c77b09fda48877ef6f1d2db85237b220f696e512 | refs/heads/master | 2021-01-15T08:53:15.928558 | 2019-04-01T06:19:14 | 2019-04-01T06:19:14 | 24,151,152 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,113 | py | #!/usr/bin/env python
#Extension
import string
import sys
import os
import re
import time
import stat
# patch if symbolic directory replace by real file
sys.path.append('./Source/MadWeight_File/Python')
sys.path.append('../Source/MadWeight_File/Python')
#end patch
import write_MadWeight
import create_param
import Card... | [
"andrea.celentano@ge.infn.it"
] | andrea.celentano@ge.infn.it |
3f068ea9c2c2d07d94a1ea533459601b4ea10054 | 6f8b801994529955fe16c7e2d059355f07e3f0d4 | /model/model_v2 - onechild/experiments/EITC/eitc_param_exp_4.py | 0bfec23d7235f117b86786ec6d3116d2038eb781 | [] | no_license | jorginho84/DDCM-NH | 5e6578c216356af9d421b70cac11a249e12ea394 | e78478ca5c3796be8e590cb893b3b61d6455528f | refs/heads/master | 2021-01-12T11:44:48.128404 | 2019-12-24T13:06:00 | 2019-12-24T13:06:00 | 72,445,038 | 1 | 1 | null | 2019-11-19T18:14:01 | 2016-10-31T14:35:47 | Python | UTF-8 | Python | false | false | 1,393 | py | """
exec(open("/home/jrodriguez/NH_HC/codes/model_v2/experiments/EITC/eitc_param_exp_4.py").read())
This file generates a list of EITC parameters
Each element of the list (0-9) corresponds to a dictionary of parameters
of the EITC (1995-2003), where:
-t=0 <=> 1995
-r1,r2: phase-in and phase-out rates
-b1,b2: minimum... | [
"jp.rodriguez.osorio@gmail.com"
] | jp.rodriguez.osorio@gmail.com |
46c11a51acb5bcbe68bb6369dc7ce51f61253372 | 2d5171ac7f2640ed73b48aebf4b96e29d5cad818 | /VC5/C.py | b138883a5fa5b6f425ed50af690b8dc5da289a00 | [] | no_license | kentahoriuchi/Atcorder | d7b8308424175f32d47f24bb15303695780e1611 | f6449d4e9dc7d92210497e3445515fe95b74c659 | refs/heads/master | 2023-06-06T09:26:46.963642 | 2021-06-13T15:08:04 | 2021-06-13T15:08:04 | 255,396,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | N,M = list(map(int, input().split()))
ans = 1
for i in range(2,100000):
ans += i*((1-(1/(2**M)))**(i-1))
if int(ans*((N-M)*100+M*1900)/(2**M))%10 == 0:
print(int(ans*((N-M)*100+M*1900)/(2**M)))
else:
print(int(ans*((N-M)*100+M*1900)/(2**M))+1)
| [
"dorahori_108@yahoo.co.jp"
] | dorahori_108@yahoo.co.jp |
ac1079d68d0871f08058ad4ec2969019354f59dd | 5ae3caf49a20e8307870a597e09d41d4f879c874 | /tests/test_tags.py | 4d1580cce5a697237d9dc44aaedb595480621a04 | [
"Apache-2.0"
] | permissive | dogsheep/github-to-sqlite | df9fb81cc19ffab68a8d8be219f8707f3d12ccbd | 56a918f6a6285855fb1bd086b60b44144279a95a | refs/heads/main | 2023-05-12T05:35:59.959831 | 2023-04-26T17:36:17 | 2023-04-26T17:36:17 | 207,052,882 | 322 | 34 | Apache-2.0 | 2022-09-06T13:21:43 | 2019-09-08T02:50:28 | Python | UTF-8 | Python | false | false | 1,119 | py | from github_to_sqlite import utils
import pytest
import pathlib
import sqlite_utils
from sqlite_utils.db import ForeignKey
import json
@pytest.fixture
def tags():
return json.load(open(pathlib.Path(__file__).parent / "tags.json"))
@pytest.fixture
def repo():
return json.load(open(pathlib.Path(__file__).pare... | [
"swillison@gmail.com"
] | swillison@gmail.com |
d89ca6d58afa4de9975ef222f5ce06162562b919 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/392/usersdata/333/71240/submittedfiles/formula.py | 288eed44a9b92d1ae32c868e2c37f53c41608d8d | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | # -*- coding: utf-8 -*-
p = int(input('digite o valor de p? :'))
i = int(input('digite o valor de i? :'))
n = int(input('digite o valor de n? :'))
v = p * ((1+i)^n) - 1)/2
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
51ff465887058b4ec108923ce60a150e458ccc97 | fb06672d267e8dd85e719b0fd9cbb1f4eb81cfb5 | /version/CXRNetv0.10.py | 7dcacf79b6a4c1014c01d47aab57067e1fab922d | [] | no_license | ncolab/CXRDC | 800bd9ee735725445d9a132ba8a03019e3551cd8 | 900c3f5638f16a409df816c936b716242496c5c1 | refs/heads/master | 2023-03-23T09:07:03.017015 | 2021-03-19T08:15:11 | 2021-03-19T08:15:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,544 | py | # encoding: utf-8
"""
Attention-Guided Network for ChesstXRay
Author: Jason.Fang
Update time: 28/12/2020
"""
import sys
import re
import numpy as np
import random
import torch
import torch.nn as nn
import torchvision
import torch.nn.functional as F
import torch.utils.model_zoo as model_zoo
from collections import Orde... | [
"sharpsword@163.com"
] | sharpsword@163.com |
332f677a67d4ccc2127b1b8e382fca0a11c9da1d | f281d0d6431c1b45c6e5ebfff5856c374af4b130 | /DAY200~299/DAY261-BOJ13701-중복 제거/guno.py | e318da1229d2145da38a903955b7f8d9c1a75f9e | [] | no_license | tachyon83/code-rhino | ec802dc91dce20980fac401b26165a487494adb4 | b1af000f5798cd12ecdab36aeb9c7a36f91c1101 | refs/heads/master | 2022-08-13T09:10:16.369287 | 2022-07-30T11:27:34 | 2022-07-30T11:27:34 | 292,142,812 | 5 | 6 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | import sys
mod = 1000
n = (1<<25) // mod + 1
a = [0]*n
d = {str(i) for i in range(10)}
flag=False
while True:
b = ''
while True:
ch = sys.stdin.read(1)
if ch == ' ':
break
elif ch in d:
b += ch
else:
flag=True
break
if flag:
... | [
"noreply@github.com"
] | tachyon83.noreply@github.com |
0aa94952ea0844efbcd6067795eab0ced51c9e1c | 1fc638bf8b485f6a0466da096a51038c2e10dad6 | /aidu_gui/src/aidu_gui/retrieve_delivery.py | 4a464e503efe5e5f34e3cfbebd755bc07bc66e32 | [
"MIT"
] | permissive | MartienLagerweij/aidu | a2621288e78cc7c0d9df821ab60f597818158836 | a9b6e5a61f20bd60a7773495ba254e1bded1d7a1 | refs/heads/master | 2021-01-10T19:50:18.576658 | 2014-01-31T14:52:14 | 2014-01-31T14:52:14 | 30,254,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,907 | py | #!/usr/bin/env python
__author__ = 'Rolf Jagerman'
from PySide import QtGui
import os
from authentication import AuthenticationListener, AuthenticationClient
from loadui import loadUi
from config import UI_DIRECTORY
from drawers import Drawers
class RetrieveDelivery(QtGui.QFrame, AuthenticationListener):
"""
... | [
"rjagerman@gmail.com"
] | rjagerman@gmail.com |
20b47bc24caa832ef8fd82103c8232230cbdc749 | 9ebbbcf2e7a887c1863bdcb4a444bf7438660e22 | /gvzhf/p12/p1222.py | d86e078380e30f708b177ab7f706cc3a4c1aca79 | [] | no_license | nazarov-yuriy/contests | a0a070bd55b0b20dd03cf96e50eb06aa9558525e | 8f7527adee017f986089a4586947bdfa68a1b93c | refs/heads/master | 2021-06-18T07:34:14.967575 | 2021-04-04T14:07:45 | 2021-04-04T14:07:45 | 46,584,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | x = int(input())
if x==1:
print(1)
elif x%3==1:
x=int((x-4)/3)
print(4*3**x)
elif x%3==2:
x=int((x-2)/3)
print(2*3**x)
else:
x=int(x/3)
print(3**x)
| [
"nazarov.yuriy.pavlovich@gmail.com"
] | nazarov.yuriy.pavlovich@gmail.com |
b11bee24be255e88d96e99ee159de86fee08068c | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories_2to3/160523/kaggle_Otto-master/new/src/1st_level/svm.py | dd6e9c7c890dfa5a3e8304fc3739aa2da01ffe71 | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,967 | py | import pandas as pd
import numpy as np
import ml_metrics as metrics
from sklearn.calibration import CalibratedClassifierCV
from sklearn import svm
from sklearn.multiclass import OneVsRestClassifier
from sklearn.cross_validation import StratifiedKFold
from sklearn.metrics import log_loss
print("read training d... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
d36247e5773f37e483b725c9e89b593a16cba174 | efde54300001ea7d774b18a255447fab4024f617 | /python/src/scripts/CalibrateTicksPerMm.py | 503ee35a09b9dcff9a643da0e8e92e7f963216a5 | [] | no_license | werobot-france/eurobot2020-main | 39dac4db05e7eaa387f52c791fa214368fee9357 | f0dbb17e830c7d70283bebdbdc246b375ef9c863 | refs/heads/master | 2023-05-14T17:55:58.641570 | 2020-10-29T16:33:13 | 2020-10-29T16:33:13 | 240,732,046 | 0 | 0 | null | 2023-05-08T01:20:26 | 2020-02-15T14:59:23 | Python | UTF-8 | Python | false | false | 570 | py | from math import *
from ..API import API
class CalibrateTicksPerMm(API):
def run(self):
distance = 2000
self.positionWatcher.setPos(0, 0, -pi/2)
# STEP 1: on fait avancer le robot jusqu'a ce qu'il touche la bordure
self.navigation.goTo(x=0, y=-200, speed=35, stopOnSlip=True)
# S... | [
"spamfree@matthieubessat.fr"
] | spamfree@matthieubessat.fr |
e82d03c032d5b375ed70db03899e47d33c13c136 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_221/ch76_2020_04_12_12_16_46_136720.py | 797e87951bd3f7c00d3e6022fb1f425e16d619b1 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | def aniversariantes_setembro(nome_data):
setembro = {}
for nome,data in nome_data.items():
if data[4] == '9':
setembro[nome] = data
return setembro | [
"you@example.com"
] | you@example.com |
8568b967e7fac4f541171e40b58e22e4c44a9d14 | 2049bda43e392d5f5981fbfdb70090ba226e4ef8 | /apps/catalogue/cache.py | 4f16ec48d7ef8939c058999752f3ae0da385f74e | [] | no_license | embedded1/django-package-forwarding | 2ef84a1fde5ba6817d42d89f983512bdc3d77bc3 | 8c3286e9a7da8f4ae0401a81c8037585b3bb7ba6 | refs/heads/master | 2020-06-22T17:05:36.637695 | 2019-07-26T09:34:40 | 2019-07-26T09:34:40 | 197,738,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | from django.core.cache import cache
class ProductCache(object):
@staticmethod
def store_product_status(key, status):
cache.set(key, status, timeout=60*60*24*30)#30 days
@staticmethod
def get_product_status(key):
return cache.get(key)
@staticmethod
def delete_product_status(ke... | [
"asili@usendhome.com"
] | asili@usendhome.com |
e935cd9e122f8c98c7e66ad32669f341aa8b053e | 2e9e994e17456ed06970dccb55c18dc0cad34756 | /atcoder/arc/041/p_a.py | 7277f5edd4212f91dbddd0e9f9439326fa9f33d5 | [] | no_license | ksomemo/Competitive-programming | a74e86b5e790c6e68e9642ea9e5332440cb264fc | 2a12f7de520d9010aea1cd9d61b56df4a3555435 | refs/heads/master | 2020-12-02T06:46:13.666936 | 2019-05-27T04:08:01 | 2019-05-27T04:08:01 | 96,894,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | def solve(front, back, turn):
if back >= turn:
return front + turn
# 裏返し切れなかった数を元に戻す
return front + back - (turn - back)
if __name__ == '__main__':
front, back = map(int, input().split())
turn = int(input())
print(solve(front, back, turn))
| [
"kntsmy@hotmail.co.jp"
] | kntsmy@hotmail.co.jp |
3ef13e59321668d155023dc5197ea81b43496646 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03846/s600671259.py | 0beca340d24e47296efc559da8de47c32b493946 | [] | 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 | 346 | py | import sys
from collections import Counter
MOD = 10 ** 9 + 7
n, *a = map(int, sys.stdin.read().split())
def main():
c = Counter(a)
if n & 1:
if c.get(0, 0) != 1:
print(0); return
for i in range(1 + (n & 1), n, 2):
if c.get(i, 0) != 2:
print(0); return
print(pow(2, n // 2, MOD))
if __name_... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
81ef280214190d98f8eb593474278c3471647f1d | 5b3bf81b22f4eb78a1d9e801b2d1d6a48509a236 | /leetcode/221.py | 30564742fdda8f52a429fe323ac970483bd6cc06 | [] | no_license | okoks9011/problem_solving | 42a0843cfdf58846090dff1a2762b6e02362d068 | e86d86bb5e3856fcaaa5e20fe19194871d3981ca | refs/heads/master | 2023-01-21T19:06:14.143000 | 2023-01-08T17:45:16 | 2023-01-08T17:45:16 | 141,427,667 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | class Solution:
def maximalSquare(self, matrix: List[List[str]]) -> int:
n = len(matrix)
assert n > 0
m = len(matrix[0])
assert m > 0
dp = [[0] * (m + 1) for _ in range(n + 1)]
result = 0
for i in range(1, n + 1):
for j in range(1, m + 1):
... | [
"okoks9011@gmail.com"
] | okoks9011@gmail.com |
13f1723d49c62e274358b1d0fc47a9e68590232b | ca2407cc48f35d3f8f75e8ae65e188b672838e45 | /sub_perf.py | ef20dc20d113970bd4e7e2e072c5de1b8da8a1f2 | [] | no_license | majek/pats | 1ee7c07b4c42ad6c110e26bbb312f43fcd4d1fdd | ebed58faa2ab14c0a8f5e6de840d02aefd2cbed1 | refs/heads/master | 2023-08-20T15:05:44.525076 | 2010-12-07T16:40:17 | 2010-12-07T16:40:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | #!/usr/bin/env python
import os
import sys
import time
sys.path.append(os.path.join('..','puka'))
import pats
sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
loop=100000
loop_hash=10000
received = 1
start = None
def main():
p = pats.Pats('amqp:///')
p.x_connect()
def on_test(body, _r, _t):
... | [
"majek04@gmail.com"
] | majek04@gmail.com |
0ae459d8937e307aee672023dbbfe0c90e5afdc8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02716/s873218513.py | 74648b79e817297e38b7ab5d4b150fc0044d2c1e | [] | 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 | 609 | py | # dpでいけそう
n = int(input())
a = list(map(int, input().split()))
INF = 10**16
ans = -INF
a = [0, 0, 0, 0] + a
dp = [[-INF for _ in range(n+4)] for _ in range(3)]
dp[0][2] = 0
for i in range(4, len(a)):
dp[2][i] = max(dp[2][i], dp[1][i-3] + a[i], dp[0][i-4] + a[i], dp[2][i-2] + a[i])
dp[1][i] = max(dp[1][i], dp[... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
28040ad768f0c71337fe159ced6dadf4013df492 | ba0cbdae81c171bd4be7b12c0594de72bd6d625a | /MyToontown/py2/direct/gui/DirectRadioButton.pyc.py | da9b871d784660d7c3b23955aa47c43e30519fcc | [] | no_license | sweep41/Toontown-2016 | 65985f198fa32a832e762fa9c59e59606d6a40a3 | 7732fb2c27001264e6dd652c057b3dc41f9c8a7d | refs/heads/master | 2021-01-23T16:04:45.264205 | 2017-06-04T02:47:34 | 2017-06-04T02:47:34 | 93,279,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,157 | py | # 2013.08.22 22:14:17 Pacific Daylight Time
# Embedded file name: direct.gui.DirectRadioButton
__all__ = ['DirectRadioButton']
from pandac.PandaModules import *
import DirectGuiGlobals as DGG
from DirectButton import *
from DirectLabel import *
class DirectRadioButton(DirectButton):
__module__ = __name__
... | [
"sweep14@gmail.com"
] | sweep14@gmail.com |
007064ba1611dc718cbb9b9c35370b92c10ff437 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02598/s970958990.py | ec9c775f39e8059b9af25f1f028b0615a96892e1 | [] | 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 | 295 | py | import math
n,k=map(int,input().split())
a=list(map(int,input().split()))
x0=0
x1=10**9
while(1):
sum=0
mid=(x0+x1)//2
for i in range(n):
sum+=math.ceil(a[i]/mid)-1
if(sum<=k):
x1=mid
if(sum>k):
x0=mid
if(x0+1==x1):
print(x1)
break | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3508eaadca51c83e8f1aa2f6e4abbc67c25d853f | b204cddc90c19ad8d4587581b4d7ec0b0fed0f45 | /level3/블록이동하기.py | 1f7af587491824fa8f7c5df83e862f1838e8481f | [] | no_license | chaeonee/Programmers | db741c7c17b933ff2a42521d5bc1077532375021 | f582ca16ec351f1f4678847949cb66e7544b9162 | refs/heads/main | 2023-04-20T13:50:46.722283 | 2021-05-06T09:44:16 | 2021-05-06T09:44:16 | 348,239,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,949 | py | from collections import deque
def solution(board):
answer = 0
N = len(board)
visit = [[[False]*2 for _ in range(N)] for _ in range(N)]
visit[0][0][0] = True
q = deque()
q.append([[0,0],[0,1],0])
while q:
robot1, robot2, n = q.popleft()
if robot2[0] == N-1 and ro... | [
"noreply@github.com"
] | chaeonee.noreply@github.com |
ee4ba6c1b54efb053466338918b3de99db074562 | 3c88e65e76d8a41fca5bc469eb99117b996711f2 | /pgadmin_old/pgadmin4-1.2/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/constraints/check_constraint/tests/test_check_constraint_delete.py | e01946db31ff2a9096eacdaabe72d1790cc77502 | [
"PostgreSQL"
] | permissive | luvres/alpine | 85591b77f0dbc328d89e028c22ef1479be33ffbe | 05dc3e77cc8c454143525fed79e38bc38fc390f7 | refs/heads/master | 2021-01-11T15:48:48.478244 | 2017-10-31T15:30:32 | 2017-10-31T15:30:32 | 79,933,463 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,744 | py | # #################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2017, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
# ##################################################################
import uuid
from regression im... | [
"luvres@hotmail.com"
] | luvres@hotmail.com |
9e241d59e124cf11401e384d9dce4afe46c34f45 | bacd935c40794254454743555fa260812f512898 | /jax/_src/debugger/core.py | 5a8f0e10940123b7ec0f50371918542e7116ea11 | [
"Apache-2.0"
] | permissive | jacobjinkelly/jax | 5f02f14c6a1107d2099ea33f8a0cc70f396f43bf | 640e15fe070a887197143b76a19a3dced816c8df | refs/heads/master | 2022-10-20T09:44:17.895904 | 2022-09-22T08:28:45 | 2022-09-22T08:29:14 | 207,571,818 | 0 | 0 | Apache-2.0 | 2023-09-11T08:04:01 | 2019-09-10T13:47:30 | Python | UTF-8 | Python | false | false | 7,506 | py | # Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"sharad.vikram@gmail.com"
] | sharad.vikram@gmail.com |
0f028f20ee0a31a93005c4432dc867268576f7f0 | d61d05748a59a1a73bbf3c39dd2c1a52d649d6e3 | /chromium/build/config/fuchsia/build_symbol_archive.py | 092566d3f06b7eecb056e7ca3ff7bfa752e8a040 | [
"BSD-3-Clause"
] | permissive | Csineneo/Vivaldi | 4eaad20fc0ff306ca60b400cd5fad930a9082087 | d92465f71fb8e4345e27bd889532339204b26f1e | refs/heads/master | 2022-11-23T17:11:50.714160 | 2019-05-25T11:45:11 | 2019-05-25T11:45:11 | 144,489,531 | 5 | 4 | BSD-3-Clause | 2022-11-04T05:55:33 | 2018-08-12T18:04:37 | null | UTF-8 | Python | false | false | 2,761 | py | #!/usr/bin/env python
#
# Copyright 2018 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.
"""Creates a compressed archive of binary symbols derived from the unstripped
executables and libraries cataloged by "ids.txt"."""
i... | [
"csineneo@gmail.com"
] | csineneo@gmail.com |
886521ba3fc2e8992c73af31479c634fa625cc91 | 7d60588702280c7f8c6477e7703528bb860aaa4a | /py_fitness/py_fitness/taskapp/celery.py | 56e7e97bdaefd0839705043c8ede25dc840a189e | [
"MIT"
] | permissive | audiolion/py-fitness | 7e420c4ef6e10ff122fc4f30309cd428d4d5bc38 | 9e0ca785c73a07cb788685bbde6e840a7a2e3419 | refs/heads/master | 2021-05-01T10:16:22.214094 | 2017-01-02T02:03:51 | 2017-01-02T02:03:51 | 68,249,682 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,114 | py |
from __future__ import absolute_import
import os
from celery import Celery
from django.apps import apps, AppConfig
from django.conf import settings
if not settings.configured:
# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.l... | [
"castner.rr@gmail.com"
] | castner.rr@gmail.com |
f9896895c8ea6d52f49c2dec5454abb9fd488915 | c074ce302e0a2a09ebe8b0a94e342380afbaa911 | /beakjoon_PS/no10951.py | de785ac188929576ad74f00a31d9ea1d668dc067 | [] | no_license | elrion018/CS_study | eeea7a48e9e9b116ddf561ebf10633670d305722 | 3d5478620c4d23343ae0518d27920b3211f686fd | refs/heads/master | 2021-06-10T13:35:20.258335 | 2021-04-25T10:12:17 | 2021-04-25T10:12:17 | 169,424,097 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | import sys
while True:
try:
a, b = map(int, sys.stdin.readline().split())
print(a+b)
except:
break
| [
"elrion018@gmail.com"
] | elrion018@gmail.com |
67b78328d77ac7faae60c232f1a94499cefc98fe | c80ec1805a7e6cb1bd3f4b3e383ef4f4cf164765 | /gen/filters/rules/place/_hasnoteregexp.py | 83ce3f27682763930e0a1e44ff0f21234c7d5c0e | [] | no_license | balrok/gramps_addon | 57c8e976c47ea3c1d1298d3fd4406c13909ac933 | 0c79561bed7ff42c88714edbc85197fa9235e188 | refs/heads/master | 2020-04-16T03:58:27.818732 | 2015-02-01T14:17:44 | 2015-02-01T14:17:44 | 30,111,898 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,705 | py | #
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2002-2006 Donald N. Allingham
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at you... | [
"carl.schoenbach@gmail.com"
] | carl.schoenbach@gmail.com |
2c13f8399ddb0d21a8fe50562e8cef123b3f88dc | 6e0001fb880d83d1d3e305e42acba93b85631838 | /Point Diagrams/PD1V1/out1/v_SLSL3100SLSL301SLSL.py | 9addc4af579898c7699e5a1497fe901b4f6dd68a | [] | no_license | pjalagna/Aryc2019 | 97b6de8248006bf19af527e4c1e35763b1277aaa | ece8ccf18305e6c65a59bee650b47b8730904bd0 | refs/heads/master | 2021-06-21T23:14:55.527195 | 2021-03-18T08:02:31 | 2021-03-18T08:02:31 | 205,817,944 | 0 | 1 | null | 2020-10-16T00:13:31 | 2019-09-02T09:03:22 | Python | UTF-8 | Python | false | false | 423 | py |
# file v_SLSL3100SLSL301SLSL.py
def main(objj,trace):
if(trace == 1):
xx = raw_input("begin v_SLSL3100SLSL301SLSL")
retbox = [0,objj,trace] # init by type
# set status to retbox[0] = 0 ok -1 ng or #
retbox[0] = 0 # default is ok
# process work goes here
# ps push return cell
objj['... | [
"PJAlagna@Gmail.com"
] | PJAlagna@Gmail.com |
055e1301e7b1b446a96aab3fb25821db2154ee3d | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/TSZLMM/YW_TSZLMM_SHXJ_104.py | 6388bcee44147c7d52fb5de9abb8a3746221acba | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,118 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/home/yhl2/workspace/xtp_test/m... | [
"418033945@qq.com"
] | 418033945@qq.com |
a5e42c0a160b15ed6293cd2542af7c357c585d2f | a9e608a9af7ccd94f4581b29c61e6cf0ac7a5080 | /macOS/bee1.app/Contents/Resources/python/lib/python3.6/ctypes/test/test_libc.py | 522b3e9199ec8d227a86dc79dd33af728765af52 | [
"Python-2.0",
"BSD-3-Clause"
] | permissive | leewonmoh/macrepo1 | 0d32ec61ee57af6b5018457dec5604848f246338 | d8f15145fac127c1c7294f01ad39187f76b76ac2 | refs/heads/master | 2022-11-12T20:51:18.832798 | 2018-05-31T04:35:17 | 2018-05-31T04:35:17 | 134,810,313 | 0 | 1 | BSD-3-Clause | 2022-10-26T07:05:14 | 2018-05-25T06:01:32 | Python | UTF-8 | Python | false | false | 1,061 | py | import os
import unittest
from ctypes import *
import _ctypes_test
lib = CDLL(getattr(_ctypes_test, '__file__', os.environ['TEST_EXECUTABLE']))
def three_way_cmp(x, y):
"""Return -1 if x < y, 0 if x == y and 1 if x > y"""
return (x > y) - (x < y)
class LibTest(unittest.TestCase):
def test_sqrt(self):... | [
"lee.wonmoh@gmail.com"
] | lee.wonmoh@gmail.com |
aa449764d52118287c1fc3fa4711f16623b1b7b4 | 786de89be635eb21295070a6a3452f3a7fe6712c | /pyfilter/tags/V00-00-02/SConscript | b90f5b35b6ff8d41f219129c5334db4516c25d0c | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | #--------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# SConscript file for package pyfilter_cspad
#------------------------------------------------------------------------
# Do not delete following line, it must be present in
# SConscrip... | [
"ofte@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | ofte@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 | |
1d09cc370bb9c6f779f6d0f5d67e379f649e2490 | a33e380ba70fa915bd3a6199cf88dcfa38ca5fab | /backpack/extensions/firstorder/sum_grad_squared/conv3d.py | 985b24dbd0d6f3cf430968e3ead63f56ce065402 | [
"MIT"
] | permissive | f-dangel/backpack | 1c90aaacad4569dd3153342ad68864466389767c | 1ebfb4055be72ed9e0f9d101d78806bd4119645e | refs/heads/master | 2023-08-14T05:49:31.904383 | 2023-07-12T18:17:34 | 2023-07-12T18:17:34 | 196,406,270 | 505 | 61 | MIT | 2023-09-05T14:06:32 | 2019-07-11T14:03:56 | Python | UTF-8 | Python | false | false | 277 | py | from backpack.core.derivatives.conv3d import Conv3DDerivatives
from backpack.extensions.firstorder.sum_grad_squared.sgs_base import SGSBase
class SGSConv3d(SGSBase):
def __init__(self):
super().__init__(derivatives=Conv3DDerivatives(), params=["bias", "weight"])
| [
"noreply@github.com"
] | f-dangel.noreply@github.com |
9d3cad3812063273e893b4ede1e8dafcbcd82f60 | f4713830c8519daca9d75ec692a6937ee03c74d4 | /Problems/Algorithms/6. Zigzag Conversion/zigzag_conversion.py | 1c906205c44af0263f6df229e5e1e6d6ec078629 | [
"MIT"
] | permissive | xuedong/leet-code | a0dd38cb884292de9d947718bb00160eff2b0f00 | 285d49cd7061ec43368d63b7c7c56763be520570 | refs/heads/master | 2023-09-03T02:38:55.932182 | 2023-09-02T18:35:42 | 2023-09-02T18:35:42 | 189,745,542 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | class Solution:
def convert(self, s: str, numRows: int) -> str:
if numRows == 1 or numRows >= len(s):
return s
result = [''] * numRows
index, step = 0, 1
for ch in s:
result[index] += ch
if index == 0:
step = 1
elif in... | [
"shang.xuedong@yahoo.fr"
] | shang.xuedong@yahoo.fr |
29b95f138e6273fc6a7837e2c959929dd2495250 | 1b72ba557512a33c6fe896648496233448550ce6 | /top_100_liked/python3/linked_list_cycle_ii.py | d77a3fd29a5d38da8206312042a5c3c41ffad0a7 | [] | no_license | henrylaih41/LeetCode | e59c8c091186935dd88ffdfe6d52c270ddb4bc20 | 1ea2880c2c1ff03b23ac8f4a278acbe02cdaee99 | refs/heads/main | 2023-07-30T23:25:46.068109 | 2021-09-16T02:48:46 | 2021-09-16T02:48:46 | 342,108,527 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def detectCycle(self, head: ListNode) -> ListNode:
if(head == None):
return head
slow, fast, cnt = head, head, -1
while(slow.nex... | [
"henrylaih41@gmail.com"
] | henrylaih41@gmail.com |
fdaa7b99de99e05bd74054d9d9a91f6862f5f31d | 28691ec55ebce9ec7045d12ea9675932ce12d671 | /py2rhino-project/branches/sandbox2/py2rhino/_make/data/parser_out/application/status_bar_message.py | 0470375c7fbe0ae13a7e4fc44f53ae0dc233363b | [] | no_license | ianclarksmith/design-automation | 1e71315193effc0c18b4a8b41300bda6f41a3f09 | e27cc028fe582395f4a62f06697137867bb0fc33 | refs/heads/master | 2020-04-22T22:28:39.385395 | 2009-10-26T02:48:37 | 2009-10-26T02:48:37 | 37,266,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | status_bar_message = {
"input_folder_name": "Application_Methods",
"input_file_name": "StatusBarMessage",
"output_package_name": "application",
"output_module_name": "status_bar_message",
"doc_html": """
Sets Rhino's status bar message pane.
""",
"syntax_html": {
... | [
"patrick.ht.janssen@d56020b2-6ac5-11de-89a9-0b20f3e2dceb"
] | patrick.ht.janssen@d56020b2-6ac5-11de-89a9-0b20f3e2dceb |
9425c3be6ddb72814984849d44eae92a8a4d8b9d | 2fc197681ac9cdd0346fe9ab56d9aa4d59b6f1d0 | /polyaxon/dockerizer/management/commands/build.py | 99863a51adb976a64db9492abdd3a1c248a841b7 | [
"MIT"
] | permissive | dtaniwaki/polyaxon | 32e0fcfc4cd4b46d1d502ae26cd285dc9c11d55a | 04e3c9c9a732a2128233e8d1db1bdc1647fe7c55 | refs/heads/master | 2020-03-20T08:16:33.334881 | 2018-06-13T22:40:17 | 2018-06-13T22:40:17 | 137,303,634 | 0 | 0 | null | 2018-06-14T03:53:13 | 2018-06-14T03:53:13 | null | UTF-8 | Python | false | false | 1,780 | py | import logging
from docker.errors import DockerException
from django.core.management.base import BaseCommand
from constants.jobs import JobLifeCycle
from db.models.build_jobs import BuildJob
from dockerizer import builder
_logger = logging.getLogger('polyaxon.dockerizer.commands')
class Command(BaseCommand):
... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
dba7969de7046503cf8be5a1ddab4c51cdfcf894 | 3b15dc211cb6c034f4d843b1bbc540f1699182f7 | /md5解密.py | e6ae37e3f183b7bfe5bde7ab169d248396b50292 | [] | no_license | Hanlen520/- | eea27d5a1272272a2f47f9070f285e44300ab0d2 | 308d3401ff368cd11f4aeac7949d57c3136f2b6e | refs/heads/master | 2023-03-15T19:18:25.168665 | 2020-07-05T14:39:41 | 2020-07-05T14:39:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | # -*- coding: utf-8 -*-
import string
import hashlib
file = open("hello.txt", "a")
md5input = input("请输入md5:\n")
md5input = md5input.lower()
apt = string.printable[:-6]
def dfs(s, num):
m = hashlib.md5()
m.update(s)
md5temp = m.hexdigest()
if md5temp == md5input:
file.write("md5是:" + md5input... | [
"admiwj@outlook.com"
] | admiwj@outlook.com |
08ee883019be1663f6708492359b91ac290d488a | 4fa3cbe2fd0331c8b4e441ff7fca3cbf178f146e | /lectures/code/numpy_attr.py | cdab915cd0ea3a6b621c5be2edd02bb953d42f65 | [
"MIT"
] | permissive | naskoch/python_course | ee909243b5be730694b0f8a1a9f9e8722235e625 | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | refs/heads/master | 2020-04-03T09:52:45.858591 | 2016-09-26T16:44:20 | 2016-09-26T16:44:20 | 69,268,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | a = np.arange(10).reshape((2,5))
a.ndim # 2 dimension
a.shape # (2, 5) shape of array
a.size # 10 # of elements
a.T # transpose
a.dtype # data type
| [
"naskoch@stanford.edu"
] | naskoch@stanford.edu |
899a1b50a288e922938ecb1f75f529f7c79d8693 | 0c212aa63d07e84fbad849d15f2ee6a72aea82d2 | /18-DRF/TlxyDRF/case01/migrations/0001_initial.py | 6e745a793f7c1c963ef582a2d054b117b67c6ef0 | [] | no_license | flyingtothe/Python | e55b54e1b646d391550c8ced12ee92055c902c63 | 064964cb30308a38eefa5dc3059c065fcb89dd9f | refs/heads/master | 2021-08-06T19:44:42.137076 | 2018-12-03T12:15:15 | 2018-12-03T12:15:15 | 145,518,863 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | # Generated by Django 2.1.2 on 2018-11-19 03:52
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ClassRoom',
fields=[
('id', models.AutoFiel... | [
"="
] | = |
43ee85d1d0020f03d08844e9180d2f5f49d41c6a | e187260767c99c8d5119b765e127e589823c6c11 | /exercises/ex9.py | cae8e4a9d5373c0ff2c541f22ae56be18825a24e | [] | no_license | bongadub/Python_Course | a9b11fde0b116312230ce7ce6ce9a0e54fd840e3 | 4b4556eb496068a690db74cd90e3c3c2c713b5c1 | refs/heads/master | 2020-04-02T16:42:54.583854 | 2018-11-02T07:57:00 | 2018-11-02T07:57:00 | 154,625,307 | 0 | 0 | null | 2018-10-25T10:12:29 | 2018-10-25T07:05:10 | Python | UTF-8 | Python | false | false | 373 | py | # Here's some new strange stuff, remember type it exactly
days = "Mon Tue Wed Thu Fri Sat Sun"
months = "\nJan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug"
print "Here are the days: ", days
print "Here are months: ", months
print """
There's something going on here.
With the three double-quotes.
We'll be able to type as much... | [
"bonga@kineticskunk.com"
] | bonga@kineticskunk.com |
4c19b3794c6a878d4ca95b9999586111aea9d568 | cf4f3c181dc04c4e698b53c3bb5dd5373b0cc1f4 | /meridian/acupoints/xuanlu22.py | 9c0022c45df5391a7efc221c27921336c98a3c72 | [
"Apache-2.0"
] | permissive | sinotradition/meridian | da3bba6fe42d3f91397bdf54520b3085f7c3bf1d | 8c6c1762b204b72346be4bbfb74dedd792ae3024 | refs/heads/master | 2021-01-10T03:20:18.367965 | 2015-12-14T14:58:35 | 2015-12-14T14:58:35 | 46,456,260 | 5 | 3 | null | 2015-11-29T15:00:20 | 2015-11-19T00:21:00 | Python | UTF-8 | Python | false | false | 241 | py | #!/usr/bin/python
#coding=utf-8
'''
@author: sheng
@license:
'''
SPELL=u'xuánlú'
CN=u'悬颅'
NAME=u'xuanlu22'
CHANNEL='gallbladder'
CHANNEL_FULLNAME='GallbladderChannelofFoot-Shaoyang'
SEQ='GB5'
if __name__ == '__main__':
pass
| [
"sinotradition@gmail.com"
] | sinotradition@gmail.com |
01566f12ce03db900b27913ee207ecd0d68ca87e | 0131d8d133725aed18f0a5838ec49878c0a85cfe | /opy/compiler2/symbols_test.py | 22a87b8f78dc42195f09ba7585ba3524a7a78856 | [
"Apache-2.0"
] | permissive | bysshe/oil | 0d7e853adb2aa8560832eed72daf1284955b5573 | 62cd4928c0e71f9cd254062204227a8d8cf1cb23 | refs/heads/master | 2021-01-19T23:54:01.609581 | 2017-04-17T15:58:29 | 2017-04-17T21:53:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,868 | py | #!/usr/bin/python -S
"""
symbols_test.py: Tests for symbols.py
Copied out of symbols.py. You pass this some filenames.
"""
import sys
import symtable
import unittest
from compiler2 import symbols
from compiler2 import transformer
from compiler2.transformer import parseFile
from compiler2.visitor import walk
def ... | [
"andy@oilshell.org"
] | andy@oilshell.org |
1ada6f5a8330e25292d68f7235be901d9649f5c3 | fcf71d8ed3a0d05750a0caba93f2f9cdb9ec0adc | /3.python/my_py_src_all/Eduzone/eduzoneGmm/zocbo_proc/eduzone_v2.py | c60616554c0f3cf5001acfaf0139107955691c4c | [] | no_license | handol/python_study | a6e6faeae2213a66b303524b57550c879c83c190 | 4d4cf3847c29ef363c1b8fd10bf2525d6f801ddd | refs/heads/master | 2021-01-10T21:20:31.140133 | 2013-03-28T06:30:16 | 2013-03-28T06:30:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,423 | py | #!/usr/bin/env python
# -*- coding=utf-8 -*-
import os
import math
from Vector import Vector
def loadUserInfo(fname):
fp = open(fname)
userdict = {}
for line in fp:
flds = line.split(",")
if len(flds) < 2: continue
user = int(flds[0])
numcoms = int(flds[1])
userdict[user] = numcoms
fp.close()
return use... | [
"jiinhan@iMac.local"
] | jiinhan@iMac.local |
27fcf01a92260785d3d5083976937225465edae9 | 8ef5a09d76a11c56963f18e6a08474a1a8bafe3c | /leet_code/1218. Longest Arithmetic Subsequence of Given Difference.py | 693eb8af2b0dc3dd370eee6cb604e4914821d178 | [] | no_license | roiei/algo | 32c4677649c7666db148f6183fbfbf66c8b1969f | ae8bb8bf4ae4026ccaf1dce323b4098547dd35ec | refs/heads/master | 2022-04-01T19:21:27.768675 | 2022-02-19T06:15:29 | 2022-02-19T06:15:29 | 169,021,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | import time
from util.util_list import *
from util.util_tree import *
import copy
import collections
import heapq
class Solution(object):
def longestSubsequence(self, arr, difference):
"""
:type arr: List[int]
:type difference: int
:rtype: int
"""
n =... | [
"hyoukjea.son@hyundai.com"
] | hyoukjea.son@hyundai.com |
d86d6a283bb2fb453ea54c2c7e4a1e6f2d0e6bd6 | dc51e4714820d991e7d0e94b3e9eac4dbc67eea7 | /project/project_app/migrations/0001_initial.py | 99e804a5a68426cea67e28f48e34c493380e3339 | [] | no_license | ruoxiaojie/Django | 537d27abe9ebb85e0dfc69585f318a87e7514a70 | 92b88600953cd4ff743032cab3d4785437c949e0 | refs/heads/master | 2021-01-15T22:18:56.033883 | 2018-03-09T06:15:46 | 2018-03-09T06:15:46 | 99,894,862 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-11-20 07:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Host',... | [
"475030894@qq.com"
] | 475030894@qq.com |
0d08788ffe35008b350722bba8ab193638fa377c | 0e0ec371d0afe83433602315d466ef74387d5cb9 | /casper/contracts/purity_checker.py | 1a642f1d0c7a6311604275dc305a9cf9dd2157df | [
"Unlicense"
] | permissive | emirhod/casper | 0bab68237f5af8b5680727b593cec3076bf86bc7 | e100a6ab43ffcc6852f246293c1101402c85b1f9 | refs/heads/master | 2023-08-14T20:50:31.307624 | 2019-03-28T02:20:30 | 2019-03-28T02:20:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,737 | py | ## This Python source code hosts the Vyper LLL used for the purity checker.
## The purity checker scans a contract's bytecode to see if it uses any operations that rely on (external) mutable state.
## This code was ported from an original written in the deprecated Serpent: https://github.com/ethereum/research/blob/mast... | [
"r.alex.stokes@gmail.com"
] | r.alex.stokes@gmail.com |
4082e19014bf04f02b61509974d6914a4b09b69a | d09e350a40c1ba78e9cdbf62edeffe3cdc3c8050 | /python/library/upload.py | ca5d72f56577d384a04ccffb5de464eab525cf70 | [] | no_license | issyu-summer/base | 18fe8907d5f1be4e34ab488ec549756f7d546e4b | c4189d17e393fe5ffe8bf601f436fd7a8b34a3f2 | refs/heads/master | 2023-06-15T04:34:33.981405 | 2021-07-16T04:12:51 | 2021-07-16T04:12:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,651 | py | import time, datetime, random, re, os
from config.env import Env
from library.file_eo import FileEo
from library.aliyun.oss import Oss
from util.util import Util
from util.base64 import Base64
# 上传类
class Upload:
# 机器标识
machineId: str = str(Env.machine_id)
# 单文件
def File(file, params={}):
# 参数
param ... | [
"klingsoul@163.com"
] | klingsoul@163.com |
5a2133b9ad94cfa2f7b64e441f7ce65dc6274647 | 45b64f620e474ac6d6b2c04fbad2730f67a62b8e | /Varsity-Final-Project-by-Django-master/.history/project/authentication/views_20210227002839.py | 5df6be32a07f0008a2a436cec3366f966cb591be | [] | no_license | ashimmitra/Final-Project | 99de00b691960e25b1ad05c2c680015a439277e0 | a3e1d3c9d377e7b95b3eaf4dbf757a84a3858003 | refs/heads/master | 2023-04-11T06:12:35.123255 | 2021-04-26T15:41:52 | 2021-04-26T15:41:52 | 361,796,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | from django.shortcuts import render,redirect
from django.contrib.auth import authentication,login
def login(request):
if request.method == 'POST':
name=request.POST['name']
password=request.POST['password']
return render(request,'authentication/login.html')
def registration(request):
retur... | [
"34328617+ashimmitra@users.noreply.github.com"
] | 34328617+ashimmitra@users.noreply.github.com |
b0982b4bdb0919ad0301ede7ead5a39f4912160e | 6819e9344d7c48e968631c125c9c52939584167b | /utils/tail.py | e91881cb36f4ba1c25a90810ed912b72b36f252a | [] | no_license | arry-lee/chesssparrow | 28f19863fe9b1217d1e70202c36e450af935b2b3 | b8ca2fa1c8054d58fbad1386c33f0cc008373eef | refs/heads/main | 2023-08-16T22:52:43.495851 | 2021-09-16T14:30:54 | 2021-09-16T14:30:54 | 405,949,921 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,501 | py | from moviepy.editor import *
from PIL import Image,ImageDraw,ImageFont
import numpy as np
from pgnparser import txt2board
def board2pic(b,players = None,bg_color=(118,37,47),
background=None, fr=None, to=None, choices=None,
comment=None,rotate=False,blind=False):
frames = []
new_screen = Image.new('RGB',(... | [
"arry_lee@qq.com"
] | arry_lee@qq.com |
e690ed17293d71dcb130d4e0bcf7908a6c1adcfd | deaf519d1ee104784a56df98a7eb3705efbd1120 | /python_study/show.py | edcde8dd8e061c4f7e2d8b3fdfd6306e35bb0dbd | [] | no_license | 606keng/weeds_study | 6391fbb47fb06abf67b7651250373f169fbdfd3e | df9d96009cbdf84176efbf4b02f43cb1d5208524 | refs/heads/master | 2021-04-23T07:43:52.472097 | 2021-04-07T13:10:58 | 2021-04-07T13:10:58 | 249,910,294 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | #!usr/bin/env python
# -*- coding:utf-8 -*-
"""
@author:doulihang
@file: show.py
@time: 2020/07/16
@remark:
"""
import gril
def send():
print(f"show has_gril id is {id(gril.has_gril)}")
if gril.has_gril:
print("发女朋友了")
else:
print("单身贵族")
| [
"18791076614@163.com"
] | 18791076614@163.com |
e8d8947b8e2ab048a5c946898b74dfba09a99346 | 3e2bc48b1242ea3e5fadb22a62393fc954ee9be9 | /CodeForces_629_D_Babel_Cakes.py | 3c164cb5cd22bc1bcfad9a7eed5eabd3b7ab07cb | [] | no_license | Cbkhare/Challenges | 397e9c9d50f3408b7a510d68d7484a249afa1968 | 0ae57bfbb2579c8b80af8708cd408d9b858d9d28 | refs/heads/master | 2020-12-18T11:47:27.669359 | 2020-08-22T11:20:46 | 2020-08-22T11:20:58 | 40,669,940 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,831 | py | from math import pi
if __name__=='__main__':
g = {} #Dictionary to store results
def bazinga(i,C):
if C=={}:
return 0
else:
k = i
if k in g:
return (g[k])
else:
p_vols = [] #possible v... | [
"chitrabasukhare89@gmail.com"
] | chitrabasukhare89@gmail.com |
b1fac9cf138ea9a6adad7486894051065cf0b561 | 5a25edcf994a760688dc7c933e8071bf4ff24df3 | /exercises/ja/exc_01_08_01.py | 3a25621aa4af33a555e97bc03a542976561eae25 | [
"CC-BY-NC-4.0",
"MIT"
] | permissive | heyMP/spacy-course | 8762990ed6179011680730d9c24d5d34c0a8d954 | 3740c717f0d1090b01c1b0fe23f8e30af3bf0101 | refs/heads/master | 2022-11-07T21:52:15.479840 | 2020-06-25T18:13:44 | 2020-06-25T18:13:44 | 275,202,487 | 1 | 0 | MIT | 2020-06-26T16:39:32 | 2020-06-26T16:39:31 | null | UTF-8 | Python | false | false | 468 | py | import spacy
nlp = spacy.load("en_core_web_sm")
text = "It’s official: Apple is the first U.S. public company to reach a $1 trillion market value"
# テキストを処理
doc = ____
for token in doc:
# トークンの文字列、品詞タグ、依存関係ラベルを取得
token_text = ____.____
token_pos = ____.____
token_dep = ____.____
# フォーマットしてプリント
... | [
"tamuhey@gmail.com"
] | tamuhey@gmail.com |
be1d09a3d7f9177a437bfa4c6d6a54306813bf90 | 9d329940311cfd1a6ea822dd89cc8aafba304bd0 | /senstest.py | 179eb6905c4f51b6f14f0cc2cda85f8dac0e017d | [] | no_license | sona1111/car2 | 59aadac63e410ac22dd65bf181b0c4bcfa365346 | dd9252776996e7980e18ee723a393d0bc58aca5a | refs/heads/master | 2021-01-19T08:49:08.165332 | 2015-01-29T18:40:09 | 2015-01-29T18:40:09 | 30,036,188 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,003 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import RPi.GPIO as GPIO
from threading import Thread
# Which GPIO's are used [0]=BCM Port Number [1]=BCM Name [2]=Use [3]=Pin
# ----------------------------------------------------------------------
arrgpio = [(17,"GPIO0","Echo",11),(18,"GPIO7","Trig",12)]
ar... | [
"root@raspberrypi.(none)"
] | root@raspberrypi.(none) |
d92ab1de6ef77d4b45aa812543a1c7cb896a94a8 | d8fe787569b6bfbff06c7e70a8f0489779087b6f | /SBaaS_statistics/stage02_quantification_analysis_io.py | 6d44bdd220db69e95ae51daecccf83658f568bdf | [
"MIT"
] | permissive | dmccloskey/SBaaS_statistics | d1bb8947cbbd2b656cc232398037c5d47c65d273 | cb380c01d2425d0db7e305cad8bad2b3fb38cd9d | refs/heads/master | 2023-01-23T21:27:29.616143 | 2017-09-30T10:49:13 | 2017-09-30T10:49:13 | 51,103,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | from .stage02_quantification_analysis_query import stage02_quantification_analysis_query
from SBaaS_base.sbaas_template_io import sbaas_template_io
# Resources
from io_utilities.base_importData import base_importData
from io_utilities.base_exportData import base_exportData
class stage02_quantification_analysis_io(stag... | [
"dmccloskey87@gmail.com"
] | dmccloskey87@gmail.com |
09def5ff63392ac048495c2f89ea0569b5d3ba9a | 26e91aead18d0fad6f5ce8fc4adf7d8e05a2f07f | /byceps/services/ticketing/models/ticket_bundle.py | e422c433232801b09077ad28992e63f0a22b70d3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | leathe/byceps | 40c1f8a1aab3521fcac45d88eab6364d448d4e67 | cd0c618af63fed1cd7006bb67da46eac0ddbb1c7 | refs/heads/master | 2020-12-02T09:02:51.087511 | 2019-12-14T17:00:22 | 2019-12-14T17:00:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | """
byceps.services.ticketing.models.ticket_bundle
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2019 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from datetime import datetime
from ....database import db, generate_uuid
from ....typing import UserID
from ....util.instan... | [
"homework@nwsnet.de"
] | homework@nwsnet.de |
ba42d7134fc4a58824be4924f0acbc9e98109b3a | 656df056ad736fdaaa1ef428ef09786c5a3d1494 | /codigo/m5stack/BME280_test.py | b0e2bc18004160d69dd01af797995b206198f7ff | [] | no_license | javacasm/micropythonTutorial | a610024096b50512347bcb72937facd41cf6db8e | cc90e26763ef884e0311eecccc6c72c6c94a0a30 | refs/heads/master | 2022-02-03T20:06:10.315551 | 2022-01-25T11:02:09 | 2022-01-25T11:02:09 | 159,473,846 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,324 | py | ## Medida de temperatura, humedad y presion ocn sensor BME280 ma
import machine # Usaremos los pines y el I2C
import BME280 # Importamos la clase BME280
from m5stack import *
from m5ui import *
v = 0.7
def testBME280():
i2c = machine.I2C(sda = machine.Pin(21),scl = machine.Pin(22)) # configuramos el acceso al b... | [
"javacasm@gmail.com"
] | javacasm@gmail.com |
f4d5e723e9dcbbb04f09915e66e4ac0b5daea7e4 | 8009cf908c1968be35b4a6e6ecaef111b7c0faf6 | /src/you_get/downloader/__init__.py | 0b85ad8a093d6caa26c82eb0d53f3eda273ae982 | [
"MIT"
] | permissive | saggit/you-get | 38a870dcaa904d9f23bc085d99cfe86a56f8f476 | 2b637b68c547127ba790950fddcaef6f0157de54 | refs/heads/master | 2020-12-25T01:32:06.286698 | 2013-06-04T22:18:44 | 2013-06-04T22:18:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | #!/usr/bin/env python
from .acfun import *
from .baidu import *
from .bilibili import *
from .blip import *
from .cntv import *
from .coursera import *
from .dailymotion import *
from .douban import *
from .facebook import *
from .freesound import *
from .google import *
from .ifeng import *
from .iqiyi import *
from ... | [
"mort.yao@gmail.com"
] | mort.yao@gmail.com |
eb64f6652690c65a7431bbd315407b7860231e52 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_2/eyrros001/question2.py | 1de8ac711280dd175f4e2da2130ca6b6dce5f7af | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,408 | py | print("Welcome to the 30 Second Rule Expert")
print("------------------------------------")
print("Answer the following questions by selecting from among the options.")
a = input("Did anyone see you? (yes/no)\n").lower()
eat = False
call = False
if a[0]=='y':
a = input("Was it a boss/lover/parent? (yes... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
fd9be4ec83b4a1e855d9bc50239ad98ddd402344 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02630/s916282817.py | 4424deb1cb800811643e4d58d83127e634dd209f | [] | 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 | 301 | py | from collections import defaultdict
N = int(input())
li = [int(x) for x in input().split()]
Q = int(input())
d = defaultdict(int)
for i in li:
d[i] += 1
ans = sum(li)
for i in range(Q):
B, C = map(int, input().split())
ans += (C - B) * d[B]
d[C] += d[B]
d[B] = 0
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
16ac619c96d0966ad113056dcc9681810007b380 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03043/s527389795.py | 9f3a7eeedddcf95244075199188cac8cb409a3bf | [] | 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 | 205 | py | n, k = map(int, input().split())
import math
ans = 0
for i in range(1, n+1):
if i < k:
power = math.ceil(math.log2(k/i))
else:
power = 0
ans += pow(0.5, power)
print(ans / n) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f2c4883f142af6e45127bab566fc6d3bfc217acc | 1fa87e282cfc2fef9dac8e1fba042a88654cf425 | /examples/rtm_http_start.py | 987143f333fa10c8dcab021b7125a1dc443ba07d | [
"MIT"
] | permissive | mozillazg/aiobearychat | 1bfabe1f34b06946f484fe6139f4cf57484a351f | 4dd5771004ceb0d563b7c9615b33c1fafbc0a219 | refs/heads/master | 2023-09-01T20:44:38.751139 | 2017-08-27T03:22:17 | 2017-08-27T03:22:17 | 100,842,390 | 2 | 0 | null | 2017-08-25T23:45:23 | 2017-08-20T06:13:53 | Python | UTF-8 | Python | false | false | 575 | py | # -*- coding: utf-8 -*-
"""获取 RTM 模式的连接地址和用户信息"""
import asyncio
import os
from pprint import pprint
import aiohttp
from aiobearychat.rtm.aiohttp import RtmAPI
async def main(token):
async with aiohttp.ClientSession() as session:
api = RtmAPI(session, token=token)
response = await api.start()
... | [
"mozillazg101@gmail.com"
] | mozillazg101@gmail.com |
e0e01510152cbe2f4701c0c1b7329c1093bafe8f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03062/s576505293.py | d300446c333a7e76f658433b57df9331d029f926 | [] | 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 | 422 | py | N=int(input())
A=list(map(int,input().split()))
A.sort()
count=0
zer=0
for i in range(N):
if A[i]<0:
count+=1
if A[i]==0:
zer+=1
ans=0
if zer!=0:
for i in range(N):
if A[i]<0:
A[i]=-A[i]
ans+=A[i]
else:
if count%2==0:
for i in range(N):
if A[i]<0:
A[i]=-A[i]
ans+=A[... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f2dacc54eb39aca32c263a2bdd10bfbf330ab36f | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY1JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544841/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_120/run_cfg.py | 7d34c93a4fbcb8b9d184cb1907428a3fa3f67991 | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY1JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544841/HTT_24Jul_newTES_manzoni_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
7b761d5f1f645422acc8c23d90fe00328557a219 | 3431aa0a966505c601171393e9edcd2345813268 | /analysis/tbd/xi-jack.py | 0f1d76f799dd14034ceefd9228ab06ae6033be04 | [
"MIT"
] | permissive | mehdirezaie/LSSutils | 34eeeb6efbf2b5c4c0c336c1f9f2fabc821def39 | af4697d9f4b4fc4dbab44787108d7aa538ca846d | refs/heads/master | 2023-08-17T17:58:03.310073 | 2023-08-16T11:29:23 | 2023-08-16T11:29:23 | 200,747,239 | 3 | 0 | MIT | 2021-11-09T15:12:30 | 2019-08-06T00:25:07 | Jupyter Notebook | UTF-8 | Python | false | false | 2,549 | py | '''
code that calculates the auto/cross correlation functions
using healpix based estimator
created 4/3/2018 - Mehdi Rezaie
'''
import os
import sys
sys.path.append('/global/homes/m/mehdi/github/DESILSS')
import xi
import numpy as np
import healpy as hp
import fitsio as ft
from time import time
from a... | [
"medirz90@icloud.com"
] | medirz90@icloud.com |
185c53863f0b109e4ede9225bc3c64cf7a6e8e5d | 7dd2c86659d5b78663517aec8c77866079456509 | /src/warhammer/unit.py | a61628f1bd2b7d147cd475f0be5b9d59c0f05deb | [
"MIT"
] | permissive | Peilonrayz/warhammer | 8c0270627d22aa893397066909200e2f54ea0e90 | 76610bf3c64418f914efb9ff3336daacdd6c5c4c | refs/heads/master | 2021-01-09T13:40:15.358542 | 2020-02-22T09:56:44 | 2020-02-22T09:56:44 | 242,322,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,334 | py | from __future__ import annotations
import functools
import numbers
import operator
from typing import Optional, Union
from . import item_amount, models, unit_attack
TModel = Union[models.Model, models.ModelWrapper]
Number = numbers.Real
class Unit(item_amount.ItemAmount[TModel]):
def __str__(self) -> str:
... | [
"peilonrayz@gmail.com"
] | peilonrayz@gmail.com |
18fe25d669706984e167fa3587dc49c03a79d247 | f8eb63aafff0dd1a27cd5af7b82e6d85f6768d33 | /Algorithm/BOJ/flip.py | 3b083f0d15826881a98229d4ff252df68f82096b | [] | no_license | Lagom92/TIL | 1e982fb12c34ea8ef2c4d17ea734551c2acaa7fe | dd47672f14e6e108afa7988887304c05b27afbd9 | refs/heads/master | 2022-09-22T20:38:27.557064 | 2022-08-31T07:10:12 | 2022-08-31T07:10:12 | 220,413,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | # 백준 1439번 뒤집기
# https://www.acmicpc.net/problem/1439
'''
1 => 0 으로 또는 0 => 1으로 변경하는것
포인트
첫번째 값이 무엇인지(0 or 1)
1에서 0으로 바뀌거나 0에서 1로 바뀌는 횟수
'''
S = input()
print(S)
# 전부 0로 만드는 경우
cnt0 = 0
# 전부 1로 만드는 경우
cnt1 = 0
# 첫 번째 값을 바꿔주는 것
if S[0] == '0':
cnt1 += 1
else:
cnt0 += 1
for i in range(len(S)-1):
if S[i]... | [
"jyyt0147@gmail.com"
] | jyyt0147@gmail.com |
9d592c28ab7e3b15ac558aac8daa8b409df95236 | b57b0a14df5c6841f04cccb7b02ad04afbca18f8 | /vault/datadog_checks/vault/config_models/instance.py | 168b94d3fa87b748a78be7714d8a5d31c28a9c33 | [
"AFL-3.0",
"BSD-3-Clause-Modification",
"LGPL-3.0-only",
"Unlicense",
"LGPL-2.1-only",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zeroc0d3/integrations-core | d9c99803c049668b7f9f9c796d338e343d3d46ee | 634d567f3c38d32aabb3f4c16b50bcfa8a4ae0fb | refs/heads/master | 2021-09-28T18:37:00.650406 | 2021-09-13T11:59:45 | 2021-09-13T11:59:45 | 199,758,958 | 0 | 0 | BSD-3-Clause | 2019-07-31T02:01:25 | 2019-07-31T02:01:24 | null | UTF-8 | Python | false | false | 3,046 | py | # (C) Datadog, Inc. 2021-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
from __future__ import annotations
from typing import Any, Mapping, Optional, Sequence
from pydantic import BaseModel, root_validator, validator
from datadog_checks.base.utils.functions import identity
... | [
"noreply@github.com"
] | zeroc0d3.noreply@github.com |
9739cbb0b1c4248c85ba62d19a3aad61b33a3889 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/96/usersdata/218/54633/submittedfiles/estatistica.py | 4fab4e32e4fb3497717a5179ebfe7d773740b4ac | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | # -*- coding: utf-8 -*-
def media(lista):
soma = 0
for i in range(0,len(lista),1):
soma = soma + lista[i]
resultado = soma/len(lista)
return resultado
#Baseado na função acima, escreva a função para calcular o desvio padrão de uma lista
def desvio(lista):
soma=0
for i in range(0,len(l... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f92862395c8299eea8a38c6b2d907aca7defdbe8 | 6e210a6ff416b490df7e198f6364793f8eade7bd | /VersionInc.py | c165cee632e5ed9f1b643c4536026685344d741b | [] | no_license | MCasari-PMEL/Test | 96bab7ffe8a0efbceb25bdc3ed2b1cd92c934685 | fce282999e1bec86a9307b19bffa0a301ead4279 | refs/heads/master | 2021-01-12T05:38:34.131595 | 2016-12-22T17:43:44 | 2016-12-22T17:43:44 | 77,159,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,153 | py | #version number update script
'''
---------version number format---------
major.minor.version.build
major number
0 - Alpha
1 - Beta
2 - Release candidate
3 - Release version
minor number
0 - Initial
version
Github version number increment
build
build/make increment number
... | [
"matthew.casari@noaa.gov"
] | matthew.casari@noaa.gov |
c10f131927bbc60f53589f5f3de5bcb3b788234a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03079/s783155441.py | 809fcc126f27f75e3847a15f19e2e350a1f62c53 | [] | 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 | 197 | py | import numpy as np
import sys
A, B, C = map(int, input().split(" "))
if A == B and B == C:
sys.stdout.write("Yes")
sys.stdout.flush()
else:
sys.stdout.write("No")
sys.stdout.flush() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
946e8579c80310ccdf494643a149726cce1219b2 | 5780a36bc8799a1703879de6012bb6bcb025720a | /Medium/pairAndSum/pairAndSum.py3 | bdf4d0bfa7fd481306b9dc9b28805b3fd17e0f38 | [] | no_license | bsuverzabaek/Code-Chef-Exercises | 4da9dfcabd6c37ea94239a307ba3f6b54e2d1ae0 | a3f23dc9fa0c0a92fc2df3592473102e03b06fad | refs/heads/main | 2023-08-11T14:21:13.832378 | 2021-09-20T06:01:43 | 2021-09-20T06:01:43 | 323,809,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py3 | def choose2(n):
r = n
return (r*(r-1))>>1
N = int(input())
assert(N<=100000), "N must be <= 10^5"
bitCounts = [0]*32
x = (list(map(int,input().split())))[:N]
for i in range(0,N):
assert(x[i]<=1000000000), "A["+str(i)+"] must be <= 10^9"
for j in range(0,32):
if ((x[i]&1)!=0):
bitCounts[j] += 1
x[i] >... | [
"noreply@github.com"
] | bsuverzabaek.noreply@github.com |
4131c660e49e3a5739f3499ffb9c0010903715ac | 616d9742dc2120500684ed093d28883c53a5be6b | /scripts/dataGenerator.py | fb7576549b2b828a78fb8159a5c153c38ca88b78 | [] | no_license | jamesmf/molecularFormula | e4f6b1d115fc9513137e8e31e9c537ca90b4b03d | d0156acc0533330398114c819d9451d1b04d2276 | refs/heads/master | 2021-01-10T10:33:21.896065 | 2016-01-29T21:33:37 | 2016-01-29T21:33:37 | 44,991,127 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,520 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 11 14:57:12 2015
@author: test
"""
"""create a service that keeps a folder full of randomly generated images"""
from os import listdir
from os.path import isdir
from os import mkdir
from os.path import isfile
from random import shuffle
import sys
import time
import hel... | [
"jamesmfrick@gmail.com"
] | jamesmfrick@gmail.com |
a304338c9458022b1568b5d479cc8c7da1bc692d | fc0216a1a09c53d079d5093d94ab9205b911a082 | /django_comments_xtd/tests/forms.py | 3e0081c24534f453170c91f4895d0e38a5d1ad3d | [
"BSD-2-Clause"
] | permissive | b-dev/django-comments-xtd | cd4ccafe8532eb52e9c40643b195cb09dd159a65 | 95085d8a3378f0f6bb453137044fdc3e7156c0cf | refs/heads/master | 2020-12-27T15:20:19.352568 | 2013-11-27T15:38:35 | 2013-11-27T15:38:35 | 14,751,059 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,793 | py | from django.test import TestCase
from django.contrib import comments
from django_comments_xtd.models import TmpXtdComment
from django_comments_xtd.forms import XtdCommentForm
from django_comments_xtd.tests.models import Article
class GetFormTestCase(TestCase):
def test_get_form(self):
# check function d... | [
"danirus@eml.cc"
] | danirus@eml.cc |
5d0b589306b4380fa20dbef64bf0736579ff44e6 | 2fa29850a978d2077968f01e73a856d3a428a91f | /project/services.py | 73e33b80720a5cc4a53bd2a2cbdc61cc8472e806 | [] | no_license | pybites/stripe-mock | 7e56c87c369649e7b08c5e9b621f0b54af2302b5 | 5939d006466affda97f2bf67451a7df3dfeb067f | refs/heads/master | 2023-01-28T21:58:16.077613 | 2020-12-08T18:13:06 | 2020-12-08T18:13:06 | 319,721,063 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from . import stripe
def create_customer(name=None):
name = name if name else 'Stranger'
customer = stripe.Customer.create(name=name)
return customer
| [
"bobbelderbos@gmail.com"
] | bobbelderbos@gmail.com |
6be094b5a73aa1eec3e84c7f611b5a180ab1761c | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r9/Gen/DecFiles/options/11114042.py | 5480ad4a64428d02d8995f8eaf378917c3e221df | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/11114042.py generated: Fri, 27 Mar 2015 16:10:05
#
# Event Type: 11114042
#
# ASCII decay Descriptor: [B0 -> mu+ mu- mu+ mu-]cc
#
from Configurables import Generation
Generation().EventType = 11114042
Generation().SampleGenerationTool = "SignalRepeatedHad... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
7bf0d2a4c7b6bbb7c1ffa82e9708adfc02934198 | 6e060e9730b58e4d7819335438f915179504e72c | /sale_order_control/sale_order_control.py | a226e4f1256929b41d73a2284417a826d693e6ed | [] | no_license | missionpetroleumgit/addons_missiongit | 4dcdf1d0e79da982670c573d59574a939d1636c0 | 714514719d5d4d96f371dd529a70ac282070c43b | refs/heads/master | 2023-03-10T20:34:10.154050 | 2021-02-24T23:50:20 | 2021-02-24T23:50:20 | 342,027,534 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | # -*- coding: utf-8 -*-
from openerp import api, fields, models, _
from openerp.exceptions import except_orm
class SaleOrder(models.Model):
_inherit = 'sale.order'
SaleOrder()
| [
"daldaz@mission-petroleum.com"
] | daldaz@mission-petroleum.com |
8a0e02fcc0718d3da2f5ece8c47f18c110968d5f | bff706dc4ce7552200e1d515afa9f0c461eb18a5 | /AL_core_vs_coat_hexbin_long_interval.py | 2c2606f7896e86739bd461c292755e7f07334780 | [
"MIT"
] | permissive | annahs/atmos_research | 1fffc24d43ddacf460a6d16f0b5264e6692023c5 | b5853c9b12e327492f8f8ba5069bca3fd2e981c8 | refs/heads/master | 2020-12-25T16:59:30.261245 | 2016-08-10T20:47:59 | 2016-08-10T20:47:59 | 32,475,832 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,739 | py | import sys
import os
import numpy as np
from pprint import pprint
from datetime import datetime
from datetime import timedelta
import mysql.connector
import math
import matplotlib.pyplot as plt
import matplotlib.colors
import matplotlib.cm as cm
from matplotlib import dates
import calendar
#database connection
cnx = ... | [
"sarah.hanna@gmail.com"
] | sarah.hanna@gmail.com |
b9ee84c23711fff422c820c4e6f6974f213ade03 | 906171cc2ff7a669149d807c0e6d6db3fbea5f91 | /python learning/others/super.py | 7e6caa592328e1ffa69d7e7856a286115693ebf4 | [] | no_license | Deanhz/normal_works | a2942e9eab9b51d190039b659b6924fe2fba7ae9 | 7ae3d5b121bb7af38e3c7e6330ce8ff78ceaadb1 | refs/heads/master | 2020-03-25T20:51:02.835663 | 2019-02-18T16:34:44 | 2019-02-18T16:34:44 | 144,149,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 23 10:18:22 2018
@author: Dean
"""
class Bird:
def __init__(self):
self.hungry = True
def eat(self):
if self.hungry:
print("eating...")
self.hungry = False
else:
print("no thanks")
class SongBird(Bird):... | [
"258796762@qq.com"
] | 258796762@qq.com |
2f5e6212a89b6edca74971d5210ec0f2add1a0e3 | bb4dc40ec0b62e5d2fc3ce1234013aebd4e648d5 | /src/modules/customised/payroll_test_2/payroll_copy/hr_payroll_ota/tests/tests.py | a4686e3cb5a829944e7bea910d1c37bea1d75194 | [] | no_license | kakamble-aiims/work | ba6cbaf4c525ff7bc28d0a407f16c829d0c35983 | cd392bf0e80d71c4742568e9c1dd5e5211da56a9 | refs/heads/master | 2022-04-02T14:45:58.515014 | 2019-12-31T14:00:51 | 2019-12-31T14:00:51 | 199,015,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | # This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import unittest
import trytond.tests.test_tryton
from trytond.tests.test_tryton import ModuleTestCase
class HrPayrollOtaTestCase(ModuleTestCase):
'Test Hr Payroll OTA ... | [
"kakamble.aiims@gmail.com"
] | kakamble.aiims@gmail.com |
70f5d8a5281feb8772555711090b587a5db66ce9 | a5e435b14b2022d199ec0e7605c690c085c097f3 | /mysite/blog/models.py | 0d579c924f1a64686ad361b6a92cadc0314d65ab | [] | no_license | Akhtyrtsev/blog | 1e046c192556c90ea1a014f4afe02e127ab7c325 | 3fc44b3b4533d510c15d080960f2816b4e6666f9 | refs/heads/master | 2020-06-30T14:01:44.230750 | 2019-08-12T11:14:39 | 2019-08-12T11:14:39 | 200,848,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,917 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
from taggit.managers import TaggableManager
class PublishedManager(models.Manager):
def get_queryset(self):
return super(PublishedManager, self).get_queryset().filter(... | [
"akhtyrtsev@gmail.com"
] | akhtyrtsev@gmail.com |
3ff3234f09a006b32eaa57943f10f6e49a872807 | 4b8b0be0588f9e5249729f165b72a6b38324837d | /scripts/install_dependencies.py | 4ad45cc72df3b2cde4cf35bb1eaa531f04797fb7 | [] | no_license | GlycReSoft2/embed_tandem_ms_classifier | 5e2f569f2b74f2f14f1c1c0cede32de99c150890 | 0495f2234562a9c5dd02d545800c077df2305387 | refs/heads/master | 2020-06-02T09:32:55.457664 | 2015-06-20T21:30:19 | 2015-06-20T21:30:19 | 22,615,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | import argparse
import os
import sys
import subprocess
try:
from urllib.request import urlopen
from urllib.error import URLError, HTTPError
except ImportError:
from urllib2 import urlopen, URLError, HTTPError
interpreter_path = sys.executable
pip_bootstrap_url = "https://bootstrap.pypa.io/get-pip.py"
dep... | [
"mobiusklein@gmail.com"
] | mobiusklein@gmail.com |
68068edeebca9e5cb4573e8fbd1f74215e5cd71d | b248a0a1f51ded67c7637839b23f4e1f47c3d245 | /reverseString.py | 4988b680fa2acd2eecb5d1c6b636f7121b1e3393 | [] | no_license | gauravaror/programming | 1bfe61136d93571a4f77d5443a642e1a0ffb1e86 | afc5a08cd538c45e075fc6c479c255b3596d7ac5 | refs/heads/master | 2022-03-16T07:55:54.257609 | 2022-03-13T06:03:05 | 2022-03-13T06:03:05 | 229,214,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | class Solution:
def reverseString(self, s: List[str]) -> None:
"""
Do not return anything, modify s in-place instead.
"""
start = 0
end = len(s) - 1
while start < end:
tmp = s[start]
s[start] = s[end]
s[end] = tmp
start... | [
"gauravarora.daiict@gmail.com"
] | gauravarora.daiict@gmail.com |
9a5dd1dad301fde4dbe0adf34743dded2fc34257 | 3591ab22e1cc0fc1362f909017a8aa5c2b53bd92 | /FundNavSpiders/Login/XiaMenBoFuLiAsset.py | cba350ddd47d854bd4a40123a8ece2daed6afae2 | [] | no_license | Wnltc/ggscrapy | ef7e9559ce6140e7147f539778e25fc7f6cbee4c | bf929112e14b875a583803fe92980fe67129bdac | refs/heads/master | 2023-03-15T22:00:45.377540 | 2018-06-06T02:19:14 | 2018-06-06T02:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,584 | py | from datetime import datetime
from scrapy import Request,FormRequest
from FundNavSpiders import GGFundNavItem
from FundNavSpiders import GGFundNavSpider
import re
import json
import hashlib
class XiaMenBoFuLiAssetSpider(GGFundNavSpider):
name = 'FundNav_XiaMenBoFuLiAsset'
sitename = '厦门博孚利资产'
channel = '投... | [
"songxh@go-goal.com"
] | songxh@go-goal.com |
8a1b67e6d0f88c7afc3d020267944ba11dd3f23a | e8f73d243396cc8fbac16bf56530ccf56cc808a3 | /CorrectnessAndTheLoopInvariant/src/FirstGo.py | 9311be1dcec1d09f4b440180898bba530e413309 | [] | no_license | chrisjdavie/Sorting | 39f5f1d3cff13e20f3d30642371b343fdd6e028a | bb93dbf32ee1f525c416178c849a790d0dfc90f7 | refs/heads/master | 2021-01-10T13:38:15.205459 | 2016-02-04T11:55:13 | 2016-02-04T11:55:13 | 50,305,042 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,075 | py | '''
Solving the hackerrank Correctness and the Loop Invariant.
https://www.hackerrank.com/challenges/correctness-invariant
Find the bug in the code. Wish there were more exercises like this.
----------------------
In the previous challenge, you wrote code to perform an Insertion Sort on an unsorted array. But how w... | [
"chris.d@theasi.co"
] | chris.d@theasi.co |
12e2fecbb80c37293d88b30bb81ec4db74f9bef1 | 6809b17768d492866abf102318a5dcd2a03e8239 | /learnpythonthehardway/binary-tree-upside-down.py | c5741c822ffb113a2f8c7fcc9c230491579272df | [] | no_license | dgpllc/leetcode-python | 28428430a65d26d22f33d8c7e41089f6a783743a | 340ae58fb65b97aa6c6ab2daa8cbd82d1093deae | refs/heads/master | 2020-06-01T14:42:17.162579 | 2019-06-03T14:42:43 | 2019-06-03T14:42:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | # Time: O(n)
# Space: O(1)
#
# Given a binary tree where all the right nodes are either leaf nodes with a sibling
# (a left node that shares the same parent node) or empty, flip it upside down and
# turn it into a tree where the original right nodes turned into left leaf nodes.
# Return the new root.
#
# For example:
... | [
"xin_wei@intuit.com"
] | xin_wei@intuit.com |
aef8339d0c8be7f1d7d53cfe3ffc0be42a359f82 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinci_v36r1p3/Phys/StrippingSelections/tests/TestTau2PhiMuLine.py | 7adb052ca469ac3eb10e263e17909402a56613bf | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,637 | py | # $Id: $
# Test your line(s) of the stripping
#
# NOTE: Please make a copy of this file for your testing, and do NOT change this one!
#
from Gaudi.Configuration import *
from Configurables import DaVinci
from StrippingConf.Configuration import StrippingConf
# Tighten Trk Chi2 to <3
from CommonParticles.Utils import... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
4a826a04359ac11e32977d3588b796234c4ab3a4 | 20c20938e201a0834ccf8b5f2eb5d570d407ad15 | /abc172/abc172_e/14779372.py | 31d141706fccad017d6fe86b8afa38f49834b16f | [] | no_license | kouhei-k/atcoder_submissions | 8e1a1fb30c38e0d443b585a27c6d134bf1af610a | 584b4fd842ccfabb16200998fe6652f018edbfc5 | refs/heads/master | 2021-07-02T21:20:05.379886 | 2021-03-01T12:52:26 | 2021-03-01T12:52:26 | 227,364,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | N, M = map(int, input().split())
mod = 10**9 + 7
ans = M
for i in range(M-1, M-N, -1):
ans = ans*i % mod
# print(ans)
prev = 1
ansB = M-1
for i in range(1, N):
tmp = (prev)*i % mod
tmp2 = ansB - tmp % mod
# print(tmp2)
ansB = tmp * (M-i) % mod
ansB += (tmp2)*(M-i-1) % mod
# print(tmp, t... | [
"kouhei.k.0116@gmail.com"
] | kouhei.k.0116@gmail.com |
10d83e9ca83638c274c4b274dc74d4ec376d286d | b33ddc7b89d05e19fdeb69593872fd174fab9f4f | /URI-py/1188.py | 367ab9732401d545d232c14ec4a7f9cce17f2e3c | [] | no_license | ThiagoCComelli/URI-Online-Judge | 8b8d609d880342b39ba0d396c0610ecb7e01a5af | 5348f736b2d683f4b857232c22cccb7c1d8b8d65 | refs/heads/master | 2020-07-23T15:14:05.353948 | 2020-03-10T19:42:12 | 2020-03-10T19:42:12 | 207,606,956 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | # -*- coding: utf-8 -*-
o = input()
soma = 0
qtde = 0
for i in range(12):
for j in range(12):
n = float(input())
if (i+j)>=12 and i > j:
soma += n
qtde += 1
if o == "S":
print("%.1f"%soma)
else:
print("%.1f"%(soma/qtde)) | [
"thiago.comelli@outlook.com"
] | thiago.comelli@outlook.com |
cf23f3a3f8d735099291e1cb5ed86c5fd319320a | cd8a143c5f01fcf6130b129a7a578d0225476b2d | /worker/deps/gyp/test/mac/gyptest-lto.py | d37068f33638fa7b048f119105e76315f6927ef2 | [
"BSD-3-Clause",
"ISC"
] | permissive | corvaxx/mediasoup | 47242bd5b0468b1f7e6de8077b11adf562aa244f | 304bce884755243f78ba3eeec5442888ecdc5340 | refs/heads/v3 | 2023-02-05T03:19:59.451099 | 2020-09-25T11:27:36 | 2020-09-25T11:27:36 | 303,987,529 | 0 | 3 | ISC | 2020-11-06T16:22:36 | 2020-10-14T11:00:43 | null | UTF-8 | Python | false | false | 2,066 | py | #!/usr/bin/env python
# Copyright (c) 2015 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""
Verifies that LTO flags work.
"""
import TestGyp
import os
import re
import subprocess
import sys
if sys.platform == 'darwin':
test... | [
"ibc@aliax.net"
] | ibc@aliax.net |
75fecba1bebb94b61189d5eb1c5c5c5a295b7413 | f6670298af8286f53631d820044c965d78c32002 | /generator/why_generator.py | 0fa5fefe63b25ad0245da42a9ef2c6a96a0a3780 | [] | no_license | iamvee/python-course-2021 | 457eba7bb7dbfa3570476f7757d0d86c91677d81 | 18d9a12bd71597d73453f1afc5298f939b51aebc | refs/heads/master | 2023-02-24T23:43:33.708218 | 2021-02-05T15:56:11 | 2021-02-05T15:56:11 | 329,936,284 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | import time
import math
def is_prime(n):
for i in range(2, int(math.sqrt(n))):
if n % i == 0:
return False
return True
t1 = time.time()
primes = []
for i in range(2, 1000):
if is_prime(i):
primes.append(i)
t2 = time.time()
print(primes)
print(t2 - t1) | [
"naeini.v@gmail.com"
] | naeini.v@gmail.com |
e2944a00fa857268c7fde978445baf54267b93a5 | d10939192137a625bb45d0c67325caa1b9fc7e93 | /01_Python/my_package/math/statistics/tools.py | e3da84d8eb426e9f201f8dba9530dafde5896c18 | [] | no_license | hyeinkim1305/TIL | b8bb1a30e241a386b6c2c57d9be3587953927b3d | 25c17418e4fbed25923439c59a697e549b588650 | refs/heads/master | 2023-06-24T11:41:46.736988 | 2021-07-27T13:03:39 | 2021-07-27T13:03:39 | 329,835,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | def standard_deviation(values):
mean = sum(values) / len(values)
sum_var = sum(pow(value - mean, 2) for value in values) / len(values)
std_dev = sum_var ** 0.5
return std_dev | [
"haileyyy1305@gmail.com"
] | haileyyy1305@gmail.com |
d508d272ebb753866fbcbc5d2e8c4a736b59c0ba | 4b4df51041551c9a855468ddf1d5004a988f59a2 | /leetcode_python/Array/max-increase-to-keep-city-skyline.py | f8246c5fdd356e89582371e01034b523e3e0e953 | [] | no_license | yennanliu/CS_basics | 99b7ad3ef6817f04881d6a1993ec634f81525596 | 035ef08434fa1ca781a6fb2f9eed3538b7d20c02 | refs/heads/master | 2023-09-03T13:42:26.611712 | 2023-09-03T12:46:08 | 2023-09-03T12:46:08 | 66,194,791 | 64 | 40 | null | 2022-08-20T09:44:48 | 2016-08-21T11:11:35 | Python | UTF-8 | Python | false | false | 3,892 | py | """
In a 2 dimensional array grid, each value grid[i][j] represents the height of a building located there. We are allowed to increase the height of any number of buildings, by any amount (the amounts can be different for different buildings). Height 0 is considered to be a building as well.
At the end, the “skyline” ... | [
"f339339@gmail.com"
] | f339339@gmail.com |
9e5850f49b63cfd123ce7fc57125ffb30777b095 | 002c14cd622b4890cce1c243065cebe39e2302ec | /CodingInterview2/21_ReorderArray/test_reorder_array.py | 26b36235f4be3f71b5a65a23ad42e2697c2e71da | [
"MIT"
] | permissive | hscspring/The-DataStructure-and-Algorithms | 6200eba031eac51b13e320e1fc9f204644933e00 | e704a92e091f2fdf5f27ec433e0e516ccc787ebb | refs/heads/master | 2022-08-29T18:47:52.378884 | 2022-08-25T16:22:44 | 2022-08-25T16:22:44 | 201,743,910 | 11 | 3 | MIT | 2021-04-20T18:28:47 | 2019-08-11T09:26:34 | Python | UTF-8 | Python | false | false | 2,216 | py | from reorder_array import reorder, reorder_two_pointer, reorder_two_pointer2
from reorder_array import is_odd
def test_normal():
lst = [1, 2, 3, 4, 5, 6, 7]
res = reorder(lst)
assert set(res[:4]) == set((1, 3, 5, 7))
assert set(res[4:]) == set((2, 4, 6))
res = reorder_two_pointer(lst)
assert se... | [
"haoshaochun@gmail.com"
] | haoshaochun@gmail.com |
ed30c21243828d7dc592bab50ad6d701211b5b60 | 0897e2254eeac5458e4f17caea43871dd72fda9a | /great_expectations/expectations/metrics/column_pair_map_metrics/column_pair_values_in_set.py | 115faba24cf78fb85f1626c30d67325f97377499 | [
"Apache-2.0"
] | permissive | NulledExceptions/great_expectations | 10f7710d7520f0b57ded539ce33075ddeb47856d | 8704c3ecf6632a72c55e012ed117d56f85a21f74 | refs/heads/main | 2023-09-05T19:30:32.910045 | 2021-11-18T20:50:42 | 2021-11-18T20:50:42 | 431,229,866 | 1 | 0 | Apache-2.0 | 2021-11-23T19:35:34 | 2021-11-23T19:35:34 | null | UTF-8 | Python | false | false | 2,883 | py | from functools import reduce
import numpy as np
import pandas as pd
from great_expectations.execution_engine import (
PandasExecutionEngine,
SparkDFExecutionEngine,
SqlAlchemyExecutionEngine,
)
from great_expectations.execution_engine.sparkdf_execution_engine import F
from great_expectations.expectations.... | [
"noreply@github.com"
] | NulledExceptions.noreply@github.com |
92fac8a0ec6b923f3d12f9fdf3bb67535dea99fa | 9ac405635f3ac9332e02d0c7803df757417b7fee | /cotizaciones/migrations/0078_cotizacionpagoproyectado_notificada_por_correo.py | 4125a4e8fa58f022bae7846befd264f4a89869f7 | [] | no_license | odecsarrollo/07_intranet_proyectos | 80af5de8da5faeb40807dd7df3a4f55f432ff4c0 | 524aeebb140bda9b1bf7a09b60e54a02f56fec9f | refs/heads/master | 2023-01-08T04:59:57.617626 | 2020-09-25T18:01:09 | 2020-09-25T18:01:09 | 187,250,667 | 0 | 0 | null | 2022-12-30T09:36:37 | 2019-05-17T16:41:35 | JavaScript | UTF-8 | Python | false | false | 425 | py | # Generated by Django 2.2.6 on 2020-07-31 02:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cotizaciones', '0077_auto_20200729_1438'),
]
operations = [
migrations.AddField(
model_name='cotizacionpagoproyectado',
... | [
"fabio.garcia.sanchez@gmail.com"
] | fabio.garcia.sanchez@gmail.com |
4e23693fef6388b637a0f989a717d851374e0e54 | 73d1eeafaa1baf73a1833731fe0b657297acc8f5 | /simplerolegame/simplerolegame/settings/production.py | 9a676d5cefc7b4da28793f21e0fea7a9749f9a94 | [] | no_license | pythonvlc/workshop-tastypie-angularjs | c5719309f1f67d99579f5d2df14205a2f28f5800 | d6bbd30467a3dca0a9657c094a7982e450cc1c38 | refs/heads/master | 2016-09-03T07:36:56.997177 | 2014-05-08T08:14:48 | 2014-05-08T08:14:48 | 19,468,385 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,278 | py | # -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (c) 2014
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, mod... | [
"marcosgabarda@gmail.com"
] | marcosgabarda@gmail.com |
7a7dd77ed80b3ce64fe483cf6d75c9dafd58cd64 | 4b8d3473c8b8f27735689b4c4abba5bfcc189c83 | /eusurvey/libs/csv_unicode.py | 2e4a0c9282ed70791a9b5e3e29cd996f36e78536 | [] | no_license | alfredo/eu_survey | f757463c9d7b33e5b1f3ff5fc66fbe6a254d0831 | dfe9b8f4df6a1a275210bf60dea2c4adca078f21 | refs/heads/master | 2016-08-12T06:24:42.483228 | 2016-05-03T06:58:55 | 2016-05-03T06:58:55 | 47,723,328 | 3 | 1 | null | 2015-12-24T19:07:26 | 2015-12-09T22:35:19 | Python | UTF-8 | Python | false | false | 2,230 | py | import csv
import codecs
import cStringIO
class TabExcelDialect(csv.excel):
delimiter = '\t'
class UTF8Recoder(object):
"""Iterator that reads an encoded stream and reencodes the input to UTF-8"""
def __init__(self, f, encoding):
self.reader = codecs.getreader(encoding)(f)
def __iter__(self... | [
"alfredo@madewithbyt.es"
] | alfredo@madewithbyt.es |
084bc01d39ce314a02e8918396ee2395f74f3ab1 | 8fcec8b9d4ab3ec62161411389628092ad1b22c1 | /twisted_string/scripts/everything.py | d2a6aa6df9dae212b3a0276d472d80add4950f69 | [] | no_license | sfrias/experiments | 321628d36dbd532b2df57afdccd3b7eb26a47a54 | 151d9481359a0bd6c7aadb13eef128e2af8cbdb8 | refs/heads/master | 2020-05-07T16:18:22.030330 | 2019-03-21T21:42:30 | 2019-03-21T21:42:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,447 | py | #!/usr/bin/env python
import csv
import rospy
from math import pi
from std_msgs.msg import Float64, Float32
from std_srvs.srv import Trigger
from vesc_msgs.msg import VescStateStamped
import sys
class Everything:
iteration = 0
def reset(self):
self.unwinding = False
self.fullywound_offset = 0... | [
"yibrenth@gmail.com"
] | yibrenth@gmail.com |
44001c456fd803dca8babef3fc448f16df12632c | 1d96db84225301d972f07cad95c2a13f4fbafa84 | /python/lhe_viewer/lhe_tools.py | ea9a9d338c13aec920cf827af8f6e77f0b0a8f7d | [] | no_license | mattbellis/matts-work-environment | 9eb9b25040dd8fb4a444819b01a80c2d5342b150 | 41988f3c310f497223445f16e2537e8d1a3f71bc | refs/heads/master | 2023-08-23T09:02:37.193619 | 2023-08-09T05:36:32 | 2023-08-09T05:36:32 | 32,194,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | import numpy as np
import sys
def get_events(infile):
events = []
nevents = 0
newevent = False
firstline = False
event = []
for count,line in enumerate(infile):
#print count
#print line
if line.find('<event>')>=0:
newevent = True
firstline = Tr... | [
"matthew.bellis@gmail.com"
] | matthew.bellis@gmail.com |
0bf7a4cfeb0aa0838af341c12ea558a939e6c1ce | 84e300c44611761bc241f1e8d7e898ba38508550 | /valid-parentheses/one.py | 32216768794d7e01f92143b4688b398ee49b7ef2 | [] | no_license | spezifisch/leetcode-problems | d9b3c4f4120b054d0692e9ed7fb2865981273d43 | 5a4d095683a0335dc56ec79cd99143ec96bc52a9 | refs/heads/master | 2022-07-11T21:01:00.883808 | 2022-02-02T10:16:36 | 2022-02-02T10:16:36 | 174,756,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | class Solution:
def isValid(self, s: str) -> bool:
ends = {
"(": ")",
"{": "}",
"[": "]",
}
stack = []
for c in s:
if not len(stack) or c in ends.keys():
stack.append(c)
elif not len(stack):
... | [
"spezifisch@users.noreply.github.com"
] | spezifisch@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.