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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37c24b3960134c61b5a8710012b9ad3ebf8a62fe | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Python/Scripts/Auto py to exe/build/lib/auto_py_to_exe/dialogs.py | 08ced7a66201b6e9c57607cc3cabb9a7329be462 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:17632a1084b74f79b082631a021c864a01bee63a94b1fb5768945e30f05a405b
size 2899
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
7461b94a60fcbe15ed116a2853262476e06aaafd | c06d18ac5b87b3b82fc486454c422b119d6c1ee9 | /src/demo/_tensorflow/linear/linear.py | 70f197e8d2ad5074603c813b803127c0355fe803 | [
"MIT"
] | permissive | tangermi/nlp | b3a4c9612e6049463bf12bc9abb7aff06a084ace | aa36b8b20e8c91807be73a252ff7799789514302 | refs/heads/master | 2022-12-09T12:33:15.009413 | 2020-04-03T04:03:24 | 2020-04-03T04:03:24 | 252,056,010 | 0 | 0 | null | 2022-12-08T07:26:55 | 2020-04-01T02:55:05 | Jupyter Notebook | UTF-8 | Python | false | false | 1,092 | py | # -*- coding: utf-8 -*-
import tensorflow as tf
class Linear(tf.keras.Model):
def __init__(self):
super().__init__()
self.dense = tf.keras.layers.Dense(
units=1,
activation=None,
kernel_initializer=tf.zeros_initializer(),
bias_initializer=tf.zeros_in... | [
"n10057862@qut.edu.au"
] | n10057862@qut.edu.au |
237b5db6e779a7de6c8b385bcac3bf982604e07e | 931aa9c6a44f86e86440c17de62801b26b66fce8 | /constance/LV/getLineUnbalanceAndLosses.py | f92c4871027b8e1d87960321b14354a1e8ea4bb7 | [] | no_license | Constancellc/epg-psopt | 3f1b4a9f9dcaabacf0c7d2a5dbc10947ac0e0510 | 59bdc7951bbbc850e63e813ee635474012a873a4 | refs/heads/master | 2021-06-08T11:33:57.467689 | 2020-04-01T13:19:18 | 2020-04-01T13:19:18 | 96,895,185 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,785 | py | import csv
import random
import copy
import numpy as np
import matplotlib.pyplot as plt
from lv_optimization_new import LVTestFeeder
import pickle
#outfile = '../../../Documents/simulation_results/LV/voltages.csv'
stem = '../../../Documents/ccModels/eulv/'
alpha = 0.328684513701
g = open(stem+'lnsYprims.pkl','rb')
da... | [
"constancellc@gmail.com"
] | constancellc@gmail.com |
9c541ff8948b8d049f61e4e3e61cfa30a9bb0056 | 33170e7fc26b6af2ab61b67aa520c307bbd0e118 | /py/trash/947_predict_0228-4.py | 09ef21e955ea5f5f8ebc8ba007660cc1fa85d498 | [
"MIT"
] | permissive | alaskaw/Microsoft-Malware-Prediction | 26e56adb803184328d1a8f5a3423d5edda7fc400 | 103cbf7c4fc98ae584e1aa9d1c220bb79ddbbd80 | refs/heads/master | 2020-04-28T21:22:06.403542 | 2019-03-14T04:36:01 | 2019-03-14T04:36:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,407 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Feb 28 16:52:33 2019
@author: kazuki.onodera
"""
import numpy as np
import pandas as pd
import os, gc
from glob import glob
from tqdm import tqdm
import sys
sys.path.append(f'/home/{os.environ.get("USER")}/PythonLibrary')
import lgbextension as ex
im... | [
"luvsic02@gmail.com"
] | luvsic02@gmail.com |
ef3126368dbc5fb7408a2d35f7fc575b6e8fb814 | 5aee5e9274aad752f4fc1940030e9844ef8be17d | /HeavyIonsAnalysis/JetAnalysis/python/jets/akPu7CaloJetSequence_pPb_jec_cff.py | d5e8f0b11759a74be3f22036f437b49b4dd08852 | [] | no_license | jiansunpurdue/5316_dmesonreco_hiforest | 1fb65af11ea673646efe1b25bd49e88de9bf3b44 | a02224ad63160d91aab00ed2f92d60a52f0fd348 | refs/heads/master | 2021-01-22T02:53:43.471273 | 2014-04-26T16:10:12 | 2014-04-26T16:10:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,574 | py |
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
akPu7Calomatch = patJetGenJetMatch.clone(
src = cms.InputTag("akPu7CaloJets"),
matched = cms.InputTag("ak7HiGenJetsCleaned")
)
akPu7C... | [
"sun229@purdue.edu"
] | sun229@purdue.edu |
bc4dde6205e2dc08c3f1b2c7b8d97523b58c76b8 | 8b00e2b136636841b38eb182196e56f4721a1e4c | /trio/_core/_exceptions.py | 45f21d389ae8d6f15662d6ff796adfea373bad80 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | xyicheng/trio | 77c8c1e08e3aa4effe8cf04e879720ccfcdb7d33 | fa091e2e91d196c2a57b122589a166949ea03103 | refs/heads/master | 2021-01-23T00:05:59.618483 | 2017-03-16T04:25:05 | 2017-03-16T04:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,364 | py | import attr
# Re-exported
__all__ = [
"TrioInternalError", "RunFinishedError", "WouldBlock",
"Cancelled", "PartialResult",
]
class TrioInternalError(Exception):
"""Raised by :func:`run` if we encounter a bug in trio, or (possibly) a
misuse of one of the low-level :mod:`trio.hazmat` APIs.
This sho... | [
"njs@pobox.com"
] | njs@pobox.com |
f9c568a46854f97c14938d17f5845aa1f9cf72f9 | 915ea8bcabf4da0833d241050ef226100f7bd233 | /SDKs/Python/test/test_contract_item.py | d3f8d89ca8fd4f3b3678876eb22038d67bad2eb9 | [
"BSD-2-Clause"
] | permissive | parserrr/API-Examples | 03c3855e2aea8588330ba6a42d48a71eb4599616 | 0af039afc104316f1722ee2ec6d2881abd3fbc07 | refs/heads/master | 2020-07-10T22:17:24.906233 | 2019-08-26T03:06:21 | 2019-08-26T03:06:21 | 204,382,917 | 0 | 0 | null | 2019-08-26T02:48:16 | 2019-08-26T02:48:15 | null | UTF-8 | Python | false | false | 922 | py | # coding: utf-8
"""
MINDBODY Public API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
impo... | [
"christopher.volpi@mindbodyonline.com"
] | christopher.volpi@mindbodyonline.com |
537ecd9ff7dea52514e94a67ec8488f4a88abd28 | 10f1f4ce92c83d34de1531e8e891f2a074b3fefd | /graph/gcn_utils/feeder.py | 9b012bf3355a26228cac9c53bbd94c997bfe56d8 | [
"MIT"
] | permissive | sourabhyadav/test_track | d88c4d35753d2b21e3881fc10233bf7bbb1e2cec | d2b4813aaf45dd35db5de3036eda114ef14d5022 | refs/heads/master | 2021-01-06T12:38:56.883549 | 2020-02-05T07:08:46 | 2020-02-05T07:08:46 | 241,328,706 | 1 | 0 | MIT | 2020-02-18T10:06:14 | 2020-02-18T10:06:13 | null | UTF-8 | Python | false | false | 2,751 | py | '''
Author: Guanghan Ning
E-mail: guanghan.ning@jd.com
October 24th, 2018
Feeder of Siamese Graph Convolutional Networks for Pose Tracking
Code partially borrowed from:
https://github.com/yysijie/st-gcn/blob/master/feeder/feeder.py
'''
# sys
import os
import sys
import numpy as np
import random... | [
"chenhaomingbob@163.com"
] | chenhaomingbob@163.com |
05a2d22595769aabb8ba1288219cbc5896aff69b | 837fcd0d7e40de15f52c73054709bd40264273d2 | /practices_loop-master/sum_user_quit.py | 7d4bd070a2e7a364a41b6719421b8247f5090e2f | [] | no_license | NEHAISRANI/Python_Programs | dee9e05ac174a4fd4dd3ae5e96079e10205e18f9 | aa108a56a0b357ca43129e59377ac35609919667 | refs/heads/master | 2020-11-25T07:20:00.484973 | 2020-03-08T12:17:39 | 2020-03-08T12:17:39 | 228,554,399 | 0 | 1 | null | 2020-10-01T06:41:20 | 2019-12-17T07:04:31 | Python | UTF-8 | Python | false | false | 333 | py | #In this program if user input 4 then sum all numbers from starting to ending. if user input quit then program exit"
user=raw_input("enter your number")
index=1
var1=0
while index<=user:
if user=="quit":
break
user=int(user)
if index<=user:
var1=var1+index
index=index+1
if var1!=0:
... | [
"nehai18@navgurukul.org"
] | nehai18@navgurukul.org |
ae4c1c1b0df6cf9a31d0f6d154fe645dd8e7fe8e | fd5c2d6e8a334977cda58d4513eb3385b431a13a | /extract_census_doc.py | a1445f608f735d677f398b8b2b123c44cf91d16e | [
"MIT"
] | permissive | censusreporter/census-api | 817c616b06f6b1c70c7b3737f82f45a80544c44d | c8d2c04c7be19cdee1000001772adda541710a80 | refs/heads/master | 2023-07-28T06:17:26.572796 | 2023-07-05T20:37:03 | 2023-07-05T20:37:03 | 9,879,953 | 146 | 52 | MIT | 2022-07-11T07:16:19 | 2013-05-06T05:24:57 | Python | UTF-8 | Python | false | false | 7,414 | py | #!/bin/python
import psycopg2
import psycopg2.extras
import json
from collections import OrderedDict
conn = psycopg2.connect(database='postgres')
cur = conn.cursor(cursor_factory=psycopg2.extras.RealDictCursor)
state = 'IL'
logrecno = '89' # Evanston city, IL
def sum(data, *columns):
def reduce_fn(x, y):
... | [
"ian.dees@gmail.com"
] | ian.dees@gmail.com |
5d565e7d89b2cf7e44965b839844bcc6a47e0e56 | ecbbc5cf8b49de00dd956386ea7cf31951aecbf8 | /src/KalmanFilter.py | d0005ea5d794108215ebbe567191ff497c0fe45c | [] | no_license | connorlee77/ardrone_stateestimation | 9e49339c6d916a146a709acc4adf947453c9d626 | 253722cf1940fd368bc10dcd90be0c0113bb4339 | refs/heads/master | 2021-01-10T13:13:57.845898 | 2016-03-18T08:53:18 | 2016-03-18T08:53:18 | 53,226,979 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | import numpy as np
import matplotlib.pyplot as plt
import rospy
class KalmanFilter:
def __init__(self, A, P, R, Q, H, B, dimension):
self.A = A
self.P = P
self.x_k = 0
self.kalmanGain = 0
self.R = R #constant
self.Q = Q #constant
self.H = H
self.B = B
self.dimensions = dimension
def predictState... | [
"connorlee77@gmail.com"
] | connorlee77@gmail.com |
aa0a9e73022a1268c8dc56985d5d5848748aa64e | 3fe272eea1c91cc5719704265eab49534176ff0d | /scripts/item/consume_2439898.py | fdc636b193089e8c5f0e75eb0dac9c8a17c50c85 | [
"MIT"
] | permissive | Bratah123/v203.4 | e72be4843828def05592298df44b081515b7ca68 | 9cd3f31fb2ef251de2c5968c75aeebae9c66d37a | refs/heads/master | 2023-02-15T06:15:51.770849 | 2021-01-06T05:45:59 | 2021-01-06T05:45:59 | 316,366,462 | 1 | 0 | MIT | 2020-12-18T17:01:25 | 2020-11-27T00:50:26 | Java | UTF-8 | Python | false | false | 217 | py | # Created by MechAviv
# Valentine Damage Skin | (2439898)
if sm.addDamageSkin(2439898):
sm.chat("'Valentine Damage Skin' Damage Skin has been added to your account's damage skin collection.")
sm.consumeItem() | [
"pokesmurfuwu@gmail.com"
] | pokesmurfuwu@gmail.com |
acc0cbbbbef590f361a5a6744807f18458d0e078 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/130/usersdata/228/34476/submittedfiles/al8.py | 99d23561646b83280774cd80f4ab4ad83803ccaf | [] | 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 | 141 | py | # -*- coding: utf-8 -*-
n=int(input('digite um valor:')
nfat=1
for i in range(2,n+1):
nfat=nfat+i
print(nfat)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
8e9f1d89a0a10175a73f79346baaea3a012c4479 | 3a5ea75a5039207104fd478fb69ac4664c3c3a46 | /vega/algorithms/nas/modnas/estim/dist_backend/base.py | 1725fd222057fa4b91024747947592087e159828 | [
"MIT"
] | permissive | fmsnew/vega | e3df25efa6af46073c441f41da4f2fdc4929fec5 | 8e0af84a57eca5745fe2db3d13075393838036bb | refs/heads/master | 2023-06-10T04:47:11.661814 | 2021-06-26T07:45:30 | 2021-06-26T07:45:30 | 285,174,199 | 0 | 0 | MIT | 2020-08-11T14:19:09 | 2020-08-05T03:59:49 | Python | UTF-8 | Python | false | false | 1,712 | py | # -*- coding:utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the ... | [
"zhangjiajin@huawei.com"
] | zhangjiajin@huawei.com |
682039f30aaa220caa90f937bbaf5bd7075dd986 | fad752f7e4ae9c9fae7a472634a712249fb6f83f | /sato/cli.py | 9697a09e053b96555f2b63cdabb75bc724fcc61c | [
"Apache-2.0"
] | permissive | VIDA-NYU/sato | 895da0de833681335ec5122c4487555d2285f351 | 8fb51787b36114df13f54c1acd11df12a66ad3e4 | refs/heads/master | 2021-07-13T16:55:53.621521 | 2020-11-26T01:01:07 | 2020-11-26T01:01:07 | 225,955,500 | 0 | 0 | Apache-2.0 | 2019-12-04T20:56:16 | 2019-12-04T20:56:15 | null | UTF-8 | Python | false | false | 2,252 | py | import click
import pandas as pd
from sato.predict import evaluate
@click.command('predict')
@click.option(
'-n', '--count',
default=1000,
help='Sample size'
)
@click.argument(
'src',
nargs=-1,
type=click.Path(file_okay=True, dir_okay=False, exists=True)
)
def run_predict(count, src):
"""... | [
"heiko.muller@gmail.com"
] | heiko.muller@gmail.com |
f531d8e47a46f16095ff0a4522cfedaf5eca3518 | b8688a6c1824335808182768c3349624722abba6 | /uamqp/constants.py | 987bcaef27fd21d840f5b9e8ca36ca97fd73228c | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | gdooper/azure-uamqp-python | 65d64e19190921c16cc65947ddcb01f686cd4277 | 8a71c86c7598b439afea28f216a97437b3ebaaed | refs/heads/master | 2020-03-30T00:33:55.710726 | 2018-05-29T16:06:34 | 2018-05-29T16:06:34 | 150,530,862 | 0 | 0 | MIT | 2018-09-27T04:57:31 | 2018-09-27T04:57:31 | null | UTF-8 | Python | false | false | 3,876 | py | #-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#--------------------------------------------------------------------------
from enum i... | [
"antisch@microsoft.com"
] | antisch@microsoft.com |
b61e50e76ad27bc63647d402ed7b18c3b7bc2aae | 9d1701a88644663277342f3a12d9795cd55a259c | /CSC148/07 Sorting/runtime.py | 6d1020dee852cd090d7eccdd33874dd33c64eccf | [] | no_license | xxcocoymlxx/Study-Notes | cb05c0e438b0c47b069d6a4c30dd13ab97e4ee6d | c7437d387dc2b9a8039c60d8786373899c2e28bd | refs/heads/master | 2023-01-13T06:09:11.005038 | 2020-05-19T19:37:45 | 2020-05-19T19:37:45 | 252,774,764 | 2 | 0 | null | 2022-12-22T15:29:26 | 2020-04-03T15:44:44 | Jupyter Notebook | UTF-8 | Python | false | false | 3,989 | py | VIDEO:
https://www.youtube.com/watch?v=6Ol2JbwoJp0
NOTES ON THE PDF:
def max_segment_sum(L):
'''(list of int) -> int
Return maximum segment sum of L.
'''
max_so_far = 0
for lower in range(len(L)):
for upper in range(lower, len(L)):
sum = 0
for i in range(lower, upper + 1):
sum = sum +... | [
"coco.yang@mail.utoronto.ca"
] | coco.yang@mail.utoronto.ca |
dd7a3ac6d291dc2db98817190f8813c458576953 | 66dd570bf5945dcbd183ed3c0cf897c0359cbccd | /python/python语法/pyexercise/Exercise03_09.py | 4560a8df9de30b98aa5d9640c98b118b4dc4a3be | [] | no_license | SamJ2018/LeetCode | 302cc97626220521c8847d30b99858e63fa509f3 | 784bd0b1491050bbd80f5a0e2420467b63152d8f | refs/heads/master | 2021-06-19T10:30:37.381542 | 2021-02-06T16:15:01 | 2021-02-06T16:15:01 | 178,962,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | # Obtain input
name = input("Enter employee's name: ")
hours = eval(input("Enter number of hours worked in a week: "))
payRate = eval(input("Enter hourly pay rate: "))
fedTaxWithholdingRate = eval(input("Enter federal tax withholding rate: "))
stateTaxWithholdingRate = eval(input("Enter state tax withholding rate: "))... | [
"juksam@centos7.localdomain"
] | juksam@centos7.localdomain |
e3ede7d4acdd774e7b8621e60be2e1b12dc0f0e1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02845/s251805975.py | a8e1b9dedbc87deeb6d7dd5ca8fac2fa7aa26e80 | [] | 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 | 434 | py | import sys
readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)
def main():
n = int(readline())
a = list(map(int, readline().split()))
cnt = [0] * 3
ans = 1
for x in a:
p = cnt.count(x)
if p == 0:
return print(0)
a... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d41c69e29c794cbabb1c2e1f208a21b4bf0f2f48 | 0e8b6f94467c25dd2440f7e2ea1519244e689620 | /MarlinJobs/CalibrationConfigFiles/Stage27Config_5x5_30x30.py | 3435a6f9a3f6a73455fa0470d23dcbb790425599 | [] | no_license | StevenGreen1/HighEnergyPhotonAnalysis | 97a661eaca2efd00472f1969855c724c9d505369 | 8a82ac57f56aad5bdbe99d4a5afb771592bc1725 | refs/heads/master | 2021-01-10T14:08:50.550184 | 2015-10-12T12:43:47 | 2015-10-12T12:43:47 | 43,491,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | # Calibration config file for testing
# Digitisation Constants - ECal
CalibrECal = 42.4326603502
# Digitisation Constants ILDCaloDigi - HCal
CalibrHCalBarrel = 49.057884929
CalibrHCalEndcap = 54.1136311832
CalibrHCalOther = 29.2180288685
# Digitisation Constants NewLDCCaloDigi - HCal
CalibrHCal = -1
# Digitisation ... | [
"sg1sg2sg3@hotmail.co.uk"
] | sg1sg2sg3@hotmail.co.uk |
8eff0f0a7ccda0cc6e4779d87cd907c9f72549f8 | f04fb8bb48e38f14a25f1efec4d30be20d62388c | /哈希表/204. 计数质数.py | 2bd3e79467b7525a3d7e1a7e82f4074be703fff9 | [] | no_license | SimmonsChen/LeetCode | d8ef5a8e29f770da1e97d295d7123780dd37e914 | 690b685048c8e89d26047b6bc48b5f9af7d59cbb | refs/heads/master | 2023-09-03T01:16:52.828520 | 2021-11-19T06:37:19 | 2021-11-19T06:37:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | """
统计所有小于非负整数 n 的质数的数量。
示例 1:
输入:n = 10
输出:4
解释:小于 10 的质数一共有 4 个, 它们是 2, 3, 5, 7 。
"""
from math import sqrt
class Solution(object):
# 题意是统计[2, n] 中质数的个数
def countPrimes(self, n):
"""
:type n: int
:rtype: int
"""
if n < 2:
return 0
# 初始化标记数组,假设都... | [
"15097686925@163.com"
] | 15097686925@163.com |
6ffe2a06880751514bb23ef6b2258b10f8257c43 | 14d7f5f83b6f84871ff6ebfa0af4c17b7115a33f | /remote_sensing/MODIS_data_test_v3.py | 1f15cb363abab3ce4c3e8caedc88d88198bb5e8d | [] | no_license | tonychangmsu/Python_Scripts | 8ca7bc841c94dcab36743bce190357ac2b1698a5 | 036f498b1fc68953d90aac15f0a5ea2f2f72423b | refs/heads/master | 2016-09-11T14:32:17.133399 | 2016-03-28T16:34:40 | 2016-03-28T16:34:40 | 10,370,475 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,468 | py | #Title: MODIS_data_test.py
#Author: Tony Chang
#Abstract: Test for opening MODIS data and examining the various bands
#Creation Date: 04/14/2015
#Modified Dates: 01/20/2016, 01/26/2016, 01/28/2016, 01/29/2016, 02/01/2016
#local directory : K:\\NASA_data\\scripts
import numpy as np
import matplotlib.pyplot as plt
impo... | [
"tony.chang@msu.montana.edu"
] | tony.chang@msu.montana.edu |
6c88d27d3b37ee3630d08d1654d8b7b2c1a7f640 | dce7ca1ebab403bf7c23b77368ee26a2dd4475b6 | /tests/test_cos.py | cd57475224ee19e74c5d9fa421f172e8a7f9fb4b | [] | no_license | qcymkxyc/Graduate | 3b7e89b3f44141d9fd011c15690f902674a9e979 | 2afedacaaa3a0f4d9bbc13596d967ec8808d43d6 | refs/heads/master | 2022-12-10T12:32:37.326653 | 2018-11-10T07:49:13 | 2018-11-10T07:49:16 | 148,103,320 | 0 | 0 | null | 2022-12-08T01:14:09 | 2018-09-10T05:25:40 | Python | UTF-8 | Python | false | false | 317 | py | import unittest
from app.util import cos
class COSTestCase(unittest.TestCase):
"""
腾讯云测试
"""
def test_cos_upload(self):
"""
腾讯云cos上传测试
"""
cos.upload_binary_file(b"abcde","login_success.txt")
if __name__ == '__main__':
unittest.main()
| [
"qcymkxyc@163.com"
] | qcymkxyc@163.com |
d20be627a406e2379a3cd53a20a70ac4b5852db4 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/01_netCDF_extraction/merra902Combine/284-tideGauge.py | 255f5e1573a5a697bd3fef71c7b6f3022772b778 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,376 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 17 11:28:00 2020
--------------------------------------------
Load predictors for each TG and combine them
--------------------------------------------
@author: Michael Tadesse
"""
import os
import pandas as pd
#define directories
# dir_name = 'F:\\01_erainterim\\01_er... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
5833e03ed33a8ec7549369840b1fa07513ad8d85 | 4cb40963ebc95a9e4cdd5725ac4ae882594a363d | /tests/influence/_core/test_tracin_self_influence.py | 0f327ce3fbc6230024bf4d2190c00f2750105f8c | [
"BSD-3-Clause"
] | permissive | NarineK/captum-1 | 59592277aed8c97dd8effed4af953676381d50c8 | a08883f1ba3abc96ace06b11883893419b187d09 | refs/heads/master | 2022-12-23T22:39:50.502939 | 2022-08-01T16:30:43 | 2022-08-01T16:30:43 | 215,140,394 | 1 | 0 | null | 2019-10-14T20:36:19 | 2019-10-14T20:36:19 | null | UTF-8 | Python | false | false | 5,906 | py | import tempfile
from typing import Callable
import torch
import torch.nn as nn
from captum.influence._core.tracincp import TracInCP
from captum.influence._core.tracincp_fast_rand_proj import TracInCPFast
from parameterized import parameterized
from tests.helpers.basic import assertTensorAlmostEqual, BaseTest
from test... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
c6ae34b2b23ff9afcccd235018498cdb235efb99 | 6f0e74cdc81f78ffc5dbc1b2db1cef8cbec950c4 | /aws_interface/cloud/logic/delete_function_test.py | 7a62e2c7c9241aa10726b393c1fa616aa7aa066f | [
"Apache-2.0"
] | permissive | hubaimaster/aws-interface | 125b3a362582b004a16ccd5743d7bdff69777db5 | 5823a4b45ffb3f7b59567057855ef7b5c4c4308d | refs/heads/master | 2023-01-19T15:43:38.352149 | 2023-01-12T01:38:00 | 2023-01-12T01:38:00 | 149,847,881 | 57 | 10 | Apache-2.0 | 2023-01-12T01:39:49 | 2018-09-22T05:17:43 | JavaScript | UTF-8 | Python | false | false | 742 | py |
from cloud.permission import Permission, NeedPermission
# Define the input output format of the function.
# This information is used when creating the *SDK*.
info = {
'input_format': {
'test_name': 'str',
},
'output_format': {
'success': 'bool',
}
}
@NeedPermission(Permission.Run.Log... | [
"hubaimaster@gmail.com"
] | hubaimaster@gmail.com |
6291a6042041500296cbde2708740f0bf984e374 | 0bb3bc8eea74d316377bb1f88a8600162d83d98a | /test_demo/dianping_food_top100.py | ddf32f2ecd1973f9a3ea2ec62336876b0d284b9a | [] | no_license | WangYongjun1990/spider | 10a1f03c26a083b8a1b5e25a9180f69d50994d73 | f13d756790a19d1465624f6c8b1f0ecb87870f51 | refs/heads/master | 2020-03-08T09:16:08.748865 | 2018-04-16T01:54:26 | 2018-04-16T01:54:26 | 128,042,969 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | # -*- coding:utf-8 -*-
"""
File Name: `test_dianping_top100`.py
Version:
Description: 爬取南京评价最高的100家餐厅信息,对应网页 http://www.dianping.com/shoplist/search/5_10_0_score
Author: wangyongjun
Date: 2018/4/13 11:45
"""
import requests
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (... | [
"yongjun.wang@mi-me.com"
] | yongjun.wang@mi-me.com |
4a1fc4dc9297f3161f4f30e0492a815011a04b8c | 747012e5b750cdc67748798c09b3ce1eb819568f | /strategy/migrations/0002_auto_20170703_1645.py | 3a98d12dd70048ac2070500f701c0c01dc044e67 | [
"MIT"
] | permissive | moshthepitt/probsc | da30c3829d5b8bf42804950320f006c78d2b94aa | 9b8cab206bb1c41238e36bd77f5e0573df4d8e2d | refs/heads/master | 2020-06-06T11:46:05.573933 | 2018-01-10T20:42:51 | 2018-01-10T20:42:51 | 192,730,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-07-03 13:45
from __future__ import unicode_literals
from django.db import migrations
import django.db.models.deletion
import mptt.fields
class Migration(migrations.Migration):
dependencies = [
('strategy', '0001_initial'),
]
operation... | [
"kelvin@jayanoris.com"
] | kelvin@jayanoris.com |
9fb6a68ceb3cf80621af5ba80af61427c4540b14 | e1450725c9637e15709064aaa48bc4e053a213d5 | /tests/test_funcptrdecl.py | a4d3a4d89874a4fe3280f0584e431cc6717bed5d | [] | no_license | gotoc/PyCParser-1 | 9d4e4c40a8c24923a689b1a0e3ebd4f07528d75b | b00cdd67a688792c0bc49b383a36199c50cc5cf2 | refs/heads/master | 2021-01-20T10:54:25.196102 | 2014-09-11T12:27:29 | 2014-09-11T12:27:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,717 | py | import sys
sys.path += [".."]
from pprint import pprint
from cparser import *
import test
testcode = """
int16_t (*f)();
int16_t (*g)(char a, void*);
int (*h);
// ISO/IEC 9899:TC3 : C99 standard
int fx(void), *fip(), (*pfi)(); // example 1, page 120
int (*apfi[3])(int *x, int *y); // example 2, page 120
int (... | [
"albert.zeyer@rwth-aachen.de"
] | albert.zeyer@rwth-aachen.de |
a25245a35cacaea636067ccaec32d3b7094f710e | e5c9fc4dc73536e75cf4ab119bbc642c28d44591 | /src/leetcodepython/math/hamming_distance_461.py | 6ee39b31c590979bec6f64edd79227ce8fd40f94 | [
"MIT"
] | permissive | zhangyu345293721/leetcode | 0a22034ac313e3c09e8defd2d351257ec9f285d0 | 50f35eef6a0ad63173efed10df3c835b1dceaa3f | refs/heads/master | 2023-09-01T06:03:18.231266 | 2023-08-31T15:23:03 | 2023-08-31T15:23:03 | 163,050,773 | 101 | 29 | null | 2020-12-09T06:26:35 | 2018-12-25T05:58:16 | Java | UTF-8 | Python | false | false | 1,473 | py | # encoding='utf-8'
'''
/**
* This is the solution of No. 461 problem in the LeetCode,
* the website of the problem is as follow:
* https://leetcode-cn.com/problems/hamming-distance/
* <p>
* The description of problem is as follow:
* ================================================================================... | [
"zhangyu_xtb@geekplus.cc"
] | zhangyu_xtb@geekplus.cc |
3637a41ea27d8219504f33dd65eda2ea0971739d | dd256415176fc8ab4b63ce06d616c153dffb729f | /aditya-works-feature-python_programming (1)/aditya-works-feature-python_programming/Assigment_5_01-Aug-2019/Assigment_5_5.py | 24aa63c26add06b9baeb2c0235963e5db861b091 | [] | no_license | adityapatel329/python_works | 6d9c6b4a64cccbe2717231a7cfd07cb350553df3 | 6cb8b2e7f691401b1d2b980f6d1def848b0a71eb | refs/heads/master | 2020-07-24T17:15:39.839826 | 2019-09-12T07:53:28 | 2019-09-12T07:53:28 | 207,993,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | def accept():
name = input("Enter your string : ")
val= []
for i in name:
val.append(ord(i))
print(sum(val)/len(val))
accept()
| [
"aditya.patel@1rivet.local"
] | aditya.patel@1rivet.local |
599f4edbf8bbbcf5be1ba76d41791b9964071018 | 35a6f5a26ea97ebed8ab34619a8eec51719d2cc0 | /Python_Basic/17 文件操作/5 seek函数.py | 115eb71e6b1003cafcc78f9afeea357211ceaa76 | [] | no_license | PandaCoding2020/pythonProject | c3644eda22d993b3b866564384ed10441786e6c5 | 26f8a1e7fbe22bab7542d441014edb595da39625 | refs/heads/master | 2023-02-25T14:52:13.542434 | 2021-02-03T13:42:41 | 2021-02-03T13:42:41 | 331,318,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | """
语法:文件对象.seek(偏移量,超始位置) 0开头,1当前 2结尾
目标:
1.r改变读取文件指针:改变读取数据开始位置或把文件指针放结尾(无法读取数据)
2.a改变读取文件指针,做到可以读到数据
"""
# 1.1.改变读取数据开始位置
# f.seek(2, 0)
# 1.2.把文件指针放到结尾(无法读取数据)
# f.seek(0, 2)
# f = open('test.txt', 'r+')
# f.seek(2, 0)
# con = f.read()
# print(con)
#
# f.close()
# 2.把文件指针放到结尾(无法读取数据)
f = open('test.txt', 'a+')
f.s... | [
"gzupanda@outlook.com"
] | gzupanda@outlook.com |
ca0312e44c689d8a119737d9102edca66c6d0e32 | 757433be241afbff1c138d77daf13397f858aef3 | /scorpio/urls.py | 166247c53f8b21e7f1bf3184baad8bf10b8db329 | [
"MIT"
] | permissive | RockefellerArchiveCenter/scorpio | 1f9d152bb440bb98c007f652fa644602e3b8b483 | f308cac3880ba9008d3aadfdc66a4062d4d27492 | refs/heads/base | 2023-08-20T22:34:32.085492 | 2023-08-07T17:00:58 | 2023-08-07T17:00:58 | 215,400,734 | 0 | 1 | MIT | 2023-09-08T21:09:13 | 2019-10-15T21:33:10 | Python | UTF-8 | Python | false | false | 1,601 | py | """scorpio 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... | [
"helrond@hotmail.com"
] | helrond@hotmail.com |
f428c560237217ad3f5dd49edbabd5734a5b4eff | 0a679896fbe96a8a0a59ad9f4f55edb4aa044a93 | /Duplicate File Handler/task/handler.py | 040a40e81fc3f6eef361f3690d7a85ad20d01559 | [] | no_license | TogrulAga/Duplicate-File-Handler | 5b7bd9c9508ae3ee96751bc3e56ebaccc44c46f9 | 66fef381572c0e6697330463b0b720c2dbca82e6 | refs/heads/master | 2023-06-30T07:07:24.524591 | 2021-08-06T15:47:00 | 2021-08-06T15:47:00 | 393,424,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,500 | py | import os
import argparse
import hashlib
class FileHandler:
def __init__(self, directory):
self.directory = directory
self.file_format = None
self.sorting_option = None
self.files_dict = dict()
self.dict_items = None
self.numbered_dict = dict()
self.get_form... | [
"toghrul.aghakishiyev@ericsson.com"
] | toghrul.aghakishiyev@ericsson.com |
6c36391267af20d2d0df7f255c2d1d4f98c496d0 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part003650.py | 2809c442b3ba17c08e9f9aa9bc7b006e27b8a3e8 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,946 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
0e3f366f9b2f023474aa0f26b034f046a6e738bd | 4ade37d929b07b1eea07337b9cc843661a66e6d0 | /trails/feeds/nothink.py | f40ae15122ffc7c0e6f962eac4765945bd5dded1 | [
"MIT"
] | permissive | Dm2333/maltrail | bade5c99583b99f4ad1128aef295e95c977d82b1 | 2f32e0c3ff65544fc07ad3787d4d9b210f975b85 | refs/heads/master | 2021-04-12T10:44:25.125653 | 2018-03-20T11:50:40 | 2018-03-20T11:50:40 | 126,193,051 | 1 | 0 | MIT | 2018-03-21T14:40:05 | 2018-03-21T14:40:03 | Python | UTF-8 | Python | false | false | 674 | py | #!/usr/bin/env python
"""
Copyright (c) 2014-2018 Miroslav Stampar (@stamparm)
See the file 'LICENSE' for copying permission
"""
from core.common import retrieve_content
__url__ = "http://www.nothink.org/blacklist/blacklist_malware_irc.txt"
__check__ = "Malware IRC"
__info__ = "potential malware site"
__reference__ ... | [
"miroslav.stampar@gmail.com"
] | miroslav.stampar@gmail.com |
dd7f146df693ac042cde1345a5080c70862c344e | 222a7d69a78f1350772c9c8bfb0b36c640e5cd6e | /MarlinJobs/CalibrationConfigFiles/Stage59Config_5x5_30x30.py | 2b94d6d91472c95d504b20257b87d7e3b5afb347 | [] | no_license | StevenGreen1/JERDetailed | 2a8cb30ec32781791ba163e5125bcdb87239e9a4 | 27ed19dc0930570f16019b2c7820ae715dd0ec57 | refs/heads/master | 2021-01-17T06:55:11.384992 | 2016-08-10T14:41:38 | 2016-08-10T14:41:38 | 44,620,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,192 | py | # Calibration config file for testing
# Digitisation Constants - ECal
CalibrECal = 42.3662496409
# Digitisation Constants - HCal
CalibrHCalBarrel = 50.3504586994
CalibrHCalEndcap = 55.6419000329
CalibrHCALOther = 30.5873671511
# Digitisation Constants - Muon Chamber
CalibrMuon = 56.7
# MIP Peak position in directed... | [
"sg1sg2sg3@hotmail.co.uk"
] | sg1sg2sg3@hotmail.co.uk |
2a62f1bef54bfd2cb7615ca2e9e0483f7ca9fd76 | 5ab2ccf70fddd30ea88155f2a5adb0711bf3dc9a | /Chap10/factorsingles.py | 5d413a283dcbbe5de549074b7b5cbee0eafea399 | [] | no_license | jdukosse/LOI_Python_course-SourceCode | 32d66fd79344e9ab9412a6da373f2093b39cad92 | bf13907dacf5b6e95f84885896c8f478dd208011 | refs/heads/master | 2020-12-05T23:27:53.862508 | 2020-01-24T13:42:28 | 2020-01-24T13:42:28 | 232,276,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | n = int(input("Please enter a positive integer: "))
factors = [x for x in range(1, n + 1) if n % x == 0]
print("Factors of", n, ":", factors)
| [
"jdukosse@hotmail.com"
] | jdukosse@hotmail.com |
9461f02ac4fdcbf48b760055e18b17a595c5d8e0 | 5451997d7b691679fd213d6473b21f184a5c9402 | /pymaze/wsgi.py | 4aff83a8a210e68f9e6d3d976da790c63895747e | [
"MIT"
] | permissive | TerryHowe/pymaze | 9ba54c7d328abf94f6709593795a587f28be752b | a5b7e90b5019a5f99a7f80317796ace72ca0754f | refs/heads/master | 2022-05-01T07:39:17.896430 | 2022-04-23T10:41:48 | 2022-04-23T10:41:48 | 89,522,507 | 1 | 0 | MIT | 2022-04-23T10:41:49 | 2017-04-26T20:13:13 | Python | UTF-8 | Python | false | false | 390 | py | """
WSGI config for pymaze project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTI... | [
"terrylhowe@gmail.com"
] | terrylhowe@gmail.com |
5eff0169132197e41737862349d9ad181777010a | fe8f7febac1ff93b829256cdfd0be69e94498c76 | /python/fluent_python/code/clockdeco_param.py | 4700886d4acf8383701a414070e3f4635df7f784 | [] | no_license | bioShaun/notebook | c438eba1d29b736704c3f5325faf15ad61a1e9d5 | ce5f477a78554ed0d4ea5344057c19e32eb6c2b8 | refs/heads/master | 2020-03-26T16:16:06.458545 | 2018-08-23T00:54:53 | 2018-08-23T00:54:53 | 145,090,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | import time
import functools
DEFAULT_FMT = '[{elapsed:0.8f}s] {name}({args}) -> {result}'
def clock(fmt=DEFAULT_FMT):
def decorate(func):
def clocked(*_args, **kwargs):
t0 = time.time()
_result = func(*_args, **kwargs)
elapsed = time.time() - t0
name = func... | [
"ricekent@163.com"
] | ricekent@163.com |
e7e3c115506553ab1cbc5ca31ff9c0144325dd24 | 16e266cf50a712ed29a4097e34504aac0281e6cb | /Functions/venv/lib/python3.6/site-packages/_TFL/_SDG/_C/Macro.py | 75f2950512e90bf9922859188d30c81a9164101c | [
"BSD-3-Clause"
] | permissive | felix-ogutu/PYTHON-PROJECTS | 9dd4fdcfff6957830587b64c5da3b5c3ade3a27e | 8c1297dbda495078509d06a46f47dc7ee60b6d4e | refs/heads/master | 2023-06-05T04:41:36.727376 | 2021-06-25T20:36:52 | 2021-06-25T20:36:52 | 380,348,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,540 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2004-2007 TTTech Computertechnik AG. All rights reserved
# Schönbrunnerstraße 7, A--1040 Wien, Austria. office@tttech.com
# ****************************************************************************
#
# This module is licensed under the terms of the BSD 3-Clause License
# <http... | [
"you@example.com"
] | you@example.com |
03c89f87bc946fe9d2a1f054e5f392aa88cc88c2 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /carbon/common/script/net/httpAuth.py | 4e0d808e60ebe4b4b14cadffc1f8dc510f115517 | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,364 | py | #Embedded file name: carbon/common/script/net\httpAuth.py
import base
import cherrypy
import httpJinja
import macho
import blue
import const
import base64
from datetime import datetime
SESSION_KEY = '_cp_username'
AUTH_LOGIN_URL = '/auth/login'
DEFAULT_URL = '/default.py'
def CreateSession(username, password):
ses... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
d1832ec2bedb704f090af6d27a3a27a0abf67623 | 8bb4060c4a41d1ef1b31c59fb8b9bc375e3e2ba4 | /setup.py | c26e6e1cb822af51c1da20528c39ff488e7edd81 | [] | no_license | hanxianzhai/distribution | a6c5f96bb954e7e18bae0d6a7ac6976fae59d332 | 628f670f4ed39478007e3402a77653f6596d0529 | refs/heads/master | 2021-04-01T06:21:29.086943 | 2020-03-18T03:55:28 | 2020-03-18T03:55:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | import config
from init import app
if __name__ == '__main__':
app.run(
host='0.0.0.0',
port=config.app_conf["server"]["port"],
debug=False
)
| [
"tanshilinmail@gmail.com"
] | tanshilinmail@gmail.com |
6a405e8f55909b6ed9222b949bef9230edd24b17 | abfa0fcab2bc9a9c3cccbc3a8142cdd4b2a66ee9 | /698-Partition to K Equal Sum Subsets.py | 8aceeaa11fdcd8709c3a984236173baf0a4fbd70 | [] | no_license | JinnieJJ/leetcode | 20e8ccf3f8919028c53e0f0db86bcc2fbc7b6272 | 26c6ee936cdc1914dc3598c5dc74df64fa7960a1 | refs/heads/master | 2021-04-15T09:18:08.450426 | 2021-03-06T01:53:27 | 2021-03-06T01:53:27 | 126,275,814 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | class Solution:
def canPartitionKSubsets(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: bool
"""
sums = [0] * k
subsum = sum(nums) / k
nums.sort(reverse=True)
l = len(nums)
def walk(i):
if i == l:
... | [
"noreply@github.com"
] | JinnieJJ.noreply@github.com |
1f0f69d04585b8216b8268a4c3dc0e5868618db7 | 2dd560dc468af0af4ca44cb4cd37a0b807357063 | /Leetcode/1289. Minimum Falling Path Sum II/solution2.py | e9ebe9c9ba9a53af13d879fb8d254dac546a99d0 | [
"MIT"
] | permissive | hi0t/Outtalent | 460fe4a73788437ba6ce9ef1501291035c8ff1e8 | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | refs/heads/master | 2023-02-26T21:16:56.741589 | 2021-02-05T13:36:50 | 2021-02-05T13:36:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | class Solution:
def minFallingPathSum(self, arr: List[List[int]]) -> int:
m = len(arr)
n = len(arr[0])
@lru_cache(None)
def count(i: int, j: int) -> int:
if i >= m: return 0
m1 = m2 = inf
k1 = k2 = 0
for k in range(n):
... | [
"info@crazysquirrel.ru"
] | info@crazysquirrel.ru |
2efe378579a32f494f6942fa0ac13a700a233957 | cffee94b843fff699f68eaae972ed829858fbb0d | /typings/mediafile/mutagen/mp3/__init__.pyi | da26b2285df4dd3b5373082919fadc979a486824 | [
"MIT"
] | permissive | Josef-Friedrich/phrydy | 3b5fae00d3d7210821dc9037d00f9432e1df3c2d | c6e17e8b9e24678ec7672bff031d0370bfa8b6f8 | refs/heads/main | 2023-08-25T12:11:47.333984 | 2023-08-08T14:50:08 | 2023-08-08T14:50:08 | 66,490,323 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,255 | pyi | """
This type stub file was generated by pyright.
"""
from __future__ import division
from functools import partial
from io import BytesIO
from mutagen._util import BitReader, cdata, iterbytes
"""
http://www.codeproject.com/Articles/8295/MPEG-Audio-Frame-Header
http://wiki.hydrogenaud.io/index.php?title=MP3
"""
cl... | [
"josef@friedrich.rocks"
] | josef@friedrich.rocks |
14ecb79893f2a150fcc1e6200c9e85886e0f7225 | e282226e8fda085f4c64c044327eceb3388e94ce | /mainapp/api/urls.py | 1b3871642a15056f10650c9fb8bffcec8a5d906f | [] | no_license | Pavlenkovv/REST-API | 2bf36f40104a51f2735ce3dd3eebcf274061a1a2 | 352d0bd24e88fdb793e658c5b6eaffa97b56062c | refs/heads/main | 2023-03-15T22:45:50.121953 | 2021-03-07T07:56:31 | 2021-03-07T07:56:31 | 344,887,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .api_views import AuthorViewSet, NewsPostViewSet, CommentViewSet
router = DefaultRouter()
router.register(r"newsposts", NewsPostViewSet, basename="user")
router.register(r"author", AuthorViewSet)
router.register(r"comment", C... | [
"pavlenko.vyacheslav@gmail.com"
] | pavlenko.vyacheslav@gmail.com |
1b41395082d1617e92cb4539c977d7f616a594fc | ecd630f54fefa0a8a4937ac5c6724f9a3bb215c3 | /projeto/avalista/migrations/0022_auto_20200910_1230.py | 8922215b9bc4a928404f7c8043839ce3aebed4a8 | [] | no_license | israelwerther/Esctop_Israel_Estoque | 49968751464a38c473298ed876da7641efedf8de | d6ab3e502f2a97a0d3036351e59c2faa267c0efd | refs/heads/master | 2023-01-07T20:21:38.381593 | 2020-11-12T17:35:14 | 2020-11-12T17:35:14 | 258,642,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | # Generated by Django 3.0.7 on 2020-09-10 12:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('avalista', '0021_avalista_fiador_n_operacao'),
]
operations = [
migrations.AlterField(
model_name='avalista',
name='... | [
"israelwerther48@outlook.com"
] | israelwerther48@outlook.com |
6fcd77974cc305566c9496941a87ef64cb688e50 | 66fda6586a902f8043b1f5e9532699babc7b591a | /lib_openshift/models/v1_deployment_trigger_image_change_params.py | cdb5495ce392554744c8473da2b748a72362bdae | [
"Apache-2.0"
] | permissive | chouseknecht/lib_openshift | 86eff74b4659f05dfbab1f07d2d7f42b21e2252d | 02b0e4348631e088e72a982a55c214b30a4ab9d9 | refs/heads/master | 2020-12-11T05:23:17.081794 | 2016-07-28T20:15:39 | 2016-07-28T20:15:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,799 | py | # coding: utf-8
"""
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
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
... | [
"jdetiber@redhat.com"
] | jdetiber@redhat.com |
f9242da26ab0e85261149acc3935789753a44160 | 0cafca9e27e70aa47b3774a13a537f45410f13f7 | /idb/ipc/push.py | c7f6d1ab8f6e77317e6d081e0655d31ebf0c16a5 | [
"MIT"
] | permissive | fakeNetflix/facebook-repo-idb | 18b67ca6cfa0edd3fa7b9c4940fec6c3f0ccfa73 | eb4ed5a7dc4a14b224a22e833294d7366fe4725e | refs/heads/master | 2023-01-05T13:19:40.755318 | 2019-08-16T15:23:45 | 2019-08-16T15:25:00 | 203,098,477 | 1 | 0 | MIT | 2023-01-04T07:33:09 | 2019-08-19T04:31:16 | Objective-C | UTF-8 | Python | false | false | 1,039 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
from idb.common.stream import stream_map
from idb.common.tar import generate_tar
from idb.grpc.idb_pb2 import Payload, PushRequest, PushResponse
from idb.grpc.stream import Stream, drain_to_stream
from idb.grpc.types import ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
181269644d8602fc2dcb673b30857f2da8b2b11f | 6deafbf6257a5c30f084c3678712235c2c31a686 | /Toolz/sqlmap/tamper/least.py | 53a8a6aadefe283a268fd3ad7a0c5fd1f51f2a67 | [
"Unlicense",
"LicenseRef-scancode-generic-cla",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-proprietary-license",
"GPL-2.0-only",
"LicenseRef-scancode-commercial-license",
"LicenseRef-scancode-other-permissive"
] | permissive | thezakman/CTF-Heaven | 53fcb4a72afa821ad05d8cc3b309fb388f958163 | 4b52a2178922f1502ab00fa8fc156d35e1dc653f | refs/heads/master | 2023-04-05T18:20:54.680378 | 2023-03-21T13:47:45 | 2023-03-21T13:47:45 | 167,290,879 | 182 | 24 | Unlicense | 2022-11-29T21:41:30 | 2019-01-24T02:44:24 | Python | UTF-8 | Python | false | false | 1,126 | py | #!/usr/bin/env python
"""
Copyright (c) 2006-2019 sqlmap developers (http://sqlmap.org/)
See the file 'LICENSE' for copying permission
"""
import re
from lib.core.enums import PRIORITY
__priority__ = PRIORITY.HIGHEST
def dependencies():
pass
def tamper(payload, **kwargs):
"""
Replaces greater than ope... | [
"thezakman@ctf-br.org"
] | thezakman@ctf-br.org |
788ecb8dfd993ef9d68c1c979145bef4be44c7a1 | 516dea668ccdc13397fd140f9474939fa2d7ac10 | /enterprisebanking/middlewares.py | ad1d6a91a6ff2f6a7afebb8c4d5c122ae4ea0f71 | [] | no_license | daniel-kanchev/enterprisebanking | 08f1162647a0820aafa5a939e64c1cceb7844977 | bdb7bc4676419d7dcfe47ca8e817774ad031b585 | refs/heads/main | 2023-04-09T19:29:30.892047 | 2021-04-07T08:10:15 | 2021-04-07T08:10:15 | 355,463,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,670 | py | # Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
# useful for handling different item types with a single interface
from itemadapter import is_item, ItemAdapter
class enterprisebankingSpiderMidd... | [
"daniel.kanchev@adata.pro"
] | daniel.kanchev@adata.pro |
a8691c22467753872cc6ea65d244c12c491dc815 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_nationality.py | 4e1dcbd9aa26fd3af3fbdc1264cb9f070b10fdb7 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py |
#calss header
class _NATIONALITY():
def __init__(self,):
self.name = "NATIONALITY"
self.definitions = [u'the official right to belong to a particular country: ', u'a group of people of the same race, religion, traditions, etc.: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata =... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8fb5e452de9da869a55ccca9cd00839bdadeeeab | 3bfa43cd86d1fb3780f594c181debc65708af2b8 | /algorithms/sort/heap_sort.py | 0f1953ff4b5ac7e3fd902dd4f15744131c3cc8bf | [] | no_license | ninjaboynaru/my-python-demo | 2fdb6e75c88e07519d91ee8b0e650fed4a2f9a1d | d679a06a72e6dc18aed95c7e79e25de87e9c18c2 | refs/heads/master | 2022-11-06T14:05:14.848259 | 2020-06-21T20:10:05 | 2020-06-21T20:10:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,610 | py |
"""
<https://docs.python.org/3/library/heapq.html>
<https://www.youtube.com/watch?v=AEAmgbls8TM&feature=youtu.be>
Steps:
1. Put every item in the list into a heap
2. Each step get the smallest item from the heap, put the smallest into
a new list
3. Repeat until the heap is empty
```python
from heapq import heappu... | [
"wangxin19930411@163.com"
] | wangxin19930411@163.com |
265d01952ab7506e909f20767daaeac5d52864e4 | 4ce2cff60ddbb9a3b6fc2850187c86f866091b13 | /tfrecords/src/wai/tfrecords/object_detection/dataset_tools/create_oid_tf_record.py | 271fd0aac175d399dda9b528a9a311145f48cfc1 | [
"MIT",
"Apache-2.0"
] | permissive | 8176135/tensorflow | 18cb8a0432ab2a0ea5bacd03309e647f39cb9dd0 | 2c3b4b1d66a80537f3e277d75ec1d4b43e894bf1 | refs/heads/master | 2020-11-26T05:00:56.213093 | 2019-12-19T08:13:44 | 2019-12-19T08:13:44 | 228,970,478 | 0 | 0 | null | 2019-12-19T03:51:38 | 2019-12-19T03:51:37 | null | UTF-8 | Python | false | false | 5,240 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"coreytsterling@gmail.com"
] | coreytsterling@gmail.com |
8da1f2b67b46206e3835fdfee41f7365ac844f46 | 577f03954ec69ed82eaea32c62c8eba9ba6a01c1 | /py/testdir_ec2_only/test_parse_covtype20x_s3.py | d6207e11b1f8763b5cd9fdd1466e72b472d7c03f | [
"Apache-2.0"
] | permissive | ledell/h2o | 21032d784a1a4bb3fe8b67c9299f49c25da8146e | 34e271760b70fe6f384e106d84f18c7f0adb8210 | refs/heads/master | 2020-02-26T13:53:01.395087 | 2014-12-29T04:14:29 | 2014-12-29T04:14:29 | 24,823,632 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,962 | py | import unittest, sys, random, time
sys.path.extend(['.','..','../..','py'])
import h2o, h2o_cmd, h2o_browse as h2b, h2o_import as h2i
class Basic(unittest.TestCase):
def tearDown(self):
h2o.check_sandbox_for_errors()
@classmethod
def setUpClass(cls):
print "Will build clouds with increment... | [
"kevin@0xdata.com"
] | kevin@0xdata.com |
5d0a2f7e05ee7c3731f9b7550e0d5d9f8625cb88 | 78c08cd3ef66836b44373280a333c040ccb99605 | /ostap/fitting/tests/test_fitting_convolution.py | 3f980fbf093211f18849b15254d2f25697d8e7a7 | [
"BSD-3-Clause"
] | permissive | Pro100Tema/ostap | 11ccbc546068e65aacac5ddd646c7550086140a7 | 1765304fce43714e1f51dfe03be0daa5aa5d490f | refs/heads/master | 2023-02-24T08:46:07.532663 | 2020-01-27T13:46:30 | 2020-01-27T13:46:30 | 200,378,716 | 0 | 0 | BSD-3-Clause | 2019-08-03T13:28:08 | 2019-08-03T13:28:07 | null | UTF-8 | Python | false | false | 3,426 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
# Copyright (c) Ostap developers.
# =============================================================================
# @file test_fitting_convolution.py
# Test module for ostap/fitting/convolution... | [
"Ivan.Belyaev@cern.ch"
] | Ivan.Belyaev@cern.ch |
f66e5ca5bccba463ba1c7ea0e178e85c4982a93f | 3e5ecad4d2f681f2f4f749109cc99deea1209ea4 | /Dacon/solar1/test04_solar9.py | 0f9e499e4f86263fff68de5a667aeda9b729cb92 | [] | no_license | SunghoonSeok/Study | f41ede390079037b2090e6df20e5fb38f2e59b8f | 50f02b9c9bac904cd4f6923b41efabe524ff3d8a | refs/heads/master | 2023-06-18T06:47:55.545323 | 2021-07-05T00:47:55 | 2021-07-05T00:47:55 | 324,866,762 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,798 | py | # 7일의 데이터로 2일의 target값 구하기
# 시간별로 데이터를 나눠서 훈련
import numpy as np
import pandas as pd
import tensorflow.keras.backend as K
from tensorflow.keras.models import Model, Sequential
from tensorflow.keras.layers import Dense, Input, LSTM, Dropout, Conv1D, Flatten, MaxPooling1D, GRU, SimpleRNN
from tensorflow.keras.backend im... | [
"76455292+SunghoonSeok@users.noreply.github.com"
] | 76455292+SunghoonSeok@users.noreply.github.com |
f1c1d1272813db29b692fe04bc813b6a679526fc | 34599596e145555fde0d4264a1d222f951f49051 | /pcat2py/class/20dbcc2a-5cc5-11e4-af55-00155d01fe08.py | b39c4aee05264d664cba5c47aa38bafddd842eb2 | [
"MIT"
] | permissive | phnomcobra/PCAT2PY | dc2fcbee142ce442e53da08476bfe4e68619346d | 937c3b365cdc5ac69b78f59070be0a21bdb53db0 | refs/heads/master | 2021-01-11T02:23:30.669168 | 2018-02-13T17:04:03 | 2018-02-13T17:04:03 | 70,970,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | #!/usr/bin/python
################################################################################
# 20dbcc2a-5cc5-11e4-af55-00155d01fe08
#
# Justin Dierking
# justindierking@hardbitsolutions.com
# phnomcobra@gmail.com
#
# 10/24/2014 Original Construction
################################################################... | [
"phnomcobra@gmail.com"
] | phnomcobra@gmail.com |
390ee336f83088e3f9b8609b7c854dfa3f4ea232 | 2e5e990955957cf04367ef6eedd62e6add7ccdc7 | /oms_cms/backend/api/v2/social_networks/serializers.py | 24a77bc22571a871c6dfb51890fd85f061a40858 | [
"BSD-3-Clause"
] | permissive | RomanYarovoi/oms_cms | 3dfcd19ff03b351dc754f73f4a0d8a9986cf28ec | 49c6789242d7a35e81f4f208c04b18fb79249be7 | refs/heads/master | 2021-07-06T18:49:51.021820 | 2020-10-15T05:52:55 | 2020-10-15T05:52:55 | 196,556,814 | 0 | 0 | BSD-3-Clause | 2020-10-15T05:52:57 | 2019-07-12T10:07:29 | JavaScript | UTF-8 | Python | false | false | 312 | py | from rest_framework import serializers
from oms_cms.backend.social_networks.models import SocialNetworks
class SocialNetworksSerializer(serializers.ModelSerializer):
"""Сериализация социальных сетей"""
class Meta:
model = SocialNetworks
fields = '__all__'
| [
"arsavit@gmail.com"
] | arsavit@gmail.com |
2cac3d08334c146dd3333f471c8ee1fa6546c71d | bc9c1a4da0d5bbf8d4721ee7ca5163f488e88a57 | /research/urls.py | fe0aeb667e57278015b49196ad14403f92bec46d | [] | no_license | mit-teaching-systems-lab/newelk | 77f43666f3c70be4c31fdfc6d4a6e9c629c71656 | a2e6665bfcf9e2ea12fde45319027ee4a848f93c | refs/heads/master | 2022-12-13T20:50:17.632513 | 2019-10-03T19:02:01 | 2019-10-03T19:02:01 | 132,154,880 | 0 | 4 | null | 2022-12-08T01:26:56 | 2018-05-04T15:04:20 | Python | UTF-8 | Python | false | false | 222 | py | from django.urls import path
from . import views
urlpatterns = [
# path('chatlogs/', views.streaming_chat_csv),
# path('answerlogs/', views.streaming_answers_view),
path("feedback/", views.toggle_feedback)
]
| [
"bhanks@mit.edu"
] | bhanks@mit.edu |
64ad76f77783d4b8a4cb1b9d87b673ea62470bf1 | f566dfc5ce189d30696b9bf8b7e8bf9b1ef45614 | /Example/DQN_SimpleMaze/DoubleDQN_SimpleMazeTwoD.py | a8615b896bcd6023b12a714b7533a963e26b7691 | [] | no_license | yangyutu/DeepReinforcementLearning-PyTorch | 3dac4ad67fa3a6301d65ca5c63532f2a278e21d7 | 7af59cb883e24429d42a228584cfc96c42f6d35b | refs/heads/master | 2022-08-16T13:46:30.748383 | 2022-07-30T05:47:47 | 2022-07-30T05:47:47 | 169,829,723 | 12 | 6 | null | null | null | null | UTF-8 | Python | false | false | 2,382 | py |
from Agents.DQN.DQN import DQNAgent
from Agents.Core.MLPNet import MultiLayerNetRegression
import json
from torch import optim
from copy import deepcopy
from Env.CustomEnv.SimpleMazeTwoD import SimpleMazeTwoD
import numpy as np
import matplotlib.pyplot as plt
import torch
torch.manual_seed(1)
def plotPolicy(policy,... | [
"yangyutu123@gmail.com"
] | yangyutu123@gmail.com |
f92d14e56e3f2106526540e9015138bc89fc3d77 | c12008fee6b319ccc683956d0a171a00e12debb0 | /everyday/e191020.py | 53e6428caf621fada6c4bfabfffe7d54a1250dd8 | [] | no_license | yrnana/algorithm | 70c7b34c82b15598494103bdb49b4aefc7c53548 | 783e4f9a45baf8d6b5900e442d32c2b6f73487d0 | refs/heads/master | 2022-04-13T23:50:53.914225 | 2020-04-01T12:41:14 | 2020-04-01T12:41:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | def solution(arr):
l = len(arr)
n = 0
for i in range(l):
if arr[i] != 0:
swap(arr, i, n)
n += 1
return arr
def swap(arr, i, j):
tmp = arr[i]
arr[i] = arr[j]
arr[j] = tmp
print(solution([0, 5, 0, 3, -1]))
print(solution([3, 0, 3]))
| [
"nyryn0945@gmail.com"
] | nyryn0945@gmail.com |
bf880139591dc7c773d8e6bf7be78b1c793a73ef | 364b36d699d0a6b5ddeb43ecc6f1123fde4eb051 | /_downloads_1ed/fig_poisson_continuous.py | 686b96403de5b92c73a2308049b03cfd324a149b | [] | no_license | astroML/astroml.github.com | eae3bfd93ee2f8bc8b5129e98dadf815310ee0ca | 70f96d04dfabcd5528978b69c217d3a9a8bc370b | refs/heads/master | 2022-02-27T15:31:29.560052 | 2022-02-08T21:00:35 | 2022-02-08T21:00:35 | 5,871,703 | 2 | 5 | null | 2022-02-08T21:00:36 | 2012-09-19T12:55:23 | HTML | UTF-8 | Python | false | false | 3,102 | py | """
Unbinned Poisson Data
---------------------
Figure 5.14
Regression of unbinned data. The distribution of N = 500 data points is shown
in the left panel; the true pdf is shown by the solid curve. Note that although
the data are binned in the left panel for visualization purposes, the analysis
is performed on the un... | [
"vanderplas@astro.washington.edu"
] | vanderplas@astro.washington.edu |
6c16e2c8f646a76de7c95d1bce0bd8207155521e | 5d0dd50d7f7bf55126834292140ed66306e59f10 | /MIGRATE/msgpack_to_sql.py | 4ce966fdef93c6b79fcabe824ec1177b571c63de | [] | no_license | JellyWX/tracker-bot | 32d2c8666a7c6ca0835aa94695be4ccd7fc37bb5 | b0909c4883b0ee6e0300a163e94ea0d69dffa062 | refs/heads/master | 2021-05-02T16:14:11.638292 | 2018-04-26T19:47:50 | 2018-04-26T19:47:50 | 120,670,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | import msgpack
import sqlite3
with open('../DATA/USER_DATA', 'rb') as f:
data = msgpack.unpack(f, encoding='utf8')
connection = sqlite3.connect('../DATA/data.db')
cursor = connection.cursor()
for user, values in data.items():
command = '''CREATE TABLE u{user} (
game VARCHAR(50),
time INT
)
''... | [
"judewrs@gmail.com"
] | judewrs@gmail.com |
d7919c38e0ac4b378ccf1771060a7670a3744ca6 | ece0d321e48f182832252b23db1df0c21b78f20c | /engine/2.80/scripts/freestyle/styles/apriori_density.py | 1de2c4c033457e302c229c3c7014b55c0b8010d7 | [
"GPL-3.0-only",
"Font-exception-2.0",
"GPL-3.0-or-later",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain-disclaimer",
"Bitstream-Vera",
"LicenseRef-scancode-blender-2010",
"LGPL-2.1-or-later",
"GPL-2.0-or-lat... | permissive | byteinc/Phasor | 47d4e48a52fa562dfa1a2dbe493f8ec9e94625b9 | f7d23a489c2b4bcc3c1961ac955926484ff8b8d9 | refs/heads/master | 2022-10-25T17:05:01.585032 | 2019-03-16T19:24:22 | 2019-03-16T19:24:22 | 175,723,233 | 3 | 1 | Unlicense | 2022-10-21T07:02:37 | 2019-03-15T00:58:08 | Python | UTF-8 | Python | false | false | 1,743 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# 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 your option) any later version.
#
# This program is distrib... | [
"admin@irradiate.net"
] | admin@irradiate.net |
5ecff5ad5fe3286e9a8e813f3c9de2d599229c34 | 781116645c0d60de13596aac81a76c791ed0c18a | /kivy_garden/flower/__init__.py | 6793aaafcc1aa355b42b381f1800e9714707bb6e | [
"MIT"
] | permissive | matham/flower | 503dae3446110da05ecd2a527b3459f7e1bcadb3 | e7c71346563573197ae304ceb343bff14e54a5cd | refs/heads/master | 2020-05-24T22:33:43.761720 | 2019-05-19T08:56:14 | 2019-05-19T08:56:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | """
Demo flower
============
Defines the Kivy garden :class:`FlowerLabel` class which is the widget provided
by the demo flower.
"""
from kivy.uix.label import Label
__all__ = ('FlowerLabel', )
__version__ = '0.1.0.dev0'
class FlowerLabel(Label):
def __init__(self, **kwargs):
super(FlowerLabel, self)... | [
"moiein2000@gmail.com"
] | moiein2000@gmail.com |
9d95173045444ddceac7aaebc34b8f75adf12995 | fff26da96c4b324cdbc0315c3fdf1fe2ccbf6bf0 | /.history/test_celegans_corrected_weights_20210615130634.py | a875acee9236154c606750101651e4d37fd22fd9 | [] | no_license | izzortsi/spreading-activation-networks | ebcd38477a4d4c6139a82b0dd7da3d79a0e3f741 | f2cf0bf519af746f148fa7a4ea4d78d16ba6af87 | refs/heads/dev | 2023-06-28T03:49:34.265268 | 2021-06-15T18:07:51 | 2021-06-15T18:07:51 | 376,718,907 | 0 | 0 | null | 2021-06-15T18:07:51 | 2021-06-14T06:01:52 | Python | UTF-8 | Python | false | false | 3,390 | py | # %%
import graph_tool.all as gt
import numpy as np
import numpy.random as npr
# import matplotlib.colors as mplc
from matplotlib import cm
import matplotlib.colors as mplc
import os, sys
from gi.repository import Gtk, Gdk, GdkPixbuf, GObject, GLib
from plot_functions import *
# %%
def init_elegans_net():
g... | [
"istrozzi@matematica.ufrj.br"
] | istrozzi@matematica.ufrj.br |
25b61e304b936c5e84ffe57f9d196cca268179ff | 63b864deda44120067eff632bbb4969ef56dd573 | /object_detection/ssd/Config.py | f444dc728514a6492170e0eaf1c5d65542716889 | [] | no_license | lizhe960118/Deep-Learning | d134592c327decc1db12cbe19d9a1c85a5056086 | 7d2c4f3a0512ce4bd2f86c9f455da9866d16dc3b | refs/heads/master | 2021-10-29T06:15:04.749917 | 2019-07-19T15:27:25 | 2019-07-19T15:27:25 | 152,355,392 | 5 | 2 | null | 2021-10-12T22:19:33 | 2018-10-10T03:06:44 | Jupyter Notebook | UTF-8 | Python | false | false | 481 | py | import os.path as osp
sk = [ 15, 30, 60, 111, 162, 213, 264 ]
feature_map = [ 38, 19, 10, 5, 3, 1 ]
steps = [ 8, 16, 32, 64, 100, 300 ]
image_size = 300
aspect_ratios = [[2], [2, 3], [2, 3], [2, 3], [2], [2]]
MEANS = (104, 117, 123)
batch_size = 2
data_load_number_worker = 0
lr = 1e-3
momentum = 0.9
weight_decacy = 5e-... | [
"2957308424@qq.com"
] | 2957308424@qq.com |
2235add0ce48477a2a58d68f369f8cd3ba1fbf2b | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/swaggeraemosgi/model/com_adobe_granite_frags_impl_check_http_header_flag_properties.py | b32110895772ddda09288d935ee3f1e98dbd4215 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 7,658 | py | """
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0-pre.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-generator.t... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
c714879ab292decf242cb272a4d05560414fb170 | 72d010d00355fc977a291c29eb18aeb385b8a9b0 | /LV2_LX2_LC2_LD2/ParamMap.py | 12d64819be32886c056b2489f3ffb2779ffe3981 | [] | no_license | maratbakirov/AbletonLive10_MIDIRemoteScripts | bf0749c5c4cce8e83b23f14f671e52752702539d | ed1174d9959b20ed05fb099f0461bbc006bfbb79 | refs/heads/master | 2021-06-16T19:58:34.038163 | 2021-05-09T11:46:46 | 2021-05-09T11:46:46 | 203,174,328 | 0 | 0 | null | 2019-08-19T13:04:23 | 2019-08-19T13:04:22 | null | UTF-8 | Python | false | false | 2,876 | py | # Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/LV2_LX2_LC2_LD2/ParamMap.py
# Compiled at: 2018-04-23 20:27:04
from __future__ import absolute_import, print_function, unicode_literals
import Live
class Callable:
def __init__(self, anycallable):
... | [
"julien@julienbayle.net"
] | julien@julienbayle.net |
bf61729fa718b439998532f367204e3cf8b93cf6 | 35fe9e62ab96038705c3bd09147f17ca1225a84e | /a10_ansible/library/a10_ipv6_neighbor_static.py | 9c058e6fee3024c46ed849ab350ff96c39149478 | [] | no_license | bmeidell/a10-ansible | 6f55fb4bcc6ab683ebe1aabf5d0d1080bf848668 | 25fdde8d83946dadf1d5b9cebd28bc49b75be94d | refs/heads/master | 2020-03-19T08:40:57.863038 | 2018-03-27T18:25:40 | 2018-03-27T18:25:40 | 136,226,910 | 0 | 0 | null | 2018-06-05T19:45:36 | 2018-06-05T19:45:36 | null | UTF-8 | Python | false | false | 6,211 | py | #!/usr/bin/python
REQUIRED_NOT_SET = (False, "One of ({}) must be set.")
REQUIRED_MUTEX = (False, "Only one of ({}) can be set.")
REQUIRED_VALID = (True, "")
DOCUMENTATION = """
module: a10_static
description:
-
author: A10 Networks 2018
version_added: 1.8
options:
ipv6-addr:
description:
... | [
"mdurrant@a10networks.com"
] | mdurrant@a10networks.com |
b5fdf682f928aef41c6625b6e5d1e70bb65baa49 | cfc49e6e65ed37ddf297fc7dffacee8f905d6aa0 | /exercicios_seccao4/35.py | f774259ca92b71fb8f2bb8f0eeece2cbe180ede4 | [] | no_license | IfDougelseSa/cursoPython | c94cc1215643f272f935d5766e7a2b36025ddbe2 | 3f9ceb9701a514106d49b2144b7f2845416ed8ec | refs/heads/main | 2023-06-12T16:51:29.413031 | 2021-07-07T00:20:53 | 2021-07-07T00:20:53 | 369,268,883 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | # Hipotenusa
import math
a = int(input('Digite o cateto a: '))
b = int(input('Digite o cateto b: '))
hipotenusa = math.sqrt(a ** 2 + b ** 2)
print(f'O valor da hipotenusa é {hipotenusa}.')
| [
"doug_ccortez@outlook.com"
] | doug_ccortez@outlook.com |
4c699101fa8582289ec996b5664bd8ab5b3ec4f5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03032/s297706816.py | d7371f5e563b20937599d014765a4d6f1b0ebd4c | [] | 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 | 743 | py | n,k=map(int,input().split())
v=list(map(int, input().split()))
if k<n*2:
ans=0
for i in range(k+1):
for j in range(k-i+1):
v_r=v[:i]
v_l=v[(n-j):]
sute_cnt=k-(i+j)
v_new=v_r+v_l
v_new.sort()
# print(i, j, v_r, v_l, sute_cnt, v_new)... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
16241caf95d6f2f6a2c327e2309ad58990c11cd5 | be549921446835ba6dff0cadaa0c7b83570ebc3e | /run_eval_sutter.py | a0ba2df9ac3c6f63655586a070cc69f7762854c8 | [] | no_license | uctoronto/AutoPrescribe | 895ee4375625408c663cee22610bb5425d7efc7f | a6188e9189df727320448a368f6e70036472ede4 | refs/heads/master | 2020-03-27T05:47:47.500486 | 2017-05-31T18:49:33 | 2017-05-31T18:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,227 | py | from models.processor import Processor
from models.leap import LEAPModel
from exp.coverage import config_sutter as config
from utils.data import dump
config = config.get_config()
dir = 'build/'
config.saved_model_file = dir + 'sutter_%s_%s_seq2seq.model' % (config.level, config.order)
print(config.saved_model_file.sp... | [
"stack@live.cn"
] | stack@live.cn |
7ef5899fc65729bb3d4169066bc9065937633f77 | 8565e4d24b537d1fb0f71fef6215d193ceaed6cc | /tests/test_check_circular.py | 4a91863962a4377cf6bad0ba6466463a0579f885 | [
"MIT"
] | permissive | soasme/dogeon | 5f55c84a6f93aaa7757372664dd60ed90cf200e8 | 496b9a5b099946d14434ed0cd7a94a270f607207 | refs/heads/master | 2020-05-17T19:01:42.780694 | 2018-11-04T05:01:23 | 2018-11-04T05:01:23 | 20,592,607 | 3 | 0 | null | 2014-06-28T01:34:35 | 2014-06-07T12:28:07 | Python | UTF-8 | Python | false | false | 736 | py | import dson
import pytest
def default_iterable(obj):
return list(obj)
def test_circular_dict():
dct = {}
dct['a'] = dct
pytest.raises(ValueError, dson.dumps, dct)
def test_circular_list():
lst = []
lst.append(lst)
pytest.raises(ValueError, dson.dumps, lst)
def test_circular_composite():
... | [
"soasme@gmail.com"
] | soasme@gmail.com |
08824881bc68f2ddf1fee1b25916cd115d4df279 | aec59723a3dd0d3356a4ce426dc0fc381a4d3157 | /catalog/model/pricing.py | 020f6e8a724428673e0662dd1b10eba1af0e2087 | [] | no_license | Guya-LTD/catalog | f44e31593637e22b3b2a2869a387e29875986f7c | 632b3c3766e2600275c0a18db6378b2d38e3c463 | refs/heads/master | 2023-02-11T19:03:36.796812 | 2021-01-08T14:12:06 | 2021-01-08T14:12:06 | 275,332,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | # -*- coding: utf-8 -*-
"""Copyright Header Details
Copyright
---------
Copyright (C) Guya , PLC - All Rights Reserved (As Of Pending...)
Unauthorized copying of this file, via any medium is strictly prohibited
Proprietary and confidential
LICENSE
-------
This file is subject to the terms and conditi... | [
"simonbelete@gmail.com"
] | simonbelete@gmail.com |
14f648102f5ede6ed0cbfd6da4036fb02e0e97b3 | 8983b099a27d124b17fc20d4e9b5ec2f0bf8be25 | /altair/schema/_interface/named_channels.py | d2d7c77e95eadb00163c13a153019fb543b03f86 | [
"BSD-3-Clause"
] | permissive | princessd8251/altair | a7afa0745291f82215fbda6a477e369f59fcf294 | 387c575ee0410e7ac804273a0f2e5574f4cca26f | refs/heads/master | 2021-01-16T21:41:40.935679 | 2017-08-10T16:36:05 | 2017-08-10T16:36:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | # -*- coding: utf-8 -*-
# Auto-generated file: do not modify directly
# - altair version info: v1.2.0-98-g8a98636
# - date: 2017-08-09 12:14:26
from . import channel_wrappers
class Color(channel_wrappers.ChannelWithLegend):
pass
class Column(channel_wrappers.PositionChannel):
pass
class Detail(channel_wra... | [
"jakevdp@gmail.com"
] | jakevdp@gmail.com |
e073a8419eda5bafad84588f1124d089f124d4cd | 5864e86954a221d52d4fa83a607c71bacf201c5a | /carbon/common/lib/markdown/extensions/tables.py | f613f9a67f1f99e646124dad4f9a5fdff380870a | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,302 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\carbon\common\lib\markdown\extensions\tables.py
import markdown
from markdown.util import etree
class TableProcessor(markdown.blockprocessors.BlockProcessor):
def test(self, parent, block):
rows = block.split('\n')
... | [
"le02005@163.com"
] | le02005@163.com |
3eb6943aae1ad11db104ee00d54ed9bccbb642e4 | 855dc9fcd4170923e8723b6946c09c5cae68e079 | /what_transcode/migrations/0001_initial.py | cb61199f9d66f0b1aee0d9c062f1096d498bbdcf | [
"MIT"
] | permissive | point-source/WhatManager2 | 3fc72976402ac40d132aef0deffd8bcfbd209703 | ddbce0fa1ff4e1fc44bfa726c4f7eace4adbe8a9 | refs/heads/master | 2023-01-27T11:39:43.861041 | 2019-02-24T17:51:24 | 2019-02-24T17:51:24 | 210,232,561 | 1 | 0 | MIT | 2019-09-23T00:21:54 | 2019-09-23T00:21:53 | null | UTF-8 | Python | false | false | 985 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('home', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='TranscodeRequest',
fields=[
... | [
"ivailo@karamanolev.com"
] | ivailo@karamanolev.com |
5e9cf5ae03e925ad4d818c9b0637c412bbc60146 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02709/s022509829.py | dd9fa602873f6ee74e43f9bacf44dd9a2eee3894 | [] | 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 | 911 | py | import sys
input = sys.stdin.readline
from collections import deque
N = int(input())
#A = list(map(int, input().split()))
A = [(a, i) for i, a in enumerate(map(int, input().split()))]
A = sorted(A, reverse=True)
values = []
num_indcies = {}
for i, a in enumerate(A):
if not a in num_indcies:
num_indcies[a]... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3d76924803db335c9cb94bb42f4444f162c2d2ae | 936f72b46215b89b277ffd57256e54f727ce1ac5 | /spark-comp04/token.py | 3147a73cbc6b3be806e113977983bf177f1a4f32 | [] | no_license | luizirber/dc-compilers | 91dc99097d628339b53b20a0c0f2a6255a599b7a | 4a47e786583c5f50cac2ac3a35de195f7be7a735 | refs/heads/master | 2016-09-06T11:27:51.815748 | 2012-07-03T01:28:26 | 2012-07-03T01:28:26 | 41,540 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | class Token(object):
def __init__(self, type, attr=None, lineno='???'):
self.type = type
self.attr = attr
self.lineno = lineno
def __cmp__(self, o):
return cmp(self.type, o)
def __repr__(self):
return self.attr or self.type
| [
"luiz.irber@gmail.com"
] | luiz.irber@gmail.com |
f3822c56be1305e7b55915ab88f6b4e8ff7f9704 | 62587160029c7c79b5d11f16e8beae4afa1c4834 | /webpages/island_scraper_kyero/island_scraper/middlewares.py | f34dd9c19c21b5524d2483086acae265764a8f49 | [] | no_license | LukaszMalucha/Scrapy-Collection | b11dcf2c09f33d190e506559d978e4f3b77f9f5a | 586f23b90aa984c22ea8f84eba664db9649ed780 | refs/heads/master | 2022-12-14T15:06:00.868322 | 2021-07-27T12:09:07 | 2021-07-27T12:09:07 | 144,448,351 | 3 | 0 | null | 2022-11-22T03:16:19 | 2018-08-12T07:55:05 | Python | UTF-8 | Python | false | false | 3,611 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class IslandScraperSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# s... | [
"lucasmalucha@gmail.com"
] | lucasmalucha@gmail.com |
6544fcf260d6f8112c79a5e3a5ec70a10575a277 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1425+219/sdB_PG_1425+219_lc.py | e8ee83c9f091b54b888664988d5fb0c6cd57aee1 | [] | 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 | 346 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[216.986042,21.632814], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_PG_1425+219 /sdB_PG_1425+219_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
48b1cfe1f2c159159035fd8b8781a2df3fb2ffde | b11a5afd6682fe003445431ab60a9273a8680c23 | /language/nqg/tasks/spider/write_dataset.py | b2ed9f1018cf872e2b4933c9712c698deaeb8e52 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | Srividya-me/language | a874b11783e94da7747fc9a1b0ae1661cd5c9d4a | 61fa7260ac7d690d11ef72ca863e45a37c0bdc80 | refs/heads/master | 2023-08-28T10:30:59.688879 | 2021-11-12T22:31:56 | 2021-11-13T01:04:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,111 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | [
"kentonl@google.com"
] | kentonl@google.com |
6ff66a5e7100cbdd1877f359622be88b41e19b2c | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/keras_applications/inception_v3.py | 1b825c0ce4aea562e468b337a5843f63810f57d5 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:6bdeecc0c5e0341451f5d87e17d12c89a210b6161e1b066aca6e02bc425b2abf
size 14598
| [
"github@cuba12345"
] | github@cuba12345 |
568aa59ae896f8dcad1d6c4c19a117a22a0ff63c | c4d05bf624ce277b35d83ba8ba9636f26043280e | /project/urls.py | d6e90307036ceed43e1f6355ce2dc672ebb0e233 | [
"Apache-2.0"
] | permissive | DrMartiner/kaptilo_back | 2366b3a2b5c9bd9dc57c9091ff5fd0025963668d | df7f716030edbb1a70388fcbb808b0985dabefbf | refs/heads/main | 2023-04-09T03:12:52.274388 | 2021-03-22T09:48:39 | 2021-03-22T09:48:39 | 349,943,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.urls import path, include
from apps.link.views import OriginalLinkRedirectView
admin.site.site_header = "Kaptilo"
admin.site.site... | [
"DrMartiner@GMail.Com"
] | DrMartiner@GMail.Com |
668963624d3086f1b1dd35cf080200af75bf8736 | 191a7f83d964f74a2b3c7faeb4fc47d9c63d521f | /.history/main_20210523152045.py | 6d7861a88a7d86a28f1d8d675b4416ba674fb3c2 | [] | no_license | AndreLiu1225/Kinder-Values-Survey | 2a317feee8d5b17c27da2b2116742656e35d8ab9 | 090c27da0c822abb7dfc0ec6e13ae1b3dcb7bbf3 | refs/heads/master | 2023-05-03T00:26:00.481423 | 2021-06-04T03:24:19 | 2021-06-04T03:24:19 | 371,989,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | from flask import Flask, render_template, redirect, url_for
from flask_wtf import FlaskForm
from wtforms import StringField, TextField, SubmitField, IntegerField, SelectField, RadioField
from wtforms.validators import DataRequired, Email, EqualTo, Length, ValidationError
app = Flask(__name__)
app.config['SECRET_KEY'] ... | [
"andreliu2004@gmail.com"
] | andreliu2004@gmail.com |
8065d754386fc0b3762e05f4fc04a7f53121086e | 9da6c375dbf1af87622a2ba0fb773e8f513d8021 | /cli/bak.20200512-local/abcombo.py | a267f8c6d9d445c64cdd848a3d93c27eb4e147ce | [] | no_license | wri/tree_canopy_fcn | a80a9971403f6ca2548d44146ed08aa22d7d559e | 78f742e4e26e34008417468f73413643edde801e | refs/heads/master | 2022-10-11T03:25:41.503263 | 2020-06-16T12:39:21 | 2020-06-16T12:39:21 | 236,492,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,895 | py | import os,sys
PROJECT_DIR='/home/ericp/tree_canopy_fcn/repo'
sys.path.append(PROJECT_DIR)
from pprint import pprint
import numpy as np
import pandas as pd
import torch
import torch.nn as nn
from torch_kit.loss import MaskedLoss
import torch_kit.functional as F
from torch_kit.optimizers.radam import RAdam
import pytorch... | [
"bguzder-williams@wri.org"
] | bguzder-williams@wri.org |
f8184270f36e3f165d97bbb247f6f0b508fc5810 | ba7d84b4b85be8c3221468527757e264e64616b9 | /tests/hammytest.py | b5f03afc22f1e60ade3aca0eb505d0bf88fd3fe8 | [] | no_license | gomesr/timetracker | c18eb4b6f33e08eadd72971216b16560ef085aa1 | ce57a0791727a3b06e4b167fbeb3cb3e558ff2f1 | refs/heads/master | 2021-01-22T23:58:20.247393 | 2010-12-12T01:16:54 | 2010-12-12T01:16:54 | 1,130,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py |
import unittest
from trackers.hammy import HamsterTracker
from hamster import client
class HammyTest(unittest.TestCase):
def setUp(self):
self.tracker = HamsterTracker()
def test_create_100_activites(self):
tags = []
ids = []
try:
for i in range(1,100):
... | [
"rodneygomes@gmail.com"
] | rodneygomes@gmail.com |
dd1953d6927d29066068ea81328364dee75a86e6 | bbf1ae079309eca11270422d3f0d259d1515d430 | /numerical-tours/python/todo/solutions/wavelet_2_haar2d.py | 7ec8c89d23ba2108e274a13521844d6ad479f593 | [
"BSD-2-Clause"
] | permissive | ZichaoDi/Di_MATLABTool | 5e6a67b613c4bcf4d904ddc47c2744b4bcea4885 | c071291c63685c236f507b2cb893c0316ab6415c | refs/heads/master | 2021-08-11T07:28:34.286526 | 2021-08-04T18:26:46 | 2021-08-04T18:26:46 | 149,222,333 | 9 | 5 | null | null | null | null | UTF-8 | Python | false | false | 2,522 | py | def exo1():
"""
Implement a full wavelet transform that extract iteratively wavelet
coefficients, by repeating these steps. Take care of choosing the
correct number of steps.
"""
Jmin = 0
fw = f
for j in J: -1: Jmin:
fw(1: 2^(j + 1), 1: 2^(j + 1)) = haar(fw(1: 2^(j + 1), 1: 2^(j ... | [
"wendydi@compute001.mcs.anl.gov"
] | wendydi@compute001.mcs.anl.gov |
286cc8c250f2c2b4030ffc5e75d7d1213b47a934 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_yens.py | f7c90d82f8fc7ae9864e4492c2449f9c31d5b2f4 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py |
from xai.brain.wordbase.nouns._yen import _YEN
#calss header
class _YENS(_YEN, ):
def __init__(self,):
_YEN.__init__(self)
self.name = "YENS"
self.specie = 'nouns'
self.basic = "yen"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
a31d0693760097d9ec0bfc62e4a5c4d7383c09ab | 378b200007c5d3633572b61eb3dd2180748086b7 | /chefsBackEnd/chefsBackEnd/asgi.py | d077d3550da2054b45a48c64401ec50a84113e40 | [] | no_license | jgartsu12/chefs-table-backend | 4163c2c9a2bb586d4432c332238682bf282ef967 | 71611cf17aa457f8bc9a7ec7d853c570062d22fb | refs/heads/master | 2022-12-16T04:22:30.954831 | 2020-07-08T19:24:37 | 2020-07-08T19:24:37 | 251,097,796 | 1 | 0 | null | 2022-12-08T10:13:44 | 2020-03-29T17:59:15 | Python | UTF-8 | Python | false | false | 401 | py | """
ASGI config for chefsBackEnd project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_... | [
"jgartsu12@gmail.com"
] | jgartsu12@gmail.com |
764c228e5a8b115f7ca60c1480fdff36b20ab047 | 8a3726abfc9cb72d8ccf7d32b18edabf8d16b630 | /18/a.py | 32847a4eb7fdc71ad694396872b27a628860cf2a | [] | no_license | alex-stephens/aoc2015 | 48a46efc1a888ea2d451a5938fc404d26e96e1a0 | ccc1c85f8da7a0585003b2e4f99f3f1def35ec0b | refs/heads/master | 2023-02-05T23:02:19.148138 | 2020-12-27T19:16:47 | 2020-12-27T19:16:47 | 324,579,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | grid = [list(line.strip()) for line in open('input.txt').readlines()]
rows, cols = len(grid), len(grid[0])
def count_neighbours(i, j):
rmin, rmax = max(i-1, 0), min(i+1, rows-1)
cmin, cmax = max(j-1, 0), min(j+1, cols-1)
ans = 0
for r in range(rmin, rmax+1):
for c in range(cmin, cmax+1):
... | [
"alexstephens9@gmail.com"
] | alexstephens9@gmail.com |
05c5693d3b24a5c3fd147316f1f2cfeaba19014b | 5c39f5ac529e9f292ba0e4965fd684d4c6eefe8a | /migrations/0001_initial.py | 8570a25dfd79013e6c9c3202871e7bdc877c28d4 | [] | no_license | joshianshul2/csv_db | 6d24dec8bdcd8f00115a8729d5036beb47994d0e | e7215002c0a2fb8cadd0d4087b8651b1ec9e30ea | refs/heads/master | 2023-04-21T19:46:56.941399 | 2021-05-11T17:29:38 | 2021-05-11T17:29:38 | 356,846,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,962 | py | # Generated by Django 3.2 on 2021-04-07 05:30
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AvgMaster',
fields=[
('id', models.AutoField(... | [
"joshi.anshul2@gmail.com"
] | joshi.anshul2@gmail.com |
159e62cf42f265a5d96156ae23363dbeced3b8c0 | 1e53216c58f3c7843031721305590b83dbaed3f2 | /week_four/db_demo/db_app/migrations/0003_message_post_user_who_liked.py | 59fc1606c04688bdf72a3cafe91a74cffc27e608 | [] | no_license | MTaylorfullStack/python_july_20 | 991852ba12d6f06d6b93b8efc60b66ee311b5cb3 | bdfb0d9a74300f2d6743ac2d108571692ca43ad9 | refs/heads/master | 2022-12-12T18:03:00.886048 | 2020-08-27T23:53:31 | 2020-08-27T23:53:31 | 277,956,745 | 2 | 2 | null | 2023-06-30T20:06:11 | 2020-07-08T01:09:34 | Python | UTF-8 | Python | false | false | 425 | py | # Generated by Django 2.2 on 2020-07-29 00:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('db_app', '0002_message_post'),
]
operations = [
migrations.AddField(
model_name='message_post',
name='user_who_liked',... | [
"mtaylor@codingdojo.com"
] | mtaylor@codingdojo.com |
2ba794c5fbdf6b165029c3b20b7d4ae08486b115 | 4fd77ce692e10e962483c7e3e6e76c44887e9f52 | /geatpy/templates/soeas/GA/studGA/soea_psy_studGA_templet.py | 7cb191a9338b905bc256f6ecb2c43a2de4b72a72 | [
"MIT"
] | permissive | Passion-long/geatpy | d1aaf1622058473649840a9e2e26f9d0b0844bce | 8e2ab8730babaae640272bd4c77106519bdd120c | refs/heads/master | 2020-07-09T13:40:36.217907 | 2019-08-23T03:36:12 | 2019-08-23T03:36:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,750 | py | # -*- coding: utf-8 -*-
import numpy as np
import geatpy as ea # 导入geatpy库
from sys import path as paths
from os import path
paths.append(path.split(path.split(path.realpath(__file__))[0])[0])
class soea_psy_studGA_templet(ea.SoeaAlgorithm):
"""
soea_psy_studGA_templet.py - Polysomy Stud GA templet(多染色体种马遗传算法... | [
"jazzbin@geatpy.com"
] | jazzbin@geatpy.com |
47bf2f00c6730182259d81aeab1bf82ce408ef5d | c7115a0a1470310792b81cd097e0aa47ed095195 | /django_thoughtapi/manage.py | 5045eb05410e0449491ad1e7a92edec2a1f3c746 | [
"MIT"
] | permissive | qwergram/thoughts_api | 80818424b3755f671cfb65fcddff5c0769fa9e27 | 47e9a76cc15e30c36232b253eb0e44bb5f401482 | refs/heads/master | 2020-12-24T22:29:12.401158 | 2016-04-30T22:45:20 | 2016-04-30T22:45:20 | 57,338,528 | 0 | 0 | null | 2016-04-29T23:40:38 | 2016-04-28T22:46:59 | null | UTF-8 | Python | false | false | 260 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_thoughtapi.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"npengra317@gmail.com"
] | npengra317@gmail.com |
69c0bb652daa62eea8c9a6a5378fd562629cf26a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03095/s108733747.py | 8493da82e83df4f2a53a5e799e1313b9f63c0471 | [] | 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,818 | py | import sys
import math
from collections import Counter
N = int(input())
S = input()
MOD = 1000000007
# baba
# a(2), b(2), ab(1), ba(3)
# baab
# a(2), b(2), ab(2), ba(2)
# 1文字の時は分かる、それは単に数えるだけ
# 2文字の時は?
# 'ab' 'a'どれ選ぶ? → その後ろにある'b'は…
# 全部やるなら2^100000、ムリー
# dpいけるか?
# dpを設計しよう
# dp[n] : n文字目まで見た時の答え
# dp[n] = dp[n... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ec88adb74b40ae3b44f04b1e117c8c881872eb99 | ba2d24fd6c5ce7d490ee57f224fd5435a1132093 | /setup.py | 7b0ac69b67ea99435a867d57e8b00a0787e5f3aa | [
"MIT"
] | permissive | FlowerOda/pytest-auto-parametrize | cb2aff37308bff571b980da88f222f8b88e4e36b | 9db33bb06de13c26f753bfd18e254ce10ae1256c | refs/heads/master | 2022-01-09T16:54:33.796383 | 2018-10-09T08:56:09 | 2018-10-09T08:56:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,591 | py | from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
__version__ = 'unknown'
# "import" __version__
for line in open('pytest_auto_parametrize.py'):
if line.startswith('__version__'):
exec(line)
break
class PyTest(TestCommand):
"""Enable "python setu... | [
"Matthias.Geier@gmail.com"
] | Matthias.Geier@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.