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
8de851ae8eb6565aa8501f059378f360675d3016
3c41443364da8b44c74dce08ef94a1acd1b66b3e
/osf/management/commands/metrics_backfill_pageviews.py
4cb137cec5c64dc512c11adfffe2b74e9c212049
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-warranty-disclaimer", "AGPL-3.0-only", "LGPL-2.0-or-later", "LicenseRef-scancode-proprietary-license", "MPL-1.1", "CPAL-1.0", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause", "Apache-2.0" ]
permissive
CenterForOpenScience/osf.io
71d9540be7989f7118a33e15bc4a6ce2d2492ac1
a3e0a0b9ddda5dd75fc8248d58f3bcdeece0323e
refs/heads/develop
2023-09-04T03:21:14.970917
2023-08-31T14:49:20
2023-08-31T14:49:20
10,199,599
683
390
Apache-2.0
2023-09-14T17:07:52
2013-05-21T15:53:37
Python
UTF-8
Python
false
false
8,134
py
"""osf/management/commands/metrics_backfill_pageviews.py Usage: $ dc-manage metrics_backfill_pageviews --source=$path_to_csv $ dc-manage metrics_backfill_pageviews --source=$path_to_csv --dry # dry run $ dc-manage metrics_backfill_pageviews --source=$path_to_csv --resume-from 1264 # start from record 1264 "...
[ "noreply@github.com" ]
CenterForOpenScience.noreply@github.com
5cf99eb88ac4cb3b6f7056d6f06d352c5594300c
3c868540c8f5b0b9b46440e9b8e9160de9e8988f
/ch03/condition04.py
cd13d6a23062a98203b1dada5f39bc929554cd36
[]
no_license
sarte3/python
cc8f41b8b22b0a980252d6546358dd212324e2cd
15d984e5df03387950692092b6b5569adab845bb
refs/heads/master
2023-01-18T18:37:40.720326
2020-11-17T08:43:27
2020-11-17T08:43:27
304,824,911
0
0
null
null
null
null
UTF-8
Python
false
false
140
py
number = input('정수 입력 > ') number = int(number) if number % 2 == 0: print('짝수입니다') else: print('홀수입니다')
[ "sarte@outlook.kr" ]
sarte@outlook.kr
433038bcc4f709c1acde2e2079d7bb1b32655fe8
7704dfa69e81c8a2f22b4bdd2b41a1bdad86ac4a
/fuelclient/fuel
735538ba0ba421b70cd5eeec4dbc6e4a0681bd24
[ "Apache-2.0" ]
permissive
andrei4ka/fuel-web-redhat
8614af4567d2617a8420869c068d6b1f33ddf30c
01609fcbbae5cefcd015b6d7a0dbb181e9011c14
refs/heads/master
2022-10-16T01:53:59.889901
2015-01-23T11:00:22
2015-01-23T11:00:22
29,728,913
0
0
Apache-2.0
2022-09-16T17:48:26
2015-01-23T10:56:45
Python
UTF-8
Python
false
false
714
#!/usr/bin/env python # Copyright 2013-2014 Mirantis, 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 req...
[ "akirilochkin@mirantis.com" ]
akirilochkin@mirantis.com
9d00edb50f22c8993b64c47ef7754e5f7c27160d
5832f65747e6142d1b8de9d46aa507092782aafc
/Codeforces/Educational Codeforces Round 73 (Rated for Div. 2) - 1221/1221A-2048 Game.py
3f95e94034fe71684e95623c91b9daee8a74e6d3
[]
no_license
subhashreddykallam/Competitive-Programming
64cc42c5b23c03536187a1bb54e2b2ed82ee7844
973b66b4eb81352b98409ca52fa3aa75c28d8b6f
refs/heads/master
2022-05-28T21:07:43.012922
2020-05-05T20:34:20
2020-05-05T20:34:20
226,814,369
0
0
null
null
null
null
UTF-8
Python
false
false
565
py
import math from collections import deque, defaultdict from sys import stdin, stdout input = stdin.readline # print = stdout.write listin = lambda : list(map(int, input().split())) mapin = lambda : map(int, input().split()) for _ in range(int(input())): n = int(input()) a = listin() a.sort() i = 0 w...
[ "42376739+Storm1seven@users.noreply.github.com" ]
42376739+Storm1seven@users.noreply.github.com
9d6f879a92d6b72ea9a5a33a48d8f17b41002ad6
b6d13470013d755601a867029ca2c7b65ba44db6
/raiden/transfer/log.py
1cb9fd694ade999ac3f5e6133cf21fbecb7c952a
[ "MIT" ]
permissive
freehere107/raiden
8a3c183f1a6df3b21b6bc100eddef10037a74877
d0d15ddaf6ec7287f1328dfa0102d2a99b3b36a6
refs/heads/master
2021-08-08T21:31:18.632511
2017-11-11T07:34:08
2017-11-11T07:34:08
109,669,146
2
0
null
2017-11-06T08:43:33
2017-11-06T08:43:33
null
UTF-8
Python
false
false
9,715
py
# -*- coding: utf-8 -*- import pickle import sqlite3 import threading from abc import ABCMeta, abstractmethod from collections import namedtuple InternalEvent = namedtuple( 'InternalEvent', ('identifier', 'state_change_id', 'block_number', 'event_object'), ) # TODO: # - snapshots should be used to reduce the...
[ "lefteris@refu.co" ]
lefteris@refu.co
2d45704438c70f4e7fe782a3625700bee0391c67
48832d27da16256ee62c364add45f21b968ee669
/res/scripts/client/gui/scaleform/lobby_entry.py
af2325d3e886ea2ad1e1e924161e13d429b5196c
[]
no_license
webiumsk/WOT-0.9.15.1
0752d5bbd7c6fafdd7f714af939ae7bcf654faf7
17ca3550fef25e430534d079876a14fbbcccb9b4
refs/heads/master
2021-01-20T18:24:10.349144
2016-08-04T18:08:34
2016-08-04T18:08:34
64,955,694
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
4,757
py
# 2016.08.04 19:49:31 Střední Evropa (letní čas) # Embedded file name: scripts/client/gui/Scaleform/lobby_entry.py import BigWorld from gui.Scaleform import SCALEFORM_SWF_PATH_V3 from gui.Scaleform.daapi.settings.views import VIEW_ALIAS from gui.Scaleform.framework import ViewTypes from gui.Scaleform.framework.ToolTip ...
[ "info@webium.sk" ]
info@webium.sk
795ad0b5a133b91ae53ae044ba4d4812fbedae29
1c9224af67033b6ae646f4a0222f5c43eb7d2917
/products/migrations/0002_auto_20190127_0026.py
88e80b186dfbf883630d85ceded5eda5737da151
[ "MIT" ]
permissive
MahmudulHassan5809/Ecommerce-WebSite-With-Django2
492cb51067f374a7e76c04b2a85718539fc689b1
a9c76e6e925e236ba064be194a03d9d6635edac2
refs/heads/master
2020-04-19T12:33:06.336503
2019-01-29T17:16:46
2019-01-29T17:16:46
168,194,349
1
0
null
null
null
null
UTF-8
Python
false
false
385
py
# Generated by Django 2.1.5 on 2019-01-26 18:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0001_initial'), ] operations = [ migrations.AlterField( model_name='product', name='photo', ...
[ "mahmudul.hassan240@gmail.com" ]
mahmudul.hassan240@gmail.com
db6ea721fd84d71fdac1de6d11b66624720af5a1
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03846/s728489777.py
ab3ac5f37b3c8304e37ffee58d83e8048ca71ce5
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
346
py
N = int(input()) A = list(map(int, input().split())) ans = 0 A_test = sorted(list(set(A))) if N % 2 == 1: judge = [i for i in range(0,N,2)] if (A_test == judge) and (A.count(0) == 1): ans = 2**(N//2) else: judge = [i for i in range(1,N,2)] if A_test == judge: ans = 2**(N//2) ans = ans...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
8179d1707bccbf696d4dcbd0647511e83a40b340
aee7a6cca6a2674f044d7a1cacf7c72d7438b8b1
/cup_skills/stats/average_rewardpdg_pour_lr0dot1_1.py
9f750c155f9557ee43a6248b89a66e32c53cf7b4
[]
no_license
lagrassa/rl-erase
efd302526504c1157fa5810e886caccba8570f1b
0df5c8ce4835c4641a2303d11095e9c27307f754
refs/heads/master
2021-05-13T13:36:12.901945
2019-08-01T02:13:15
2019-08-01T02:13:15
116,709,555
1
2
null
null
null
null
UTF-8
Python
false
false
2,797
py
36.2745098039,4.90196078431,27.4509803922,36.2745098039,13.7254901961,9.80392156863,4.90196078431,1.96078431373,1.96078431373,1.96078431373,1.96078431373,1.96078431373,1.96078431373,1.96078431373,1.96078431373,1.96078431373,1.96078431373,1.96078431373,1.96078431373,1.96078431373,1.96078431373,1.96078431373,1.9607843137...
[ "lagrassa@mit.edu" ]
lagrassa@mit.edu
11d5c686f54f63338be815c09684ae0571bc8fa4
2dc9cfb2954cda43d4ba05cd20f8ad490bd116f3
/idaes/dmf/dmfbase.py
947415f815cbe3f84ea888803aaf2517affc00e8
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mahale4366/idaes-pse
44940a13f231a6bdd705b001749e72eec3afb96f
886d3c1333653402fef8706bde37ad6febe549f3
refs/heads/master
2022-11-10T08:31:13.489315
2020-06-27T01:30:27
2020-06-27T01:30:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
28,816
py
############################################################################## # Institute for the Design of Advanced Energy Systems Process Systems # Engineering Framework (IDAES PSE Framework) Copyright (c) 2018-2020, by the # software owners: The Regents of the University of California, through # Lawrence Berkeley N...
[ "KSBeattie@lbl.gov" ]
KSBeattie@lbl.gov
efb4a43b611d5c472949863467d40947c3d7fd11
32b628faa8b8ca8d11d8837cc495c0013f58b71a
/obsolete/pipeline_rmaa/calculate_interval_coverage.py
6f563ae3c18eb98409c23ebd4de4fa2734a6a0e9
[ "BSD-2-Clause" ]
permissive
jaquol/cgat
40b81617625ae9f0ba352caf38c2afd6a13c58f6
d26fab0dff2192d4accc128d2895e668254d7b65
refs/heads/master
2021-01-12T22:33:46.186451
2016-01-15T16:56:43
2016-01-15T16:56:43
49,868,597
1
0
null
2016-01-18T10:10:24
2016-01-18T10:10:24
null
UTF-8
Python
false
false
5,954
py
#!/home/belgardt/bin/python2.6 # Given a list of features, chromosome sizes, and a wig file of coverage, calculates genomic and transriptomic coverage by several metrics # Input 1: Output file of make_intervals.py giving mutually exclusive regions of genomic features. Fills in the remainder as 'intergenic' # Input 2...
[ "andreas.heger@gmail.com" ]
andreas.heger@gmail.com
883b16f3375e03bfa75504f66485171e484d7b84
ed32ed079570fd4ddea5c5da78423c380b02ecd1
/tensorflow/mnist-kafka/model/pipeline_predict.py
ec05e697eeb83dc68afe5a8b159924d0863746b4
[ "Apache-2.0" ]
permissive
shafaypro/models-1
b8a39502c30c09833382841bb542e328efcbd71e
34a55ec323a7ff6840b09891ab3872d726773ace
refs/heads/master
2021-05-09T01:28:17.389899
2018-01-31T23:55:13
2018-01-31T23:55:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,471
py
import os import numpy as np import json import logging from pipeline_model import TensorFlowServingModel from pipeline_monitor import prometheus_monitor as monitor from pipeline_logger import log from pipeline_logger.kafka_handler import KafkaHandler _logger = logging.getLogger('pipeline-logger') _logger.setLevel(lo...
[ "chris@fregly.com" ]
chris@fregly.com
2420bf8c3d936774c07e187dce907a62f2186a17
d1aa6e7d5631d7806531660febbd1f856eaeece7
/python/paddle/distributed/fleet/utils/fs.py
7ea639d70e641e550910ec3f8740a11a51a623bd
[ "Apache-2.0" ]
permissive
gongweibao/Paddle
510cd4bc0ef89bc6ccee7b6b8eca52c00e014b77
60f9c60cd8196c66c391d79c35d341e9072f8838
refs/heads/develop
2023-03-13T17:43:35.675875
2022-09-20T08:46:15
2022-09-20T08:46:15
82,279,237
3
2
Apache-2.0
2021-05-26T06:17:43
2017-02-17T09:16:16
Python
UTF-8
Python
false
false
46,491
py
# Copyright (c) 2020 PaddlePaddle 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 appli...
[ "noreply@github.com" ]
gongweibao.noreply@github.com
069d13b9add7b09b3eead8842ef7d41a315e7fc2
724ae861f52fedc9d57f39c30971fab0114dc34b
/cms_content_patch/plugins/cms_plugins.py
8d0e697d1bf404863d5c625372369cb90879f463
[ "BSD-3-Clause" ]
permissive
mmlic/django-cms-content
36faa82f5303ba151d1f5542d895bbf65aec753a
d6b214542ab618b6fa4645483fa5bf58e8212f86
refs/heads/master
2021-01-16T18:06:01.393986
2010-09-18T14:54:45
2010-09-18T14:54:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,511
py
# -*- coding: utf-8 -*- from django.utils.translation import ugettext as _ from cms.plugin_base import CMSPluginBase from cms.plugin_pool import plugin_pool from cms_content.models import CMSArticle from cms_content.plugins.models import LatestArticle, TopHitArticle from cms_content.settings import ROOT_URL class L...
[ "indexofire@gmail.com" ]
indexofire@gmail.com
6b31813fb9697d0f10ff30ad06b0ba6995f1564c
dbeb1e145eba012a200073038d8a8965ae0c6f5d
/Visualize/histogram.py
983970f28ac5d2501b732c2c8943115d0ac8ee15
[]
no_license
hellJane/Python_DataAnalysis
b7027cb9d8e75a98b5626a58ee85b64f62c54c9c
966ee5d732e074e9d124333f13d3e3e23ade1edc
refs/heads/master
2021-05-17T01:57:24.092791
2017-12-01T15:32:32
2017-12-01T15:32:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,898
py
import numpy as np import matplotlib.mlab as mlab import matplotlib.pyplot as plt ''' 本节介绍如何画直方图,matplotlib中三种主要的图形,第一个是plot,即直线,第二个是scatter,即散点图,第三个是histogram,直方图 -> plot根据(X, Y)来绘制一个一个的点,然后连成直线,当点足够多时,看上去就是一条光滑的曲线 -> scatter的输入也是长度相等的(X, Y),但只画出一个个的散点,不连成线 -> histogram的输入比较奇怪,它的输入是一个数组X,然后一个整数或者数组bins,bins...
[ "noreply@github.com" ]
hellJane.noreply@github.com
259b4889683e763e6e7a238b0433f7502c689767
64825015778c93937f4c7720141c85c9d80a3c6b
/feedutils.py
a2dd90eaf8760c8891526788c2870238f3dcb48b
[]
no_license
mikalstill/openstack-review-tools
0ca03ba181feafa5460fc983b7fbed242d41c588
36aeb279b0362b1b9e0470b4cffa594286e6a25f
refs/heads/master
2021-01-20T09:32:33.190486
2014-04-11T04:00:00
2014-04-11T04:00:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,906
py
#!/usr/bin/python # Helpers for producing data feeds import cgi import datetime import json import random import sys import time import MySQLdb import sql def SendPacket(packet): packet['timestamp'] = int(time.time()) print json.dumps(packet) sys.stdout.flush() def GetCursor(): # Read config from ...
[ "mikal@stillhq.com" ]
mikal@stillhq.com
3cdce8aba5c4db53bd5482396c5373a8cd285a9a
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/septentrionali.py
bfb73992cb180d27cb2b1ce76867137875f86adf
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
45
py
ii = [('FitzRNS3.py', 1), ('WestJIT2.py', 3)]
[ "prabhjyotsingh95@gmail.com" ]
prabhjyotsingh95@gmail.com
e0777b287f951a848066a9c38ecdc201c88a9031
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/f5b3248917c55e91f77df97dd86d1fe77eadb4e3-<logistic_regression>-bug.py
7bfaee498df80a1133f48dbb4ae7544b59dfc016
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,354
py
def logistic_regression(X, y, class_weight=None, init_mean=None, init_stddev=1.0): 'Creates logistic regression TensorFlow subgraph.\n\n Args:\n X: tensor or placeholder for input features,\n shape should be [batch_size, n_features].\n y: tensor or placeholder for target,\n shape should be [batch...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
7ef013deb653eeed830778ede6969f97c70614df
0ea43c5422f966b253b02f71c223708cd97ad2a0
/tests_binance.py
1bae5a92ed100cc5833e208a409327a8f778c8ab
[]
no_license
webclinic017/aibitgo
9ba49e235a2a48332de010ba8eba348627f4be82
a2c4a4d3bc71b767cfa9e99f0c8c2b2a1995a9f6
refs/heads/master
2023-07-13T07:48:56.032134
2021-08-27T06:10:48
2021-08-27T06:10:48
414,750,228
2
7
null
null
null
null
UTF-8
Python
false
false
2,310
py
import asyncio from api.exchange import ExchangeApiWithID # e = ExchangeApiWithID(1, 154) e = ExchangeApiWithID(30, 785) # e = ExchangeApiWithID(28, 767) # print(asyncio.run(e.get_account(e.MarketType.FUTURES))) # print(asyncio.run(e.get_kline(timeframe='1d', start_date='2020-07-11 8:30:00', end_date='2020-7-20 10:...
[ "iamwh1temark@outlook.com" ]
iamwh1temark@outlook.com
7cc9b24c40c86c4c229f93e1b456afce4b9152d0
7aac370bbd217d716ba53f0efd70047879bb1444
/tests/components/lookin/__init__.py
c2821fafab88da0d9edd21bd1aa234bf3436d52a
[ "Apache-2.0" ]
permissive
OverloadUT/home-assistant
c6bd63edb7c087eaf81ff507fdeb3e1420062d3a
7ccfaed7361604aa83cc55f059015327b544b5a7
refs/heads/dev
2023-02-23T01:04:13.441125
2021-10-25T16:26:03
2021-10-25T16:26:03
78,159,098
5
1
Apache-2.0
2023-02-22T06:18:15
2017-01-06T00:21:06
Python
UTF-8
Python
false
false
1,316
py
"""Tests for the lookin integration.""" from __future__ import annotations from unittest.mock import MagicMock, patch from aiolookin import Climate, Device, Remote from homeassistant.components.zeroconf import HaServiceInfo DEVICE_ID = "98F33163" MODULE = "homeassistant.components.lookin" MODULE_CONFIG_FLOW = "home...
[ "noreply@github.com" ]
OverloadUT.noreply@github.com
2b366ea58327bfd99677e527493481876123fc92
7b61f50bde439f21057a9ef81f6d79b5142d12b7
/rename.py
e8a3e05781ce91a74745b04557b9989a22ca7c52
[]
no_license
BlakeERichey/CNN
2cc95828d8936c49af57c738b2f4ad707d6ffa76
1bd53bcecfa5726a32851534e64176de99fed514
refs/heads/master
2020-09-10T20:03:40.097169
2019-12-29T02:30:26
2019-12-29T02:30:26
221,821,996
0
0
null
null
null
null
UTF-8
Python
false
false
251
py
#renames all files in a directory sequentially import os from os import listdir from os.path import isfile, join root = './healthy_corn' images = listdir(root) for i, image in enumerate(images): os.corn_env(f'{root}/{image}', f'{root}/hc_{i}.jpg')
[ "blake.e.richey@gmail.com" ]
blake.e.richey@gmail.com
7c26ba48a445a3be021bb7879617d75244d366bf
d8c5f1d5f5b7d222834d233db26d8b03e37bdfa3
/clients/kratos/python/test/test_submit_self_service_registration_flow_with_password_method_body.py
f66db886c346ff8c345df7d0e38ed686861526e2
[ "Apache-2.0" ]
permissive
kolotaev/sdk
31a9585720c3649b8830cf054fc7e404abe8e588
0dda1becd70be8d7b9d678321ebe780c1ba00485
refs/heads/master
2023-07-09T21:36:44.459798
2021-08-17T09:05:22
2021-08-17T09:05:22
397,220,777
0
0
null
null
null
null
UTF-8
Python
false
false
1,441
py
""" Ory Kratos API Documentation for all public and administrative Ory Kratos APIs. Public and administrative APIs are exposed on different ports. Public APIs can face the public internet without any protection while administrative APIs should never be exposed without prior authorization. To protect the admini...
[ "3372410+aeneasr@users.noreply.github.com" ]
3372410+aeneasr@users.noreply.github.com
e15d35e8e6957d5fc37271c0440d3b5e2eeb58c7
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/pj5yRacNC8huzhy85_6.py
1c295171c1a8bc2b686e83e74d269d75cd0a86f4
[]
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
76
py
def shhh(txt): return "\""+txt.capitalize()+"\""+', whispered Edabit.'
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
38797c10553c5cd6815abf1b84e21bbdf83c0be8
b2b9cd537c4c6a216d9b1ee32008cc8e98552405
/Comprehensive_practice/金融/Tushare.py
5c0b234909a129dce381f835e310a44257a731cd
[]
no_license
liyanfeng0127/python2_bdrw
ce982813645294b884d73cd2bbc4de5a33fa2cd5
52eba0d67d30ed5ce23e01dde69db35a8ed65787
refs/heads/master
2021-05-08T06:50:53.916210
2017-10-12T10:41:05
2017-10-12T10:41:05
106,676,637
1
0
null
null
null
null
UTF-8
Python
false
false
482
py
import tushare as ts from sqlalchemy import create_engine engine = create_engine("mysql://root:1234@localhost/scraping?charset=utf8") print ts.get_stock_basics() df1 = ts.get_stock_basics() df1.to_sql('news_data',engine,if_exists='append') print df1 print ts.get_tick_data('600019',date = '2016-12-16') df2 = ts.get_ti...
[ "yanfeng.li@lejent.com" ]
yanfeng.li@lejent.com
95135d218f245f70994502cbecd524d0d78c727c
eabf9d677b9ccd59f42e5359e46720899bf8cf10
/PyFunceble/converter/digit2digits.py
1fcf22208243975915cacebc34ed4c5a5cd39479
[ "Apache-2.0" ]
permissive
Phyleas/PyFunceble
26263c55f7cf1f282348660cdadcb6c9c3989d70
1f6fb58e1afc29fc4418ffc84d1e066cbd836125
refs/heads/master
2023-08-21T22:27:14.448059
2021-06-13T08:50:33
2021-06-13T08:50:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,003
py
""" The tool to check the availability or syntax of domain, IP or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ █████╗ █...
[ "contact@funilrys.com" ]
contact@funilrys.com
de476a61dfa5a626c61ec941d7eab3d69c23482d
f4f3c7f55512dd47495ee2c8c08a386648806f4c
/uninlp/configuration_roberta.py
8684c74d5a944e3fda492bd8083754cb1fe2ff49
[]
no_license
Tarpelite/UniNLPv2.0
28d80a91f31e36b19cb5ccce6e339289ae3116c9
c47831b61f012642a3753cceae08a587a6c8ab2e
refs/heads/master
2022-04-14T23:54:55.648372
2020-04-02T02:30:24
2020-04-02T02:30:24
231,536,882
2
0
null
2020-03-03T14:39:41
2020-01-03T07:33:32
Python
UTF-8
Python
false
false
3,377
py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. 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 cop...
[ "tarpelite_chan@foxmail.com" ]
tarpelite_chan@foxmail.com
4c49315f948fa139f4b89203c69da830275c76be
46c521a85f567c609f8a073cb9569ea59e2a104f
/23_os_3.py
8b291196291c4d8f79f543dddc08a586af2b5b7a
[]
no_license
Kunal352000/python_adv
c046b6b785b52eaaf8d089988d4dadf0a25fa8cb
d9736b6377ae2d486854f93906a6bf5bc4e45a98
refs/heads/main
2023-07-15T23:48:27.131948
2021-08-21T13:16:42
2021-08-21T13:16:42
398,557,910
0
0
null
null
null
null
UTF-8
Python
false
false
426
py
#wap to make/create a directory import os print("Before",os.getcwd()) os.mkdir('vagdevi1') print("Directory created sucessfully in %s"%os.getcwd()) os.chdir('E:\\krishna') os.mkdir('E:\\krishna\\guido') print("Directory created sucessfully in %s"%os.getcwd()) """ output: ------ Before C:\Users\Dell\Desktop ...
[ "noreply@github.com" ]
Kunal352000.noreply@github.com
8ae4401dcc7ceafad6fe7c02b40da06304efcafe
331f205d8ccb9c8ec3a0b42dad15673901e8c63b
/SVM_baseline.py
03d6ca19c68ed6d3782b9abba6d68149869fffa6
[]
no_license
fendaq/law_pre_baseline
43d58042f4aa8f8f3224b2a34fd0250e69fc0494
cdd0583e077aef1ef445de9b1b6badb8b488e73e
refs/heads/master
2020-03-17T23:20:28.155658
2018-01-24T13:28:00
2018-01-24T13:28:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,010
py
# coding: utf8 import json import os from scipy.stats import chisquare from sklearn.externals import joblib from gensim import corpora from gensim.corpora.textcorpus import TextCorpus from gensim.corpora.mmcorpus import MmCorpus from gensim.models.tfidfmodel import TfidfModel from scipy.sparse import csr_matrix from s...
[ "xiaocj16@mails.tsinghua.edu.cn" ]
xiaocj16@mails.tsinghua.edu.cn
40cbffd4a449fdae81e3802daff1ca3633b86f3e
4027d8dafb6f60568f03357e329c09262161e963
/machinelearn/opencv_learn/borden_det.py
7576d010d22db67efb3e26dff70cbd0658aeba80
[]
no_license
pentiumCM/machinelearn
a2bfa15d6e9f20fd604116f77186da76ebcc4f27
329bb9521b5e06e3471aa209fc87ca47f8d5fdcb
refs/heads/master
2022-12-08T23:43:05.784930
2021-05-24T04:02:23
2021-05-24T04:02:23
216,704,188
7
1
null
2022-12-08T09:30:07
2019-10-22T02:13:45
Python
UTF-8
Python
false
false
2,066
py
#!/usr/bin/env python # encoding: utf-8 ''' @Author : pentiumCM @Email : 842679178@qq.com @Software: PyCharm @File : borden_det.py @Time : 2021/4/27 19:26 @desc : ''' import cv2 import numpy as np img = cv2.pyrDown(cv2.imread("circle.jpg", cv2.IMREAD_UNCHANGED)) ret, thresh = cv2.threshold(cv2.cvtColor(img...
[ "842679178@qq.com" ]
842679178@qq.com
836edfa60b7ba59729d1549b8cc888dce616234c
e5504d8c4880993b82d5583a11c5cc4623e0eac2
/SDE_CHEAT_SHEET/DAY 1/findMissingAndRepeatingNumber.py
ec7d53708f3de2986e5696ab59eb8378cdae66e5
[]
no_license
noorulameenkm/DataStructuresAlgorithms
e5f87f426fc444d18f830e48569d2a7a50f5d7e0
7c3bb89326d2898f9e98590ceb8ee5fd7b3196f0
refs/heads/master
2023-06-08T19:29:42.507761
2023-05-28T16:20:19
2023-05-28T16:20:19
219,270,731
2
0
null
null
null
null
UTF-8
Python
false
false
3,197
py
class Solution: def findMissingAndRepeating(self,nums, n): frequency = {} missing, repeating = -1, -1 for i in range(1, n + 1): frequency[i] = 0 for num in nums: frequency[num] += 1 for num, count in frequency.items(): if count == 0: ...
[ "noorul.km@people10.com" ]
noorul.km@people10.com
469410e1bb8e5179272b372cb055a647c1c72b9f
8792e3449fbc6c8dec99f6af1d9f1b4caddad1f7
/98.py
0487aa2bd3ffb332819a7ae075ed11a57a072cb1
[]
no_license
aarthisandhiya/aarthisandhiya1
c19c1951c9ba01cd97eeddd44614953088718357
e6f10247b6a84d6eaf371a23f2f9c3bebbc73e5b
refs/heads/master
2020-04-15T17:17:07.151242
2019-05-20T05:24:19
2019-05-20T05:24:19
164,868,494
0
1
null
null
null
null
UTF-8
Python
false
false
105
py
a=int(input()) c=[int(a) for a in input().split()] for i in range(0,len(c)): if c[i]>c[i+1]: print(i)
[ "noreply@github.com" ]
aarthisandhiya.noreply@github.com
5c46b79bb9723098944ebb0cf9153f7ebce17706
82149a84b47fb37238452a658d5f3a8f23342658
/LV2_LX2_LC2_LD2/FaderfoxHelper.py
dd4081d5a4b0dbddcbd9f031d4b7371e59487e32
[]
no_license
maratbakirov/AbletonLive11_MIDIRemoteScripts
408c90522d8f54b878e595b0d8af28ad5008a4a1
2b25ba9351764c49f7fd1f99875e28e67b002f30
refs/heads/master
2023-04-12T04:44:16.715220
2021-05-09T11:48:24
2021-05-09T11:48:24
365,708,395
3
0
null
null
null
null
UTF-8
Python
false
false
8,096
py
#Embedded file name: /Users/versonator/Jenkins/live/output/Live/mac_64_static/Release/python-bundle/MIDI Remote Scripts/LV2_LX2_LC2_LD2/FaderfoxHelper.py from __future__ import absolute_import, print_function, unicode_literals from __future__ import division from past.builtins import cmp from builtins import range from...
[ "mbakirov@hotmail.com" ]
mbakirov@hotmail.com
83037df0291ee2b69246ccf83f3abf1aaef51b68
70fa6468c768d4ec9b4b14fc94fa785da557f1b5
/lib/third_party/ml_sdk/cloud/ml/prediction/prediction_utils.py
b370c22bb9b72110c3a944ee3a2a19b919e6ed10
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
kylewuolle/google-cloud-sdk
d43286ef646aec053ecd7eb58566ab2075e04e76
75f09ebe779e99fdc3fd13b48621fe12bfaa11aa
refs/heads/master
2020-04-20T22:10:41.774132
2019-01-26T09:29:26
2019-01-26T09:29:26
169,131,028
0
0
NOASSERTION
2019-02-04T19:04:40
2019-02-04T18:58:36
Python
UTF-8
Python
false
false
16,646
py
# Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "cloudsdk.mirror@gmail.com" ]
cloudsdk.mirror@gmail.com
45c116d336545c051a8408733e7bd0678a402ce9
022228249a7892e1efeaa11f0d445ba7cb115891
/typings/django/http/cookie.pyi
af0ea58d9c8fe4d1869078597db7535b8fda38af
[]
no_license
angaradev/django-vue-interface
bacef985b9f9cbd4379992133168c9278b4f707b
2e55d217b12bcda3c54acbb90cd3466bca955c5a
refs/heads/master
2022-12-01T09:24:29.788368
2022-11-22T07:09:44
2022-11-22T07:09:44
241,351,571
0
2
null
2022-11-22T07:09:45
2020-02-18T12:08:14
JavaScript
UTF-8
Python
false
false
161
pyi
""" This type stub file was generated by pyright. """ from typing import Any, Dict SimpleCookie: Any def parse_cookie(cookie: str) -> Dict[str, str]: ...
[ "angara99@gmail.com" ]
angara99@gmail.com
449aef323f248561976d6c136e9be7788863eda3
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/agc007/A/4615433.py
50183e7c4ab23228320af4450e0864336b61b5c5
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
225
py
H,W = map(int,input().split()) A = [input() for _ in range(H)] c = 0 for a in A: c += a.count("#") if c==H+W-1: print("Possible") else: print("Impossible")
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
2ba06f6d36d9055f74f1a3cb37430fc2901c12b5
253021ade66fddb1d580ef6f118abc36458ee913
/src/python_for_developer/ch09/hanbit_media/hanbit_media/middlewares.py
e8e997595ffb102b3956815858c5fdc9343420cb
[]
no_license
giinie/CSBootcamp
0e6fb1f722066e172309a5f20d0504bcf60a2fa0
c8a5799c1b328c1275b05df01b5c9417342cd086
refs/heads/master
2021-07-13T07:56:48.330806
2020-08-10T00:30:21
2020-08-10T00:30:21
168,725,917
1
0
null
null
null
null
UTF-8
Python
false
false
1,909
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # http://doc.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class HanbitMediaSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, # scra...
[ "giinie72@gmail.com" ]
giinie72@gmail.com
7e5983734ff3b077160702fc8c9ebc48fa31f89a
291ea9787377315e8c6f01fe8cdced7eed68d698
/tools/EventPlotter.py
06d548b469e7da860069689cb9e18bccd64acd85
[]
no_license
UhhCmsAnalysis/UhhhhAnalysis
06053deab3826588eb98d6029b2ab70094220ef0
601ae6df07cd514aa3fb419f39f0cad25bca85fd
refs/heads/master
2020-05-01T00:14:54.767729
2019-04-04T09:51:02
2019-04-04T09:51:02
177,164,367
1
1
null
null
null
null
UTF-8
Python
false
false
3,034
py
from ROOT import * from utils import * import os,sys gROOT.SetBatch(1) gStyle.SetOptStat(0) gROOT.ForceStyle() lumi = 135.9#/fb signal_mag = 10000 listOfBackgroundFiles = ['output/bigchunks/TTJets.root', 'output/bigchunks/QCD.root'] listOfSignalFiles = ['output/bigchunks/VBFHHTo4B_CV_1_C2V_2_C3_1.root'] binningAnal...
[ "samuel.bein@gmail.com" ]
samuel.bein@gmail.com
69cd1fbf97edcbfee0aea7026495d7221d9b610f
e8dba002d8916a468e559a52f254c0d92532d6b2
/tests/components/shelly/test_sensor.py
d87460fb17d0dcd2d1760ca68d76cb0423e3d673
[ "Apache-2.0" ]
permissive
thomasgermain/home-assistant
32b0f4d888220f4ce49dc85e506d0db39445c6c0
9673b93842ddcecc7e6a6d65e6d4f5b8a1089c43
refs/heads/vaillant
2023-08-21T23:50:24.679456
2020-05-20T21:01:18
2023-08-03T07:11:35
197,781,893
8
4
Apache-2.0
2023-02-10T06:56:47
2019-07-19T13:57:53
Python
UTF-8
Python
false
false
13,569
py
"""Tests for Shelly sensor platform.""" from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN from homeassistant.components.shelly.const import DOMAIN from homeassistant.const import ( ATTR_UNIT_OF_MEASUREMENT, PERCENTAGE, STATE_UNAVAILABLE, STATE_UNKNOWN, UnitOfEnergy, ) from homeassi...
[ "noreply@github.com" ]
thomasgermain.noreply@github.com
5bcc1fd078c0f42d91f625a661de963de52d42c3
c3eb10b5d96cfa2d7ec2c620004ac9ce2b205dbd
/lbsgdirectory/__init__.py
ebe2cc903ca22aea124d0f99cb0c392658f83377
[]
no_license
MatthewWilkes/lbsgdirectory
43a485a75880cfc190d340e0c27053ba13725d9d
012a725efd0a6e12e15b9c02e60dcdffefaa5e14
refs/heads/master
2016-09-16T05:33:42.994719
2014-02-07T03:42:19
2014-02-07T03:42:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
from pyramid.config import Configurator from pyramid_zodbconn import get_connection from lbsgdirectory.models import appmaker def root_factory(request): conn = get_connection(request) return appmaker(conn.root()) def main(global_config, **settings): """ This function returns a Pyramid WSGI application. ...
[ "git@matthewwilkes.name" ]
git@matthewwilkes.name
21f56ef3fa4ba3274eaad3cc15c20a47ab5c6a87
d0ebff0ce03ba746687cb3cfc0f1b64e252359c9
/tools/wgetIndex.py
2b8d60d1c5daf0c0d0ee7357e3bb62a1d451e9d4
[]
no_license
siongui/obsoleted-pali
f5908dae27f0452286009ca9fa0e55f6423fda40
85c64f9104f25f5e0553303d098b40f8803c5ace
refs/heads/master
2021-01-19T17:13:30.538591
2013-06-21T17:10:48
2013-06-21T17:10:48
33,320,885
0
0
null
null
null
null
UTF-8
Python
false
false
459
py
#!/usr/bin/env python # -*- coding:utf-8 -*- import os if __name__ == '__main__': os.system("wget http://localhost:8080/?locale=en_US\&memcache=no\&compiledBootstrapJS=yes -O production/index-en_US.html") os.system("wget http://localhost:8080/?locale=zh_TW\&memcache=no\&compiledBootstrapJS=yes -O production/index...
[ "siongui@gmail.com" ]
siongui@gmail.com
7bfd88bfe142415e642fd2e8d5dc5245776bdc8f
565280accc5e4141fde37c20fcfc352c9ea9cb91
/plusNetFirewall/pages/home/login_page.py
29d3e03a8bdcbaa5d83bd5ae724d00483033e3cd
[]
no_license
cromox1/Selenium
150844acdacd8d943ebe2ad01d8ade26dfe9a449
9c0ba5efa2f179a86c674104d74d59d4b4a52959
refs/heads/master
2021-05-05T20:34:22.430764
2020-11-26T16:12:30
2020-11-26T16:12:30
115,372,039
0
0
null
null
null
null
UTF-8
Python
false
false
3,983
py
__author__ = 'cromox' from base.basepage import BasePage import utilities.custom_logger as cl import logging import time class LoginPage(BasePage): log = cl.customLogger(logging.DEBUG) def __init__(self, driver): super().__init__(driver) self.driver = driver # Locators Base _passwor...
[ "xixa01@yahoo.co.uk" ]
xixa01@yahoo.co.uk
feda3cde0110a7f98c0dd49dfd5d79c1ea67940d
b122b723c2fbadef6f19e8c9ec4e485d48c03dec
/Python/Add Two Numbers.py
e8440405dc2ee7d8a3037f1e75956f193a5ffd70
[]
no_license
zhanglintc/leetcode
5ba3977172679fde8cdcd3f4940057d55d8112eb
8edbd2fbad8b10a497c7a10e8cd09cc91eeba079
refs/heads/master
2020-12-13T08:49:57.244106
2018-09-06T13:52:43
2018-09-06T13:52:43
18,562,111
1
0
null
null
null
null
UTF-8
Python
false
false
2,053
py
# Add Two Numbers # for leetcode problems # 2014.08.15 by zhanglin # Problem Link: # https://leetcode.com/problems/add-two-numbers/ # Problem: # You are given two linked lists representing two non-negative numbers. # The digits are stored in reverse order and each of their nodes contain a single digit. # Add the two ...
[ "zhanglintc623@gmail.com" ]
zhanglintc623@gmail.com
78a196ebccb8dc2f49d45038ae5f95f2a010e6a1
71cac038fabbc61602dbafb3ecddefbe132362aa
/TextProcessingTools/TextTools/Processors/Exceptions.py
ec17d9ef945c4c9fbc54e0ccde3672206bd422c6
[ "MIT" ]
permissive
AdamSwenson/TwitterProject
00a38f18d6c5c6146f8ff21917da456c87c5453d
8c5dc7a57eac611b555058736d609f2f204cb836
refs/heads/master
2022-12-14T07:06:43.958429
2019-10-02T01:22:22
2019-10-02T01:22:22
138,349,359
0
0
MIT
2022-11-22T02:58:09
2018-06-22T21:23:31
Jupyter Notebook
UTF-8
Python
false
false
99
py
""" Created by adam on 5/20/18 """ __author__ = 'adam' class ExcludedString(Exception): pass
[ "adam.swenson@csun.edu" ]
adam.swenson@csun.edu
5b99945edb9dbfd053fc7ee87d73a1f39c2d5b8f
a722faf9fb50c794555861bb4858c3ed8a7a25f3
/sandbox/python-lifegame/tests/func/test_live_a_generation.py
37052d227d62184aa852d62514efae80ac7bef90
[]
no_license
ar90n/lab
31e5d2c320de5618bc37572011596fee8923255d
6d035e12f743e9ba984e79bfe660967b9ca8716b
refs/heads/main
2023-07-25T17:29:57.960915
2023-07-22T12:08:18
2023-07-22T12:08:18
77,883,405
4
0
null
2023-07-17T08:45:14
2017-01-03T04:15:49
Jupyter Notebook
UTF-8
Python
false
false
629
py
""" Test the live_a_generation API function. """ import pytest from lifegame import live_a_generation, Grid, simulate, ALIVE def test_live_a_generation(): grid = Grid(5 , 9) grid.assign(0, 3, ALIVE) grid.assign(1, 4, ALIVE) grid.assign(2, 2, ALIVE) grid.assign(2, 3, ALIVE) grid.assign(2, 4, A...
[ "argon.argon.argon@gmail.com" ]
argon.argon.argon@gmail.com
8e269dc151700d1ea93cb9c556a17eec53dd0e66
077c91b9d5cb1a6a724da47067483c622ce64be6
/syn_mem_corruption_3switch_fuzzer_mcs/intermcs_5_/openflow_replay_config.py
371ca5198618c6cd5929ffc28c43b8595e698a9f
[]
no_license
Spencerx/experiments
0edd16398725f6fd9365ddbb1b773942e4878369
aaa98b0f67b0d0c0c826b8a1565916bf97ae3179
refs/heads/master
2020-04-03T10:11:40.671606
2014-06-11T23:55:11
2014-06-11T23:55:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,016
py
from config.experiment_config_lib import ControllerConfig from sts.topology import * from sts.control_flow import OpenFlowReplayer from sts.simulation_state import SimulationConfig from sts.input_traces.input_logger import InputLogger simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cmd...
[ "b-github.com@wundsam.net" ]
b-github.com@wundsam.net
83565f65c18c513e0686001bbaded702173de6eb
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_74/672.py
202d272bb20f506ddd55c1b15a752aad291fab36
[]
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
2,386
py
#!/usr/bin/env python import sys def main(o_arr, b_arr, inputs): results = [] for input in xrange(0, inputs): time = 0 rank = 1 curr_o = 1 o_arr_size = 0 if len(o_arr[input]) > 0: o_arr_size = len(o_arr[input]) curr_b = 1 arr_index_o = 0 ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
1b3c9a9be4725868b032f5a8979fd874c0221cb2
7cb7205bf9211d9060cb2b14d79abcacb8925f97
/pandas/tseries/tools.py
f114a3825736a5776831e855cf2d81bfcc687ed8
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
takluyver/pandas
35ae544ea82620c3b617efa2c83e7b77fd0d3e2d
6c820b4b1a3b945d52cffbd9a4d40a582c077b5d
refs/heads/master
2023-08-22T03:25:29.823209
2012-04-24T00:24:30
2012-04-24T00:24:30
2,501,280
0
0
null
null
null
null
UTF-8
Python
false
false
6,434
py
from datetime import datetime, timedelta import re import sys import numpy as np import pandas._tseries as lib import pandas.core.common as com try: import dateutil from dateutil.parser import parser from dateutil.relativedelta import relativedelta # raise exception if dateutil 2.0 install on 2.x pl...
[ "wesmckinn@gmail.com" ]
wesmckinn@gmail.com
58bffa5570f730aad8b8ea2a8a450a150f16f6b4
9a5b0bcc1302373fc37315e15def172e2d5a8e3a
/demo/funs/num_funs.py
ca8378f75ef99bc4b7da7d4387b0cbbb9290823e
[]
no_license
srikanthpragada/PYTHON_06_APR_2020
b74a7d2e80d8a8ffe203ba5bd562484e80b3502b
f999c5ca001137d21b9cd6ca55f3e35dd0e6c3ca
refs/heads/master
2021-05-25T15:02:38.057653
2020-05-07T13:29:01
2020-05-07T13:29:01
253,799,331
1
1
null
null
null
null
UTF-8
Python
false
false
293
py
# Module with numeric functions def iseven(n): return n % 2 == 0 def isleapyear(y): return y % 4 == 0 and y % 100 != 0 or y % 400 == 0 if __name__ == '__main__': print("Testing") print(iseven(11)) print(isleapyear(2020)) else: print("Importing module", __name__)
[ "srikanthpragada@gmail.com" ]
srikanthpragada@gmail.com
16c8e3995c151d21db0b8e071e140f9f7ad08421
0c3f7a1ce6707a3131d3aa5757b51a948e38ceff
/tina/advans.py
bbd71980c143335071df39de271e0df9bd7bb00d
[ "MIT" ]
permissive
199ChenNuo/taichi_three
ea2863447beaf749eb3066cd59cac5a0e16c6e3d
540a97781b58adaf462efb5df16f66d6f3a21065
refs/heads/master
2023-02-07T19:06:32.867578
2020-12-22T02:15:06
2020-12-22T02:15:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,615
py
from .common import * def texture_as_field(filename): if isinstance(filename, str): img_np = np.float32(ti.imread(filename) / 255) else: img_np = np.array(filename) img = ti.Vector.field(3, float, img_np.shape[:2]) @ti.materialize_callback def init_texture(): img.from_nump...
[ "1931127624@qq.com" ]
1931127624@qq.com
9c87af85cda77149c488ce3445cddec95bdf8746
ebd529ce4bd58aa5213dcd176af0b787b11ca7e6
/juju/loop.py
3720159df91c2fe0dc95bbab4ddc6dce92af6608
[ "Apache-2.0" ]
permissive
tengu-team/python-libjuju
82d8dc8f0a5b22411b220fa826602e1468f88412
a77eec2dcd10840f34582183d84888d4556e7854
refs/heads/master
2021-01-19T04:08:06.149992
2017-04-26T13:27:06
2017-04-26T13:27:06
84,428,921
0
4
null
2017-04-06T10:37:13
2017-03-09T10:23:50
Python
UTF-8
Python
false
false
880
py
import asyncio import signal def run(*steps): """ Helper to run one or more async functions synchronously, with graceful handling of SIGINT / Ctrl-C. Returns the return value of the last function. """ if not steps: return task = None run._sigint = False # function attr to al...
[ "johnsca@gmail.com" ]
johnsca@gmail.com
190305a05a0210fa686c687315ed217f72fbc6a8
4eddf6a34715752dc652571b1ab274f51ceb5da0
/.history/py4pro/test_20210422193102.py
51e9ad8e562792fb6771aab3895cefe451af8952
[]
no_license
Suelt/Hust-SE-introduction-to-ML
649aba0e5b41363ceac03330ef02982982a0615d
a66785c3085da573f5748d13608eabf02e616321
refs/heads/master
2023-05-27T13:13:41.058545
2021-06-10T05:44:02
2021-06-10T05:44:02
375,582,438
1
0
null
null
null
null
UTF-8
Python
false
false
4,492
py
import pandas as pd import numpy as np import matplotlib.pyplot as plt from sklearn import model_selection from sklearn import tree from sklearn.tree import DecisionTreeClassifier from sklearn import metrics import graphviz import pydotplus from mpl_toolkits.mplot3d import Axes3D def calculatent(DataSet): risk_t...
[ "2552925383@qq.com" ]
2552925383@qq.com
d38e0ff8633338f026e3791967de30bc605bcb71
e725d078620f4aad7eccfb41ad1e095235a62f1c
/tingbot/platform_specific/osx.py
2f411a0e5e95ea554bbcccf9929c105eb50f6c90
[ "BSD-2-Clause" ]
permissive
galli-leo/tingbot-python
ebdf87f4a2e4690678cede670d79d5c9c884babb
67fcc6fdad19f0a4204bf753ddd1fc33d2077ed8
refs/heads/master
2021-05-30T12:56:20.092139
2015-11-28T14:06:16
2015-11-28T14:06:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,434
py
import os from Cocoa import ( NSImageView, NSView, NSRectFill, NSColor, NSApplication, NSNotificationCenter, NSRect, NSImage, NSWindow, NSUserDefaults) from Quartz import CGPointZero, CGRectMake, CGPointMake import objc from ..utils import cached_property class BackgroundImageView(NSImageView): def mouseD...
[ "joerick@mac.com" ]
joerick@mac.com
581d63f1698212f6e9100616c83f6ca290432549
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/tree-big-598.py
314a52c6f9007d1b698a112ffc699e291bc8e832
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
23,288
py
# Binary-search trees class TreeNode(object): value:int = 0 left:"TreeNode" = None right:"TreeNode" = None def insert(self:"TreeNode", x:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode(x) return True else: ...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
87ab1b274c5e13b966339090abba7b163d25b721
d842a95213e48e30139b9a8227fb7e757f834784
/gcloud/google-cloud-sdk/.install/.backup/lib/googlecloudsdk/third_party/apis/bigquerydatatransfer/v1/bigquerydatatransfer_v1_client.py
906f615d4cb5d0e85cb01fd5c9324af2c025f286
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "MIT" ]
permissive
bopopescu/JobSniperRails
f37a15edb89f54916cc272884b36dcd83cdc868a
39e7f871887176770de0f4fc6789e9ddc7f32b1f
refs/heads/master
2022-11-22T18:12:37.972441
2019-09-20T22:43:14
2019-09-20T22:43:14
282,293,504
0
0
MIT
2020-07-24T18:47:35
2020-07-24T18:47:34
null
UTF-8
Python
false
false
42,399
py
"""Generated client library for bigquerydatatransfer version v1.""" # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.py import base_api from googlecloudsdk.third_party.apis.bigquerydatatransfer.v1 import bigquerydatatransfer_v1_messages as messages class BigquerydatatransferV1(b...
[ "luizfper@gmail.com" ]
luizfper@gmail.com
893362476d3d10295b0c7dfbed071efc9e8a859b
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/model_control/detailed/transf_Fisher/model_control_one_enabled_Fisher_Lag1Trend_Seasonal_DayOfWeek_ARX.py
df68713e4fbd406d69aae3b928cb775d7c6553d3
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
163
py
import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Fisher'] , ['Lag1Trend'] , ['Seasonal_DayOfWeek'] , ['ARX'] );
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
ee86beab403ee0fadab5598de303a100f63407ef
3049846cf769aa164c8f25bcc656e31ab752cb99
/AdvancePython/sequence_class-4/bisect_demo.py
63edc28b88377aad5b5404017a4d140e577e6949
[]
no_license
2415970940/python_project
f69dfdbeb763a71e7e05f450df4af957b64401ee
06473e39323500b089f29231e697800088477775
refs/heads/master
2020-03-23T01:25:30.082952
2018-08-10T15:09:20
2018-08-10T15:09:20
140,916,506
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
import bisect # 处理已排序的序列 # 二分查找 insert_list = [] bisect.insort(insert_list,4) bisect.insort(insert_list,3) bisect.insort(insert_list,5) bisect.insort(insert_list,1) bisect.insort(insert_list,2) print(insert_list) # insort = insort_right # bisect = bisect_right print(bisect.bisect_left(insert_list,3)) print(insert_list)...
[ "2415970940@qq.com" ]
2415970940@qq.com
234e63d23a7eaa21c6fee01022a4cb6c4d861c57
5a17226264d9abe7ff99c7da76512551b3df86a5
/leetcode_algorithm/leetcode_easy_1480.py
b02c673f29ba0d3a2c022c8c6a90ce7c776508d8
[]
no_license
ccubc/DS_self_learning
cfddf6a02926884fae5a0b2798a20a4470674101
40725ee6d699c19c25dfbd81363564e15707c448
refs/heads/small_potato
2021-06-30T18:35:04.463732
2021-02-12T05:59:01
2021-02-12T05:59:01
219,366,357
3
2
null
2020-11-12T04:34:16
2019-11-03T21:13:49
Jupyter Notebook
UTF-8
Python
false
false
710
py
""" Given an array nums. We define a running sum of an array as runningSum[i] = sum(nums[0]…nums[i]). Return the running sum of nums. Example 1: Input: nums = [1,2,3,4] Output: [1,3,6,10] Explanation: Running sum is obtained as follows: [1, 1+2, 1+2+3, 1+2+3+4]. Example 2: Input: nums = [1,1,1,1,1] Output: [1,2,...
[ "chengchen1215@gmail.com" ]
chengchen1215@gmail.com
82b9a821a01e45f21b005a7666ee9ea83382d2a6
c89543dd926c1787c40616ed174a3d1371c54449
/tests/unit_tests/sql_parse_tests.py
ba3da69aaefaf0468fc9bd1cb658188b7cef5f51
[ "Apache-2.0", "OFL-1.1" ]
permissive
j420247/incubator-superset
7c7bff330393f0e91f5e67782f35efe8c735250a
c9b9b7404a2440a4c9d3173f0c494ed40f7fa2bd
refs/heads/master
2023-03-11T21:53:16.827919
2023-02-03T19:04:17
2023-02-03T19:04:17
157,780,350
1
1
Apache-2.0
2023-03-07T00:14:51
2018-11-15T22:24:29
TypeScript
UTF-8
Python
false
false
38,745
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "noreply@github.com" ]
j420247.noreply@github.com
cc07cb4c7b0b1a9e796dcd74102adb7f9e3633c2
1bc7053e7582e43bdd4b943c5700677e07449d3c
/pytsite/update/__init__.py
beccd8c9e0e0885acb8a23f7461eea5a2becc100
[ "MIT" ]
permissive
pytsite/pytsite
f92eaa041d85b245fbfcdff44224b24da5d9b73a
e4896722709607bda88b4a69400dcde4bf7e5f0a
refs/heads/master
2021-01-18T01:06:12.357397
2019-08-03T02:56:48
2019-08-03T02:56:48
34,899,242
12
2
null
null
null
null
UTF-8
Python
false
false
412
py
"""PytSite Update """ __author__ = 'Oleksandr Shepetko' __email__ = 'a@shepetko.com' __license__ = 'MIT' # Public API from ._api import on_update_stage_1, on_update_stage_2, on_update_pytsite, on_update_app, on_update def _init(): """Init wrapper """ from pytsite import console, lang from . import _c...
[ "a@shepetko.com" ]
a@shepetko.com
9f9ec956f6d71e786d85b0a2f2eb71450bea0f3b
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/agc020/C/1988760.py
01d61954422a4331ecfbfa7f4d8bc16cd1ae0084
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
226
py
# coding=utf-8 N = int(input()) dp = 1 asum = 0 for a in input().split(" "): x = int(a) asum += x dp = dp|(dp<<x) for i in range((asum+1)//2, asum+1): if (dp>>i)&1: print(i) break
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
4361637658a15db295505b19d8a550c054b2b2d2
f3b233e5053e28fa95c549017bd75a30456eb50c
/ptp1b_input/L80/80-79_MD_NVT_rerun/set_2.py
304c430eb761c1b188b082a44f77da63d4307cfc
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
741
py
import os dir = '/mnt/scratch/songlin3/run/ptp1b/L80/MD_NVT_rerun/ti_one-step/80_79/' filesdir = dir + 'files/' temp_prodin = filesdir + 'temp_prod_2.in' temp_pbs = filesdir + 'temp_2.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j in la...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
8238daaaa6db2f2e9418306a66e029d479ad8633
1d4631315c2c82c2bda1c9729f7d8857051a0bab
/bioframe/_process.py
2f5cb20e7c7524f5037d669d8c278c8032f7474b
[ "MIT" ]
permissive
mimakaev/bioframe
2a95cdf748e0f235d3449edecb4ddcdcac449df3
f9f71425bd0f36376ead3c2c83d7ee9f4676db29
refs/heads/master
2022-11-11T17:39:15.852208
2020-05-15T23:21:46
2020-05-15T23:21:46
262,318,356
0
0
MIT
2020-06-04T02:31:39
2020-05-08T12:31:33
Python
UTF-8
Python
false
false
1,778
py
from __future__ import absolute_import, division, print_function from io import StringIO import subprocess import tempfile import os import pandas as pd def tsv(df, **kwargs): """ Write ``pandas.DataFrame`` to a temporary tab-delimited file. Works in a ``with`` block (file is deleted at context teardown)...
[ "nabdennur@gmail.com" ]
nabdennur@gmail.com
096301e78d3f84bcca0dfba1f94b9c28c5d4a82c
d1283cf75414cc4e39ab348c91d9f21b006f2d30
/eye-blink-detection/blink-detection/detect_blinks.py
5599611d7d34fb500b1787a41f8c355058034c14
[]
no_license
youngsoul/pyimagesearch-facial-landmarks
0a6003a48b7eb25f7d9749392098d71bc8b2108e
38260bdd59b7d1cf0fe0c192d8ed07ca6044f83a
refs/heads/master
2021-07-20T11:03:22.826979
2020-06-19T01:59:26
2020-06-19T01:59:26
185,086,618
0
0
null
null
null
null
UTF-8
Python
false
false
4,661
py
# USAGE # python my_detect_blinks.py --shape-predictor shape_predictor_68_face_landmarks.dat --video blink_detection_demo.mp4 # python my_detect_blinks.py --shape-predictor shape_predictor_68_face_landmarks.dat # import the necessary packages from scipy.spatial import distance as dist from imutils.video import FileVid...
[ "theyoungsoul@gmail.com" ]
theyoungsoul@gmail.com
b3d90adf90a5155ca8d96200ab078f146c3cc071
81f820d7d61cbaeef9203f165889b700f123007b
/docs/benchmarks/bench_fft.py
809839470d34cc73db8fca1d359d2038dbaa455b
[ "BSD-3-Clause" ]
permissive
minrk/distarray
95ec399e6bc42651e430143a564b3f7c061309fd
fa0667f2c8da26cd235c90e3750105ee2e020d1f
refs/heads/master
2023-06-08T09:52:19.624962
2009-06-11T20:15:25
2009-06-11T20:15:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
744
py
import distarray as da def f(comm, size, reps): """Benchmark da.fft""" a = da.random.rand((size,size), comm=comm) b = a.astype(newdtype='complex128') filter = da.random.rand((size, size), comm=comm) for i in range(reps): c = da.fft.fft2(b) d = c*filter e = da.fftw.ifft2(c) ...
[ "ellisonbg@gmail.com" ]
ellisonbg@gmail.com
543d4707889d2a581692ba5eb0ab9e2238ec0a4e
5c00c8f1cdf329509d0211e6cf3c16fa4e762289
/leetcode/test679.py
0dc83dae0cf14dad93f500a0bb836b3486d59f43
[]
no_license
mofei952/algorithm_exercise
b192dc51cd6f9721defbba11701889aaf02bb3e8
04d87d76b762f6ea7cfb3a453382b2d7d4e154dc
refs/heads/master
2020-03-29T13:16:04.414742
2019-12-05T11:23:21
2019-12-05T11:23:27
149,949,381
1
0
null
null
null
null
UTF-8
Python
false
false
1,293
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author : mofei # @Time : 2018/8/23 15:55 # @File : test679.py # @Software: PyCharm import copy class Solution(object): def game(self, nums): if len(nums) == 1: return abs(nums[0] - 24) <= 1 * 10 ** -5 for i in range(len(nums)): ...
[ "695741200@qq.com" ]
695741200@qq.com
6122197e1ea375229b6f29b71ddbaec006532bf4
ade047677ca695a8d27ff50645f1afe8cd1463df
/FirstService/FirstService.py
03212b981c13dcba6d22944fc1026b0377e0308e
[]
no_license
xuzhuo77/WorkSpace-FrameWork
677f02eead801fb48e60d0411ea4dc5aa516af57
109c691c270020ef20f36f625c31166c49386351
refs/heads/master
2023-03-06T13:02:28.528231
2021-02-21T23:01:08
2021-02-21T23:01:08
337,577,954
0
0
null
null
null
null
UTF-8
Python
false
false
225
py
from super_init_wrapper import super_init_wrapper from FirstService.First import First from ServiceBasic import ServiceBasic @super_init_wrapper class FirstService(ServiceBasic): __eneity__ = First # f=FirstService()
[ "403863214@qq.com" ]
403863214@qq.com
f0fb5e041f5b5243b3012d6f2f7999db35f12bb5
b34641367c20afd688050976339ebae3ca7220a0
/regexp_sample/regexp.py
6adfb941b68a4deefcf893c133e975ab5dff9901
[]
no_license
DrShiz/learning4
cee6e46f733badbe17ab410e5a89b2106e493d2e
85fa372d3bdccf7da487d13d147c1b639ddceefd
refs/heads/master
2023-03-06T00:20:00.048331
2021-02-16T16:39:35
2021-02-16T16:39:35
339,447,119
0
0
null
null
null
null
UTF-8
Python
false
false
452
py
def calculate(data, findall): matches = findall(r"([abc])([\+-])?=([abc])?([\+-]?\d+)?") # Если придумать хорошую регулярку, будет просто for v1, s, v2, n in matches: if s == '-': data[v1] -= data.get(v2, 0) + int(n or 0) elif s == '+': data[v1] += data.get(v2, 0) + int(...
[ "shizdryeah@gmail.com" ]
shizdryeah@gmail.com
fa42b8ddc8d72128ea8d129a743af824811641ab
1adc05008f0caa9a81cc4fc3a737fcbcebb68995
/hardhat/recipes/mingw64/mingw64_lz4.py
6a93115894383ef20e415cd86a0560c5f8d1a763
[ "MIT", "BSD-3-Clause" ]
permissive
stangelandcl/hardhat
4aa995518697d19b179c64751108963fa656cfca
1ad0c5dec16728c0243023acb9594f435ef18f9c
refs/heads/master
2021-01-11T17:19:41.988477
2019-03-22T22:18:44
2019-03-22T22:18:52
79,742,340
0
0
null
null
null
null
UTF-8
Python
false
false
913
py
import os from .base import Mingw64BaseRecipe from hardhat.version import extension_regex class Mingw64Lz4Recipe(Mingw64BaseRecipe): def __init__(self, *args, **kwargs): super(Mingw64Lz4Recipe, self).__init__(*args, **kwargs) self.sha256 = '0963fbe9ee90acd1d15e9f09e826eaaf' \ ...
[ "clayton.stangeland@gmail.com" ]
clayton.stangeland@gmail.com
e90b840a0231315ecd22fcb8e1fd47e3a02c017c
8fcc27160f8700be46296568260fa0017a0b3004
/client/spacecomponents/common/components/__init__.py
89003b84b485aee50d1030bcbcb80de7627f5693
[]
no_license
connoryang/dec-eve-serenity
5d867f4eedfa896a4ef60f92556356cafd632c96
b670aec7c8b4514fc47cd52e186d7ccf3aabb69e
refs/heads/master
2021-01-22T06:33:16.303760
2016-03-16T15:15:32
2016-03-16T15:15:32
56,389,750
1
0
null
2016-04-16T15:05:24
2016-04-16T15:05:24
null
UTF-8
Python
false
false
146
py
#Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\spacecomponents\common\components\__init__.py pass
[ "masaho.shiro@gmail.com" ]
masaho.shiro@gmail.com
36cde02b81e2c016e7625573ea5b8022d243c386
321b4ed83b6874eeb512027eaa0b17b0daf3c289
/1155/1155.number-of-dice-rolls-with-target-sum.256398275.Accepted.leetcode.py
fe2de9a855434280958466beef23b0f1784c8bb1
[]
no_license
huangyingw/submissions
7a610613bdb03f1223cdec5f6ccc4391149ca618
bfac1238ecef8b03e54842b852f6fec111abedfa
refs/heads/master
2023-07-25T09:56:46.814504
2023-07-16T07:38:36
2023-07-16T07:38:36
143,352,065
0
1
null
null
null
null
UTF-8
Python
false
false
377
py
class Solution(object): def numRollsToTarget(self, d, f, target): MOD = 10 ** 9 + 7 dp = [[0 for _ in range(target + 1)] for _ in range(d + 1)] dp[0][0] = 1 for die in range(1, d + 1): for total in range(die, target + 1): dp[die][total] = sum(dp[die - 1][m...
[ "huangyingw@gmail.com" ]
huangyingw@gmail.com
3e461c5808c75a42b32fa076401f0ed332061acf
d09c61a997528d4cc557bf4be4051a9d79184bb4
/weeklyChallenge/urls.py
b6bd31f3dd7c9c6b182e8fdb99016b315966af7b
[]
no_license
urimeba/django
5d32d3dd504a1e3165e3cc87cda4b88a4760155b
33568660d3e4363a3c2c8ae9bb6a204ac0ac555b
refs/heads/master
2022-11-29T07:35:38.055397
2020-08-12T19:40:01
2020-08-12T19:40:01
285,706,853
0
0
null
null
null
null
UTF-8
Python
false
false
224
py
from django.contrib import admin from django.urls import path, include from Apps.oneSampleApp import urls as urls_oneSampleApp urlpatterns = [ path('admin/', admin.site.urls), path('', include(urls_oneSampleApp)) ]
[ "urimeba511@gmail.com" ]
urimeba511@gmail.com
f93b60d19e3f82557d8eecc96ffa7edc104e6a22
3dd31b5da5358d455e607af46610786093c7cb6b
/src/devtools/mapper.py
2360b21ef521118c9bfee4988ac6432e96fb58e9
[]
no_license
sunlightlabs/upwardly
1de31a3b817bb89acc356099499d2c2b018f1c24
d34986de3836968f5fddb1be21f45ec6ca94d28c
refs/heads/master
2021-01-25T06:36:53.492438
2014-05-01T19:22:31
2014-05-01T19:22:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,795
py
from flask import Flask, Response, g, render_template, request from pymongo import Connection, json_util import geojson import json import os import re app = Flask(__name__) GEOJSON_PATH = "/Users/Jeremy/Desktop/locations/geojson/" def get_shapes(points): shape_points = [] for point in points: if poi...
[ "jcarbaugh@gmail.com" ]
jcarbaugh@gmail.com
a8dc77e1cbda4913e7ba81193506508ae42f468e
dcce56815dca2b18039e392053376636505ce672
/dumpscripts/abc_subclass.py
3e2742b0285376a0bb4bc6fe2362d25f3fcd2a9f
[]
no_license
robertopauletto/PyMOTW-it_3.0
28ff05d8aeccd61ade7d4107a971d9d2576fb579
c725df4a2aa2e799a969e90c64898f08b7eaad7d
refs/heads/master
2021-01-20T18:51:30.512327
2020-01-09T19:30:14
2020-01-09T19:30:14
63,536,756
4
1
null
null
null
null
UTF-8
Python
false
false
527
py
#!/usr/binf/env python # -*- coding: UTF-8 -*- # abc_subclass.py import abc from abc_base import PluginBase class SubclassImplementation(PluginBase): def load(self, input): return input.read() def save(self, output, data): return output.write(data) if __name__ == '__main__': print('S...
[ "roberto.pauletto@gmail.com" ]
roberto.pauletto@gmail.com
493adc170bcc6e038bfd9cfd2b5e26fe6d0a91dc
ced2dc1f67830f70bc8449b864a5ddf9858a6f76
/CMSSW_9_4_12/cfipython/slc6_amd64_gcc630/L1Prefiring/EventWeightProducer/l1ECALPrefiringWeightProducer_cfi.py
74dba42d405e2d74bc6858b232e0714301b10c65
[]
no_license
xdlyu/16_MINIAODV3
6e1c455a17e8453974b200c05da18a81386936fe
5f506cb0e3411fe85bc0b86d6f9477ca7d46eea3
refs/heads/master
2020-12-13T03:46:54.895084
2020-01-17T14:47:22
2020-01-17T14:47:22
234,304,490
0
1
null
null
null
null
UTF-8
Python
false
false
379
py
import FWCore.ParameterSet.Config as cms l1ECALPrefiringWeightProducer = cms.EDProducer('L1ECALPrefiringWeightProducer', ThePhotons = cms.InputTag('slimmedPhotons'), TheJets = cms.InputTag('slimmedJets'), L1Maps = cms.string('L1PrefiringMaps_new.root'), DataEra = cms.string('2017BtoF'), UseJetEMPt = cms.bool...
[ "XXX@cern.ch" ]
XXX@cern.ch
c874574475a1fc89882d7ac53528c0e849daa65b
d3092bd21eb55856cf3592eab45da0c9e1efad82
/Programacion/2015/problema_7.py
8173d52ec85b56b2e4e082ea7c9f590fdba144a3
[]
no_license
giovannilopez9808/Examenes_CIMAT
7c1472544ae126509964dcc4d41784394c8619df
543f980c115f1756733148af15a487686d211d2e
refs/heads/main
2023-05-27T20:22:43.808949
2021-06-07T00:50:52
2021-06-07T00:50:52
370,943,347
0
0
null
null
null
null
UTF-8
Python
false
false
551
py
def subset_sum(numbers, target, numbers_partial=[]): s = sum(numbers_partial) if s == sum_data: print("sum(%s)=%s" % (numbers_partial, sum_data)) if s >= sum_data: return for i in range(len(numbers)): n = numbers[i] remaining = numbers[i+1:] ...
[ "giovannilopez9808@gmail.com" ]
giovannilopez9808@gmail.com
bcc0bd80a95c57ea4e1c17e3a3f7c688ac7405b3
df46ca469385ee7195a595e0653b0b712208074e
/labosi/lab-3/2015-16/by_unknown_/zadatak4.py
7eeb786c54ae4dfa478bd61379e5fe0a2ff452c7
[]
no_license
studosi-fer/SKRJEZ
5a8bf75d94c5ff2102ad0387045ce20425d9862a
777ca49132ce1aa3b020307ae1928017639b66ca
refs/heads/master
2023-03-18T06:39:19.955964
2020-07-26T18:31:05
2020-07-26T18:31:05
245,884,110
0
2
null
null
null
null
UTF-8
Python
false
false
1,273
py
import urllib.request import re import sys from urllib.parse import urlparse sourceURL=sys.argv[1] # sourceURL="http://www.python.org" reHref=r'href=[\'"]?(http[s]{0,1}[^\'" >]+)' reEmail=r'([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+)' reHost=r'href=[\'"]?(http[s]{0,1}[^\'" >]+)' reImage=r'img.*src="([^"]+)"' stra...
[ "suflajmob@gmail.com" ]
suflajmob@gmail.com
3276f418b995287b82ee4be7041bfb5a3306da76
62b05442ab8bab65c6f5fdb2dd1d2b177138689d
/tests/test_visitors/test_tokenize/test_wrong_primitives/test_partial_floats.py
059bcd801d428681c9af080f3f0c5a42e3408407
[ "MIT" ]
permissive
riyasyash/wemake-python-styleguide
70f945eb01ba0999326f15f6e3aa7316f1d5ef28
6feb7844f541bebeaa61bb21953697d9dd6c7b3f
refs/heads/master
2020-03-30T23:33:31.917181
2018-10-15T08:47:46
2018-10-15T08:47:46
151,704,550
1
0
MIT
2018-10-10T05:41:22
2018-10-05T10:24:38
Python
UTF-8
Python
false
false
1,138
py
# -*- coding: utf-8 -*- import pytest from wemake_python_styleguide.violations.consistency import ( PartialFloatViolation, ) from wemake_python_styleguide.visitors.tokenize.primitives import ( WrongPrimitivesVisitor, ) @pytest.mark.parametrize('code', [ 'x = 10.', 'print(3. + 5.1)', '.05 + 1.2',...
[ "mail@sobolevn.me" ]
mail@sobolevn.me
fa5495d225254f808e37a1930c2354299f65d29d
da052c0bbf811dc4c29a83d1b1bffffd41becaab
/core/school_assignment_ems/models/assignment.py
7292e17cf44b7628af3e2959e31bd39163c45274
[]
no_license
Muhammad-SF/Test
ef76a45ad28ac8054a4844f5b3826040a222fb6e
46e15330b5d642053da61754247f3fbf9d02717e
refs/heads/main
2023-03-13T10:03:50.146152
2021-03-07T20:28:36
2021-03-07T20:28:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,651
py
# -*- coding: utf-8 -*- from openerp import models, api, _, fields from openerp.exceptions import Warning import time class assignment_grade(models.Model): _name = 'assignment.grade' _description = 'Assignment Grade' _order = 'mark_to desc' name = fields.Char('Grade Name', required=True) mar...
[ "jbalu2801@gmail.com" ]
jbalu2801@gmail.com
a647f44cd2f1922c1baeeb37798e524b6566a837
de3d5de80563460967869ea1ac80fcf31a59f339
/tests/test_flow_if.py
f146ecf336c0f72d67c8ceb2b6c4167297bcdf34
[ "MIT" ]
permissive
Cologler/bytecode2ast-python
e232b37640a8ad8f6f3fb6a79456759163421e0c
407b261a493e018bc86388040ddfb6fb0e4b96d9
refs/heads/master
2020-05-20T02:33:31.899915
2019-05-20T16:52:49
2019-05-20T16:52:49
185,335,283
0
0
null
null
null
null
UTF-8
Python
false
false
2,119
py
# -*- coding: utf-8 -*- # # Copyright (c) 2019~2999 - Cologler <skyoflw@gmail.com> # ---------- # # ---------- import dis from bytecode2ast import parse_func, create_module def get_func_from_exec(code, name): g = {} exec(code, g, g) return g[name] def get_instrs(func): return list(dis.Bytecode(func)...
[ "skyoflw@gmail.com" ]
skyoflw@gmail.com
65c9d677c27152e641dc899e4b691a3bbafe1b16
869a71288259ccc336d6417e9d21ea796600170d
/memex_images/manage.py
519360d4437e4c28ec7ab2774cfa05110b58d613
[]
no_license
quasiben/image_space
ffcecd40ab5418caa09b3c0559747b56108bbdcf
811180d5b39cef20e2e3322c650de9602d6afb29
refs/heads/master
2020-06-05T11:01:28.786045
2015-02-09T15:46:59
2015-02-09T15:46:59
30,542,560
0
0
null
null
null
null
UTF-8
Python
false
false
255
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "memex_images.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "quasiben@gmail.com" ]
quasiben@gmail.com
8403a59bde817672166590a1d9dcadda3f318505
f6db8d85a3b41eed543959314d65927353a8229c
/W5/geolocation/__init__.py
8b756ebd8f04510cbe452cd7fd83ac169f437c93
[]
no_license
NFEL/DjangoPaeez99
d573cc8e36500f08bc104d76f7a2628062d86c2f
621636bfb47d71f2a4f45037b7264dd5ebc7cdd7
refs/heads/main
2023-01-27T22:05:57.788049
2020-12-08T10:08:28
2020-12-08T10:08:28
304,553,353
1
2
null
2020-10-16T07:33:04
2020-10-16T07:33:03
null
UTF-8
Python
false
false
101
py
from geopy.geocoders import Nominatim ,Bing geolocator = Nominatim(user_agent='Mapsafood@gmail.com')
[ "nfilsaraee@gmail.com" ]
nfilsaraee@gmail.com
3752e3ea8c6de8bd559c7ce36e044ba93dd3c453
1919fc2555dbcb6b865fdef0cc44c56c6c47e2f0
/chapter_5/demo_5_21.py
5f61bf7630c0629300e1a35932aaeb72e84a7427
[]
no_license
ender8848/the_fluent_python
10f8dd98fcf206b04ea6d34f47ad5e35f896a3ac
058d59f6a11da34e23deb228e24a160d907f7643
refs/heads/master
2022-12-19T07:51:51.908127
2019-01-17T09:53:33
2019-01-17T09:53:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
578
py
''' 示例 5-21 使用 reduce 函数和一个匿名函数计算阶乘 ''' from functools import reduce def fact(n): return reduce(lambda a, b: a * b, range(1, n+1)) ''' operator 模块为多个算术运算符提供了对应的函数, 从而避免编写 lambda a, b: a*b 这种平凡的匿名函数。 使用算术运算符函数,可以把示例 5-21 改写成示例 5-22 那样。 示例 5-22 使用 reduce 和 operator.mul 函数计算阶乘 ''' from operator import mul def fact_(n...
[ "js_huang@foxmail.com" ]
js_huang@foxmail.com
23d7b67d4d51c86946a54d47aca2ec5dc6a217a7
832f86e052d90916fb0c8156825c87dc13c0443e
/imported-from-gmail/2020-03-03-power-function.py
1014baaacc2be85d5e3775da17fb2f94525b6ea0
[]
no_license
johncornflake/dailyinterview
292615849cea62cb945ecc7039c594b6966a81f3
91bb0edb9e25255e6222279109c15ae9d203970c
refs/heads/master
2022-12-09T21:02:12.204755
2021-06-07T13:09:34
2021-06-07T13:09:34
225,059,833
0
0
null
2022-12-08T11:27:38
2019-11-30T19:24:58
Python
UTF-8
Python
false
false
447
py
Hi, here's your problem today. This problem was recently asked by AirBNB: The power function calculates x raised to the nth power. If implemented in O(n) it would simply be a for loop over n and multiply x n times. Instead implement this power function in O(log n) time. You can assume that n will be a ...
[ "chadeous@gmail.com" ]
chadeous@gmail.com
752eba3ba13ddbfaea185b0aed104d0b51ebaab9
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/116/usersdata/193/25986/submittedfiles/al1.py
baa3d73d4e9d0b9247ea4c52115476f1e445bea7
[]
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
110
py
from __future__ import division #INICIE AQUI SEU CODIGO R=float(imput('digite R')) H=float(imput('digite H'))
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
9304a249477f4746a5ad9898a4a020bdeb109278
b08d42933ac06045905d7c005ca9c114ed3aecc0
/src/coefSubset/evaluate/ranks/fifth/rank_3uyo_E.py
4e77bd1da081acfd048dca74d7f43f59c2e1c4d3
[]
no_license
TanemuraKiyoto/PPI-native-detection-via-LR
d148d53f5eb60a4dda5318b371a3048e3f662725
897e7188b0da94e87126a4acc0c9a6ff44a64574
refs/heads/master
2022-12-05T11:59:01.014309
2020-08-10T00:41:17
2020-08-10T00:41:17
225,272,083
1
0
null
null
null
null
UTF-8
Python
false
false
3,204
py
# 9 July 2019 # Kiyoto Aramis Tanemura # Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess...
[ "tanemur1@msu.edu" ]
tanemur1@msu.edu
b91c155df0eeceeb0bd53ece22636c0be3837594
fb8909f8ca2418e3ee25469073fa06636c3d294b
/src/unity/python/turicreate/test/test_util.py
b6b33f6d066b6fbd6e72ff3289e0a60eb5e190e4
[ "BSD-3-Clause" ]
permissive
fossabot/turicreate
a1e9d95fc1f68e7074d1d8024ffd64de82463d39
a500d5e52143ad15ebdf771d9f74198982c7c45c
refs/heads/master
2020-12-02T21:45:09.045339
2019-12-31T17:50:02
2019-12-31T17:50:02
231,127,861
0
0
BSD-3-Clause
2019-12-31T17:50:01
2019-12-31T17:50:00
null
UTF-8
Python
false
false
12,467
py
# -*- coding: utf-8 -*- # Copyright © 2017 Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can # be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause from __future__ import print_function as _ from __future__ import division as _ from...
[ "znation@apple.com" ]
znation@apple.com
853ebf7e79f341ab0f826b7b07e88bc0937a6f65
066527f0af119da300f898ac2584f0988b19da44
/code/spider_and_thread/ui.py
44375fbf32f3be5d58e491484853b0a7b24a63cc
[]
no_license
swain-s/paper
be2e074da22f1388fcaa725c1fa0fa6646066216
f56525a4b0e28b52a80161d7efc4c7526f08665a
refs/heads/master
2023-02-19T12:58:14.154504
2021-01-18T10:41:11
2021-01-18T10:41:11
325,462,016
0
0
null
null
null
null
UTF-8
Python
false
false
3,740
py
from tkinter import * import threading import time #************* Moudle ************************** class m_event(object): def __init__(self, op, v_queue): self.op = op # add, delete, update self.title = "news tittle" # class, tittle, message self.message = [] # class...
[ "shenkun@bupt.edu.cn" ]
shenkun@bupt.edu.cn
5d7ebb5410312432ea5773de85c9850cc9c04e54
4a0f2cc27cd39b8b8901ade728f3b1dc20c2a2ee
/unit_tests/test_BsPerson.py
89d5799c96a26e12b98f18c6da7e1c298d56aa09
[]
no_license
teamlm2/lm2_mgis
2c016423983a31fcdf15e34508401acf48177f35
9144b1234b25665737986995bd1da7492871151c
refs/heads/master
2021-11-11T23:43:12.647749
2021-10-26T07:55:58
2021-10-26T07:55:58
155,568,182
0
1
null
null
null
null
UTF-8
Python
false
false
2,420
py
__author__ = 'B.Ankhbold' import unittest from trunk.utils.SessionHandler import SessionHandler from trunk.model.BsPerson import BsPerson from trunk.model.ClPersonType import ClPersonType from trunk.model.ClGender import ClGender from trunk.model.AuLevel1 import AuLevel1 from trunk.model.AuLevel2 import AuLevel2 from ...
[ "aagii_csms@yahoo.com" ]
aagii_csms@yahoo.com
9d0418bb9ffeb90fcec1ab546e5e74e79553178a
3e5ecad4d2f681f2f4f749109cc99deea1209ea4
/practicekeras/prkeras04_sum.py
f4c5358338ffdf9f328d45ba5b463e67eee95fa6
[]
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
1,908
py
# ensemble lstm 과 dense의 조합 # lstm 함수는 저장된 함수 불러오기 # r2구하기 # predict값도 함께 구하기 # lstm data = range(1,510) size=5 # dense data = boston housing # data 전처리(), early_stopping, hist로 그래프 출력 import numpy as np from numpy import array from tensorflow.keras.models import Sequential, Model from tensorflow.keras.layers import D...
[ "76455292+SunghoonSeok@users.noreply.github.com" ]
76455292+SunghoonSeok@users.noreply.github.com
af0af8b79978cfdde69a7d2b9521868e8c273906
d4a1ac189bd861a53dd00847e16f69209c912824
/madlibs.py
48fc0f8a7e702ee29fc39d04d0bc46b6e177db44
[]
no_license
stalukda/madlibs
742490d7c955f885321fe2018f92fc5969e6bcb9
0a1112805fe5300f240e0f28ae2b21b45666322d
refs/heads/master
2021-05-01T20:22:27.365730
2017-01-18T21:04:28
2017-01-18T21:04:28
79,293,367
0
0
null
null
null
null
UTF-8
Python
false
false
1,889
py
from random import choice from flask import Flask, render_template, request # "__name__" is a special Python variable for the name of the current module # Flask wants to know this to know what any imported things are relative to. app = Flask(__name__) AWESOMENESS = [ 'awesome', 'terrific', 'fantastic', 'neato',...
[ "no-reply@hackbrightacademy.com" ]
no-reply@hackbrightacademy.com
2064625532916af19a3f599bb19ad9ca6934848c
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p4VQE/R3/benchmark/startQiskit242.py
40e994b5a311c4613760263b3d64ea38a6433651
[ "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,315
py
# qubit number=3 # total number=9 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 collection...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
914ec3514c8c8b70adda09891a4f445a0b940703
8dbb2a3e2286c97b1baa3ee54210189f8470eb4d
/kubernetes-stubs/client/models/admissionregistration_v1beta1_webhook_client_config.pyi
b55f4cfae3ec3a769e6f374f7596a46b408e9f9b
[]
no_license
foodpairing/kubernetes-stubs
e4b0f687254316e6f2954bacaa69ff898a88bde4
f510dc3d350ec998787f543a280dd619449b5445
refs/heads/master
2023-08-21T21:00:54.485923
2021-08-25T03:53:07
2021-08-25T04:45:17
414,555,568
0
0
null
2021-10-07T10:26:08
2021-10-07T10:26:08
null
UTF-8
Python
false
false
915
pyi
import datetime import typing import kubernetes.client class AdmissionregistrationV1beta1WebhookClientConfig: ca_bundle: typing.Optional[str] service: typing.Optional[ kubernetes.client.AdmissionregistrationV1beta1ServiceReference ] url: typing.Optional[str] def __init__( self, ...
[ "nikhil.benesch@gmail.com" ]
nikhil.benesch@gmail.com
52c7cfa52fcb596bfaa361f7212123f232434523
1395576291c1e8b34981dbcbfcd0fdda020083b8
/dist_cts/dist_fleet_2.0/dist_collective_broadcast.py
c2ca47f6fdd9129a2cd5bf20fc41c52f8917b198
[]
no_license
gentelyang/scripts
a8eb8a3cc5cc5bac753f1bb12033afaf89f03404
e3562ab40b574f06bba68df6895a055fa31a085d
refs/heads/master
2023-06-06T12:38:37.002332
2021-06-15T05:09:06
2021-06-15T05:09:06
262,957,519
0
4
null
2021-01-10T08:28:11
2020-05-11T06:28:08
Python
UTF-8
Python
false
false
2,085
py
#!/bin/env python # -*- coding: utf-8 -*- # encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python #====================================================================== # # Copyright (c) 2017 Baidu.com, Inc. All Rights Reserved # #====================================================================== """ /******************...
[ "liyang109@baidu.com" ]
liyang109@baidu.com
4775d1ed09de73fdbc7664abf92bb19d1355e76a
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03304/s120249173.py
3a16f1a03af453021b409935d5806b153ae2734a
[]
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
250
py
def main(): n, m, d = (int(i) for i in input().split()) if d == 0: ans = 1/n ans *= (m-1) print(ans) else: ans = 2*(n-d)/n**2 ans *= (m-1) print(ans) if __name__ == '__main__': main()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
dc0f6e59590c1812ed89713c20d4330255cc180f
c06efd90533c51c2b29b7e92cd13723388de25ee
/actions/patchCoreV1NodeStatus.py
b41872860ed640fcef6ccd28f4963c7ccedb6c96
[]
no_license
ajohnstone/stackstorm-kubernetes
490e4a73daad3713d7c5b5b639d5f30ff1ab3e58
99ffad27f5947583a2ab1b56e80c06003d014c47
refs/heads/master
2021-01-11T23:29:49.642435
2016-12-07T13:20:34
2016-12-07T13:20:34
78,588,572
0
0
null
2017-01-11T00:48:59
2017-01-11T00:48:59
null
UTF-8
Python
false
false
726
py
from lib import k8s from st2actions.runners.pythonrunner import Action class patchCoreV1NodeStatus(Action): def run(self,body,name,config_override=None,pretty=None): myk8s = k8s.K8sClient(self.config) args = {} if body is not None: args['body'] = body else: r...
[ "andy@impulsed.net" ]
andy@impulsed.net
e1b8238e5dab1af6d4eadff2146ac7415ea32e39
fb1e852da0a026fb59c8cb24aeb40e62005501f1
/edgelm/examples/criss/save_encoder.py
68d6461a4e53e3f38035871a837cda498626e9d1
[ "LGPL-2.1-or-later", "LicenseRef-scancode-free-unknown", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
microsoft/unilm
134aa44867c5ed36222220d3f4fd9616d02db573
b60c741f746877293bb85eed6806736fc8fa0ffd
refs/heads/master
2023-08-31T04:09:05.779071
2023-08-29T14:07:57
2023-08-29T14:07:57
198,350,484
15,313
2,192
MIT
2023-08-19T11:33:20
2019-07-23T04:15:28
Python
UTF-8
Python
false
false
7,687
py
#!/usr/bin/env python3 -u # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Translate pre-processed data with a trained model. """ import numpy as np import torch from fairseq i...
[ "tage@sandbox12.t0ekrjpotp2uhbmhwy0wiwkeya.xx.internal.cloudapp.net" ]
tage@sandbox12.t0ekrjpotp2uhbmhwy0wiwkeya.xx.internal.cloudapp.net
0067abe080319c9953a7e173f9e1da75c6b1c254
6e61b1711a0876eecf8d8f258b3f92c8bbcdf496
/yes/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/iam/v1/__init__.py
2192110bd0c51f9ac473e90670e80dd94853d79b
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
lupynua/language-school
661c49a075c5ecfb4814146bac7016c6b1ff7e09
9a9d37ed4cb000379d3d49296a17b7d648c18dba
refs/heads/develop
2021-01-16T22:08:24.485744
2017-11-06T16:26:16
2017-11-06T16:26:16
64,672,552
0
0
null
2016-08-01T14:12:39
2016-08-01T14:12:39
null
UTF-8
Python
false
false
324
py
"""Common imports for generated iam client library.""" # pylint:disable=wildcard-import import pkgutil from apitools.base.py import * from googlecloudsdk.third_party.apis.iam.v1.iam_v1_client import * from googlecloudsdk.third_party.apis.iam.v1.iam_v1_messages import * __path__ = pkgutil.extend_path(__path__, __name...
[ "lupynua@gmail.com" ]
lupynua@gmail.com
c6645bc6d7b97f99d205e977873f553606245b64
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/lbqs_1227+0923/sdB_lbqs_1227+0923_lc.py
95916b7d57d0d426c26c0d1f9acb86d273f5a573
[]
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
350
py
from gPhoton.gAperture import gAperture def main(): gAperture(band="NUV", skypos=[187.592458,9.110028], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_lbqs_1227+0923/sdB_lbqs_1227+0923_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3) if __...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
02a3fa5f6b4973a09570c9010fde7bf6dc588ac7
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03105/s510299139.py
e13ac266955e164179367e020ed381b1ca7be456
[]
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
76
py
a, b, c = map(int, input().split()) if b//a < c: print(b//a) else: print(c)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
723aa0a8e62e17cc68e15d1e56557411f44c7d8c
69f83bcff8a2bd9c8ef082a2141a39a5322c4b2a
/pyenv/env/lib/python2.7/site-packages/nordicsemi/dfu/intelhex/__init__.py
102570980f1d248abc05a741f92e837add010da4
[]
no_license
md848-cornell/NRF-ROKIX-sensor-mesh
ab12f6572a992ed5c468eb08b8c4586b52b411b2
b244207af0fb0fce6e2722c384d3c6c25d5ac025
refs/heads/master
2020-05-21T10:56:15.013174
2019-05-16T16:12:11
2019-05-16T16:12:11
186,021,295
0
1
null
2020-03-07T21:39:41
2019-05-10T16:35:25
C
UTF-8
Python
false
false
49,327
py
# Copyright (c) 2005-2013, Alexander Belchenko # All rights reserved. # # Redistribution and use in source and binary forms, # with or without modification, are permitted provided # that the following conditions are met: # # * Redistributions of source code must retain # the above copyright notice, this list ...
[ "Mike DiDomenico" ]
Mike DiDomenico