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
ab3c9b1fb05f624ff51e8cff414dc625f66e4f8e
00d7824d2699fc7a90de167e04ff49a210458f2c
/tests/trainer/logging_tests/test_eval_loop_logging_1_0.py
bce4a23dda15785300b0bb95e0fb1af5454f1605
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license" ]
permissive
jtamir/pytorch-lightning
867feab3062ed2e3357b640588220efde349f97b
9b89a24b04dff50c0595c5399e9ba61b39745def
refs/heads/master
2021-07-10T19:40:53.410989
2020-11-04T05:59:16
2020-11-04T06:00:28
213,468,663
1
0
Apache-2.0
2019-10-07T19:28:07
2019-10-07T19:28:06
null
UTF-8
Python
false
false
11,727
py
# Copyright The PyTorch Lightning team. # # 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 i...
[ "noreply@github.com" ]
jtamir.noreply@github.com
9def12bb10c280f6d218ab0e4f4e022178c42c79
3c934c97bd5748237ac8963c8be779a7d77be629
/NumArray.py
7b83af17fd371ac49d4747ee093cd73e1eb4ba28
[]
no_license
Franktian/leetcode
2b0d0280d18e3401b9f337f027c5d70f26237f02
98e7852ba144cefbdb02f705651b1519155ee4d6
refs/heads/master
2021-06-12T15:23:09.733650
2020-06-17T23:09:18
2020-06-17T23:09:18
128,710,359
1
0
null
null
null
null
UTF-8
Python
false
false
166
py
def generateSumArray(lst): res = [0 for _ in range(len(lst) + 1)] for i in range(len(lst)): res[i + 1] = res[i] + lst[i] return res
[ "tianyawen201209@hotmail.com" ]
tianyawen201209@hotmail.com
43ec620f796bd7583adf61a5d35f884a7ed0a131
13c5b9fc590954a4a25b9d38e8140eb83a63c9a1
/src/bxutils/encoding/json_encoder.py
f19ef44071daf049b5ca02db5826cf4b49fe4c99
[ "MIT" ]
permissive
aspin/bxcommon
f746c405c693f4efb8af815cf4f9408284299e50
325a0844e3fc16176e90ea574eb45fff1177c527
refs/heads/master
2020-09-10T16:26:55.814270
2019-11-07T21:53:23
2019-11-07T21:53:23
221,758,675
0
0
null
2019-11-14T18:08:11
2019-11-14T18:08:10
null
UTF-8
Python
false
false
2,974
py
import json import os import traceback from datetime import date, time, datetime from enum import Enum from inspect import istraceback from typing import Union, Any, Iterable, Collection, Optional, Dict from bxutils import logging logger = logging.get_logger(__name__) SPECIAL_ITERABLE_TYPES = (type(dict().values()),...
[ "vc.shane@gmail.com" ]
vc.shane@gmail.com
d34717fa89b9334c16bbce45114f375f90df6212
5f86944bdf1b810a84c63adc6ed01bbb48d2c59a
/kubernetes/client/models/v1_host_path_volume_source.py
3c20e047e90416302ea98ba790825974c4a38243
[ "Apache-2.0" ]
permissive
m4ttshaw/client-python
384c721ba57b7ccc824d5eca25834d0288b211e2
4eac56a8b65d56eb23d738ceb90d3afb6dbd96c1
refs/heads/master
2021-01-13T06:05:51.564765
2017-06-21T08:31:03
2017-06-21T08:31:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,264
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.6.5 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
[ "mehdy@google.com" ]
mehdy@google.com
337555d0ffdb156debb715b400abbd43a9f4ed40
9c5f36b72323090b9f0254938923a04b436fd3be
/main/collect_data_X.py
a37f4e8d9f31c29e69b2f9b8a93a7076b5e83221
[]
no_license
mdlaskey/IL_ROS_HSR
7c7233905e6a1fc8388661236bade3862da0fc90
d12f8397249acea4fae71d12c74074314a8a005e
refs/heads/master
2021-01-20T18:30:11.815581
2018-04-07T01:14:41
2018-04-07T01:14:41
90,918,344
2
1
null
null
null
null
UTF-8
Python
false
false
3,777
py
from hsrb_interface import geometry import hsrb_interface from geometry_msgs.msg import PoseStamped, Point, WrenchStamped import geometry_msgs import controller_manager_msgs.srv import cv2 from cv_bridge import CvBridge, CvBridgeError import IPython from numpy.random import normal import time #import listener from geo...
[ "mdlaskey@umich.edu" ]
mdlaskey@umich.edu
25d0c925d1c1adec666c8545cd7d97549bb8a2e0
905f40a4ad8e17bb4871cf87b6ee184a76a77c2a
/products/views/products.py
bdd3a00c62a20bc010f464125babe72232cdb220
[]
no_license
sai9912/mypyton
5e1f7ca278051d5f588af1d9accae5fd1780020b
338fd6396dbdce971bc542718fbb9608bdcfc2a7
refs/heads/master
2022-12-16T05:04:34.590818
2019-04-18T09:18:06
2019-04-18T09:18:06
176,324,427
0
0
null
2022-12-08T02:31:10
2019-03-18T16:16:56
Python
UTF-8
Python
false
false
38,457
py
import json import logging import os import trml2pdf from django.conf import settings from django.core.paginator import Paginator, InvalidPage from django.core.serializers import serialize from django.http import HttpResponse, Http404 from django.shortcuts import render, redirect, reverse from django.template.loader i...
[ "root@ip-172-31-29-10.ap-south-1.compute.internal" ]
root@ip-172-31-29-10.ap-south-1.compute.internal
a458fcba14a9b526fea72c863cbaf95925bb15fd
5c5b34f6f598a43ddfbd473228737a27c26d1d8e
/contest/第 16 场双周赛/5153. 层数最深叶子节点的和.py
9c625b10b34a8d937c7c013c9da14a932474e7f8
[]
no_license
lovehhf/LeetCode
34a1bc140b10dc83a32ef9a70f9c73176948a9c4
5d3574ccd282d0146c83c286ae28d8baaabd4910
refs/heads/master
2021-11-04T04:52:34.518621
2021-10-26T15:34:47
2021-10-26T15:34:47
173,673,492
0
0
null
2020-03-03T14:54:09
2019-03-04T04:26:15
Python
UTF-8
Python
false
false
2,252
py
# -*- coding:utf-8 -*- """ 给你一棵二叉树,请你返回层数最深的叶子节点的和。 示例: 输入:root = [1,2,3,4,5,null,6,7,null,null,null,null,8] 输出:15 提示: 树中节点数目在 1 到 10^4 之间。 每个节点的值在 1 到 100 之间。 mid dl的dfs解法: class Solution { public: int md, res; void dfs(TreeNode* x , int dep) { if (x == NULL) return; if (x->left =...
[ "853885165@qq.com" ]
853885165@qq.com
6ccb5f9dd768379c7dbc65f8f3782ebb2724ba65
ecd4b06d5d5368b71fd72a1c2191510a03b728fd
/10 - python-data-science-toolbox-part-2/13 - write your own generator expressions.py
d2c273692fdfcb03da16650e1b4cafb4b11fe05a
[ "MIT" ]
permissive
Baidaly/datacamp-samples
86055db5e326b59bfdce732729c80d76bf44629e
37b4f78a967a429e0abca4a568da0eb9d58e4dff
refs/heads/master
2022-07-27T01:18:00.700386
2022-07-18T19:27:23
2022-07-18T19:27:23
123,827,284
0
0
null
null
null
null
UTF-8
Python
false
false
1,029
py
''' You are familiar with what generators and generator expressions are, as well as its difference from list comprehensions. In this exercise, you will practice building generator expressions on your own. Recall that generator expressions basically have the same syntax as list comprehensions, except that it uses paren...
[ "daulet.urazalinov@uptake.com" ]
daulet.urazalinov@uptake.com
1f1c0fa57670131ce843fb8fd1fff22ae434970c
8cc862aa51d3fec95d094dc4bd3151e1155d240a
/PythonSpider/toutiao/jiepai.py
6112f808f2392f33cd7d22605d53420e6247c8a4
[]
no_license
activehuahua/python
bcbf3a2190025e2315399bfd0c725f598211632b
cc36a93c01c53f856426ccf2724848142524d9c0
refs/heads/master
2023-04-14T10:23:21.590765
2019-08-12T06:52:15
2019-08-12T06:52:15
160,277,647
0
0
null
null
null
null
UTF-8
Python
false
false
2,174
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- ''' @Author : zhaojianghua @File : jiepai.py @Time : 2019/1/2 10:45 @desc : 街拍网址: https://www.toutiao.com/search/?keyword=%E8%A1%97%E6%8B%8D ''' import requests from urllib.parse import urlencode import pprint,os from hashlib import md5 from multiprocessing import ...
[ "zhaojianghua@pretang.com" ]
zhaojianghua@pretang.com
8c77c556534fee53c2d8b3f8323b07fa4aa34f7a
17b9f098d783b58a65a2f4a2d51c7d1ae19285cf
/Mayordomo.py
88dc5fde4a0f1885bfec2efdae1dc685064bf827
[ "MIT" ]
permissive
elenajimenezm/Mayordomo
ea17a3168f25f4648910a71aece478155dffabd3
da5e8746ee41906eb60c8626b5de2db8e111ad83
refs/heads/master
2021-07-25T23:32:15.382348
2017-11-09T22:51:38
2017-11-09T22:51:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,650
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import paho.mqtt.client as paho import json import time import uuid import Queue import subprocess import unicodedata MQTT_SERVER = 'localhost' MAYORDOMO_TOPIC = 'rcr/Mayordomo' SPEAK_TOPIC = 'rcr/Speak' PLAYER_TOPIC = 'rcr/MusicPlay...
[ "titos.carrasco@gmail.com" ]
titos.carrasco@gmail.com
f8849681bf0f73b561cd28da56bec644274b35b2
0e99d2efff685a66869d5a7cd4a68de8955f498c
/baseproblems/maxSerise.py
59e500dd6acc33c4ffc189b1fcf29faf76b97e71
[]
no_license
supercp3/code_leetcode
f303109c70ccdd0baa711cf606d402158b212525
1dc6260e229a012111ec4d5e60071c2458ce5002
refs/heads/master
2020-03-26T11:33:28.741405
2018-10-15T02:18:24
2018-10-15T02:18:24
144,848,743
0
0
null
null
null
null
UTF-8
Python
false
false
301
py
''' 最大连续子序列的和 ''' def maxlist(data): length=len(data) maxnum=0 for i in range(length): subnum=0 for j in range(i,length): subnum+=data[j] if subnum>maxnum: maxnum=subnum return maxnum if __name__=="__main__": data=[1,2,3,-2,3,-10,3] res=maxlist(data) print(res)
[ "13281099@bjtu.edu.cn" ]
13281099@bjtu.edu.cn
6ba0d69d629dad7ff9c362d2aaa88f0ed544dfe5
2fe1cc0cca927276a1f936e57c6427aa4210265a
/flasky/app/__init__.py
33d1d993450feb757a5d81cf9576e679b99e4a20
[]
no_license
D-Mbithi/flask-web-development-code
57b29488f87ff76a0775f16965f8df906d517b5f
98d24e498372be74a17b7451b46ed1bb22093a8d
refs/heads/master
2022-12-12T17:13:11.337107
2019-12-02T16:42:47
2019-12-02T16:42:47
225,421,531
0
0
null
2022-09-16T18:14:07
2019-12-02T16:36:23
JavaScript
UTF-8
Python
false
false
974
py
from flask import Flask from flask_bootstrap import Bootstrap from flask_mail import Mail from flask_moment import Moment from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_debugtoolbar import DebugToolbarExtension from config import config bootstrap = Bootstrap() login_manager ...
[ "jonas@devlieghere.com" ]
jonas@devlieghere.com
e47367f80b9ab84975e9b2f5f3ecdfcd1a28d9e8
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_135/562.py
3640e88ff78b2a491484cb555a0a0c269267b59a
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,695
py
from sys import * from heapq import * from time import time from multiprocessing import Pool from collections import * import itertools from copy import deepcopy from bisect import * setrecursionlimit(10000) from math import * def readint(): return int(fi.readline()) def readints(): return [int...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
2f6984f86dbb761041f432d70be05ec86d3e84f6
d7016f69993570a1c55974582cda899ff70907ec
/sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_12_01/aio/operations/_domain_registration_provider_operations.py
1c663f674b0cbfd5b8e1d5930de10fb86e0d22d9
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
kurtzeborn/azure-sdk-for-python
51ca636ad26ca51bc0c9e6865332781787e6f882
b23e71b289c71f179b9cf9b8c75b1922833a542a
refs/heads/main
2023-03-21T14:19:50.299852
2023-02-15T13:30:47
2023-02-15T13:30:47
157,927,277
0
0
MIT
2022-07-19T08:05:23
2018-11-16T22:15:30
Python
UTF-8
Python
false
false
5,710
py
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRe...
[ "noreply@github.com" ]
kurtzeborn.noreply@github.com
a2bc95d947a2921c249b500c16c2edac2b571ce7
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p4VQE/R4/benchmark/startQiskit_QC109.py
a8e43bd444135748ce1444508cc41f1ed30f64a6
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
2,565
py
# qubit number=3 # total number=10 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
de6926e063452533074ff6429ef970fc7829e000
035730cf12c43f59b76d9809e444b9070c3e5732
/BOJ_16197.py
8b217b46d4491a74e861471fd3f2c11ac628f378
[]
no_license
kimhaggie/Coding_practice
e18153838425874b80a683094369a6dfb8836c93
a4f2732e5d7a63adae990226073333b88324765a
refs/heads/master
2023-08-01T11:33:54.071564
2021-09-07T14:40:56
2021-09-07T14:40:56
310,264,349
1
0
null
null
null
null
UTF-8
Python
false
false
3,333
py
#16197 import sys from collections import deque import math dx = [1,-1,0,0] dy = [0,0,1,-1] def move(direction,ball1,ball2,m): N=len(m) M=len(m[0]) if direction==0:#오른쪽 y1,x1 = ball1[0],ball1[1]+1 y2,x2 = ball2[0],ball2[1]+1 flag1=False flag2=False if not(...
[ "kimhaggie@gmail.com" ]
kimhaggie@gmail.com
3f2d538e2a917016702fee2504b2099156eb05df
eeeb3e85de712e71417630035417e6cf0d3a1da4
/LSTM-GRU/gen-queries.py
df92915b1371e5e6b9078642d04d5215b7a98769
[]
no_license
VNGResearch/RNN---QA
21029647940cac97d628b8d5a25ae68dcbd226b7
dc54c5d99e2a56cc981d53d89e0fcdaf6804dba9
refs/heads/master
2020-04-05T10:39:58.896752
2017-07-21T01:27:24
2017-07-21T01:27:24
81,531,473
0
0
null
null
null
null
UTF-8
Python
false
false
776
py
from argparse import ArgumentParser import json import numpy as np parser = ArgumentParser() parser.add_argument('-l', '--length', help='The number of generated queries. Defaults to 100', dest='len', default=100, type=int) parser.add_argument('-o', help='The output file. Defaults to queries.txt', ...
[ "phan.ngoclan58@gmail.com" ]
phan.ngoclan58@gmail.com
462cf61c1760e9be0261bc1c37b152eabaa6e850
a66460a46611483dfbdc94c7996893f427e60d97
/ansible/my_env/lib/python2.7/site-packages/ansible/module_utils/network/onyx/onyx.py
ad667e74dfd188880633b7c22c46ebaf4554c496
[ "MIT" ]
permissive
otus-devops-2019-02/yyashkin_infra
06b57807dde26f94f501828c07503d6bf1d70816
0cd0c003884155ac922e3e301305ac202de7028c
refs/heads/master
2020-04-29T02:42:22.056724
2019-05-15T16:24:35
2019-05-15T16:24:35
175,780,718
0
0
MIT
2019-05-15T16:24:36
2019-03-15T08:37:35
HCL
UTF-8
Python
false
false
6,984
py
# -*- coding: utf-8 -*- # # (c) 2017, Ansible by Red Hat, inc # # This file is part of Ansible by Red Hat # # Ansible 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 3 of the License, or # (at y...
[ "theyashkins@gmail.com" ]
theyashkins@gmail.com
2bfd9ee81df21fab82139938d2c26ec709bab772
0b03746cf78477b88032616110aa92f85db7eb69
/law/config.py
7ab741d8879c14798b5da5edae3e98eaa1b77925
[ "MIT" ]
permissive
erikgeiser/law
ad3a7361cb057b5022aaf81898da46e2655bc52a
2c8a0d5161ea2b44063a79860f2bebdf66ff67d4
refs/heads/master
2020-03-21T05:48:45.748030
2018-07-13T14:47:04
2018-07-13T14:47:04
138,182,389
1
1
MIT
2018-06-21T14:34:57
2018-06-21T14:34:57
null
UTF-8
Python
false
false
9,681
py
# -*- coding: utf-8 -*- """ law config parser implementation. """ __all__ = ["Config"] import os import tempfile import logging import luigi import six from six.moves.configparser import ConfigParser from law.util import law_home_path, check_bool_flag logger = logging.getLogger(__name__) class Config(ConfigP...
[ "marcelrieger@me.com" ]
marcelrieger@me.com
419490d9be79e02a31e8b3e89e0ac816c5f69f66
58141d7fc37854efad4ad64c74891a12908192ed
/setup/delete_queue.py
8061e4d967956926ae2cb113935d91110889b166
[]
no_license
stanleylio/fishie
b028a93b2093f59a8ceee4f78b55a91bb1f69506
0685045c07e4105934d713a0fd58c4bc28821ed6
refs/heads/master
2022-08-14T13:08:55.548830
2022-07-29T01:32:28
2022-07-29T01:32:28
30,433,819
8
1
null
null
null
null
UTF-8
Python
false
false
578
py
import sys,pika,argparse from os.path import expanduser sys.path.append(expanduser('~')) from cred import cred parser = argparse.ArgumentParser(description='') parser.add_argument('queue_name',metavar='daq',type=str, help='name of queue to be deleted') args = parser.parse_args() print(args.queue_n...
[ "stanleylio@gmail.com" ]
stanleylio@gmail.com
23f114695e9b28063697275cac18aad4d1d253a4
c0681769775e760d9ecf10e5803a26046bc7f45c
/Doctor/migrations/0011_remove_session_doctor.py
d7fa30395af0b3f7e22b3f7c8e70efc8a8d6ad5d
[]
no_license
enasmohmed/DoctorAPI
34545ea4c36308363d358a493356271ac9a316ba
2179f691243f418a48bc1d12d1a1dba7779dbcc2
refs/heads/main
2023-02-14T17:40:28.787673
2021-01-14T01:16:18
2021-01-14T01:16:18
329,144,825
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
# Generated by Django 3.1.5 on 2021-01-13 23:22 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Doctor', '0010_auto_20210113_2318'), ] operations = [ migrations.RemoveField( model_name='session', name='doctor', )...
[ "enasm2477@gmail.com" ]
enasm2477@gmail.com
22fac5fbea4918dcebbfee98f0d3cea8e13e2d5b
a54007706a09b387690f79fd7ffd889decad42f1
/day04/code/20_默认参数易错点.py
9a0ab1a389c3755a35c8877d74e819a5746b3dac
[]
no_license
lvah/201903python
d425534544a1f91e5b80b5ff0de5ca34037fe6e9
1415fcb7697dfa2884d94dcd8963477e12fe0624
refs/heads/master
2020-07-06T16:45:37.882819
2019-09-08T10:13:07
2019-09-08T10:13:07
203,082,401
5
0
null
null
null
null
UTF-8
Python
false
false
415
py
# 一定要注意: 默认参数的默认值一定是不可变参数; def listOperator(li=None): """ 对于原有的列表后面追加元素‘End’ :return: """ if li is None: # is, == li = [] li.append('End') return li # print(listOperator([1, 2, 3])) # print(listOperator([])) # print(listOperator([])) print(listOperator()) print(listOperator()) ...
[ "root@foundation0.ilt.example.com" ]
root@foundation0.ilt.example.com
d10c2dba1cb876d1b31f3b6cb6ede0f7fa374b75
e2c5dd7020b0613852bf16606d6de48159f56a7e
/ensemble/test/test_gbdt.py
ee73d36ba89bb65b78540a47b1a1c3e847d0603c
[]
no_license
bannima/MachineLearninginAction
7830cb6bcda43e62e937b86198e4e5bbeef28275
872a24e25f8ef7768b2f8b37c9d1ab39504f0c33
refs/heads/master
2021-08-08T08:15:43.403854
2021-07-25T09:37:37
2021-07-25T09:37:37
238,710,052
23
5
null
null
null
null
UTF-8
Python
false
false
907
py
#!/usr/bin/env python # -*- coding:utf-8 -*- """ FileName: test_gbdt.py Description: Author: Barry Chow Date: 2020/3/3 4:15 PM Version: 0.1 """ from numpy import * from sklearn.datasets import load_iris from ensemble import GradientBoostingClassifier from ensemble import GradientBoostingRegressor from utils import a...
[ "zhouenguo@163.com" ]
zhouenguo@163.com
829f59b5185126d6c05e5124829bd71de947201b
b661499ebc0d9102c6516cdb1fc9902858fc1a50
/src/core/parametrisable.py
184af0a2c7c2262cbc75b7f1c6cf6ee6a05b594c
[]
no_license
wesselb/cgpcm
5469239fd912f8d3a72ab1202a913ebaa3098960
d96263f6ad338759aadb178cf1b24bcbf0a738c5
refs/heads/master
2021-01-20T14:34:16.489945
2017-04-26T03:44:03
2017-04-26T03:44:03
82,757,924
1
0
null
null
null
null
UTF-8
Python
false
false
749
py
class Parametrisable(object): """ Class where keywords given to the constructor become attributes. Required parameters can be specified through overriding `_required_pars`. """ _required_pars = [] def __init__(self, **pars): # Verify that all required parameters are specified i...
[ "wessel.p.bruinsma@gmail.com" ]
wessel.p.bruinsma@gmail.com
54abfd415e752c13460f79a21713413b9ab14fcc
abc89af3d78537266421803072727561111a9b2f
/rename.py
9d4fab667a2c8f11f4e56f3abebe0b0414e633d6
[]
no_license
Iverance/leetcode
41b34ff847d77dfa84a0f8f656889b9d4bf125d7
0127190b27862ec7e7f4f2fcce5ce958d480cdac
refs/heads/master
2021-01-22T02:28:39.498315
2017-12-23T01:36:51
2017-12-23T01:36:51
102,247,395
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
import os for filename in os.listdir("."): if filename[0] in '0123456789': if '.' in filename[:2]: #print('00'+filename) os.rename(filename, '00'+filename) elif '.' in filename[:3]: #print('0'+filename) os.rename(filename, '0'+filename)
[ "jeremhh@gmail.com" ]
jeremhh@gmail.com
1d0850ecf7db575ff30bc3999e2fb93b4e55b457
81c344b8df43ed550cb9496c664a8de2687eda3e
/venv/lib/python3.8/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_authentication_rule.py
2c4078a4610b6502d0b24ab1531a0271f27d7a36
[]
no_license
anhdoan-ntt/cisco-aci
dc0e52b6d19ee0bafb2b24e0febe955952bf39ef
185be6d6f13eabd65fb0ff328ea54f6507ccf0d4
refs/heads/main
2022-12-20T00:07:27.465096
2020-10-05T08:15:29
2020-10-05T08:15:29
300,500,699
1
1
null
null
null
null
UTF-8
Python
false
false
16,189
py
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019-2020 Fortinet, Inc. # # 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 3 of th...
[ "dc.anh.doan@gmail.com" ]
dc.anh.doan@gmail.com
6bedc9f9b3637f1ae471d084de0b925ba9c41d68
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/dockerized-gists/35c3d539cd5a30aaf580/snippet.py
0cd09dc0b9c464eea7925d4248aad941e0a53623
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
2,720
py
# this is how to highlight code for powerpoint: `pbpaste | highlight --syntax=py -O rtf | pbcopy` # api_jsonify() from decimal import Decimal from uuid import UUID from datetime import datetime from flask import Response from json import JSONEncoder, dumps class JsonApiEncoder(JSONEncoder): def default(self, o): ...
[ "gistshub@gmail.com" ]
gistshub@gmail.com
52512e9d370a51bcf092d65fc589ab94b7004799
51036d0ef641fc455eb643e3a6b942136b20e697
/rdmo/conditions/tests/test_commands.py
a41483e4986a3d63a27ed948f34598a93c75d051
[ "Apache-2.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause" ]
permissive
ItsNotYou/rdmo
43ab02a340ae6c6f50e19cd728f5c1311117abfc
eba2056b376107e817a4080fc12245095a907429
refs/heads/master
2022-12-02T04:18:48.117562
2020-08-16T10:13:11
2020-08-16T10:13:11
287,918,765
0
0
Apache-2.0
2020-08-16T10:10:19
2020-08-16T10:10:18
null
UTF-8
Python
false
false
374
py
import io import os from django.core.management import call_command def test_import(db, settings): xml_file = os.path.join(settings.BASE_DIR, 'xml', 'conditions.xml') stdout, stderr = io.StringIO(), io.StringIO() call_command('import', xml_file, '--user=user', stdout=stdout, stderr=stderr) assert n...
[ "mail@jochenklar.de" ]
mail@jochenklar.de
67c201f4428c123d2ed9ddac81f5d2a0ab16168b
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2791/60688/288720.py
fc2b23ce74d5ae4260c05243b1fa88e6f9d45963
[]
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
306
py
times=int(input()) numslist=input().split(" ") numslist=list(int(a) for a in numslist) first=0 second="" for i in range(0,times): if(numslist[i]==1): first=first+1 if(i!=0): second=second+str(numslist[i-1])+" " second=second+str(numslist[times-1]) print(first) print(second)
[ "1069583789@qq.com" ]
1069583789@qq.com
667a48100b02d4fc5b11046794c639f95c081a88
78537ca73fd61c5d8fd6cbb326d4ba95eadc7219
/CircuitPython_on_Linux_and_Raspberry_Pi/PWM_motor_servo_control.py
06f9a6ad4a2b9e7e04c7ee055bc8db5a116658ed
[ "MIT" ]
permissive
FoamyGuy/Adafruit_Learning_System_Guides
a31f7c5ef49125ad25e5bdc4d0e50aa43513ce82
6cb04635ce47d2292a2ea09d196fbffdad534168
refs/heads/master
2023-08-16T21:34:30.856046
2020-11-10T00:51:16
2020-11-10T00:51:16
254,224,051
1
0
MIT
2020-11-10T00:51:18
2020-04-08T23:32:18
C
UTF-8
Python
false
false
498
py
import time import board import pulseio from adafruit_motor import servo # create a PWMOut object on Pin D5. pwm = pulseio.PWMOut(board.D5, duty_cycle=2 ** 15, frequency=50) # Create a servo object. servo = servo.Servo(pwm) while True: for angle in range(0, 180, 5): # 0 - 180 degrees, 5 degrees at a time. ...
[ "kattni@adafruit.com" ]
kattni@adafruit.com
70e13aea5531ab49d0ca4b969bca632e629ae87c
495531870c08ea3495bb45393b05f907366f052e
/x7-src/dashboard/steer/steer/dashboards/settings/user/urls.py
63cb0f42cb258a06941b7f2af993a654416bde1e
[ "Apache-2.0" ]
permissive
wendy-king/x7_venv
5fcb326cf3ecaa26d3b839af743b027d23af29e0
d8266c1dc474935c54126ce36d1a6410a7e452f5
refs/heads/master
2021-01-01T06:33:24.605851
2012-01-19T15:54:44
2012-01-19T15:54:44
3,209,071
0
0
null
null
null
null
UTF-8
Python
false
false
806
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 Nebula, 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 # # ...
[ "king_wendy@sina.com" ]
king_wendy@sina.com
51c0bc39cdee200e82b120630c333d4307f1c756
61efd764ae4586b6b2ee5e6e2c255079e2b01cfc
/azure-mgmt-network/azure/mgmt/network/v2017_10_01/models/virtual_network_peering.py
610944b9edf6986e9ce86ed411f1f8f342ddc79b
[ "MIT" ]
permissive
AutorestCI/azure-sdk-for-python
a3642f53b5bf79d1dbb77851ec56f4cc0c5b3b61
60b0726619ce9d7baca41f6cd38f741d74c4e54a
refs/heads/master
2021-01-21T02:23:59.207091
2018-01-31T21:31:27
2018-01-31T21:31:27
55,251,306
4
3
null
2017-11-13T17:57:46
2016-04-01T17:48:48
Python
UTF-8
Python
false
false
4,677
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "laurent.mazuel@gmail.com" ]
laurent.mazuel@gmail.com
b1b45fa60f7e0e003895684d3f195f184d53d6c8
aa1972e6978d5f983c48578bdf3b51e311cb4396
/nitro-python-1.0/nssrc/com/citrix/netscaler/nitro/resource/config/aaa/aaapreauthenticationpolicy_vpnvserver_binding.py
9d1d503c57d03e7c475d01047f132fe13a288def
[ "Python-2.0", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
MayankTahil/nitro-ide
3d7ddfd13ff6510d6709bdeaef37c187b9f22f38
50054929214a35a7bb19ed10c4905fffa37c3451
refs/heads/master
2020-12-03T02:27:03.672953
2017-07-05T18:09:09
2017-07-05T18:09:09
95,933,896
2
5
null
2017-07-05T16:51:29
2017-07-01T01:03:20
HTML
UTF-8
Python
false
false
5,608
py
# # Copyright (c) 2008-2016 Citrix Systems, 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 l...
[ "Mayank@Mandelbrot.local" ]
Mayank@Mandelbrot.local
54c6a7f4607a6c69890642eb976d35540a9e23ec
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-gsn-edf/gsn-edf_ut=2.0_rd=0.5_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=74/sched.py
cc5e0ffd8b66aec58cf680cf03fc01953f535a07
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
210
py
-X FMLP -Q 0 -L 3 116 400 -X FMLP -Q 0 -L 3 59 300 -X FMLP -Q 1 -L 2 49 300 -X FMLP -Q 1 -L 2 44 250 -X FMLP -Q 2 -L 2 44 250 -X FMLP -Q 3 -L 2 37 150 37 175 27 175 23 175 22 175 18 175 4 175
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
63c27f2302b74cddff7e9b0a07332d38e3562e9b
5b0a4ee4543275e130c32e27a0d046b72e0894e4
/tensorflow/python/keras/engine/distributed_training_utils.py
0185e87cb068eb1f8102af77705eab785fbbfd9e
[ "Apache-2.0" ]
permissive
pkit/tensorflow
f0426b2c4f8dc4e1630e7c139eb23c697200f9fb
1d1aeb64b91effd4329965cc7954a3e21820c88b
refs/heads/master
2020-04-16T05:20:22.828901
2019-01-11T19:16:53
2019-01-11T19:22:16
165,300,428
1
0
Apache-2.0
2019-01-11T19:48:20
2019-01-11T19:48:19
null
UTF-8
Python
false
false
36,127
py
# Copyright 2018 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...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
8188758945628ec846274bd177af33c4087ef8a3
d7ad696cd1b550bb41d20f87b83c984ec7f19aa7
/atcoder/python/_old/beginner/contest/201_300/212/b_Weak_Password.py
98882642828e1ac3790b880ab5ca4f94c7213b6a
[]
no_license
mida-hub/hobby
2947d10da7964d945e63d57b549c1dcb90ef7305
6e6f381e59fc2b0429fab36474d867aa3855af77
refs/heads/master
2022-12-21T23:33:14.857931
2022-12-19T16:30:34
2022-12-19T16:30:34
147,890,434
0
0
null
2021-03-20T04:31:58
2018-09-08T01:31:59
Jupyter Notebook
UTF-8
Python
false
false
236
py
x = input() x1, x2, x3, x4 = map(int, list(x)) # print(x1, x2, x3, x4) if x1 == x2 == x3 == x4: print('Weak') elif x4 == (x3+1)%10 and \ x3 == (x2+1)%10 and \ x2 == (x1+1)%10: print('Weak') else: print('Strong')
[ "rusuden0106@gmail.com" ]
rusuden0106@gmail.com
44d9017c2f7d723b7a212c2c0c90c9ecd07f3814
1a87ac9522591f25b03e6912ba3af3cca115abae
/inventory/migrations/0008_auto_20210323_1552.py
9f861fbe025a9c3a0b6f37ed307a6f83f8ec55b3
[ "MIT" ]
permissive
jyywong/InventoryMS
c67fdb0a051be5d136d9509e63b7fc0aeadcc324
9aac1324742730ce980e638f2156ece9eb44a593
refs/heads/master
2023-04-01T15:38:44.448813
2021-04-05T19:59:45
2021-04-05T19:59:45
350,162,598
1
0
null
null
null
null
UTF-8
Python
false
false
403
py
# Generated by Django 2.2.10 on 2021-03-23 19:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('inventory', '0007_auto_20210323_1528'), ] operations = [ migrations.AlterField( model_name='item', name='bar_code',...
[ "wong.jonathan1@gmail.com" ]
wong.jonathan1@gmail.com
ccbe1eb7db398e37dcf02cb0576aa88a28663115
45185a2c65924ed01cdc222ccc42e71391e5a1f4
/tt/tests/utils.py
4baa12a29ca5658108cc95656aef682479cb6851
[ "MIT" ]
permissive
parsamz/tt
5cb0db124fd9ed5ec3fe24e0e807c72d33f9aebb
0d2a286d46cfe1ca01b340d710ba5a1921a9b66e
refs/heads/master
2020-04-01T13:47:37.380990
2016-05-07T01:41:42
2016-05-07T01:41:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,156
py
"""Utility methods/classes used in the testing pipeline. """ import sys import unittest from contextlib import contextmanager from tt.core import main if sys.version_info < (3, 0): from io import BytesIO as StringIO else: from io import StringIO # === stdout/stderr interaction ============================...
[ "welch18@vt.edu" ]
welch18@vt.edu
003c4f1f23e0854df92932089c015e72820a1d9e
62248ce4ce8f11d24c089b54d4c02bdec51df565
/Stars_Web/settings.py
e85e844b2bf965f39af337d25c11917f7278db24
[]
no_license
challeger/Starts_Web
0b7231bbdf0e6f6350c928e13f9b67c6f1c4af84
1b372013706f8d082e9feab5c73fd690a10b7286
refs/heads/master
2022-12-24T21:32:31.231838
2020-09-30T05:04:21
2020-09-30T05:04:21
299,798,716
2
0
null
null
null
null
UTF-8
Python
false
false
3,993
py
""" Django settings for Stars_Web project. Generated by 'django-admin startproject' using Django 3.1.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ import os f...
[ "799613500@qq.com" ]
799613500@qq.com
f3ba2d5ebe159e659d05d9840939a38c42042d12
70e81f00b600057464fdccaef2d82f238c8f08dc
/apps/utils/yunpian.py
89e5b0098e2c0e410c73f6bff53474e77df75b25
[]
no_license
wujialaoer/shop
1bbd905369260ce1df9822027649655b7a909657
5fc8b02ba63cea96172f30520b553dab3ec5fe8a
refs/heads/master
2020-05-07T09:06:49.935942
2019-04-16T09:03:38
2019-04-16T09:03:38
180,359,944
0
0
null
null
null
null
UTF-8
Python
false
false
667
py
import json import requests class YunPian(object): def __init__(self, api_key): self.api_key = api_key self.single_send_url = "https://sms.yunpian.com/v2/sms/single_send.json" def send_sms(self, code, mobile): parmas = { "apikey": self.api_key, "mobile": mobil...
[ "624334922@qq.com" ]
624334922@qq.com
76eb91fe6bfb0a872f54e9b9920fc6ef2255dffa
43b72b9e4d81ffab6e4d79f324034cbb4b7413a3
/challenge/NOTDONEsmallestWindowHavingOneInAnother.py
07d1a5408b509bd0143be6df6ca2f1db94677de3
[]
no_license
devathul/prepCode
bfe0ad44f68c8c9d4a48f76dde9a1bb8af165373
eb0751bda3066ac2f1a2890cf63b28ee63a6dd89
refs/heads/master
2023-01-08T20:59:52.214333
2020-11-01T00:13:55
2020-11-01T00:13:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
355
py
""" smallestWindowHavingOneInAnother Given a string S and text T. Output the smallest window in the string S having all characters of the text T. Both the string S and text T contains lowercase english alphabets """ no_of_chars=256 def findSubString(string,pat): len1=len(string) len2=len(pat) if len1<len2: print(...
[ "42695433+bsofcs@users.noreply.github.com" ]
42695433+bsofcs@users.noreply.github.com
3a5fa4638e3ee7de74813129b2b4c3231d061a33
b4fdd022b45751cfaf2a8770152bf7ca6aeb2b9a
/putcall/formulas/interest_rate_options/__init__.py
6a8b9a40e055ef017c195e8815cf99e64e93500c
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
fagan2888/putcall
7547727b48e52f8a5ef325f02952778a93d8acb4
a5984b52cb7bae33cfd48490439acea4844af0f9
refs/heads/master
2021-03-16T21:22:16.024168
2019-09-18T13:03:41
2019-09-18T13:03:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
# -*- coding: utf-8 -*- # putcall # ------- # Collection of classical option pricing formulas. # # Author: sonntagsgesicht, based on a fork of Deutsche Postbank [pbrisk] # Version: 0.2, copyright Wednesday, 18 September 2019 # Website: https://github.com/sonntagsgesicht/putcall # License: Apache License 2.0 (see...
[ "sonntagsgesicht@icloud.com" ]
sonntagsgesicht@icloud.com
2ed766c1a90f661f262b30118b23197f0eafba1e
56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e
/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/SUSYGluGluToHToTauTau_M-160_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467578/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_32/run_cfg.py
d66375515b236b61c9c96404622b8782b49cb4d5
[]
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,181
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/SUSYGluGluToHToTauTau_M-160_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467578/HTT_24Jul_newTES_manzoni...
[ "riccardo.manzoni@cern.ch" ]
riccardo.manzoni@cern.ch
c2015eb031cf21250cdc1a1d91c26336fdb072a9
27aaadf435779c29012233cb1dacf27bd9dd0d0f
/bailian-20230601/alibabacloud_bailian20230601/models.py
4066d5da76d1e451f94d8218582e22a4663151de
[ "Apache-2.0" ]
permissive
aliyun/alibabacloud-python-sdk
afadedb09db5ba6c2bc6b046732b2a6dc215f004
e02f34e07a7f05e898a492c212598a348d903739
refs/heads/master
2023-08-22T20:26:44.695288
2023-08-22T12:27:39
2023-08-22T12:27:39
288,972,087
43
29
null
2022-09-26T09:21:19
2020-08-20T10:08:11
Python
UTF-8
Python
false
false
58,692
py
# -*- coding: utf-8 -*- # This file is auto-generated, don't edit it. Thanks. from Tea.model import TeaModel from typing import Dict, List class CancelFineTuneJobRequest(TeaModel): def __init__( self, agent_key: str = None, job_id: str = None, ): self.agent_key = agent_key ...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
bc8690891dbddd0b15fa87a22253b93d5d9e3b63
c1e13dabefcfa873b136f36d464f2bf5094ee5ba
/manubot/cite/tests/test_csl_item.py
70e974fa9fcef5cb621a11f879e591ef1f7b6126
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
epogrebnyak/manubot
6001c3271d2c6bc059e09dfcb786c74efcb03df7
77920eca091995184684e7b6b0d12266917c3aa4
refs/heads/master
2020-07-27T00:11:36.221293
2019-10-09T06:35:23
2019-10-09T06:35:23
208,805,899
1
0
NOASSERTION
2019-10-30T09:20:17
2019-09-16T13:24:26
Python
UTF-8
Python
false
false
1,959
py
import copy import pytest from manubot.cite.csl_item import ( csl_item_set_standard_id) @pytest.mark.parametrize( ['csl_item', 'standard_citation'], [ ( {'id': 'my-id', 'standard_citation': 'doi:10.7554/elife.32822'}, 'doi:10.7554/elife.32822', ), ( ...
[ "daniel.himmelstein@gmail.com" ]
daniel.himmelstein@gmail.com
17b3fb728b6f6d680a80c7565e7a37f431aa7e6d
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_dithers.py
eef9fd87e5c87980635cc5c430ce7f137bbb0de8
[ "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
222
py
#calss header class _DITHERS(): def __init__(self,): self.name = "DITHERS" self.definitions = dither self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['dither']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
0647d51b728b8cfd6cb1d6995238a196bb8a110a
9f91cc7389d212720ab16ab9d0a60d62e5cf7088
/astropy/io/votable/tests/table_test.py
2d6564672e783912b47978ef48505dd4910c5021
[]
no_license
MQQ/astropy
47d6889e54dfa714bcbe9a6a572bb6c4c56427fd
67c8ce053d075399d22b4a674bf1df3e441ad125
refs/heads/master
2021-01-18T07:48:04.107638
2012-11-04T22:04:33
2012-11-04T22:04:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,591
py
""" Test the conversion to/from astropy.table """ import os import shutil import tempfile from ....config import get_data_filename from ..table import parse, writeto from .. import tree TMP_DIR = None def setup_module(): global TMP_DIR TMP_DIR = tempfile.mkdtemp() def teardown_module(): shutil.rmtree(...
[ "mdboom@gmail.com" ]
mdboom@gmail.com
e39117bcbd65c3e815a82d6f118abff791f48236
7275226803632a73466214cf14ad37908d9cc5db
/blog/migrations/0016_auto_20201129_1253.py
eeba89141db5baf1444c5141c4394109d8dd3bb9
[]
no_license
GBrachetta/new-blog
dc01a7b6289cce4106f03954d6bfe49e04bca740
cf25dbbcd54e5c309664cd7eec2488e344c0d41d
refs/heads/master
2023-01-24T11:06:43.473885
2020-11-30T20:21:08
2020-11-30T20:21:08
316,278,713
0
0
null
null
null
null
UTF-8
Python
false
false
604
py
# Generated by Django 3.1.3 on 2020-11-29 12:53 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('blog', '0015_auto_202011...
[ "brachetta@me.com" ]
brachetta@me.com
5dacf768ff89c1dc776f4f6b3e3d1a4da857d88c
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/n5Ar5F2CJMpGRXz3o_9.py
025d1f238f707bb2767ad5f637fa17a022f0f106
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
def mineral_formation(cave): if sum(cave[0]) == 0: return 'stalagmites' elif sum(cave[-1]) == 0: return 'stalactites' else: return 'both'
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
517bba59873cc2cd775a41b827679849d8e8e5e0
0da06e5a4d57540ef8e5118e0b6725de7465af62
/src/stompy_ros/python/stompy_ros/leg/__init__.py
4a588b15bfbee3fd7f55e9b6a579218cd277b6b1
[]
no_license
braingram/stompy_simulation
8a6308f43d23d3f369dd4cddb59eff6167fdf6ed
1c9f15fa9f067c04f6f19b68988467578c50ef9e
refs/heads/master
2020-04-16T02:18:07.866729
2019-08-04T01:28:58
2019-08-04T01:28:58
39,320,124
1
2
null
null
null
null
UTF-8
Python
false
false
77
py
#!/usr/bin/env python import node import plans __all__ = ['node', 'plans']
[ "brettgraham@gmail.com" ]
brettgraham@gmail.com
3d124d10463956a711c2a2fe609afda4bbaeb03f
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp-with-texts/RMM2-MIB.py
92062c89832a84419b15fa4bd9de6d52e1d98723
[ "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
9,062
py
# # PySNMP MIB module RMM2-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RMM2-MIB # Produced by pysmi-0.3.4 at Wed May 1 14:58:01 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:1...
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
511a293ebbc8e556034f32c06027531a837e841f
e21599d08d2df9dac2dee21643001c0f7c73b24f
/practice/lib/tenacity_sample/try_with_exception.py
c78f7317fc738abd2475f9d6e07562ac6938c80a
[]
no_license
herolibra/PyCodeComplete
c7bf2fb4ce395737f8c67749148de98a36a71035
4ef7d2c3aec6d28a53eed0e649cdeb74df3d783b
refs/heads/master
2022-07-17T05:39:03.554760
2020-05-03T07:00:14
2020-05-03T07:00:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
437
py
#!/usr/bin/env python # coding=utf-8 import random def do_something_unreliable(retry=10): for i in range(retry): try: if random.randint(0, 10) > 1: raise IOError("Unstable status, try again") else: print("Get stable result") return ...
[ "zengyuetian@cloutropy.com" ]
zengyuetian@cloutropy.com
faa141d3b4652d9d6c57baca5a76f24a41679132
068d271e241d8cdb46dbf4243166e4b8ee7025b2
/web前端/day54/day54/00今日面试题.py
6c84dbb775fe3b3bec0b220ebe9472d71968acd0
[ "MIT" ]
permissive
caiqinxiong/python
f6e226e76cb62aac970bcfbcb6c8adfc64858b60
9029f6c528d2cb742b600af224e803baa74cbe6a
refs/heads/master
2023-05-26T19:41:34.911885
2020-05-15T09:02:08
2020-05-15T09:02:08
195,261,757
1
0
null
2021-06-10T23:33:33
2019-07-04T15:01:42
JavaScript
UTF-8
Python
false
false
420
py
""" 问:执行完下面的代码后, l,m的内容分别是什么? """ def func(m): for k,v in m.items(): m[k+2] = v+2 m = {1: 2, 3: 4} l = m # 浅拷贝 from copy import deepcopy l2 = deepcopy(m) l[9] = 10 l2[90] = 100 # func(l) m[7] = 8 # 1. 在Python中遍历字典的时候能不能对字典本身做涉及键(key)的操作 # 2. 深浅拷贝的理解 print("l:", l) print("l2:", l2) print("m:", m)
[ "13269469526@163.com" ]
13269469526@163.com
9098aa7602446e7e7f4947ab86dfbfb99f6a4c3f
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_7_v3/doc3d/I_w_M_to_Wxyz_focus_Z_ok/wiColorJ/pyr_Tcrop255_pad20_jit15/Sob_k09_s001_Mae_s001_good/pyr_4s/L5/step10_a.py
d9093007ddb27b02a98163b7fa2d4e2e8fb5fecc
[]
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
71,077
py
############################################################################################################################################################################################################# ##################################################################################################################...
[ "s89334roy@yahoo.com.tw" ]
s89334roy@yahoo.com.tw
62d659bd368096cf43711563ed604f8fd3f7a6bc
f62ed4c130e6ecad19c606bac2e5aa561e18a6d5
/week2/integer_ex.py
d5b87cfd33608f37b644ca1513287cab3ade1731
[]
no_license
jimyeong22/2021ddangil2
d17c7d9fd6c7c3f369a01a20317ccb6a4ea05678
d2016a33e4ceba3ffd12fef9cace4cdceb6b1bcb
refs/heads/master
2023-07-23T20:05:22.321927
2021-08-19T11:12:40
2021-08-19T11:12:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
358
py
# 정수형 a=154 print(type(a)) a = 0 print(type(a)) a = -25 print(type(a)) # 실수형 a= 181.34 print(type(a)) b=-22.22 print(type(b)) # 복소수 c = 1 + 4j print(type(c)) print(c.real) print(c.imag) print(c.conjugate()) print(abs(c)) # 예제: 스스로 사칙연산을 활용해 확인해보자 a = 5 b = 3.14 c = 3 + 4j 18.28 + 16j print(2b + 4c)
[ "choikm3847@gmail.com" ]
choikm3847@gmail.com
8b8a4a5922810c13bac90fde993d966756422d37
3ef448a6067467da5c45dce5f3ecc87afb0a5c32
/backend/manage.py
ed94a381e3e674696349373cd7aefcf4b0672c88
[]
no_license
crowdbotics-apps/test-25611
282505ec43d68d87a8257f58bc2bc23ba6ddcecf
92fc1490def7ce2c5cf94704551d893b57a3fa86
refs/heads/master
2023-04-10T16:05:31.694647
2021-04-10T00:42:12
2021-04-10T00:42:12
356,431,330
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_25611.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise Imp...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
7a93dcce8e5dd4da656af24ae6655e7ab8129503
eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7
/google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/errors/types/date_range_error.py
59776602752bb20e8036c015e4d72d256b7a6b13
[ "Apache-2.0" ]
permissive
Tryweirder/googleapis-gen
2e5daf46574c3af3d448f1177eaebe809100c346
45d8e9377379f9d1d4e166e80415a8c1737f284d
refs/heads/master
2023-04-05T06:30:04.726589
2021-04-13T23:35:20
2021-04-13T23:35:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,299
py
# -*- coding: utf-8 -*- # Copyright 2020 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 o...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
f3b0b5741ace2b644e0178e50b90dcfaeb5ec3fd
b4ecc9c5a74f11958e7a49999d0299e7bb883d2e
/train.py
5ebc5af6153bd0e810cbb34969e6e53072f76913
[]
no_license
teja0508/AcronymLookup
6edea8ab9bc27824b961563f5bf968b499490094
ea5b812c41f138b5dccabbe2c474e2da0f85ce9e
refs/heads/main
2022-12-20T08:00:30.161858
2020-10-18T06:01:32
2020-10-18T06:01:32
305,030,809
1
1
null
null
null
null
UTF-8
Python
false
false
5,327
py
# Machine-Learning Approach for Cross-Domain Acronym Definition Identification # Maya Varma and Rachel Gardner # Autumn 2017 # Train Machine Learning Classifier import sys sys.path.append('postgres-database/') from urllib.request import urlopen import re import csv import os from collections import defaultdict, Counte...
[ "lchandratejareddy@gmail.com" ]
lchandratejareddy@gmail.com
26a6d470417d511695f873a58b8d5db99dc91e16
6351221d588668804e2df01936732eede4d96ed0
/leetcode-cn/Python/783.二叉搜索树节点最小距离.py
56c0fda33433e32c094361d70f8113486693b1ec
[]
no_license
LogicJake/code-for-interview
8e4ec9e24ec661a443ad42aa2496d78a1fbc8a3f
5990b09866696c2f3e845047c755fa72553dd421
refs/heads/master
2021-09-20T20:19:17.118333
2021-09-14T13:46:30
2021-09-14T13:46:30
102,202,212
3
2
null
null
null
null
UTF-8
Python
false
false
684
py
# # @lc app=leetcode.cn id=783 lang=python3 # # [783] 二叉搜索树节点最小距离 # # @lc code=start # Definition for a binary tree node. class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def minDiffInBST(self, root: TreeNode) -> int: pre ...
[ "835410808@qq.com" ]
835410808@qq.com
d3780d93e32e9a6c4afe5d8cb86c7ee35f8c4279
101abd4b1c615ea87087f093fa3bdc292cd23c70
/setup.py
8e99c8c211bae6b7c2c8bc2852814a171d238cad
[ "MIT" ]
permissive
jwilk/pydiatra
0bd40acb9b642730d6b639f03ef7a67765ae62d8
2eb53012ff90c6475a15011ac5b4006aa801a1d0
refs/heads/master
2023-08-15T06:37:02.823444
2023-08-10T07:17:10
2023-08-10T07:17:10
58,876,803
24
4
null
null
null
null
UTF-8
Python
false
false
8,984
py
# encoding=UTF-8 # Copyright © 2016-2022 Jakub Wilk <jwilk@jwilk.net> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the “Software”), to deal # in the Software without restriction, including without limitation the rights # to use,...
[ "jwilk@jwilk.net" ]
jwilk@jwilk.net
f5b172c6b6c06efd0d3b35027922b0150ee7ce06
a990bd26d3a69d1ea6699c85efa2cea99452c3df
/problems/leetcode/minCostClimbingStairs746.py
87821e07472154af738e6ceddc4526aa197158b3
[]
no_license
abecus/DS-and-Algorithms
5f1a948a085465ae165090ec957a9d5307ce729d
3259e8183382265a27cf8c91e37d0086175a5703
refs/heads/master
2022-05-05T07:07:08.194243
2022-04-05T16:23:39
2022-04-05T16:23:39
193,111,610
11
6
null
2020-11-18T16:19:18
2019-06-21T14:27:25
Python
UTF-8
Python
false
false
1,357
py
""" _________________________746. Min Cost Climbing Stairs_________________________ Difficulty: Easy Likes: 1564 Dislikes: 354 Solution: Available Total Accepted: 124.5K Total Submission: 254K Acceptance Rate: 49.0% Tags: Dynamic Programming, Array On a staircase, the i-th step has some non-negative cost cost...
[ "insaaone@gmail.com" ]
insaaone@gmail.com
157812639222afbc8892cf7265e7bf8d671b44f7
1342fd58a6003ec8bf90db051f6c9c12fd5af403
/report/image_processing/constant.py
b20c3f8ae15c519b136e2c68c64f57d2b2bcf55d
[]
no_license
PomeloX-Team/pomelox-report
623d49c9a8e817c9ca8a45a340799dfb52b69afb
503b9a25b06436580597b691533f5cba19630aad
refs/heads/master
2021-08-22T20:34:56.807028
2017-12-01T06:52:28
2017-12-01T06:52:28
110,214,746
0
0
null
2017-11-25T17:23:42
2017-11-10T07:07:57
Python
UTF-8
Python
false
false
92
py
IMG_PATH = 'images/' IMG_SAVE_PATH = 'images_result/' RESULT_WIDTH = 300 RESULT_HEIGHT = 300
[ "supakit.kr@gmail.com" ]
supakit.kr@gmail.com
aacae8a6adbe5fe07565b2aa5b5d61ddacca7f29
755f1fa3d56340d64b72c261bf6c738d9fa5f1b5
/httpInterface/get_series.py
013e9595dab6efa8a28ed166f5bdd2f2f10c0ea1
[]
no_license
piotrmaslanka/morda
ad3e78b3ab94129b551b4205b5a77367734d2ea6
4fbd1024b6e75c62c79bb15cc72bf111c53ce5a2
refs/heads/master
2018-12-31T21:56:59.237613
2014-06-01T16:31:21
2014-06-01T16:31:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,170
py
from yzero import Zero import struct from morda.settings import ZERO_CONNECT def get_series(sername, from_, to, callback, zero=None): if zero == None: zero = Zero(ZERO_CONNECT) class Receiver(object): def __init__(self, zero, from_, to, callback): self.zero = zero self....
[ "piotr.maslanka@henrietta.com.pl" ]
piotr.maslanka@henrietta.com.pl
2790e613abe27c5ba178b8e93d4e74818149712a
b3c93ef42b9ee529218f086cbf32535ac2e75f0b
/tests/test_version.py
c9560061ff1acad2224516f939120252a1cb0b54
[ "MIT" ]
permissive
thumby/smartoptim
c34f85a9b83ee9194232e037ca2906b5db7fa221
e65839dbb1fbcd985552a9a23e3a73e1cfc58d1a
refs/heads/master
2021-01-10T02:38:03.011856
2015-11-23T16:35:16
2015-11-23T16:35:16
46,456,075
3
0
null
null
null
null
UTF-8
Python
false
false
465
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of smartoptim. # https://github.com/thumby/smartoptim # Licensed under the MIT license: # http://www.opensource.org/licenses/MIT-license # Copyright (c) 2015, Thumby <dev@thumby.io> from preggy import expect from smartoptim import __version__ from te...
[ "heynemann@gmail.com" ]
heynemann@gmail.com
58ee8fa2946ceeab6382b00f21d4c439fc798613
b31ff20af39eb96f5c78a3e41d4a7727a32bc309
/collection/list/examples/list/list_comprehension/exercise2.py
16501aaabe64db47d5a4e04fa83ac2ab25aa876f
[]
no_license
abhi15sep/Python-Course
42b74c2f3f016c960edcc091808066f7d1411054
482bd7fdb32df54d97d1e6dd76fc807bcab70e9a
refs/heads/master
2020-04-27T20:28:25.448692
2019-08-04T07:00:12
2019-08-04T07:00:12
174,659,260
0
3
null
null
null
null
UTF-8
Python
false
false
952
py
#1. Given two lists [1,2,3,4] and [3,4,5,6], create a variable called answer, which is a new list that is the intersection of the two. Your output should be [3,4] . Hint: use the in operator to test whether an element is in a list. For example: 5 in [1,5,2] is True. 3 in [1,5,2] is False. #2. Given a list of wor...
[ "abhaypratap3536@gmail.com" ]
abhaypratap3536@gmail.com
cc920b16c95ac819b236fa84be0b4223fe58683a
96602eeaa034e3e7b36df4ed10fba9bc9c9ed5c8
/01-15/day08-2/文件操作.py
57723e900a692f4a8c9c3817e4781677663b0e4e
[]
no_license
microease/Old-boy-Python-knight-project-1
f4b12fe6f46bd159c6dc8151b1d28c6520042441
dc32749e29cc63b44849d40af345d4bb7817d624
refs/heads/master
2020-09-20T18:00:34.821769
2019-12-11T14:47:44
2019-12-11T14:47:44
224,553,833
1
0
null
null
null
null
UTF-8
Python
false
false
168
py
# coding:utf-8 # File Name: 文件操作 # Description : # Author : micro # Date: 2019/12/3 f = open("./测试.txt", encoding="utf-8", mode="w")
[ "microease@163.com" ]
microease@163.com
2c4f87b94aa0d96dd697d8229a9c6e151d976104
7a09af404f29389504742a3d5f1727bfbe562750
/TrekBot2_WS/build/tf2_eigen/catkin_generated/pkg.develspace.context.pc.py
f5c5a1a6d5db48c50693d36ed16e7a9aa2ab7b74
[ "MIT" ]
permissive
Rafcin/TrekBot
4baa2ed93b90920b36adba0b72384ac320d2de01
d3dc63e6c16a040b16170f143556ef358018b7da
refs/heads/master
2020-03-30T02:15:35.361254
2018-12-14T03:30:25
2018-12-14T03:30:25
150,622,252
1
0
null
null
null
null
UTF-8
Python
false
false
565
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/xavier_ssd/TrekBot/TrekBot2_WS/src/geometry2/tf2_eigen/include;/usr/include/eigen3".split(';') if "/xavier_ssd/TrekBot/TrekBot2_WS/src/geometry2/tf2_eigen/include;/usr/include/eigen3" != "" else [] PR...
[ "Rafcin.s@gmail.com" ]
Rafcin.s@gmail.com
1ec1f56bd18f8a82568356fe621e4593be8a368a
2565970a2461fec97c0b0972eed161d9bd9e268f
/test_finetuning.py
74bcbec628e6f36adb5ccd96b187b105430735d5
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
sskram/nn-toolbox
ee40e2d0f8792444a6d46bd477ffc69b144691a1
b998d61800311d788bf3c4c5f517f1fd6d9c2e66
refs/heads/master
2020-07-01T02:55:22.318592
2019-07-21T06:46:07
2019-07-21T06:46:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,678
py
import torchvision from torch.nn import * from torchvision.datasets import ImageFolder, CIFAR10 from torchvision.models import resnet18 from torchvision.transforms import * from torch.optim import * from torch.optim.lr_scheduler import CosineAnnealingLR from nntoolbox.optim import AdamW from torch.utils.data import ran...
[ "nhatsmrt@uw.edu" ]
nhatsmrt@uw.edu
8dffd484828558ccc0f9cc76142d46da927d7d7a
f390de67e6dd2ca8c6e369460084cb4d9c8c4a0c
/coursebuilder/common/safe_dom.py
8b20c79a16c6a622524c55376c0f9e26cdb3f246
[ "CC-BY-2.5", "CC-BY-3.0", "Apache-2.0" ]
permissive
andredias/course-builder
d2170076ef982444d55883b06b87f1a0da46a33b
ac4aa3131228a260c0a53b5d050dc78108126b88
refs/heads/master
2020-04-06T03:51:42.666679
2015-02-24T19:33:25
2015-02-24T19:33:25
33,021,540
0
0
null
null
null
null
UTF-8
Python
false
false
8,342
py
"""Classes to build sanitized HTML.""" __author__ = 'John Orr (jorr@google.com)' import cgi import re def escape(strg): return cgi.escape(strg, quote=1).replace("'", '&#39;').replace('`', '&#96;') class Node(object): """Base class for the sanitizing module.""" def __init__(self): self._parent...
[ "psimakov@google.com" ]
psimakov@google.com
c302bd0f7915622567d722cecc72a0fa8d7a454e
7f57c12349eb4046c40c48acb35b0f0a51a344f6
/2015/AddTwoNumbers_v2.py
d543f46cb1cd4d03c07c46e63c81d2e789227d84
[]
no_license
everbird/leetcode-py
0a1135952a93b93c02dcb9766a45e481337f1131
b093920748012cddb77258b1900c6c177579bff8
refs/heads/master
2022-12-13T07:53:31.895212
2022-12-10T00:48:39
2022-12-10T00:48:39
11,116,752
2
0
null
null
null
null
UTF-8
Python
false
false
1,212
py
#!/usr/bin/env python # encoding: utf-8 # Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: # @param {ListNode} l1 # @param {ListNode} l2 # @return {ListNode} def addTwoNumbers(self, l1, l2): if l1 is N...
[ "stephen.zhuang@gmail.com" ]
stephen.zhuang@gmail.com
6bfb1f17c3ccc3769a46c7ec0e1de921b8d9f251
6e4e6b64c035881f1cff39db616b0a80e1568c51
/ARC015/q1.py
8625a990d5f7a2e9da866e9e6ec2cfe7063a5c0c
[]
no_license
Lischero/Atcoder
f7471a85ee553e3ae791e3e5670468aea1fa53cc
f674d6a20a56eebdafa6d50d5d2d0f4030e5eace
refs/heads/master
2020-05-21T16:23:36.095929
2018-10-18T04:27:55
2018-10-18T04:27:55
60,671,810
0
0
null
null
null
null
UTF-8
Python
false
false
58
py
# -*- coding:utf-8 -*- n = int(input()) print((9/5*n)+32)
[ "vermouth.lischero@gmail.com" ]
vermouth.lischero@gmail.com
91a8cc0846d15cb77f1dac39e86a83ba81da4c66
9b162310e5db0f714dbd6019894eb5b04192b6aa
/src/windows-gam.spec
658f6450028749ee0c70daae3de86bc5c86028b0
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0", "LicenseRef-scancode-rsa-md4", "HPND-sell-variant", "LicenseRef-scancode-zeusbench", "NTP", "metamail", "Beerware", "LicenseRef-scancode-rsa-1990", "RSA-MD", "Spencer-94", "LicenseRef-scancode-other-permissive", "MIT" ]
permissive
xbl3/GAMADV-XTD
c1d68911f4116157173838856f49151e05cd5658
a09efb7a10074dc052968ef82c1044f2a0b664b3
refs/heads/master
2022-04-08T22:30:39.715172
2020-02-22T18:05:00
2020-02-22T18:05:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
849
spec
# -*- mode: python -*- ssl_json_files = [ ('cacerts.pem', '.'), ('cros-aue-dates.json', '.'), ('cloudprint-v2.json', '.'), ('contacts-v3.json', '.'), ('email-audit-v1.json', '.'), ('email-settings-v2.json', '.'), ('sites-v1.json', '.') ] a = Analysis(['gam.py'], p...
[ "ross.scroggs@gmail.com" ]
ross.scroggs@gmail.com
80ceed4ac066ee786c77744bdc31d0acfd1fd6e0
ca28f1535bb9a4b6504d5f6a5c5abf1a4569037f
/pos_umbrella/pos_umbrella/report/eod_report/eod_report.py
fc9a6b62af7844ad6a75cb96ea3541872cb50a0a
[ "MIT" ]
permissive
worldkingpradeep/pos_umbrella
8b8f83cb7d638f15a1808e779656e250549c5e26
6fa7a51a9c019b533befcf85955fdd5e165c6a5c
refs/heads/master
2023-04-20T06:30:37.054666
2021-05-14T17:19:59
2021-05-14T17:19:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,285
py
# Copyright (c) 2013, jan and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe def execute(filters=None): columns, data = [], [] from_date = filters.get("from_date") to_date = filters.get("to_date") pos_profile = filters.get("pos_profile") prin...
[ "jangeles@bai.ph" ]
jangeles@bai.ph
fabdcb016bb2945ce5a4420e58c20a8cc2070765
46afba4407a98ac564ed7a2e08aebfcec4fa1ba3
/Project Euler/problem_20.py
83947b08ce6336236edc3cd968c9bdea337af690
[]
no_license
areebbeigh/CompetitiveProgramming
b28ffe99ac15cadfa3b54f9974beb77c280b2309
04044674ad0663181326649d0c14da94108e90da
refs/heads/master
2021-07-15T07:48:42.338241
2021-07-13T10:36:11
2021-07-13T10:36:11
199,145,494
2
0
null
null
null
null
UTF-8
Python
false
false
166
py
#!/usr/bin/python3.6 def factorial(n): if n == 0: return 1 return n * factorial(n - 1) print( sum(map(lambda x: int(x), str(factorial(100)))) )
[ "areebbeigh@gmail.com" ]
areebbeigh@gmail.com
ba292c32cf83dce0c1b1f6d90d73548a523ad68b
98e4dc41e3d994dfb55a2553c79d1b61590ecca6
/LeetCode/Medium/Subarray Sum Equals K/sol.py
aa9bc85d1765a4c74100a8bfe8caf9119a4376d8
[]
no_license
krohak/Project_Euler
b753c4f3bbf26a5eff3203e27482599d1e089fc6
1d8a2326543d69457f1971af9435b3e93ab32f52
refs/heads/master
2022-09-02T10:48:59.472111
2022-08-18T11:11:16
2022-08-18T11:11:16
111,204,162
4
1
null
null
null
null
UTF-8
Python
false
false
517
py
class Solution: def subarraySum(self, nums, target_sum): cumulative_sum = {0:1} counter = 0 summ = 0 for num in nums: summ+=num if (summ-target_sum) in cumulative_sum: counter+=cumulative_sum[(summ-target...
[ "rohaksinghal14@gmail.com" ]
rohaksinghal14@gmail.com
b4d04353919a7f6071d65606fccf5a77fe9f4b53
5bc59a84adc4854cdaa3af02be84fb4a70a85bb2
/04-DRF-LEVEL-TWO/ebooksapi/ebooks/apps.py
ff3c9cb021a64b9a95e270a20b7cc6aafb2232cb
[]
no_license
furkalokbu/REST_API
be2a0a4c05dfca15b24420d1fa1d22524a851a0b
55552d59a020ae969d4ef8dfda52207cf5c40c4c
refs/heads/main
2023-05-05T21:36:16.856267
2021-05-25T19:37:18
2021-05-25T19:37:18
332,436,631
0
0
null
null
null
null
UTF-8
Python
false
false
87
py
from django.apps import AppConfig class EbooksConfig(AppConfig): name = "ebooks"
[ "furkalokbu@gmail.com" ]
furkalokbu@gmail.com
4eff3ee86176474b0f5ada0af11864b69625c3c0
ec551303265c269bf1855fe1a30fdffe9bc894b6
/topic10_queue/T933_RecentCounter/interview.py
8bd0e8689824bc5d8875b7a6fa5e0244cd77e011
[]
no_license
GongFuXiong/leetcode
27dbda7a5ced630ae2ae65e19d418ebbc65ae167
f831fd9603592ae5bee3679924f962a3ebce381c
refs/heads/master
2023-06-25T01:05:45.683510
2021-07-26T10:05:25
2021-07-26T10:05:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,331
py
''' 933. 最近的请求次数 写一个 RecentCounter 类来计算最近的请求。 它只有一个方法:ping(int t),其中 t 代表以毫秒为单位的某个时间。 返回从 3000 毫秒前到现在的 ping 数。 任何处于 [t - 3000, t] 时间范围之内的 ping 都将会被计算在内,包括当前(指 t 时刻)的 ping。 保证每次对 ping 的调用都使用比之前更大的 t 值。 示例: 输入:inputs = ["RecentCounter","ping","ping","ping","ping"], inputs = [[],[1],...
[ "958747457@qq.com" ]
958747457@qq.com
bfcc4f82ae5fd44b4414bb887094046c13bb3e10
c0fad90611a6e943277c3d79eeb48ccd5f0d0a88
/29divide.py
6cee6413834a3e4bbc05b6458fb1114fdad5b765
[]
no_license
lmb633/leetcode
e2da31984af07b9e16787f4d57f82dab2dcb551a
d91568d245dd8fb66f46ff73737cbad974f490a6
refs/heads/master
2021-07-19T16:07:40.864854
2021-02-24T10:57:40
2021-02-24T10:57:40
243,146,182
0
0
null
null
null
null
UTF-8
Python
false
false
572
py
class Solution(object): def divide(self, dividend, divisor): if dividend == 0: return 0 if dividend == -2 ** 31 and divisor == -1: return 2 ** 31 - 1 flag = 1 if dividend ^ divisor < 0: flag = -1 dividend = abs(dividend) d...
[ "limingbo@focusmedia.cn" ]
limingbo@focusmedia.cn
315e0a44b6c237ed7a6e9ed6807d3222de0857a3
7837cd1bee1a9abd623600cf30c2f462da48d558
/aaa.py
1123a79ae464804cd597a4e45e9d9c4e5f526712
[]
no_license
hal1932/astor_test
8285b3b8c1fa187b7cd3c8d147c8a75d8e4ba207
e14c7de55bb6e947e41387d33fff5286bbea4570
refs/heads/master
2021-08-30T09:37:33.083995
2017-12-17T08:36:12
2017-12-17T08:36:12
114,521,531
0
0
null
null
null
null
UTF-8
Python
false
false
734
py
# encoding: utf-8 import functools def deco1(func): @functools.wraps(func) def wrapper(*args, **kwargs): print 'deco1 start' func(*args, **kwargs) print 'deco1 end' return wrapper def deco2(*arg, **kwarg): def decorator(func): @functools.wraps(func) def wrappe...
[ "yu.arai.19@gmail.com" ]
yu.arai.19@gmail.com
760c46b1f182472c11a3cb0026781c521fddb142
a943cb6da95ec1e06cb480887ba1062a5783527f
/2012-aqs/figures/plot-smh-norris.py
262432f7ea056293f457ca60b89fe0a54119ed39
[]
no_license
andycasey/papers
1b2c882c20b0c65b5899d70dc95825ec53cc9fe2
3d585ad4b6b1c3b40227185fd7b22ea9bdeb8e02
refs/heads/master
2021-01-19T17:24:48.788580
2013-08-13T08:51:02
2013-08-13T08:51:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,155
py
import numpy as np import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec wavelength, smh_ew, norris_ew = np.loadtxt('SMH-Norris-comparison.data', usecols=(0, 1, 2, ), unpack=True) fig = plt.figure(figsize=(6,7)) fig.subplots_adjust(hspace=0.0, wspace=0.0) gs = gridspec.GridSpec(2, 1, height_ratios=[1...
[ "andycasey@gmail.com" ]
andycasey@gmail.com
6298875d8e11878aa23517f122c8a75e9d106d46
38fff7bdefd8d62a740d51329b50d0e1e49258bb
/projects/smart_open/fuzz_zip.py
3a7f08c09ad89f312bad1a8251882d276259b866
[ "Apache-2.0" ]
permissive
google/oss-fuzz
026384c2ada61ef68b147548e830f60730c5e738
f0275421f84b8f80ee767fb9230134ac97cb687b
refs/heads/master
2023-08-31T23:30:28.157702
2023-08-31T21:49:30
2023-08-31T21:49:30
63,809,205
9,438
2,315
Apache-2.0
2023-09-14T20:32:19
2016-07-20T19:39:50
Shell
UTF-8
Python
false
false
1,605
py
#!/usr/bin/python3 # 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 agr...
[ "noreply@github.com" ]
google.noreply@github.com
66b1007d1dabe0428cbe0ba4c2f82d9ad8aa4dec
cb20ef5b4048457a2e6dca4a4cb45c53c9843744
/tests/RESTful/testcases/system/test01_usermanager.py
c8459e97ec6e5c06d18b505403753911f74efb0c
[]
no_license
rudecs/openvcloud
5001b77e8d943427c1bed563f3dcc6b9467936e2
12ccce2a54034f5bf5842e000c2cc3d7e22836d8
refs/heads/master
2020-03-24T00:00:10.422677
2018-11-22T13:41:17
2018-11-22T13:41:17
142,267,808
2
1
null
2018-07-25T08:02:37
2018-07-25T08:02:36
null
UTF-8
Python
false
false
4,341
py
import time, random, unittest from testcases import * from nose_parameterized import parameterized class UsersTests(TestcasesBase): def setUp(self): super().setUp() self.data, self.response = self.api.system.usermanager.create(provider=None) self.assertEqual(self.response.status_code, 200, ...
[ "deboeck.jo@gmail.com" ]
deboeck.jo@gmail.com
0a58a94a0291c9eee74ec90033a491790733ec6e
55e28e35db5bf6a844df3fb47080500b115a893e
/day10/select/select_server.py
009bb5773e7561fb2d56689d463ea451aefcc9ee
[]
no_license
pylarva/Python
5743ffa4a69db42b642d51b62f9e9b69ddbc1a72
71b484950e6dbdcf708726a68a3386d0d6ddc07f
refs/heads/master
2020-04-19T09:11:11.195393
2017-11-16T07:32:59
2017-11-16T07:32:59
67,507,687
1
0
null
null
null
null
UTF-8
Python
false
false
3,258
py
# !/usr/bin/env python # -*- coding:utf-8 -*- # Author:pylarva # bolg:www.lichengbing.com __author__ = 'Alex Li' import select import socket import sys import queue server = socket.socket() server.setblocking(0) server_addr = ('localhost', 10000) print('starting up on %s port %s' % server_addr) server.bind(server...
[ "1326126359@qq.com" ]
1326126359@qq.com
6d71558f72f56b692f826f2c54b03347759f5030
66b220a4c8c0bfde435f29e3a18cf79f6e7a4c67
/src/exemplos/01_Dados/02_Operadores/01-subtracao.py
77f2c292956d5c74e2524a563e94f8fc4d5a83cb
[]
no_license
gnramos/CIC-APC
089b6d0110394b4db97c23e032394eaefce0aeef
b94fe2dc4840064f1613d24e5d1447d49b9bb8bd
refs/heads/master
2023-04-15T18:11:27.919896
2023-04-05T21:31:03
2023-04-05T21:31:03
31,514,265
42
30
null
2018-11-20T18:09:10
2015-03-01T22:57:39
C
UTF-8
Python
false
false
964
py
# -*- coding: utf-8 -*- # @package: 01-subtracao.py # @author: Guilherme N. Ramos (gnramos@unb.br) # @disciplina: Algoritmos e Programação de Computadores # # Exemplos de utilização do operador de subtração. Em Python, só é possível # subtrair valores numéricos. print('Subtração (numéricos):') # Escreva o re...
[ "ramos@gnramos.com" ]
ramos@gnramos.com
2810d657e2aa3272c2d799f7b7ea8f265d83dd92
321afe9ca4a30ff655483901bdb6368cce1bd58b
/catalog/migrations/0019_biditems_time.py
f8acacc12ce34e72ef8a1a024598b0d27ff127b5
[]
no_license
moses-mugoya/Auction-System
75456a475a0a76a9c7143f2f039e059f841d204f
42de3e68fd7a99bdb0598f820b5f8ae6359e972d
refs/heads/main
2023-02-04T22:58:22.793934
2020-12-24T18:05:51
2020-12-24T18:05:51
324,211,000
1
0
null
null
null
null
UTF-8
Python
false
false
387
py
# Generated by Django 2.1.4 on 2019-04-07 17:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('catalog', '0018_auto_20190407_1343'), ] operations = [ migrations.AddField( model_name='biditems', name='time', ...
[ "mosesmugoya31@gmail.com" ]
mosesmugoya31@gmail.com
efbe5cae3f768724158b26af2d52232b3009deaf
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02889/s800108978.py
f16d83d80d9585a9e51d77414e46a2135a05fdac
[]
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,377
py
import sys import math import heapq sys.setrecursionlimit(10**7) INTMAX = 9323372036854775807 INTMIN = -9223372036854775808 DVSR = 1000000007 def POW(x, y): return pow(x, y, DVSR) def INV(x, m=DVSR): return pow(x, m - 2, m) def DIV(x, y, m=DVSR): return (x * INV(y, m)) % m def LI(): return [int(x) for x in sys.stdin.re...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
403050852dd2e8392f1e8610f4911bf3608ab119
9ee751382146d280c0105981e2e54fa900cb04de
/djblets/util/tests/test_compressed_tags.py
1d1d87775890230056755ea9767bb66c60caefae
[]
no_license
lmyfzx/djblets
25c3d3fb2478047eede05238b60b6d16598f9131
33b4475cfabe24644335093a028d7d2aabc4ab84
refs/heads/master
2023-02-03T18:20:46.873799
2020-12-22T10:58:35
2020-12-22T10:58:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,966
py
"""Unit tests for djblets.util.templatetags.djblets_forms.""" from __future__ import unicode_literals import os from django.conf import settings from django.template import Context, Template from pipeline.conf import settings as pipeline_settings from djblets.testing.testcases import TestCase class CompressedTags...
[ "christian@beanbaginc.com" ]
christian@beanbaginc.com
edf6ec9094282214c247789c19af30388e1fb891
cf5b2850dc9794eb0fc11826da4fd3ea6c22e9b1
/xlsxwriter/test/styles/test_styles06.py
ecba383c9b2848fa80c25090f9d3c53d0e528278
[ "BSD-2-Clause" ]
permissive
glasah/XlsxWriter
bcf74b43b9c114e45e1a3dd679b5ab49ee20a0ec
1e8aaeb03000dc2f294ccb89b33806ac40dabc13
refs/heads/main
2023-09-05T03:03:53.857387
2021-11-01T07:35:46
2021-11-01T07:35:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,183
py
############################################################################### # # Tests for XlsxWriter. # # SPDX-License-Identifier: BSD-2-Clause # Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org # import unittest from io import StringIO from ..helperfunctions import _xml_to_list from ...styles import St...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
816a9237dc7938a0b5c52aa4309713b2228816f7
adf3076bd40e37f4a422e79f6efb938f13def6c6
/objectModel/Python/cdm/storage/local.py
e8a47c16802f5603d8c1d96895365a7d49ac8a07
[ "MIT", "CC-BY-4.0" ]
permissive
assetdatasystems/CDM
445d1b22f0071620f1eb2fd8d1b5f7d6152ec388
576ccfd07fc718b3d0911112e5041729a3ba8088
refs/heads/master
2020-09-29T00:54:18.350717
2019-12-06T22:49:02
2019-12-06T22:49:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,521
py
# ---------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. # All rights reserved. # ---------------------------------------------------------------------- from datetime import datetime import json import os from typing import Any, List, Optional from .base import ...
[ "nebanfic@microsoft.com" ]
nebanfic@microsoft.com
15ac7a012158192d1c75ea2adf14451862b089f5
c475cd8531a94ffae69cc92371d41531dbbddb6c
/Projects/bullet3-2.89/examples/pybullet/gym/pybullet_utils/util.py
5a014c8ed07a8b530a0fc58ca5cf708b435bd654
[ "Apache-2.0", "LicenseRef-scancode-free-unknown", "Zlib" ]
permissive
WolfireGames/overgrowth
72d3dd29cbd7254337265c29f8de3e5c32400114
594a2a4f9da0855304ee8cd5335d042f8e954ce1
refs/heads/main
2023-08-15T19:36:56.156578
2023-05-17T08:17:53
2023-05-17T08:20:36
467,448,492
2,264
245
Apache-2.0
2023-05-09T07:29:58
2022-03-08T09:38:54
C++
UTF-8
Python
false
false
218
py
import random import numpy as np def set_global_seeds(seed): try: import tensorflow as tf except ImportError: pass else: tf.set_random_seed(seed) np.random.seed(seed) random.seed(seed) return
[ "max@autious.net" ]
max@autious.net
b0dcca8c35d97cf96c6a426d4cd4e0c4f1757ab5
b7125b27e564d2cc80a2ce8d0a6f934aa22c8445
/.history/sudoku_20201031012809.py
1e1bd31e61f1cca07054e01ff4e65dab7e7033db
[]
no_license
JensVL96/Puzzle-solver-for-fun
4c15dcd570c3705b7ac555efb56b52913e81083c
6d8a4378a480372213a596a336a4deca727a00fc
refs/heads/master
2021-07-15T05:19:42.185495
2020-11-08T13:59:49
2020-11-08T13:59:49
224,855,888
1
0
null
null
null
null
UTF-8
Python
false
false
4,215
py
# -*- coding: utf-8 -*- from __future__ import print_function from config import * from create_board import * from solve_bloard import * from display_board import * from string import * import pygame as pg import numpy as np # For error highlighting row_index = (0, 0) col_index = (0, 0) blk_index = (0, 0) input_lock ...
[ "jle040@uit.no" ]
jle040@uit.no
249da4760ecd8254331c7befd8d0738778611bc5
fc558ed0bccbbd0edf52e662b310168a1b97ab56
/tests/pcie/test_pcie.py
5d1ce746a21aa2e7bcc4a0d8b0844f115ebdeb15
[ "MIT" ]
permissive
bigdot123456/cocotbext-pcie
914f4ac458901d93edb4447e65c24a1b30f39ea1
19e891adf9c45226cbbe2184199be7d904d0901e
refs/heads/master
2023-06-07T07:38:47.289302
2021-06-17T08:59:28
2021-06-17T08:59:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
23,020
py
#!/usr/bin/env python """ Copyright (c) 2020 Alex Forencich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merg...
[ "alex@alexforencich.com" ]
alex@alexforencich.com
76ddc9c06c47c12598e6d3cefacae20640a6f2cb
174edd84c3372e2f062dfb58848153391b44a9ea
/spec/logic.py
75efefcd89862e45766efb341b03ef1d9a0d0645
[]
no_license
psavine42/viper-server
7803e3282c98dcc978f4f195aef87acc4861b8bd
dab58a979ab238d65735953c71cae6c288400144
refs/heads/master
2020-03-26T15:28:22.823335
2018-11-28T03:42:34
2018-11-28T03:42:34
145,045,447
0
0
null
null
null
null
UTF-8
Python
false
false
11,533
py
from unittest import TestCase import numpy as np from operator import eq from pprint import pprint from shapely.geometry import LineString, Point from spec.seg_data import * from src.rules.opers import * from src import visualize, SystemFactory, RenderNodeSystem from src.rules import RuleEngine, KB, heursitics from...
[ "psavine42@gmail.com" ]
psavine42@gmail.com
b7723239c4a46c561258470ad64b96116357489b
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-gsn-edf/gsn-edf_ut=2.5_rd=1_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=61/sched.py
d192899a28b503972848e0f3b23908f61c81e5b3
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
336
py
-X FMLP -Q 0 -L 3 124 400 -X FMLP -Q 0 -L 3 86 400 -X FMLP -Q 0 -L 3 52 200 -X FMLP -Q 1 -L 2 51 175 -X FMLP -Q 1 -L 2 47 150 -X FMLP -Q 1 -L 2 46 150 -X FMLP -Q 2 -L 1 27 200 -X FMLP -Q 2 -L 1 26 100 -X FMLP -Q 2 -L 1 18 125 -X FMLP -Q 3 -L 1 16 150 -X FMLP -Q 3 -L 1 14 100 -X FMLP -Q...
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
120f170cf018653194adb4e24abad7bac1b97950
5cbbeb11fb1400019690d10db24b4579f97e8896
/mlkernels/kernels/derivative.py
a0d74a40a20655d7822642c6d104d4e38e97fc0c
[ "MIT" ]
permissive
darsh8200/mlkernels
b735c213f5cf590cabebcee166e3b4aea95c4e1e
cad223c422a32bc10375358fda076645efca62f1
refs/heads/main
2023-06-16T19:48:37.056247
2021-07-09T06:18:39
2021-07-09T06:18:39
384,340,711
0
0
MIT
2021-07-09T06:16:48
2021-07-09T06:16:47
null
UTF-8
Python
false
false
6,853
py
import lab as B import numpy as np from algebra import DerivativeFunction from algebra.util import identical from matrix import Dense from plum import convert from . import _dispatch from .. import Kernel from ..util import num_elements, uprank, expand __all__ = ["perturb", "DerivativeKernel"] def dkx(k_elwise, i):...
[ "wessel.p.bruinsma@gmail.com" ]
wessel.p.bruinsma@gmail.com
cbd0426653d0bdcaf34cbdaf86cd071eb58163b8
a6ab2735ff2f89adc64a4afcbfe013c1039198a1
/scrapers/liverpool.py
417b56688c24c6978ebc90919fea9056e20e3935
[]
no_license
rehmanali1337/innvictus_scraper
72e5049dd2c3d391f47d37e145edb2bf7c6a371d
bcb4e986c1922b20d61baca88e6ff03909bca518
refs/heads/master
2023-05-06T21:43:27.163117
2021-05-26T05:04:29
2021-05-26T05:04:29
341,820,871
2
1
null
null
null
null
UTF-8
Python
false
false
3,929
py
from selenium import webdriver import asyncio import json from models.cache import ListCache from models.products import LiverPoolProduct from configs import global_vars import logging class LiverPoolNewProdsScraper: def __init__(self, queue): self.config = json.load(open(global_vars.MAIN_CONFIG_FILE_LOCA...
[ "rehmanali.9442289@gmail.com" ]
rehmanali.9442289@gmail.com
fdef72e6ed2b89d6e3312ca8d0abab76e55416d7
4f4d47d60e17f0e3b7120ebb26f3d83e0a1f8e66
/tf_agents/bandits/environments/random_bandit_environment.py
735af739c1d680f16bcb6a4df8ef9ba29e2bd8e5
[ "Apache-2.0" ]
permissive
tfboyd/agents
644ff1ee3961ac629671110c45f6c90234bd0ad1
858ee36aaaea6fbcf0e5ab1c12929c77bd17abae
refs/heads/master
2020-11-28T15:46:31.635917
2020-06-26T06:05:57
2020-06-26T06:05:57
229,859,259
2
0
Apache-2.0
2020-06-26T15:34:23
2019-12-24T02:56:28
Python
UTF-8
Python
false
false
5,146
py
# coding=utf-8 # Copyright 2018 The TF-Agents 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 applicable law...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
96254c047f5ab42412198c47ef93c0af1d2d97ba
e537b9b866c6533ef4c488b0104070a3f865d40e
/joerd/store/s3.py
d0d448ec3dabf9fd4d2a674e36689e3fb00c1ac6
[ "MIT" ]
permissive
mohammadrezabk/joerd
0c3a65ddb746578f9c06574601dc91ea6af2de2e
0b86765156d0612d837548c2cf70376c43b3405c
refs/heads/master
2023-02-14T16:08:59.103192
2017-11-21T17:22:22
2017-11-21T17:22:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,965
py
import boto3 from boto3.s3.transfer import TransferConfig from botocore.exceptions import ClientError from os import walk import os.path from contextlib2 import contextmanager from joerd.tmpdir import tmpdir import traceback import sys import time import logging # extension to mime type mappings to help with serving ...
[ "zerebubuth@gmail.com" ]
zerebubuth@gmail.com
f934729068d063b44311238abbd5b002b0319ae6
f042383cbc9f10837ebdb5b9033a0263f6a43698
/python_modules/dagster/dagster/core/asset_defs/assets_job.py
b510853c43b3a6bf0cbb7206a30b3fd81781f850
[ "Apache-2.0" ]
permissive
helloworld/dagster
664e6636d68bafa5151418c9d4316a565717f5ee
779e27faa3e46b7d043cb9624617e655a9ed570c
refs/heads/master
2022-03-24T12:15:36.626783
2022-02-26T01:34:29
2022-02-26T01:34:29
464,019,094
0
0
Apache-2.0
2022-03-05T20:23:14
2022-02-27T02:38:17
null
UTF-8
Python
false
false
11,534
py
from typing import AbstractSet, Any, Dict, List, Mapping, Optional, Sequence, Tuple, Union, cast from dagster import check from dagster.core.definitions.config import ConfigMapping from dagster.core.definitions.decorators.op import op from dagster.core.definitions.dependency import ( DependencyDefinition, IDep...
[ "noreply@github.com" ]
helloworld.noreply@github.com
a233d4e8b9afc6d98a3d8ee9809d4b0450623742
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/Ff84aGq6e7gjKYh8H_6.py
44234b3c35513f59dda8ddfcdac696049dd11660
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
145
py
def minutes_to_seconds(time): if int(time[-2:]) >= 60: return False else: return int(time[:time.index(':')]) * 60 + int(time[-2:])
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local