blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
27de678a8a8b79176af1b142d83c7a994db3c864 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/467/usersdata/285/111899/submittedfiles/Av2_Parte2.py | 939b520b3defb72b8917e667cc4e4fb2f0878b28 | [] | 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 | 108 | py | # -*- coding: utf-8 -*-
a = 0
b = 0
for j in range(10,100,1):
a = a + 1
b = b + 1
print(a)
print(b)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
90d3994b17ce64a6f89c97720675477b17215cad | feccf7588777becba68921c0bfade3e21f5210ce | /airflow/providers/google/ads/_vendor/googleads/v12/services/services/bidding_strategy_service/client.py | 16fbcb585b44c8370640c00e0c757877a3ee7f3b | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | francescomucio/airflow | f17ed9abd8b41d8a2227deca052508edf12f1cbf | c199b1a10563a11cf24436e38cb167ae82c01601 | refs/heads/master | 2023-04-14T17:44:53.438246 | 2023-04-06T06:44:23 | 2023-04-06T06:44:23 | 217,327,641 | 0 | 0 | Apache-2.0 | 2020-09-09T13:26:47 | 2019-10-24T15:06:52 | Python | UTF-8 | Python | false | false | 20,766 | py | # -*- coding: utf-8 -*-
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | francescomucio.noreply@github.com |
76973fc2b0440b48a68308d602e70563bc4c9dda | a3d2620bbf25002c7b182600c2e40f8f06555e91 | /django_time/lab1/lab1/urls.py | 1891e5ef296dbfd7eef1233bef467ed50e992bb8 | [] | no_license | alejo8591/backend-lab | 782736a82933f705f825a1194369bfe13e86c0ec | 4a02a9552083a7c877e91b0f8b81e37a8650cf54 | refs/heads/master | 2016-09-03T03:53:43.878240 | 2015-11-26T06:35:38 | 2015-11-26T06:35:38 | 3,911,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf.urls.static import static
# At the top of your urls.py file, add the following line:
from django.conf import settings
import autofixture
autofixture.autodiscover()
urlpatterns = patterns('',
# Examples:
# url... | [
"alejo8591@gmail.com"
] | alejo8591@gmail.com |
787c5e036f6eec8dac19ca9128d22d78eaef7294 | 9cc6721acb439db2e7cff8eb4dbff4b6e14040d5 | /programmers/level3/15.숫자게임.py | e2fec063d1b49f4ef3b8617fb5b26c4bf6a0c576 | [] | no_license | young31/Algorithm | 35c6ec6b6d9b192f9d0e6e6f6484f33c92100232 | bfcccfa798d031a930490efa24d9b2263bd4b984 | refs/heads/master | 2021-11-04T14:01:53.827508 | 2021-10-25T06:35:24 | 2021-10-25T06:35:24 | 196,034,851 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | A = [5,1,3,7]
B = [2,2,6,8]
A = [2,2,2,2]
B = [1,1,1,1]
def solution(A, B):
A.sort()
B.sort()
answer = 0
l = r = 0
n = len(B)
while r < n:
if A[l] < B[r]:
l += 1
r += 1
answer += 1
else:
r += 1
print(answer)
return answ... | [
"migael38317@gmail.com"
] | migael38317@gmail.com |
3d78eaea31cc7ac6c363ddbf3e5b580c246f2b25 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02384/s298943108.py | fa5006a7967bf4fa45b247ea5ac30b5b6b4578d3 | [] | 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 | 1,753 | py | class Dice:
def __init__(self):
self.d = list(map(int, input().split()))
def setNum(self, n0, n1, n2, n3, n4, n5):
self.d[0], self.d[1], self.d[2], self.d[3], self.d[4], self.d[5] = (
n0,
n1,
n2,
n3,
n4,
n5,
)
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a128dbb7f9113f8a7f99e8cfbc64524a5f337b3d | c4a119311ac01bbe7d5ab81b1d3d663ad0900ab6 | /python-build/python-libs/gdata/src/gdata/blogger/data.py | 293fabca90cc94deb61228e48e72b0b8481df803 | [
"Apache-2.0"
] | permissive | kuri65536/python-for-android | 1d8d99e81e64bc87805c2c58ee0dcf43d413e72e | 26402a08fc46b09ef94e8d7a6bbc3a54ff9d0891 | refs/heads/master | 2021-06-02T01:17:29.685199 | 2018-05-05T00:12:13 | 2018-05-05T01:36:22 | 32,235,625 | 280 | 122 | Apache-2.0 | 2020-05-15T06:47:36 | 2015-03-14T22:44:36 | Python | UTF-8 | Python | false | false | 4,030 | py | #!/usr/bin/env python
#
# Copyright (C) 2009 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"manuel@aircable.net"
] | manuel@aircable.net |
2c6e94f5e09e908cf91cfcd9437b50dab12c4128 | d24cef73100a0c5d5c275fd0f92493f86d113c62 | /SRC/engine/IO/output.py | 282eff81b0a1f40c41ff553da64b4028007257b8 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | rlinder1/oof3d | 813e2a8acfc89e67c3cf8fdb6af6b2b983b8b8ee | 1fb6764d9d61126bd8ad4025a2ce7487225d736e | refs/heads/master | 2021-01-23T00:40:34.642449 | 2016-09-15T20:51:19 | 2016-09-15T20:51:19 | 92,832,740 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,479 | py | # -*- python -*-
# $RCSfile: output.py,v $
# $Revision: 1.21.4.14 $
# $Author: langer $
# $Date: 2014/11/05 16:54:37 $
# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities ass... | [
"faical.congo@nist.gov"
] | faical.congo@nist.gov |
61d1612203edf0060cbe13f49bff6ba0170cf0ef | 8d8fdd2943ef2f11b20e9be8b4596bccf48c9c4d | /z_score_vs_f1/simulation_cross_validation.py | 503f5804be4c2750b11b890625054d888d6b4066 | [
"MIT"
] | permissive | dalakada/TwiCSv2 | 8317d62bef3dc83447e3b4512358c11b9bc3a088 | 1d5c82df92fe9b1eecf18f52ece567051a318bd9 | refs/heads/master | 2022-05-06T03:28:39.388441 | 2022-03-27T22:50:15 | 2022-03-27T22:50:15 | 121,583,821 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,043 | py |
#import SatadishaModule as phase1
import SatadishaModule_final_trie as phase1
import phase2_Trie as phase2
import datetime
from threading import Thread
import random
import math
from queue import Queue
import pandas as pd
import warnings
import numpy as np
import time
import trie as trie
import pickle
import matplot... | [
"naydin2@binghamton.edu"
] | naydin2@binghamton.edu |
2423894728cf83213c408f3ab31978aa70a15681 | e27333261b8e579564016c71d2061cc33972a8b8 | /.history/api/QueryLikelihoodModel_20210809160512.py | 0d7828cdd06df738f1782df19e4a53abb8c3da8c | [] | no_license | Dustyik/NewsTweet_InformationRetrieval | 882e63dd20bc9101cbf48afa6c3302febf1989b1 | d9a6d92b51c288f5bcd21ea1cc54772910fa58f7 | refs/heads/master | 2023-07-01T09:12:53.215563 | 2021-08-12T08:28:33 | 2021-08-12T08:28:33 | 382,780,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,669 | py | import math
ALPHA = 0.75
NORMALIZE_PROBABILITY = True
class UnigramLanguageModel:
def __init__(self, tweets, smoothing=False): #tweets is a pandas dataframe
self.wordsCollectionFrequencyDictionary = self.create_words_frequency_dict(tweets)
self.totalNumberOfWords = self.calculate_total_no_of_words... | [
"chiayik_tan@mymail.sutd.edu.sg"
] | chiayik_tan@mymail.sutd.edu.sg |
c1013802d48787b6f3b7b1d3f39db2267dbae083 | 24b79d18bc9b522c86d65d7601d7012fe29b0693 | /program/list1.py | 10b6708ca6faca126d7bb879b04e47b62fffdc1b | [] | no_license | meenapandey500/Python_program | 409fafa2e8f50edfbf30ddfbdf85b47569bf229c | 2bcb5fd51aebb4dca4bcc31a26e6b05a3603d5f0 | refs/heads/main | 2023-03-18T11:49:58.302858 | 2021-03-19T09:29:24 | 2021-03-19T09:29:24 | 349,359,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | '''A=[10,20,30,40,50,60,70,80,90]
print(A)
print(A[0])
print(A[1])
print(A[2])
print(A[3])
print(A[4])
print(A[5])
print(A[6])
print(A[7])
print(A[8])'''
A=[10,20,30,40,50,60,70,80,90]
#use for loop
for x in A:
print(x)
| [
"noreply@github.com"
] | meenapandey500.noreply@github.com |
a8a48bcc0d90f1f8dc45cef8a0f00d37d23ec26b | e6d4a87dcf98e93bab92faa03f1b16253b728ac9 | /algorithms/python/closestDessertCost/closestDessertCost.py | 2c2f704c0c09c54b3507d5d3c16f5a37c66531bf | [] | no_license | MichelleZ/leetcode | b5a58e1822e3f6ef8021b29d9bc9aca3fd3d416f | a390adeeb71e997b3c1a56c479825d4adda07ef9 | refs/heads/main | 2023-03-06T08:16:54.891699 | 2023-02-26T07:17:47 | 2023-02-26T07:17:47 | 326,904,500 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Source: https://leetcode.com/problems/closest-dessert-cost/
# Author: Miao Zhang
# Date: 2021-06-07
class Solution:
def closestCost(self, baseCosts: List[int], toppingCosts: List[int], target: int) -> int:
m = len(toppingCosts)
mindiff = float('i... | [
"zhangdaxiaomiao@163.com"
] | zhangdaxiaomiao@163.com |
8ba2c63cec6c3a80e0d87e8fc7e9bfaab9ed2a37 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_114352.74+660723.4/sdB_SDSSJ_114352.74+660723.4_coadd.py | 95e8756bcba2a7ca453d844f84b6da243f731f0e | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[175.96975,66.123167], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_SDSSJ_114352.74+660723.4/sdB_SDSSJ_114352.74+660723.4_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_O... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
2e66f17d0382eee6b5a9d7df188178aee8f2bdd9 | 38e027296c30aa65497f2f36f94c341891a5144d | /vaitk/core/color.py | 0a6cb04a16921637ff85e3a11fda98125f44a633 | [] | no_license | stefanoborini/vaitk | fd15cd573586b47fbb9ac1b1a99e3bcfc5b78a98 | 5b8d5a3d61769b4522f40854eaa5f5b9de6cf112 | refs/heads/master | 2021-01-18T20:20:21.350545 | 2020-03-24T22:35:36 | 2020-03-24T22:35:36 | 31,229,817 | 3 | 2 | null | 2020-03-24T22:35:37 | 2015-02-23T21:07:14 | Python | UTF-8 | Python | false | false | 991 | py | from traitlets import HasTraits, Int
import math
class Color(HasTraits):
"""
Describes a color in RGB format
"""
red = Int(min=0, max=255)
green = Int(min=0, max=255)
blue = Int(min=0, max=255)
def __init__(self, red, green, blue):
super().__init__(red=red, green=green, blue=blue)... | [
"stefano.borini@gmail.com"
] | stefano.borini@gmail.com |
6500fa3e9a3b6749403b856fd7068fdb72eed663 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02632/s798065204.py | f791c7e2c568c3e66604b9e0cb8275109969ef11 | [] | 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 | 1,081 | py | import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007
def main():
K = int(readline())
S = readline().strip()
COM_MAX = 2 * 10 ** 6
fac, finv, inv = [0] * (COM_MAX + 1), [0] * (COM_MAX + 1), [0] * ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5408c88762240bf8bd0e00cd8854ca4eae609d5e | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2978/60592/238951.py | 88fcf021f90cd360d9406418b4f468a7b9c81277 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | str = input().split(' ')
if str[0]==str[1]:
print(0)
else:
i = 0
while i<len(str[0]) and i < len(str[1]):
if str[0][i] == str[1][i]:
continue
else:
print(ord(str[0][i])-ord(str[1][i]))
break | [
"1069583789@qq.com"
] | 1069583789@qq.com |
448ff8044c3f12896ac5bc2465fde44bc5ddc78c | d86c52f4098fd9c1a102c2d3f5630556e0610fa2 | /fitle/myenv/Lib/site-packages/rest_framework/authtoken/migrations/0001_initial.py | 22692527a6096f4ac08d7e2b9e70ea7548fa8db0 | [] | no_license | makadama/bitbucket | 24f05c4946168ed15d4f56bfdc45fd6c0774e0f2 | cabfd551b92fe1af6d9d14ab9eb3d9974b64aa79 | refs/heads/master | 2023-06-19T19:04:03.894599 | 2021-07-15T12:10:39 | 2021-07-15T12:10:39 | 385,203,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:f2199a72dc76a4a19e255f79ada5b817b925c9736570d401be66a1be72e3db15
size 706
| [
"adamamakhtarsow@gmail.com"
] | adamamakhtarsow@gmail.com |
8a86bb86e923fb11a7e27942c9ad9379cdbb06f6 | edf79f6964b15ea61faa9ecd70871d1ce776eda2 | /Jupyter/first-python-notebook/lib/python3.6/site-packages/pandas/tests/io/parser/converters.py | 8fde709e39cae723006e171f3cd2cf349a70b61a | [
"MIT"
] | permissive | Roychenlei/LearnPython | 326bf7d59ebec904623ea7102a1e07f1d7cb112b | eaf44787b86fe6da69dc9ba4e4c907884db57fda | refs/heads/master | 2022-10-09T07:23:39.410429 | 2018-04-28T02:35:07 | 2018-04-28T02:35:07 | 115,184,834 | 0 | 1 | MIT | 2022-10-01T15:18:43 | 2017-12-23T09:19:47 | Python | UTF-8 | Python | false | false | 4,914 | py | # -*- coding: utf-8 -*-
"""
Tests column conversion functionality during parsing
for all of the parsers defined in parsers.py
"""
from datetime import datetime
import pytest
import numpy as np
import pandas as pd
import pandas.util.testing as tm
from pandas._libs.lib import Timestamp
from pandas import DataFrame, ... | [
"roychenfly@gmail.com"
] | roychenfly@gmail.com |
390496490e88ba4f130cf73d89d43f236a438680 | 862b7c74796051b56e1b1c5bd0831df50726b79e | /templates_advanced/templates_advanced/todos/models.py | faf9ed8d705ccc075ab75bec0514eff04ad4acce | [] | no_license | momchilantonov/SoftUni-Python-Web-Framework-July-2021 | 8b01413e2c0e8527877fc254443ee80d96630d34 | 4ed6273d3442695e6b2f3bf1196057e58a8a9ed1 | refs/heads/main | 2023-06-24T06:35:45.179663 | 2021-07-27T15:36:02 | 2021-07-27T15:36:02 | 382,307,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | from django.db import models
class Todo(models.Model):
text = models.CharField(max_length=30)
is_done = models.BooleanField(default=False) | [
"eng.antonov@gmail.com"
] | eng.antonov@gmail.com |
938d00fbb697eb00e5c76b9be45771b5c4591e9f | b4efe7a85bbde01cd47189bcc0298594baae7a14 | /code/83.py | 26ddcb2732a505ef96f0e6b6fdb8f39d1e8689c8 | [] | no_license | HarshaaArunachalam/guvi | c200e05dc0c259bfabfc0ee58c1ab9b6412b89a7 | 67c87e8fe50d645036333649759b5b1a40369004 | refs/heads/master | 2020-05-31T06:27:27.104793 | 2019-06-11T18:31:43 | 2019-06-11T18:31:43 | 190,141,812 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | N,sym,K=input().split()
N=int(N)
K=int(K)
if(sym=='/'):
print(N//K)
else:
print(N%K)
| [
"noreply@github.com"
] | HarshaaArunachalam.noreply@github.com |
60a6b81a7cf37e5c4f778e51971d728a5c02c3cf | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DY3JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544839/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_177/run_cfg.py | 24afb5dc0947308a73d18d059826d43cf7fa69a4 | [] | 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,495 | 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/DY3JetsToLL_M-50_TuneZ2Star_8TeV-madgraph/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544839/HTT_24Jul_newTES_manzoni_... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
1c713e162e188796de5bfa756ba79f1d09d1c8a7 | 8906215db95c9dc2cf08e3228c9dd573e892ad58 | /flask_webpackext/cli.py | cae3ef96a0b1ade258d2c9b5748ad7bac1b83cf1 | [
"BSD-3-Clause"
] | permissive | okraskaj/flask-webpackext | 73eedf0a467e3fc28fc7163382a1e917e68d7e86 | 009323c289f71dea11e9ddfbdc94d0f68e4a0e60 | refs/heads/master | 2020-04-02T13:36:18.921495 | 2017-05-29T20:27:01 | 2017-05-29T20:27:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,448 | py | # -*- coding: utf-8 -*-
#
# This file is part of Flask-WebpackExt
# Copyright (C) 2017 CERN.
#
# Flask-WebpackExt is free software; you can redistribute it and/or modify
# it under the terms of the Revised BSD License; see LICENSE file for
# more details.
"""CLI for Flask-WebpackExt."""
from __future__ import absolut... | [
"lars.holm.nielsen@cern.ch"
] | lars.holm.nielsen@cern.ch |
d5e48bb3945253cc9ec3f2e07792e596ff19fa72 | f78825d361323293b4d2950cc32fddf50149b613 | /partname_resolver/units/range_base.py | c511292f5612de7daf0d900a8e1cfec9a7de242b | [
"BSD-3-Clause"
] | permissive | sakoPO/partname-resolver | 403d53e2f4c5cfb1f6b21fc37c57da8604e52f4a | ad881eb147b005f0e833a1c78fa9fc4b8b7a33bb | refs/heads/master | 2022-11-09T04:59:46.717637 | 2020-06-26T20:53:02 | 2020-06-26T20:53:02 | 258,887,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | class RangeBase:
pass
| [
"you@example.com"
] | you@example.com |
bad398fd88584eb582baf9d968448868532b452b | de64b143a346585f51590bd674e8d13bbc672386 | /algorithm/2022/0215_904_Fruit_Into_Baskets/Sangwon.py | 36a481c2a32b5ddfdb8335263ff99acbd3be39c8 | [] | no_license | ai-kmu/etc | 304ec20f59e4026025abdcbcae21863c80630dcb | 9c29941e19b7dd2a2037b110dd6e16690e9a0cc2 | refs/heads/master | 2023-08-21T16:30:31.149956 | 2023-08-21T16:26:19 | 2023-08-21T16:26:19 | 199,843,899 | 3 | 24 | null | 2023-05-31T09:56:59 | 2019-07-31T11:36:16 | Jupyter Notebook | UTF-8 | Python | false | false | 1,341 | py | class Solution:
def totalFruit(self, fruits: List[int]) -> int:
n = len(fruits)
l = 0
ans = 0
cnt = Counter()
for r, t in enumerate(fruits):
cnt[t] += 1 #딕셔너리에 하나씩 추가
while len(cnt) > 2: #과일 종류가 3가지인 경우
cnt[fruits[l]] ... | [
"noreply@github.com"
] | ai-kmu.noreply@github.com |
cea15cd328ebdf26a7308ca738e4149c029d6aa2 | 2955cae75698f6ac9bb941c5c5d7639dbe598654 | /froide/foirequestfollower/forms.py | 2a6ed3a9652657a6b1bce58deff3f86909427a0f | [
"MIT"
] | permissive | openpolis/froide | 75962fada917144c758d11f1d2fd65fcf72b159a | 5f712de50a798234503b2dee2682def1e2f8c540 | refs/heads/master | 2020-12-25T00:38:32.809865 | 2013-06-20T20:55:11 | 2013-06-20T20:55:11 | 10,367,155 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,789 | py | import floppyforms as forms
from django.core.urlresolvers import reverse
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext as _
from froide.foirequest.models import User
from .models import FoiRequestFollower
class FollowRequestForm(forms.Form):
def __init__(self, foir... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
030fa167cce1dacf3b1d9fdfb365c574e34aad7a | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/ipython-1.2.1-py27_0/lib/python2.7/site-packages/IPython/utils/contexts.py | b51fbfc7656386c6dd9ac00eea26763f0bdaf183 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 2,064 | py | # encoding: utf-8
"""
Context managers for temporarily updating dictionaries.
Authors:
* Bradley Froehle
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2012 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
c6be682fff69cb7d5aeeaa169c5a377474183a59 | cb8c63aea91220a9272498d5ea6cca0a0738b16a | /icpcawards.py | 2b40549fbea7dfe2a01853d8bdb8a11509d377f4 | [] | no_license | akantuni/Kattis | 1265de95bfe507ce7b50451a16f19720b86bef44 | 12f31bb31747096bf157fcf6b1f9242d91654533 | refs/heads/master | 2021-12-14T11:18:27.723045 | 2021-12-11T05:43:37 | 2021-12-11T05:43:37 | 111,472,667 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | n = int(input())
collages = []
for i in range(n):
s = input()
collage = s.split()[0]
if collage in collages:
continue
elif len(collages) != 12:
collages.append(collage)
print(s)
| [
"akantuni@gmail.com"
] | akantuni@gmail.com |
41075b8cf61ea14ec0f34be61d0a842e98ab50ff | 885e365569c874e6f84e357251fc6841aeeaf61a | /tests/integration/cattletest/core/test_storage_driver.py | 1d381874b4288a5126dac11f941fa9e1041fb8ef | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | kalw/cattle | 6915eac65176dc809ba55c405c697e84e0b61ffd | ee5708fdeb0c7cc3d6a45de3730c1e13fdfe5ca7 | refs/heads/master | 2021-01-18T01:57:30.395895 | 2016-10-05T16:34:50 | 2016-10-05T16:34:50 | 51,288,574 | 0 | 0 | null | 2016-02-08T09:23:35 | 2016-02-08T09:23:35 | null | UTF-8 | Python | false | false | 6,317 | py | from common_fixtures import * # NOQA
from cattle import ApiError
class Context:
def __init__(self, ctx, driver):
self.new_context = ctx
self.driver = driver
@pytest.fixture(scope='function')
def storage_driver_context(new_context, super_client):
client = new_context.client
stack = clien... | [
"darren@rancher.com"
] | darren@rancher.com |
5d7da9e6f97603574aab1262cfe0ae5bcc293327 | 3dc647cd07a7361ed401e40d2b7cce8c826c8f6c | /Lib/distutils/errors.py | 8b93059e19faa9f821ffad1b8a298e7301fe8ab2 | [
"Python-2.0",
"CC-BY-4.0",
"MIT"
] | permissive | RustPython/RustPython | 5ddce4a9848b9de8c041ffd2634f83c0105d3f39 | b864e5da1f18897fc884180b7093df5aa170024f | refs/heads/main | 2023-09-04T12:38:29.458699 | 2023-09-03T12:33:42 | 2023-09-03T12:33:42 | 135,201,145 | 15,815 | 1,302 | MIT | 2023-09-14T08:11:45 | 2018-05-28T19:27:01 | Rust | UTF-8 | Python | false | false | 3,577 | py | """distutils.errors
Provides exceptions used by the Distutils modules. Note that Distutils
modules may raise standard exceptions; in particular, SystemExit is
usually raised for errors that are obviously the end-user's fault
(eg. bad command-line arguments).
This module is safe to use in "from ... import *" mode; it... | [
"33094578+coolreader18@users.noreply.github.com"
] | 33094578+coolreader18@users.noreply.github.com |
8ffe8b46b026a23b95969a7f8ef119a16dca7cb4 | b3e7f210b99cdf18ef8e8670555c225590b24d21 | /get_all_milestones.py | 75b0efbc7602dffd9f241a35c62af2d05d7fb864 | [] | no_license | gromadco/monitor | 5553be26c086126ab6540972969278b44d3b0973 | 676c6f0339dde5afe82d1ec5251e8de8d1ba212e | refs/heads/master | 2021-01-22T07:35:20.221252 | 2015-01-10T17:48:36 | 2015-01-10T17:48:36 | 26,692,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | """
Script to get all milestones for active projects.
Input file: `active_projects.json`.
Outoput file: `all_milestones.json`.
"""
import json
import requests
INPUT_FILE = 'active_projects.json'
OUTPUT_FILE = 'all_milestones.json'
GITHUB_API_BASE_URL = 'https://api.github.com'
ISSUES_TEMPLATE = '{base_url}/repos/{us... | [
"dudarev@gmail.com"
] | dudarev@gmail.com |
8ae7e587f8922cdd7b60a2d70abcd902189f46bd | 1838f5da624e0da625ff0c00a642bbff10f9bde6 | /guild/tensorboard.py | 8cb2dea36b668183bf33e131b5e9ae44461e2d8c | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | Jim-Holmstroem/guildai | 75b57785654b98902aefcb50ace0f227ad95fd18 | ed80e307fca20c0d607c600180cdb0854f42021d | refs/heads/master | 2020-12-31T19:48:39.996994 | 2020-02-06T18:02:20 | 2020-02-06T18:02:20 | 239,023,692 | 0 | 0 | Apache-2.0 | 2020-02-07T21:13:39 | 2020-02-07T21:13:39 | null | UTF-8 | Python | false | false | 12,549 | py | # Copyright 2017-2020 TensorHub, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"g@rre.tt"
] | g@rre.tt |
1c69ab91658c47eb1b12a1449041a4ea56c38389 | 8c37b5363ff77a10e9c54204bc88b1c9861cdee6 | /torch/optim/adamw.py | 29583157da90025a897e634e1db7beecc73e6de9 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | gchanan/pytorch | 50bf0843388c5ce3a818cf79688cf319b2262b15 | 0d03e73ae73aa6964ef72f848a77d27afeacf329 | refs/heads/master | 2021-07-02T16:20:50.304428 | 2019-12-26T20:52:21 | 2019-12-26T20:52:21 | 88,906,627 | 9 | 1 | NOASSERTION | 2019-12-26T20:52:23 | 2017-04-20T20:14:16 | Python | UTF-8 | Python | false | false | 5,009 | py | import math
import torch
from .optimizer import Optimizer
class AdamW(Optimizer):
r"""Implements AdamW algorithm.
The original Adam algorithm was proposed in `Adam: A Method for Stochastic Optimization`_.
The AdamW variant was proposed in `Decoupled Weight Decay Regularization`_.
Arguments:
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
9962519948316918d8cd06e36942e15e43ac4f29 | 1c4a19c0d1953280f79193f30ad8c4759e3aff58 | /ansys/dpf/core/operators/scoping/__init__.py | 4b876393faec4c3c48e7b587c36a0eea7201f686 | [
"MIT"
] | permissive | hoangxuyenle/DPF-Core | d02c843b678560f12715ea90dc8c9764b3bffc99 | a404dd290c7b3ee75463b2487cafb8bf48468691 | refs/heads/master | 2023-06-15T15:27:02.597938 | 2021-06-22T15:19:04 | 2021-06-22T15:19:04 | 381,611,135 | 0 | 0 | MIT | 2021-06-30T07:18:30 | 2021-06-30T07:18:30 | null | UTF-8 | Python | false | false | 506 | py | from .elemental_from_mesh import elemental_from_mesh
from .intersect import intersect
from .connectivity_ids import connectivity_ids
from .on_property import on_property
from .transpose import transpose
from .rescope_fc import rescope_fc
from .splitted_on_property_type import splitted_on_property_type
from .resc... | [
"lea.paradis@ansys.com"
] | lea.paradis@ansys.com |
9dcd6c1a0713de6841998944e7345e3a1c38e391 | 371f5f70e7213889925e1b61fd79d30c999bb7a9 | /pyscriptic/containers.py | f1e36194de132b42cd243d1dea5f00226ddc925f | [
"BSD-2-Clause"
] | permissive | naderm/pytranscriptic | a41e1724f59963d393fad3d262eafc6f62cab67d | bb9b825c9f9b6e8c223cf8ba184327ae3674edc7 | refs/heads/master | 2020-12-03T03:00:30.018958 | 2015-01-19T23:35:14 | 2015-01-19T23:35:14 | 28,313,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,342 | py |
from pyscriptic import settings, submit
class ContainerType(object):
"""
Lists information about a particular container type, such as a 96-well
plate.
Attributes
----------
title : str
wells : int
Number of wells in the container. Wells can be referenced using either
a 1-... | [
"morshed.nader@gmail.com"
] | morshed.nader@gmail.com |
ac26b9ade7e704611178853ccc533e028efb0377 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/infra/clusterstats1mo.py | 63e69501aae68d640c54eacfd6fd857ec6b258c6 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 19,717 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
fc536323fa700c2846fddf9a6c7a899bca4580c4 | 72328633f1b4640868c2ba7af81adcca6350e7da | /00-每日一题/20200324_213.py | bccf814c3fe5027aca7a36489d9fc41ec2b74bcc | [] | no_license | qiaozhi827/leetcode-1 | a9f10192c74a6de498bce0fa7e1d995bf67edec4 | 1d1ffe25d8b49832acc1791261c959ce436a6362 | refs/heads/master | 2022-11-06T19:39:32.792946 | 2020-07-05T06:23:27 | 2020-07-05T06:23:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | # 状态转移方程
class Solution(object):
def rob(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
length = len(nums)
if length == 0:
return 0
if length <= 3:
return max(nums)
res1 = self.single_rob(nums[:-1])
... | [
"czy36mengfei@163.com"
] | czy36mengfei@163.com |
67848d617de7803185d87e1686dd39a7349441c3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03222/s762210228.py | 327966ce9917482b913a03a275c66cb51277535d | [] | 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 | 925 | py | import sys
def S(): return sys.stdin.readline().rstrip()
H,W,K = map(int,S().split())
mod = 10**9+7
if W == 1:
print(1)
exit()
fib = [1,1,2,3,5,8,13,21] # fib[i] = i本の縦線に横線を引く方法の数(同じ高さ)
dp = [[0]*(W+1) for _ in range(H+1)] # dp[i][j] = i行目にjに達する横線の引き方
for i in range(H+1):
for j in range(W+1):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
16abdf064d5d569d988c44e752a7f0f0101eb214 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/I_to_M_Gk3_no_pad/pyramid_tight_crop_size256_pad60_jit15/pyr_4s/bce_s001_tv_s0p1_L4/step11_L2345678.py | 16cfedf1de68d9b51977ad7e11225685d5dec230 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,499 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
44648d0cdfb0226ce1a0cb5b02af4307588369d3 | ffad32cd1332b486b03505110fa4c0d5fcfb365b | /main/settings.py | 3fc208f568a570faaee03c3270e7e5a5e08a917a | [] | no_license | dkang417/Ajax_Posts | f779e9f5ee547273bfae35ee41e7f38acd03b8d4 | dcab8549e7cb2c1d08d249dce3b8eb6c570c4ef5 | refs/heads/master | 2020-03-18T08:17:50.786213 | 2018-05-23T02:27:04 | 2018-05-23T02:27:04 | 134,501,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | """
Django settings for main project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
# B... | [
"dkang417@gmail.com"
] | dkang417@gmail.com |
a795c3c860b21047b19e88bd32f728d9f81a9e71 | a543a24f1b5aebf500c2200cd1d139435948500d | /Cer0un0/abc006/b/main.py | 88f9715e0b7bb93c3ed81edca626b63a723c537e | [] | no_license | HomeSox/AtCoder | 18c89660762c3e0979596f0bcc9918c8962e4abb | 93e5ffab02ae1f763682aecb032c4f6f4e4b5588 | refs/heads/main | 2023-09-05T03:39:34.591433 | 2023-09-04T13:53:36 | 2023-09-04T13:53:36 | 219,873,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | #!/usr/bin/env python3
N = int(input())
MOD = 10**4+7
A = [0, 0, 1]
for i in range(3, 10**6+1):
v = A[i-3]+A[i-2]+A[i-1]
A.append(v%MOD)
print(A[N-1])
| [
"satory074@gmail.com"
] | satory074@gmail.com |
2aa4e6cb4a98e25fe41c144d87778a330e989fba | 3aa8222bb2edc93c9202ccbcf6f331cdf73cd5a2 | /db_historical_updates/Service/FundBenchmarkNav/service/alt_benchmark_nav.py | 3e6e08b58257fa0e6395bc2b6b90e31a35a68f81 | [] | no_license | pavithra-ft/ft-automation | a977809823e587efd596b02e3a8286f887d12116 | 946e1c35b785bfc3ea31d5903e021d4bc99fe302 | refs/heads/main | 2023-04-24T19:54:28.478577 | 2021-05-11T17:53:08 | 2021-05-11T17:53:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | import database.db_queries as query
def calc_alt_benchmark_nav(fund_code, nav_start_date, alt_bm_index, current_date):
start_index_price = query.get_start_price(nav_start_date, alt_bm_index)
curr_index_price = float(query.get_index_price_as_on_date(current_date, alt_bm_index)[-1])
alt_benchmark_nav = roun... | [
"64137264+pavithra-ft@users.noreply.github.com"
] | 64137264+pavithra-ft@users.noreply.github.com |
b7e775db6817720ce37026f3a81dbec0ba430a9e | 7aa02bd9859acf478639223767dd49bc7a6d8de0 | /Projects/Gstreamer+OpenCV/testcv3.py | 877eb976bec3accd4d2ce494a4f6f60debb2488a | [] | no_license | yelloy/Python-projects | d3b27b42212e0950d9f12c1cfd8153ff80f49a68 | 35001c620758928df4d440198dd2fd0faae31dd9 | refs/heads/master | 2021-07-09T06:48:01.768859 | 2017-10-09T12:10:00 | 2017-10-09T12:10:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | import GstCV
import cv2
IP = '127.0.0.1'
RTP_RECV_PORT0 = 5000
RTCP_RECV_PORT0 = 5001
RTCP_SEND_PORT0 = 5005
CVG=GstCV.CVGstreamer(IP, RTP_RECV_PORT0, RTCP_RECV_PORT0, RTCP_SEND_PORT0)
print("I started")
CVG.start()
while True:
if CVG.cvImage is not None:
cv2.cvtColor(CVG.cvImage, cv2.COLOR_BGR2RGB)
... | [
"temka.911@mail.ru"
] | temka.911@mail.ru |
fd0cb8c41f9ed2332e9fbcafc3ac4ab308c62c74 | a65e5dc54092a318fc469543c3b96f6699d0c60b | /Personel/Elankavi/python/data_structure/hashtable/hashing_with_chaining.py | dac2add92afc1afbf3c39e7c21de30192b37494e | [] | no_license | shankar7791/MI-10-DevOps | e15bfda460ffd0afce63274f2f430445d04261fe | f0b9e8c5be7b28298eb6d3fb6badf11cd033881d | refs/heads/main | 2023-07-04T15:25:08.673757 | 2021-08-12T09:12:37 | 2021-08-12T09:12:37 | 339,016,230 | 1 | 0 | null | 2021-08-12T09:12:37 | 2021-02-15T08:50:08 | JavaScript | UTF-8 | Python | false | false | 793 | py | hashtable = [[]for _ in range(int(input("Enter no.of. Table : ")))]
def insert(hashtable,key,value):
hash_value = hashing(key)
hashtable[hash_value].append(value)
def hashing(key):
return key % len(hashtable)
def display(hastable):
for i in range(len(hashtable)):
print(i,end = " ")
f... | [
"elankavi432@hmail.com"
] | elankavi432@hmail.com |
d1ea466945583f13599cb9d5a985f0d835d5049e | 8a3e59ac20b2667c7f43ab91a7fd09f5a52fec4e | /apps/crm/webchatcus/migrations/0003_auto_20201215_1522.py | caed53d5bdf6b965003e9d16a6095162e9eb0c2c | [] | no_license | suifengdou/tbd2 | b1ba8ed423ace8624366ddbdd788f0ab7025d062 | 39093cdd45bb652e9cdfa3dc31e07344cf6628a1 | refs/heads/master | 2021-06-22T20:19:15.743182 | 2021-01-08T03:59:47 | 2021-01-08T03:59:47 | 159,639,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-12-15 15:22
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('webchatcus', '0002_webchatcus'),
]
operations = [
migrations.RemoveField(
... | [
"2689179206@qq.com"
] | 2689179206@qq.com |
d191bdf16e544ad63aba8ab09e9683cc93a3c035 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/stupiding_kaggle_EEG/kaggle_EEG-master/Lasagne/build/lib.linux-x86_64-2.7/lasagne/layers/__init__.py | 557a18a7376af96663e6b3743b856637e05bb4a9 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 241 | py | from .base import *
from .helper import *
from .input import *
from .dense import *
from .noise import *
from .conv import *
from .pool import *
from .shape import *
from .merge import *
from .normalization import *
from .embedding import *
| [
"659338505@qq.com"
] | 659338505@qq.com |
4f8e4dcbeba2717be5c859c17351efb7e5a9e112 | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/348993582/opencv/_highgui.py | ae0a243362ab57e5f6874ae0b937dcc0c31959f9 | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,058 | py | # encoding: utf-8
# module opencv._highgui
# from /usr/lib64/python2.6/site-packages/opencv/_highgui.so
# by generator 1.136
# no doc
# no imports
# Variables with simple values
CV_CAP_ANY = 0
CV_CAP_CMU1394 = 300
CV_CAP_DC1394 = 300
CV_CAP_DSHOW = 700
CV_CAP_FIREWARE = 300
CV_CAP_FIREWIRE = 300
CV_CAP_IEEE1394 = 300... | [
"pkalita@princeton.edu"
] | pkalita@princeton.edu |
921f9dd5ff86686e925323c2e6d9174bf9b60b13 | fe19d2fac4580d463132e61509bd6e3cc2cf958d | /toontown/suit/SuitDNA.py | 52f64cda9450477e6427adeccf85c45cc39e167d | [] | no_license | t00nt0wn1dk/c0d3 | 3e6db6dd42c3aa36ad77709cf9016176a3f3a44f | 7de105d7f3de0f8704b020e32fd063ee2fad8d0d | refs/heads/master | 2021-01-01T16:00:15.367822 | 2015-03-21T21:25:52 | 2015-03-21T21:25:55 | 32,647,654 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 6,543 | py | # 2013.08.22 22:25:35 Pacific Daylight Time
# Embedded file name: toontown.suit.SuitDNA
import random
from pandac.PandaModules import *
from direct.directnotify.DirectNotifyGlobal import *
from toontown.toonbase import TTLocalizer
import random
from direct.distributed.PyDatagram import PyDatagram
from direct.distribute... | [
"anonymoustoontown@gmail.com"
] | anonymoustoontown@gmail.com |
fe36481cbfe26a98cebb60ac8d2e64cd5b70c14d | 116cfc6325855f20aea7592e78c5b4e2bc1f7881 | /src/tweets/models.py | 0a1b10b9aee0a9744ad6f513f0a8ef19288c02e6 | [] | no_license | bchuey/tweetme | c28f8f66de97b1bd4ce41d241a8a0eaa7e1ef0a8 | 513efcd4b06614f5c8f5cee536a9c6497f27592d | refs/heads/master | 2021-01-19T20:41:18.077173 | 2017-04-17T17:44:14 | 2017-04-17T17:44:14 | 88,533,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,996 | py | import re
from django.conf import settings
# from django.core.exceptions import ValidationError
from django.db import models
from django.db.models.signals import post_save
from django.urls import reverse
from django.utils import timezone
from hashtags.signals import parsed_hashtags
from .validators import validate_... | [
"bchuey415@gmail.com"
] | bchuey415@gmail.com |
05600b5edc377623ff119afba46400dcc107d3c7 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /application-insights_write_f/application_update.py | 41810fa1d6fbe631f55aa43329b5436276571912 | [] | 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 | 943 | 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_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
80e40038e3a16dac426ba294c02f2e79569d5016 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/96/usersdata/184/54036/submittedfiles/estatistica.py | 506d7a6514857a64ae8916aa0c8eff36d801946d | [] | 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 | 821 | py | # -*- coding: utf-8 -*-
x1=int(input('digite um número:'))
x2=int(input('digite um número:'))
x3=int(input('digite um número:'))
x4=int(input('digite um número:'))
x5=int(input('digite um número:'))
y1=int(input('digite um número:'))
y2=int(input('digite um número:'))
y3=int(input('digite um número:'))
y4=int(input('di... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b8de032576f028ca8de38e62c0881911c884bc24 | ca27df9a42fdba2fb9c42ced68b1b3e734e0fb76 | /src/modu/util/hoptoad.py | bc60afaa210462f9a31e8a380a907b0711580bd5 | [
"MIT"
] | permissive | philchristensen/modu | 1696ecf36908367b0358b06c3bee02552fc76651 | 795f3bc413956b98522ac514dafe35cbab0d57a3 | refs/heads/master | 2016-09-06T10:54:59.286492 | 2015-03-29T21:22:47 | 2015-03-29T21:22:47 | 829,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,466 | py | # modu
# Copyright (c) 2006-2010 Phil Christensen
# http://modu.bubblehouse.org
#
#
# See LICENSE for details
"""
Support for the HopToad error tracking service.
"""
import httplib, urllib2, re
from arm import site
RE_TRACEBACK_FILE = re.compile(r'\s*File "(?P<file>[^"]+)", line (?P<number>\d+), in (?P<method>\w+)... | [
"phil@bubblehouse.org"
] | phil@bubblehouse.org |
0897f6fec2320b98c33d6369c450c65d172d218e | cdf9ba7b329d66a1b664d505332d4a441f6bf075 | /benchmarks/SimResults/_bigLittle_hrrs_spec_tugberk_locality/cmp_tonto/power.py | 5d73efa958c3f617627a0dfb4c7fa099fbaca8a6 | [
"MIT"
] | permissive | TugberkArkose/MLScheduler | 3247c0bbc11c09261a3bad777f3940a465e5f15a | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | refs/heads/master | 2021-03-27T19:11:44.207818 | 2020-03-19T11:32:08 | 2020-03-19T11:32:08 | 92,518,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,578 | py | power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate... | [
"dn@fabre.ac.upc.es"
] | dn@fabre.ac.upc.es |
8fdfc9996e1a51c72b7a371e6fe95ab6d1111787 | a33e380ba70fa915bd3a6199cf88dcfa38ca5fab | /backpack/core/derivatives/maxpool3d.py | dab2f047330a6b0c3f8bad6ab10cc20874eab7cf | [
"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 | 175 | py | from backpack.core.derivatives.maxpoolnd import MaxPoolNDDerivatives
class MaxPool3DDerivatives(MaxPoolNDDerivatives):
def __init__(self):
super().__init__(N=3)
| [
"noreply@github.com"
] | f-dangel.noreply@github.com |
18070a688d4cd16997968535ceaf4466627e9b47 | fab14fae2b494068aa793901d76464afb965df7e | /benchmarks/ltl_maxplus/f3/maxplus_40_10.py | 41e4bdf681f8e04c9ca528411887bacccf8b3264 | [
"MIT"
] | permissive | teodorov/F3 | 673f6f9ccc25acdfdecbfc180f439253474ba250 | c863215c318d7d5f258eb9be38c6962cf6863b52 | refs/heads/master | 2023-08-04T17:37:38.771863 | 2021-09-16T07:38:28 | 2021-09-16T07:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159,301 | py |
from collections import Iterable
from mathsat import msat_term, msat_env
from mathsat import msat_make_true, msat_make_false
from mathsat import msat_make_constant, msat_declare_function
from mathsat import msat_get_rational_type
from mathsat import msat_make_and as _msat_make_and
from mathsat import msat_make_or as _... | [
"en.magnago@gmail.com"
] | en.magnago@gmail.com |
ccb80fe92c7067ef6420e8d3fae5a3c367cfafde | 30cffb7452220c2ac2961dd2e0f42e3b359a59c0 | /simscale_sdk/models/one_of_force_field_selection_force_type.py | b72a930dc13fd516defb018a4b86d730bfb5000e | [
"MIT"
] | permissive | vpurcarea/simscale-python-sdk | 0bf892d8824f8d4599caa0f345d5ba28e038f5eb | 6f2d12b2d21142bd854042c0fb402c2c797629e4 | refs/heads/master | 2023-03-14T04:31:06.226337 | 2021-03-03T16:20:01 | 2021-03-03T16:20:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,241 | py | # coding: utf-8
"""
SimScale API
The version of the OpenAPI document: 0.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from simscale_sdk.configuration import Configuration
class OneOfForceFieldSelectionForceType(object):
"""NOTE: This class ... | [
"simscale"
] | simscale |
34d2e212c3bb725d91b4744615d2d5c69dac398e | a2d1df88f38ed21ff42f8f56c63031ac5cc49abe | /abc119/b.py | df43c5df796a4bbb2be17470cceb8e38cfc3ac57 | [] | no_license | honyacho/atcoder_excercise | 70831d77a328cae82b0594da4bb3f04e995ef001 | aa119994e53abb0bb0f47e0002704e48984ffb38 | refs/heads/master | 2021-06-14T02:26:51.918702 | 2021-03-15T05:48:56 | 2021-03-15T05:48:56 | 173,929,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | n=int(input())
print(sum(map(lambda x: float(x[0])*(1 if x[1] == 'JPY' else 380000.0), [input().split() for i in range(n)])))
| [
"cc_called_pizza@yahoo.co.jp"
] | cc_called_pizza@yahoo.co.jp |
b4cd12c1386a67d50d068696264745e7cf0dc90e | 2d67afd40a0425c843aa8643df9f7d5653ad0369 | /python/leetcode/171_Excel_Sheet_Column_Number.py | d4c9caf58efb60f446009aafdb6795fbcae4fdc3 | [] | no_license | bobcaoge/my-code | 2f4ff5e276bb6e657f5a63108407ebfbb11fbf64 | 70bdd75b6af2e1811c1beab22050c01d28d7373e | refs/heads/master | 2022-12-23T22:38:10.003058 | 2020-07-02T03:52:43 | 2020-07-02T03:52:43 | 248,733,053 | 0 | 0 | null | 2022-12-10T05:41:57 | 2020-03-20T10:55:55 | Python | UTF-8 | Python | false | false | 436 | py | # /usr/bin/python3.6
# -*- coding:utf-8 -*-
class Solution(object):
def titleToNumber(self, s):
"""
:type s: str
:rtype: int
"""
ret = 0
for c in s:
ret = ret * 26+ (ord(c) - 64)
return ret
def main():
s = Solution()
print(s.titleToNum... | [
"378082326@qq.com"
] | 378082326@qq.com |
45aba377b538a219569339402f6b6021b8da3f5f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02883/s255746174.py | aa059eca541afe639d5c1ea7f4e0708ec7f697f0 | [] | 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 | 1,977 | py | #!usr/bin/env python3
from collections import defaultdict, deque, Counter, OrderedDict
from bisect import bisect_left, bisect_right
from functools import reduce, lru_cache
from heapq import heappush, heappop, heapify
import itertools
import math, fractions
import sys, copy
def L(): return sys.stdin.readline().split()... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f8efb8c74310f4b719c4534e9ba34559d46ad0db | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/redhatopenshift/__init__.py | 41a717f48cf8a21eaa241cf41ee6e4ff75aac591 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | 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! ***
from .. import _utilities
import typing
# Export this package's modules as members:
from .get_open_shift_cluster import *
from .list_open_shift_cluster... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
64363c904bbbc4c2d00f5996f09cbfd4c670ff0e | d83fde3c891f44014f5339572dc72ebf62c38663 | /_bin/google-cloud-sdk/.install/.backup/lib/surface/compute/shared_vpc/associated_projects/remove.py | 562c3b094dab18905926157cb74b622f47c19648 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | gyaresu/dotfiles | 047cc3ca70f4b405ba272856c69ee491a79d2ebe | e5e533b3a081b42e9492b228f308f6833b670cfe | refs/heads/master | 2022-11-24T01:12:49.435037 | 2022-11-01T16:58:13 | 2022-11-01T16:58:13 | 17,139,657 | 1 | 1 | null | 2020-07-25T14:11:43 | 2014-02-24T14:59:59 | Python | UTF-8 | Python | false | false | 1,663 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"me@gareth.codes"
] | me@gareth.codes |
d06c89e3e4704b6b3bfe24bcf56abcd88ad1eea5 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnbeelik.py | 8c183581a03b6d19ea9d6794136b1a76c62e0e20 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 42 | py | ii = [('RennJIT.py', 1), ('TennAP.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
769b402acfb136e50fe93eafa4eb47a6bc76c898 | 2ef3ae466da01d0b75349c1e41797db34e6204db | /modelfr_flask.py | 80aaa510b414d585a30959218499e747d34a0201 | [] | no_license | HwangToeMat/FaceRecognition_FlaskServer | 70d4585a747e6632e2c6f68f267658bf9e2ee653 | 875eef57b71be70d555bf47215c716408f0c577a | refs/heads/master | 2023-01-19T19:09:04.275921 | 2020-11-28T14:48:47 | 2020-11-28T14:48:47 | 288,124,323 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,358 | py | import urllib.request
import json
import time
import cv2
from facebank import load_facebank, prepare_facebank
from face_model import MobileFaceNet, l2_norm
from MTCNN import create_mtcnn_net
from utils.align_trans import *
from utils.util import *
import numpy as np
from flask import Flask, request
from flask_restful i... | [
"46777602+HwangToeMat@users.noreply.github.com"
] | 46777602+HwangToeMat@users.noreply.github.com |
dd60332cf9ab19572b3c4f0510c330b868087fe5 | 134ff3c0719d4c0022eb0fb7c859bdbff5ca34b2 | /desktop/libs/hadoop/gen-py/hadoop/api/jobtracker/ttypes.py | 8dad0cf7bf52d74541d82e109128bfc93449d90f | [
"Apache-2.0"
] | permissive | civascu/hue | 22637f13a4cfc557716557661523131b6ac16da4 | 82f2de44789ff5a981ed725175bae7944832d1e9 | refs/heads/master | 2020-03-31T01:50:39.449966 | 2010-07-21T01:05:50 | 2010-07-21T01:07:15 | 788,284 | 0 | 0 | Apache-2.0 | 2019-02-04T07:03:12 | 2010-07-21T07:34:27 | Python | UTF-8 | Python | false | false | 95,264 | py | #
# Autogenerated by Thrift
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
from thrift.Thrift import *
import hadoop.api.common.ttypes
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol
try:
from thrift.protocol import fastbinary
except:
fastbinary = None
... | [
"bcwalrus@cloudera.com"
] | bcwalrus@cloudera.com |
26bb5942f8c2bdf25b8ec18f8e1989f6eecb274e | e66e0b96d91fb224c0cc13ce850249150dba1d2b | /sqs_workers/__version__.py | 804795830a45c6701546ed522362d8b7e0ac7f6c | [
"MIT"
] | permissive | abnerpc/sqs-workers | 4d498cee2aa380b268c51b914836ad1d205d3d8a | f2f7d70beffd56030cadf9511f7b898a71f5a451 | refs/heads/master | 2023-03-06T08:24:40.464560 | 2021-02-23T01:05:11 | 2021-02-23T01:05:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from __future__ import print_function
VERSION = (0, 5, 4)
__version__ = ".".join(map(str, VERSION))
if __name__ == "__main__":
print(__version__)
| [
"roman.imankulov@gmail.com"
] | roman.imankulov@gmail.com |
66ba8169b7bb269e78a0e7d4d2d1902ed00c9b31 | 559fe08f79c297783c404caf7eccee2a269932d4 | /etl/parsers/etw/Microsoft_Windows_MSPaint.py | 59870e297c58cca08d51b04e1ab3f7288908926e | [
"Apache-2.0"
] | permissive | killvxk/etl-parser | 9ba70f54120887f56950054f2cde6dc6c18e0973 | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | refs/heads/master | 2022-11-23T03:35:47.127241 | 2020-07-23T08:55:50 | 2020-07-23T08:55:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,908 | py | # -*- coding: utf-8 -*-
"""
Microsoft-Windows-MSPaint
GUID : 1d75856d-36a7-4ecb-a3f5-b13152222d29
"""
from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct
from etl.utils import WString, CString, SystemTime, Guid
from etl.dtyp import Sid
from etl.par... | [
"citronneur@gmail.com"
] | citronneur@gmail.com |
21a111c728ccb52f4ae6de45f04bbb8308ec1816 | b6d8049568e8068422bc4ac2b957972dc1ee0ab7 | /ui_extensions/data_dog/uninstall_agent.py | 8ee0140c4565b1a8c661cc78750db1189a9bd3c2 | [
"Apache-2.0"
] | permissive | CloudBoltSoftware/cloudbolt-forge | a6dffd52bd074ad48a61527502fcddf8113508ff | a5584a84841be49bea69df506a91d18cb3f215d8 | refs/heads/master | 2023-08-11T08:08:07.730807 | 2023-08-10T11:40:07 | 2023-08-10T11:40:07 | 39,207,603 | 37 | 44 | Apache-2.0 | 2023-09-14T20:06:44 | 2015-07-16T16:18:02 | Python | UTF-8 | Python | false | false | 609 | py | from xui.data_dog.data_dog_helper import DataDog
from common.methods import set_progress
def run(server, *args, **kwargs):
set_progress("Starting process to uninstall DataDog agent...")
datadog_manager = DataDog()
set_progress("Waiting for agent to be uninstalled...")
success, message = datadog_manag... | [
"klaratta@cloudboltsoftware.com"
] | klaratta@cloudboltsoftware.com |
a4551d0b23091e2818afce44febac36f155d3d2f | d9dfbdba209da818b1f08a2a35531ddc14621946 | /manage.py | b965358cd4b4c47a780ca43a2e2615e92718e986 | [] | no_license | Drjimoh/jimohcare | e2e2dbc45b13404df385bda6096c98e39477f8a2 | a0e2d45ab611e3a6c34a80098a6b40a23e4577d2 | refs/heads/master | 2020-05-04T13:53:44.971450 | 2019-04-03T00:53:48 | 2019-04-03T00:53:48 | 179,178,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'jimohcare.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Ar... | [
"waliu.jimoh@yahoo.com"
] | waliu.jimoh@yahoo.com |
3a481714d57ff9aef7c0426ecdbd5302c8e4caf5 | 518d911a66485947c5d336e96a842f162ef9caf1 | /res/scripts/client/gui/scaleform/locale/nations.py | ed18ac27b7c815df9afee876890500d8359e4f69 | [] | no_license | wotmods/WOTDecompiled | 84b8e5d32ee73e1356b4d57318eb76dfac6b5220 | 45fd599666c55cb871f6b84b0ec977b9d4baf469 | refs/heads/master | 2020-12-25T21:34:26.096544 | 2014-11-05T13:58:39 | 2014-11-05T13:58:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | # 2014.10.18 14:42:46 Central European Daylight Time
#Embedded file name: scripts/client/gui/Scaleform/locale/NATIONS.py
class NATIONS(object):
USSR = '#nations:ussr'
GERMANY = '#nations:germany'
USA = '#nations:usa'
FRANCE = '#nations:france'
UK = '#nations:uk'
JAPAN = '#nations:jap... | [
"chodakk@RWAMWCOE31488.emea.roche.com"
] | chodakk@RWAMWCOE31488.emea.roche.com |
3198437d06f1b68e33a787f67c043742594380e4 | 71b98d73958eabd60c40dde724dd80720c7685b5 | /square.py | fafcc292d6e29b0f3f243f8b727907b5aeddd0c5 | [] | no_license | JeremyBogacz/BogaczHW9-1 | ed8a17f4b24fa996fddcde4abea6728d53aed8f9 | 34ab2d34b833ffbf4a8659c5bf8ad8660bd72f82 | refs/heads/main | 2023-09-05T22:35:06.012947 | 2021-11-18T01:25:58 | 2021-11-18T01:25:58 | 429,242,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | # Created by Jeremy Bogacz on 11/17/2021
# This program computes the square of all
# numbers from 0 to 19 and prints them out.
# The squaring is done by the function sq().
def sq(x):
y = x*x
return y
for i in range(20):
z = sq(i)
print z
| [
"debian@beaglebone.localdomain"
] | debian@beaglebone.localdomain |
039e39dba4f54adee9c51ef2873e21c19a02379d | 6d7c488d14cf2bc0322c955a53ec34cfd67e8c3b | /.history/plane_ticket/spiders/ticket_spider_20200709010423.py | 3a78fde8f16af59dc04b8d23e216c4883dc5e14e | [] | no_license | byebyeyuchi/getPlaneTicket-web-crawl- | e247b7d015e35d1036e023c748764abb0ad66fe1 | 91a666659a537c053d8cd19c8214a54eab460800 | refs/heads/main | 2023-02-25T21:43:53.046865 | 2021-01-30T02:14:43 | 2021-01-30T02:14:43 | 334,308,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | import scrapy
import re
class TicketSpider(scrapy.Spider):
name = "tickets"
start_urls = [
"http://montreal.chineseconsulate.org/chn/zlgxw/"
]
def parse(self, response):
output ={}
pattern = '\u5173\u4e8e\u4e58\u5750\u4e34\u65f6\u822a\u73ed\u56de\u56fd'
top = response... | [
"delseylyq@gmail.com"
] | delseylyq@gmail.com |
094334d4c964e9d7c2c21a87316fba6376ce0186 | f60a33a4107e955005339d64fb2ae317b00a686a | /qem/i2c_container.py | d8bbe44069bd0f589b66778783a0fefa1ae83147 | [] | no_license | jamesh1999/odin-qem | 0190b31170cab97e5da051472187109186774e24 | af8d1523f6b0805dac9deeb9be127e097af48c86 | refs/heads/master | 2021-01-01T04:48:15.493069 | 2017-07-25T15:46:44 | 2017-07-25T15:46:44 | 97,250,473 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,058 | py | """I2CContainer - container class for I2CDevice instances.
This class allows I2CDevice instances to be group together into logical units, e.g.
to associate devices belonging to a particular bus or unit together. A callback
mechanism allows a pre-access method to be called for all devices in the container, for
instance... | [
"root@beaglebone.localdomain"
] | root@beaglebone.localdomain |
0abb4154c74df7dc21484818ac6e05cee70d5f23 | 3303ea7b4315b683f22fea3546e56e3c35e0de27 | /omv/engines/jneuromlpynnnrn.py | 64e8cf0b1ff75fb285c9aa6f728a4cf8e36d9e42 | [] | no_license | OpenSourceBrain/osb-model-validation | a630992003d09dddcc51fcafc17b6a2c54063f63 | 4ff8207c246e2bcfd16c5d82cbed9165acfc08e0 | refs/heads/master | 2023-08-24T08:22:49.897052 | 2023-08-10T16:38:41 | 2023-08-10T16:38:41 | 18,841,768 | 9 | 9 | null | 2023-09-12T13:47:40 | 2014-04-16T14:04:21 | XSLT | UTF-8 | Python | false | false | 2,734 | py | import os
import subprocess as sp
from omv.engines.jneuroml import JNeuroMLEngine
from omv.engines.pynnneuron import PyNNNRNEngine
from omv.engines.neuron_ import NeuronEngine
from omv.engines.pynn import PyNNEngine
from omv.common.inout import inform, trim_path, check_output, is_verbose
from omv.engines.engine impor... | [
"p.gleeson@gmail.com"
] | p.gleeson@gmail.com |
62f3f5565496349add1bb6d59704d4dda5ae8a50 | 40b262d813d07a113914d6009af8737898f2e096 | /Python/myEnvironments/djangoEnv/Scripts/rst2pseudoxml.py | 266d43de1aae27f692b50fa17ddabf77a50eb900 | [] | no_license | Nish8192/Python | cb6de3b96e790464a0a4ad10eda86ce4f79688b4 | 5c03beff6f3669d5cfb6b31c5749827db8b6a627 | refs/heads/master | 2020-12-23T16:56:18.301723 | 2017-05-27T02:09:02 | 2017-05-27T02:09:02 | 92,563,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | #!c:\users\nishant\docume~1\coding~1\python\myenvi~1\django~1\scripts\python.exe
# $Id: rst2pseudoxml.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing pseudo-... | [
"nish8192@gmail.com"
] | nish8192@gmail.com |
9186ca3c9c7fe44bb28860612dbbbe3c6e75932e | f51b9a52a0ccde2d04c43fa01d7956387827e886 | /hpat/utils.py | 485165d40f0671e1b505a85ce8a60d2127a0128b | [
"BSD-2-Clause"
] | permissive | gitter-badger/hpat | a57af30fcf7e6ca08c57bc373a8d557b16a18e02 | b72c4a8358a31b41a5d9cd4a0c792cf6ff3db0e8 | refs/heads/master | 2021-04-28T18:02:23.221045 | 2018-02-17T14:53:23 | 2018-02-17T14:53:28 | 121,863,986 | 0 | 0 | null | 2018-02-17T14:58:18 | 2018-02-17T14:58:18 | null | UTF-8 | Python | false | false | 4,387 | py | import numba
from numba import ir_utils, ir, types, cgutils
from numba.ir_utils import guard, get_definition, find_callname, require
from numba.parfor import wrap_parfor_blocks, unwrap_parfor_blocks
from numba.typing import signature
from numba.typing.templates import infer_global, AbstractTemplate
from numba.targets.i... | [
"ehsan.totoni@intel.com"
] | ehsan.totoni@intel.com |
143707d0d16ad3b70de09f7ffcb5f80624cd448c | 1651396e3f5824958d90e8a2d7824fa10ed33f49 | /exmo/urls.py | 0951d6a1d025df24795211d49c498ba84cb422d1 | [] | no_license | SevenLines/django-xrp | 17cbd5bb2f7fcba7cbd6c29ad3bffdc5b0301bfd | f3038f401510b0e37e04a80a9c28496ac133698d | refs/heads/master | 2021-05-05T13:44:57.880208 | 2018-01-22T16:19:00 | 2018-01-22T16:19:00 | 118,362,993 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | """exmo2 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based v... | [
"mmailm@mail.ru"
] | mmailm@mail.ru |
47b408ffd0e9ec78417c53268a4bbeb33cabb15d | efb60258270c70d0b16581e8b6fe32001015b16b | /modules/services/dbservices/post/new_repost_service.py | 75dcfbe54c990766bcfd79580a25a8c824f4185e | [
"LicenseRef-scancode-public-domain"
] | permissive | signeus/API-Web | bd48177201007e2091828458da3572fde4f24755 | b9fe99465a178666299a079f99a42dafc80c5bb7 | refs/heads/master | 2021-01-11T20:30:50.964928 | 2017-05-19T09:31:01 | 2017-05-19T09:31:01 | 79,131,449 | 1 | 1 | null | 2017-04-07T08:42:55 | 2017-01-16T15:25:05 | Python | UTF-8 | Python | false | false | 975 | py | # -*- coding: utf-8 -*-
from services.interfaces.i_service import IService
class NewRepostService (IService):
def __init__(self, core, parameters):
super(NewRepostService, self).__init__(core, parameters)
def run(self):
post_object_id = self.core.InternalOperation("castHex2ObjectId", {"id": se... | [
"kev.ms93@gmail.com"
] | kev.ms93@gmail.com |
f916f78fd2fa7677fe4fa3832fd2ab0d503f1e66 | a2d1df88f38ed21ff42f8f56c63031ac5cc49abe | /dp/e.py | e271d227fa8aeaaf7b49c52b8ff8ee411cfb3838 | [] | no_license | honyacho/atcoder_excercise | 70831d77a328cae82b0594da4bb3f04e995ef001 | aa119994e53abb0bb0f47e0002704e48984ffb38 | refs/heads/master | 2021-06-14T02:26:51.918702 | 2021-03-15T05:48:56 | 2021-03-15T05:48:56 | 173,929,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | def LI(): return [int(x) for x in input().split()]
def II(): return int(input())
N,W=LI()
INL = [tuple(LI()) for i in range(N)]
DP=[[10**18]*100001 for _ in range(N+1)]
DP[0][0] = 0
for i, (w, v) in enumerate(INL, 1):
for j in range(100001):
DP[i][j] = min(DP[i-1][j], DP[i][j])
if (j+v) <= 100000:... | [
"cc_called_pizza@yahoo.co.jp"
] | cc_called_pizza@yahoo.co.jp |
2e453b54bdd4450e5af9b3ec63a55ed2cac1a3ba | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2835/60793/244564.py | 2c8ff1a4da8f02b789650bc25e55f1c37969d07c | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | card_num = int(input())
cards = list(map(int, input().split(" ")))
cards.sort(reverse=True)
max_num = int("".join([str(x) for x in cards]))
if max_num == 555555555:
print(-1)
elif max_num == 5500:
print(0)
elif max_num == 5:
print(-1)
elif max_num == 5555555:
print(-1)
elif max_num == 5555555000:
pr... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
2a79ead8bbc9f6b305cd05e0c02355bd9e40f276 | 3fc7a6ffc39390c8228b30b6d53a3429104bf5f3 | /August/directory-8-7/集合.py | 7154607d263ac58c16c8037e0b041d2567e0b95b | [] | no_license | liuluyang/miller | a5463c0f9625570de2cf16a9844ed4c7f82dde76 | 786f286749972fb2c3a66e068a3874a00aa0f2ee | refs/heads/master | 2020-09-21T22:20:22.987833 | 2019-11-30T03:20:13 | 2019-11-30T03:20:13 | 224,952,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,925 | py | # ############## 定义方式 #################
set()
# set111 = {}
# set222 = set()
# print(type(set111)) # <class 'dict'>
# print(type(set222)) # <class 'set'>
# 利用天生的去重属性, 为列表去重
# li = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
# print(li)
# set2222 = set(li)
# print(set2222)
# set1 = set(range(1, 11))
# print("set1", set... | [
"1120773382@qq.com"
] | 1120773382@qq.com |
339f25f482f183f94ceee5c7b649a83a73403cfd | 47343c9191f7fcfefae38b2d8160d39ba9410271 | /94printkthnum.py | a8169c82823be52994c41feaf228375554c9eeef | [] | no_license | naveenameganathan/python3 | 01f7c06e48559693b1f132a8223ad9f9855e8a1f | 6bff6f16de0a03dd36bedec140935c3af56b983f | refs/heads/master | 2020-05-23T02:17:31.986878 | 2019-07-25T17:36:39 | 2019-07-25T17:36:39 | 186,600,896 | 1 | 4 | null | 2019-10-03T15:15:09 | 2019-05-14T10:35:52 | Python | UTF-8 | Python | false | false | 83 | py | p,q=map(int,input().split())
r=list(map(int,input().split()))
print(r[q-1],end="")
| [
"noreply@github.com"
] | naveenameganathan.noreply@github.com |
edf9d8a217f8f57f77f61f006f9eb63bc360d4e7 | 457b687219cb723585164e84417ed3bacc8c234d | /qianfeng_400/Django_learning/firstSite/project/myApp/migrations/0001_initial.py | 0e2a03c171c6e6fd39071b39854dead8c262863b | [] | no_license | jxy147258/qianfeng_python | ffdc77fb05cfb2302af51fc3047efa0eadeb2064 | 0f6c06fdf19a47f7b5083cde4e1eb2011442c5f7 | refs/heads/master | 2021-07-16T15:19:45.759356 | 2021-02-03T16:04:14 | 2021-02-03T16:04:14 | 237,947,869 | 2 | 2 | null | 2020-02-07T06:41:06 | 2020-02-03T11:17:13 | Python | UTF-8 | Python | false | false | 1,377 | py | # Generated by Django 3.0.4 on 2020-03-18 14:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Grades',
fields=[
... | [
"1162591945@qq.com"
] | 1162591945@qq.com |
0f27404c766c37fbcdb6b79c074fb7c755522456 | b39b0625795b0640a6a68151f2012ce139f423b8 | /iaas/swagger_client/models/cloud_account_regions.py | c35ff044d343fe3028ced42e4c474fb813bd4ee6 | [] | no_license | darrylcauldwell/casCodegen | 8e82b1f08e8260482996aec3d8be10934a65dd03 | 1f1ff9ab8a33102bcfcb8be276d51992d96bcb61 | refs/heads/master | 2020-07-27T14:42:28.550855 | 2019-09-17T18:30:28 | 2019-09-17T18:30:28 | 209,127,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,592 | py | # coding: utf-8
"""
VMware Cloud Assembly IaaS API
A multi-cloud IaaS API for Cloud Automation Services # noqa: E501
OpenAPI spec version: 2019-01-15
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class CloudAccountRegio... | [
"dcauldwell@dcauldwell-a01.vmware.com"
] | dcauldwell@dcauldwell-a01.vmware.com |
6dc3a1d00bc9a92efa1ce7a7cf906be52294107f | 5848c972405019f4cf4fbc1e6722e9cc3fbd6de2 | /HashTable_find first reapeated character.py | 5582b2606b2373244ef96864d22b3a4b73fc4b95 | [] | no_license | golfnut1400/Python101 | d0313df80a791fde6dc279266755bcf654a544e4 | 96c1d15bd8fb3d3e921e00ed3b99fa7dcf829aba | refs/heads/master | 2021-05-16T01:28:36.587162 | 2017-10-31T00:10:07 | 2017-10-31T00:10:07 | 107,073,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py |
# Python program to find the first
# repeated character in a string
def firstRepeatedChar(str):
h = {} # Create empty hash
# Traverse each characters in string
# in lower case order
for ch in str:
# If character is already present
# in hash, return char
if ch in h:
return ch;
# Add ch to hash
els... | [
"srcorpuz@hotmail.com"
] | srcorpuz@hotmail.com |
d25755e69a2bb54199a72d17356995fc3ab119d9 | e030b4d7fae048e3acd427d91d659627eab7ee44 | /Problem 31.py | 6fd8896a46623638ba53302716966f75d69d5a94 | [] | no_license | 0l1fe/Project-Euler-solutions | 02d8596d6346dd150ab7c69f65b1a5f8d233cb92 | c231871c8e625b05f1d5d25f9ae05b5d9c1c740a | refs/heads/master | 2022-04-26T18:58:27.885791 | 2020-04-27T22:08:58 | 2020-04-27T22:08:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 27 21:12:49 2020
@author: kjiwj
"""
C = [1, 2, 5, 10, 20, 50, 100, 200]
limit = 200
S = [1] + [0] * limit
for c in C:
for i in range(len(S) - c):
S[i + c] += S[i]
print(S[-1])
| [
"you@example.com"
] | you@example.com |
8821a6a638c25b13b27be77af31fcd9fb41409b3 | a2e638cd0c124254e67963bda62c21351881ee75 | /Python modules/MR_Sngl_Asset_NoTouch_BarOption.py | 031adb185e58f3a86bfb2190839b975a3c8d99ec | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,377 | py |
'''
Purpose :Market Risk feed files,[Ammended to correct the model name code]
Department and Desk :IT,Market Risk
Requester: :Natalie Austin,Susan Kruger
Developer :Douglas Finkel,Tshepo Mabena
CR Number :264536, 714504,[824244 - 919,952,1037,1054]
Date ... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
36e0a841d475aa18cd936e68fa47e880aa9800ef | 0452408a98e03408508b4889ed68a8d0f2d9f8cf | /alphatwirl/selection/modules/LambdaStr.py | 3f9847b0ef9b935a99cf3658d61791261919bbc5 | [
"BSD-3-Clause"
] | permissive | benkrikler/alphatwirl | 3318e79b89ce0e79c4a4399c7a40c789531f0e60 | cda7d12fec21291ea33af23234fc08be19430934 | refs/heads/master | 2021-01-23T12:54:05.101466 | 2018-09-26T13:13:18 | 2018-09-26T13:13:18 | 93,210,643 | 0 | 0 | BSD-3-Clause | 2018-03-19T12:27:16 | 2017-06-02T23:18:59 | Python | UTF-8 | Python | false | false | 1,421 | py | # Tai Sakuma <tai.sakuma@gmail.com>
##__________________________________________________________________||
class LambdaStr(object):
"""select events to which a lambda returns True.
A lambda should be given as a string to __init__ and will be
evaluated in begin(). This is because a lambda is not picklable.... | [
"tai.sakuma@gmail.com"
] | tai.sakuma@gmail.com |
7c29d6db012f2699003394e2dec4607e38279e1a | 9080e6e53da365b0d811099e2e992041cf4b5b47 | /0x11-python-network_1/102-starwars.py | a8d67e6f8867c38e1c7e0feb82ce904ef92c33a3 | [] | no_license | benjamesian/holbertonschool-higher_level_programming | 213ad8c39d1fc2ee81843124a46914be166445d3 | 99f00414833757e3b156c148927a858ce38baa0e | refs/heads/master | 2020-07-23T00:52:46.858544 | 2020-02-11T22:03:24 | 2020-02-11T22:03:24 | 207,389,880 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | #!/usr/bin/python3
import requests
from sys import argv
def print_page(json):
for result in json.get('results'):
print(result.get('name'))
for el in result.get('films'):
r = requests.get(el)
print('\t{}'.format(r.json().get('title')))
if __name__ == '__main__':
url = '... | [
"808@holbertonschool.com"
] | 808@holbertonschool.com |
355f6d41a19f2bf24fdc6652544fd62b8f9dbd93 | b3845947cbf5393d47b680eaf8c6feb724955902 | /tools/messages_pb2.py | 839c8c370525b188b01ead82642c4769ee740f94 | [] | no_license | eric-wieser/unicycle-embedded | 886db4cbc46eb7af4c145f20d5f84af822fd555a | 19aef7ed2d6831351fb8ab1b7475782ff5148850 | refs/heads/master | 2020-06-13T21:21:50.355451 | 2017-07-12T13:08:28 | 2017-07-12T13:10:49 | 75,553,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 26,924 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: messages.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _... | [
"wieser.eric@gmail.com"
] | wieser.eric@gmail.com |
6185acb8a2e1cfc6c6ec3e6d73264db7dfb8a4ea | d5a32e532fe231c16e52149604f0db34c5f4d2f9 | /binarysearch.io/190_sum_tree.py | af78e38963492a6f4c98b3de0c23702baecb1c64 | [
"MIT"
] | permissive | mishrakeshav/Competitive-Programming | 93705f63337639e8464c1d50f3394434b7422f15 | 00c1bd272646754ca4c260d57989304c8e323838 | refs/heads/master | 2023-07-06T07:32:23.042324 | 2023-06-29T15:27:24 | 2023-06-29T15:27:24 | 216,195,590 | 3 | 3 | MIT | 2020-10-03T07:55:18 | 2019-10-19T11:27:53 | Python | UTF-8 | Python | false | false | 655 | py | # class Tree:
# def __init__(self, val, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def solve(self, root):
def helper(root):
if root is None:
return True
if root.left is None an... | [
"keshav.sm@somaiya.edu"
] | keshav.sm@somaiya.edu |
aa6536673fe05327bffffa7cd1114738bac05202 | cc9a87e975546e2ee2957039cceffcb795850d4f | /venv/lib/python3.7/site-packages/pip-19.0.3-py3.7.egg/pip/_vendor/chardet/langbulgarianmodel.py | 99cea3a9dccef1b93e21f2069a0a31fb73ef08fb | [] | no_license | CodeHunterDev/Belajar-Python | 304d3243801b91b3605d2b9bd09e49a30735e51b | 9dd2ffb556eed6b2540da19c5f206fedb218ae99 | refs/heads/master | 2023-03-19T22:12:46.330272 | 2020-02-04T08:02:00 | 2020-02-04T08:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,682 | py | ######################## BEGIN LICENSE BLOCK ########################
# The Original Code is Mozilla Communicator client code.
#
#
# Contributor(s):
# Mark Pilgrim - port to Python
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License ... | [
"adam.faizal.af6@gmail.com"
] | adam.faizal.af6@gmail.com |
e5bdbbc5d318ec3b98e5a3ed5a16a5f36a63d8ba | c97b9ae1bf06757ba61f90905e4d9b9dd6498700 | /venv/Lib/site-packages/shapely/wkt.py | 077581f4603cb6dc732311cb6360655de6709c63 | [] | no_license | Rahulk1p/image-processor | f7ceee2e3f66d10b2889b937cdfd66a118df8b5d | 385f172f7444bdbf361901108552a54979318a2d | refs/heads/main | 2023-03-27T10:09:46.080935 | 2021-03-16T13:04:02 | 2021-03-16T13:04:02 | 348,115,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:e9cf52b1fe6ac29ca85ad0b65f30edc459c2b3b475b7b52c937b3da9c9c6a683
size 1961
| [
"rksc.k1p@gmail.com"
] | rksc.k1p@gmail.com |
80aad59cdaeb2801bc177ba7ccdd3fb47ba12b23 | 8853462a79608b7e5b7af94dbfa6c0a63c1f6b6a | /CustomEnvs/Gym envs/2. Crawler/Quadruped_32/Quadruped_32/envs/Quadruped_32.py | 0554d6b6f5e8b83f716c91ded72debd12efd481a | [] | no_license | Ashish017/CASNET | eaae2552f8d56413f756c7d3839cd6f548a6e1ef | 73ec542c4c3fa1f97686796f0c385c71cad3e8d5 | refs/heads/master | 2023-02-06T06:53:27.362356 | 2020-12-27T04:43:34 | 2020-12-27T04:43:34 | 270,657,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,082 | py | import numpy as np
from gym import utils
from gym.envs.mujoco import mujoco_env
import time
class model_data:
def __init__(self):
self.num_legs = 4
self.leg_lengths = [[0.3, 0.6],[0.3, 0.6],[0.3, 0.6],[0.3, 0.6]]
self.leg_starts = [[0.25, 0.55],[0.25, -0.55],[-0.25, -0.55],[-0.25, 0.55]]
self.joint_ranges = ... | [
"ashishmalik7017@gmail.com"
] | ashishmalik7017@gmail.com |
6dbb94b3b57c1172b9880d64beb3a48a966560f0 | b0640fb8fd786771463efaa0b591a2995dfbb6c1 | /mayan/apps/events/views.py | 779bfbc005b93954461aeb2c75d08e98c6246a23 | [
"Apache-2.0"
] | permissive | kyper999/mayan-edms | 9a868ee9470e8689bf8c36f3cc6c05bcc2b356a8 | ca7b8301a1f68548e8e718d42a728a500d67286e | refs/heads/master | 2021-01-22T20:18:34.009706 | 2017-03-14T03:58:25 | 2017-03-14T03:58:54 | 85,309,322 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,003 | py | from __future__ import absolute_import, unicode_literals
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import PermissionDenied
from django.http import Http404
from django.shortcuts import get_object_or_404
from django.utils.translation import ugettext_lazy as _
from actstream.... | [
"roberto.rosario.gonzalez@gmail.com"
] | roberto.rosario.gonzalez@gmail.com |
4cfc74820af4fbf39336e91f8a8572fb99b1cd57 | f47863b3a595cbe7ec1c02040e7214481e4f078a | /plugins/scan/haitianoa/2353.py | 0e5c40ae15add2ea193d5d429969998433eaf59e | [] | no_license | gobiggo/0bscan | fe020b8f6f325292bda2b1fec25e3c49a431f373 | 281cf7c5c2181907e6863adde27bd3977b4a3474 | refs/heads/master | 2020-04-10T20:33:55.008835 | 2018-11-17T10:05:41 | 2018-11-17T10:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | #!usr/bin/env python
# *-* coding:utf-8 *-*
'''
name: 海天OA一处SQL注入
author: yichin
refer:
http://www.wooyun.org/bugs/wooyun-2014-087575
description:
漏了一个
cookie 注入,事实上有多处,这里用一处做验证
'''
def assign(service, arg):
if service == 'haitianoa':
return True, arg
def audit(arg):
#GET型
url = arg ... | [
"zer0i3@aliyun.com"
] | zer0i3@aliyun.com |
56feb999263cdfab66a483a735976984b37ca1d7 | 60530f3e1d22fcb3b51be0b9f482a912c8203bb0 | /Practical_Project/exercise3.py | a1d477233780d844c97430d1d642ac6596e50514 | [] | no_license | cinxdy/Python_practice | 1afb2aca1c92d16d98459407ae02ca2ed7f7832c | 8a2642b51c6ad73840dae964b1a55cbb53f7b9f7 | refs/heads/master | 2022-05-09T00:10:15.849881 | 2022-04-03T09:38:53 | 2022-04-03T09:38:53 | 180,339,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | filename = input("Enter the file name to read >> ")
filein = open(filename,'rt')
filename = input("Enter the file name to write >> ")
fileout = open(filename,'wt')
for line in filein :
sum = 0
numlist = line.split(' ')
for num in numlist :
sum += float(num)
fileout.write("%f\n"%sum);
print(... | [
"cinxdys2@gmail.com"
] | cinxdys2@gmail.com |
f073ffc06119df137830f2b3861318f2c8c7e53b | 5a3d76c4397822dea0eede8d07a742a4779e2e38 | /kader/kader/doctype/violation/violation.py | 580fa8c778272399c35e317c3c7c76afae0635ce | [
"MIT"
] | permissive | Muad96/kader2 | 6c232441b53baba2f2de1f6d5e4935966b4b6f4f | 908da8a43b1b1fa984a152a760ba3f3a92a3b09b | refs/heads/master | 2021-01-08T13:46:32.298277 | 2020-02-26T22:58:55 | 2020-02-26T22:58:55 | 242,044,131 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,516 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, KABCO and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from kader.kader.tools import get_daily_rate
from frappe.utils import get_first_day, getdate, add_month... | [
"frappe@ubuntu.vm"
] | frappe@ubuntu.vm |
f479167d3fed662d761efdda83ffc11d07258c67 | afc8f17ed7387ef03b69e63523f12e1a0fe5b971 | /scenarios/main_module/app2.py | 783cc37a01741210688cdc9e580608a14da94905 | [] | no_license | jean/dectate | 4b0d1e9a40401a1a04cb743057a3220696d1f788 | a85c65dfe8ca3742fe9b7ff5f7d1ed8fc8621b73 | refs/heads/master | 2021-01-11T13:42:11.760020 | 2016-12-28T16:16:15 | 2016-12-28T16:16:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | import app
@app.App.foo(name='b')
def g():
pass
| [
"faassen@startifact.com"
] | faassen@startifact.com |
c5bb5b8a05ca9fc3eea27daeedcfad52a55f61d8 | 8a80c03fed4c1188d4c591bab859acc0267e5cbe | /hgvs/posedit.py | 60c517c9d1a2ea9c21f9677e9b7ae31bde2e17db | [
"Apache-2.0"
] | permissive | naomifox/hgvs | d98dc412e72cffdcb316a6fa0d2d3002f92bb6ee | 5007142191cac8dba2272bad5b945a27c0a5cf87 | refs/heads/master | 2020-03-10T08:30:58.853760 | 2018-04-12T18:52:40 | 2018-04-12T18:52:40 | 129,286,817 | 0 | 0 | Apache-2.0 | 2018-04-12T17:17:46 | 2018-04-12T17:17:46 | null | UTF-8 | Python | false | false | 4,682 | py | # -*- coding: utf-8 -*-
"""implements a (position,edit) tuple that represents a localized sequence change
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import attr
from hgvs.exceptions import HGVSUnsupportedOperationError
from hgvs.enums import ValidationLevel
@attr.s(slot... | [
"reecehart@gmail.com"
] | reecehart@gmail.com |
8db3bcf441ba67f7340f9b516a2c873455f03f1e | 9afbb6993450d1e0c3bae68e86844bd06d4419ee | /numpy/list_intro/l1.py | b44cfd49abf8a17919078490a32b35873ac5d0cd | [] | no_license | Jigar710/Python_Programs | 6f331caac30878655d4cca4ad97d4214c0262088 | 714a6306487eb6712f32ccb51b6a2407a81873fa | refs/heads/main | 2023-02-25T12:24:44.874199 | 2021-01-28T15:43:24 | 2021-01-28T15:43:24 | 332,869,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | lst = [1,2,3]
print(lst,type(lst))
lst = [1,2,3,2,3,3,1,2]
print(lst,type(lst))
lst = []
print(lst,type(lst))
lst = list()
print(lst,type(lst))
lst = [1,2.3,"hello",'welcome',[20,3]]
print(lst,type(lst))
for i in lst:
print(i)
print("===============================")
#for i in range(0,len(lst)):
for i in range(le... | [
"jigar.shekhat.777@gmail.com"
] | jigar.shekhat.777@gmail.com |
1877db6e703020410e66880ad7f40417220b6984 | a99a44aee5cfc5e080f6d83d2bcc1c3d273a3426 | /cgi-bin/request/metars.py | b0581771571dbc36f53ad138c2438e467dff3288 | [
"MIT"
] | permissive | ragesah/iem | 1513929c8bc7f254048271d61b4c4cf27a5731d7 | 8ed970d426bddeaa3e7ded593665d22f0f9f6e87 | refs/heads/main | 2023-08-20T20:01:15.480833 | 2021-10-12T15:44:52 | 2021-10-12T15:44:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,659 | py | """Provide an UTC hour's worth of METARs
Called from nowhere known at the moment
"""
from io import StringIO
import sys
import datetime
import pytz
from paste.request import parse_formvars
from pyiem.util import get_dbconn
def check_load(cursor):
"""A crude check that aborts this script if there is too much
... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
4ee798fb8fad8030ce32f65e367abff768cf756b | 3b1efdd0aacc98738f3b8b9ee09c6ff59cccc14e | /ietf/group/migrations/0019_rename_field_document2.py | ee674751455faa2587eac19583859a72cc9b1445 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | unofficial-mirror/ietfdb | 15beb6bf17b1d4abb257ee656ac6b7488339d331 | ce54adb30dc7299c6eb4d42b9aa9d2c2929c1a81 | refs/heads/master | 2020-08-06T17:24:13.966746 | 2019-10-04T20:54:05 | 2019-10-04T20:54:05 | 213,088,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | # Copyright The IETF Trust 2019, All Rights Reserved
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-25 06:52
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('doc', '0019... | [
"henrik@levkowetz.com"
] | henrik@levkowetz.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.