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
c072c513deba039b750e3b8889e19fe875c1bdf6
53fca3fa4662a5d04e99445c3baeaaa4169083a1
/network/gnn08551_final_iter3.py
0d34db379927cd20545608c0f7c8d3cc6de81609
[]
no_license
yougoforward/Iter_ParseNet
223b99aa5eef70b83f2fa5493c26549266a11fe9
39367c3332b076678105489ce4a5cf8f250491e5
refs/heads/master
2021-07-12T20:49:19.866085
2020-09-06T12:32:35
2020-09-06T12:32:35
200,991,268
2
0
null
null
null
null
UTF-8
Python
false
false
27,649
py
import functools import torch import torch.nn as nn from torch.nn import functional as F from inplace_abn.bn import InPlaceABNSync from modules.com_mod import Bottleneck, ResGridNet, SEModule from modules.parse_mod import MagicModule from modules.senet import se_resnext50_32x4d, se_resnet101, senet154 BatchNorm2d = ...
[ "908865817@qq.com" ]
908865817@qq.com
783dd1d568ddd1d977bf4a922d2fa5e961d99b73
12977c4d2eae4bfd3b7112814a7e63c506e7bbbe
/ad_purchase_compare/__init__.py
be87bd2c85658bae154f92cdd8ca4bdaa35cc039
[]
no_license
aryaadiputra/addons60_ptgbu_2013
211f3ab9fc74cc3e3f4df770b6ada65d24b83977
b5cf28bdbb347df4c39ffe3ca32355bd2206077b
refs/heads/master
2020-04-06T04:11:37.667486
2016-11-25T03:27:54
2016-11-25T03:27:54
58,649,631
0
0
null
null
null
null
UTF-8
Python
false
false
64
py
import purchase import purchase_requisition_partner import stock
[ "aryalemon.mail@gmail.com" ]
aryalemon.mail@gmail.com
179a046688ec86cdc0a1838723c43484ef4af058
6f57761c60582c546423a2a08c769f18236fd153
/benchmarks/data/codes/run_pk_param_space.py
da414557736a952df54584c6f3e3878402cbf9b5
[ "BSD-3-Clause", "LGPL-2.0-or-later", "BSD-2-Clause" ]
permissive
LSSTDESC/CCL
30644922fead0b017c1056e628bec23cf6bc4dfb
29d46978445678d86a4bee485cb29d30246ff64a
refs/heads/master
2023-09-03T17:03:17.012019
2023-08-08T11:01:33
2023-08-08T11:01:33
57,389,367
118
68
BSD-3-Clause
2023-08-30T13:25:25
2016-04-29T14:08:38
C
UTF-8
Python
false
false
3,398
py
#!/usr/bin/env python """ Generate a set of CLASS power spectra across a set of sample points in cosmological parameter space, and compare with CCL. """ from param_space import * import os, sys # Need to specify directory containing 'class' executable CLASS_ROOT = None if len(sys.argv) > 1: CLASS_ROOT = sys.argv[1] a...
[ "philbull@gmail.com" ]
philbull@gmail.com
4db596e6c7138de5c3da2c08096ca5ff74647e04
0bc777a57e39c466a9482af9a6eda698ab3c1437
/HeavyIonsAnalysis/JetAnalysis/python/jets/akPu3PFJetSequence_PbPb_data_cff.py
51ef615578166024b0ea28233b748df5a4cde187
[]
no_license
stahlleiton/cmssw
3c78d80b9372fdf2a37f424372504b23c9dc4f78
fcfda663dc8c315b505eb6bcc7e936401c01c4d1
refs/heads/EWQAnalysis2017_8030
2023-08-23T13:50:40.837198
2017-11-09T17:45:31
2017-11-09T17:45:31
45,795,305
0
3
null
2021-04-30T07:36:28
2015-11-08T19:28:54
C++
UTF-8
Python
false
false
14,698
py
import FWCore.ParameterSet.Config as cms from HeavyIonsAnalysis.JetAnalysis.patHeavyIonSequences_cff import patJetGenJetMatch, patJetPartonMatch, patJetCorrFactors, patJets from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import * from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import * from RecoJets.JetPr...
[ "marta.verweij@cern.ch" ]
marta.verweij@cern.ch
1416874157729825714165b2eecc1af24e692c63
d3196fb38078fdbe966bd5af8a8a4f2924a47c20
/wandb/sdk/wandb_manager.py
69e8c503a571a70e1c710938889cb33c97a665cf
[ "MIT" ]
permissive
morganmcg1/client
a1ae01ea302f13a6c9850972411ecabcb900dbc6
099f7aa938fb62c5a5d3e12f7d2067196498b67c
refs/heads/master
2023-09-06T01:14:40.282234
2021-11-13T03:01:01
2021-11-13T03:01:01
427,620,124
0
0
MIT
2021-11-13T09:22:12
2021-11-13T09:22:11
null
UTF-8
Python
false
false
3,831
py
"""Manage wandb processes. Create a grpc manager channel. """ import atexit import multiprocessing import os from typing import Callable, Optional, Tuple, TYPE_CHECKING from wandb import env from wandb.sdk.lib.exit_hooks import ExitHooks if TYPE_CHECKING: from wandb.sdk.service import service from wandb.sdk...
[ "noreply@github.com" ]
morganmcg1.noreply@github.com
a778f90e545e61c423df01e02861dbf5ed9a4647
02467e9975b50c14b4dc8cdc6dc03748f9aa8245
/openshift/test/test_v1_scale_status.py
2fa26692bfeeef412de792161c348de67a929f4f
[ "Apache-2.0" ]
permissive
ashcrow/python-openshift
3995e3c4b72bf52a62bc6b07dabf3d0f709444ae
74c9ade612def941938016385842631342e926de
refs/heads/master
2021-01-11T19:29:04.419005
2017-01-18T19:31:58
2017-01-18T19:31:58
79,377,387
0
0
null
2017-01-18T19:46:04
2017-01-18T19:46:04
null
UTF-8
Python
false
false
4,142
py
# coding: utf-8 """ OpenShift API (with Kubernetes) OpenShift provides builds, application lifecycle, image content management, and administrative policy on top of Kubernetes. The API allows consistent management of those objects. All API operations are authenticated via an Authorization bearer token that is...
[ "jdetiber@redhat.com" ]
jdetiber@redhat.com
bfd99c37854c269ae7937012f17c63e5e0f061cd
223590e81400eb8192aeb0a56b36b5a80408d4b4
/House Robber III.py
584a90ed9a8be182d31caf96c6718832136be16d
[]
no_license
TianyaoHua/LeetCodeSolutions
c47fd3b6ae0bf60c0656ce12fb88290672c129ed
418172cee1bf48bb2aed3b84fe8b4defd9ef4fdf
refs/heads/master
2020-03-06T19:48:13.338630
2018-08-10T18:27:52
2018-08-10T18:27:52
127,037,907
0
0
null
null
null
null
UTF-8
Python
false
false
927
py
# Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def value(self, node, dict): if not node: return 0 elif node in dict: return dict[node] ...
[ "hua.tianyao@columbia.edu" ]
hua.tianyao@columbia.edu
1226dd2c5a9a51b542246bedd7bd3c1873fdbad6
20f951bd927e4e5cde8ef7781813fcf0d51cc3ea
/fossir/modules/auth/models/registration_requests.py
2b82b271bd15c697c17e87bacc2dcbf1d924edf3
[]
no_license
HodardCodeclub/SoftwareDevelopment
60a0fbab045cb1802925d4dd5012d5b030c272e0
6300f2fae830c0c2c73fe0afd9c684383bce63e5
refs/heads/master
2021-01-20T00:30:02.800383
2018-04-27T09:28:25
2018-04-27T09:28:25
101,277,325
0
2
null
null
null
null
UTF-8
Python
false
false
2,160
py
from __future__ import unicode_literals from sqlalchemy.dialects.postgresql import ARRAY, JSON from werkzeug.datastructures import MultiDict from fossir.core.db import db from fossir.util.locators import locator_property from fossir.util.string import format_repr, return_ascii class RegistrationRequest(db.Model):...
[ "hodardhazwinayo@gmail.com" ]
hodardhazwinayo@gmail.com
7b571d83f84608ebeeaddbfae06938549a457d9b
54d17336ca03801bd9c9ef37be8642b332ab71c4
/osm/SO/common/python/rift/mano/yang_translator/rwmano/translate_descriptors.py
2023db5a8ce00b6b1b6982b49c0b0047939c92fb
[]
no_license
dennis-me/Pishahang
2428379c4f7d3ee85df4b85727ce92e8fe69957a
cdd0abe80a76d533d08a51c7970d8ded06624b7d
refs/heads/master
2020-09-07T12:35:54.734782
2020-01-24T20:11:33
2020-01-24T20:11:33
220,782,212
2
0
null
2019-11-10T11:46:44
2019-11-10T11:46:43
null
UTF-8
Python
false
false
8,136
py
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the ...
[ "github@OrangeOnBlack.de" ]
github@OrangeOnBlack.de
7c56516f441b0a72ae06e9f44126a1862c11d9ef
8bd63bc56b39d26458ad54b7f18c4b149c1e3ce2
/sphinx-files/rst-files/Data/code/2017/07/000715/jgpwjtuaoawbmpf.py
871c670e4634997240d6eaa9ce8ab46848bc20d0
[ "CC0-1.0", "LicenseRef-scancode-public-domain-disclaimer", "LicenseRef-scancode-public-domain" ]
permissive
isabella232/scipy-central-rescue
43270c0e1850b989fbe9a5b1a06c3be11d16464a
2b331610d52c189ae96bea4f4ce2ec343146b608
refs/heads/master
2021-09-06T09:17:30.627497
2018-02-04T19:41:11
2018-02-04T19:41:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
54
py
gotOZN http://www.LnAJ7K8QSpkiStk3sLL0hQP6MO2wQ8gO.com
[ "jiayue.li@berkeley.edu" ]
jiayue.li@berkeley.edu
fed38d32e3c3d4c4c31ce116303ad6588a73d350
49cd488edb28d0433aaab9686e90ed90d134dd14
/tests/test_generator.py
c422ffbb35a6f1b2df7ba62d732e99b0d49a368f
[ "MIT" ]
permissive
Dmdv/python-fibers
349fab65a37475b2fee73bdc53960b1a289227bd
20349077843033610864935e45977cf33d16a7e1
refs/heads/master
2021-01-15T20:53:34.925672
2013-08-06T21:19:08
2013-08-06T21:19:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,434
py
import sys sys.path.insert(0, '../') import unittest import fibers from fibers import Fiber class genlet(Fiber): def __init__(self, *args, **kwds): self.args = args self.kwds = kwds Fiber.__init__(self, target=self.run) def run(self): fn, = self.fn fn(*self.args, *...
[ "saghul@gmail.com" ]
saghul@gmail.com
fac8ec60cc6c93ba0484b469e3c1814f07f23104
3b28143a893fcd6d2d0ed843db74eaf5f63fe542
/pydatagrand/callback/optimizater.py
603284a6359f1eea4369c77f94000b37cf2c16a2
[]
no_license
gaozhanfire/daguan_2019_rank9
1e2f506c11067cf66ff0fe3a2460773f71955ef6
2b77a50455d33a8d484180fa548025b5ef72dfb6
refs/heads/master
2020-08-06T17:42:54.445208
2019-09-30T12:01:41
2019-09-30T12:01:41
213,096,559
1
0
null
2019-10-06T02:03:12
2019-10-06T02:03:11
null
UTF-8
Python
false
false
66,068
py
import math import torch import operator from copy import copy import functools from math import sqrt from torch.optim.optimizer import Optimizer import itertools as it from torch.nn.utils import clip_grad_norm_ from .utils import * __call__ = ['SGDW', 'AdamW', 'AdaBound', ...
[ "1436496575@qq.com" ]
1436496575@qq.com
81ade5278aeab0a1197c12c2bde8a62122fad070
3f60b999ea7bda83c9586f75f52463dc20337f24
/sensitive_user_portrait/cron/attribute/filter_sensitive_uid_text.py
d49971916dc61266df2f85bbccec815232885978
[]
no_license
jianjian0dandan/sensitive_user_portrait
629e49ce71db92b50634bac9c828811cdb5381e9
cacc30267ebc0e621b1d48d4f1206277a0f48123
refs/heads/master
2021-01-20T23:18:07.138057
2016-05-22T12:09:40
2016-05-22T12:09:40
42,869,287
0
0
null
2015-09-21T13:55:12
2015-09-21T13:55:11
null
UTF-8
Python
false
false
4,249
py
# -*- coding: utf-8 -*- import csv import os import sys import time from elasticsearch import Elasticsearch from DFA_filter import sensitive_words_extract reload(sys) sys.path.append('./../flow1/') from csv2json import itemLine2Dict, csv2bin sys.setdefaultencoding('utf-8') f_file = open('es_error.txt', 'wb') CSV_FIL...
[ "1257819385@qq.com" ]
1257819385@qq.com
ef9249722a55ff00c9ec100a856e360d1281320d
5e255ad1360c90478393744586663741a9569c21
/linebot/v3/audience/models/create_audience_group_request.py
3d855e668830bb2b753b6d12e2288f9444ee979f
[ "Apache-2.0" ]
permissive
line/line-bot-sdk-python
d76268e8b542060d6eccbacc5dbfab16960ecc35
cffd35948238ae24982173e30b1ea1e595bbefd9
refs/heads/master
2023-08-31T22:12:31.698183
2023-08-28T01:10:09
2023-08-28T01:10:09
70,553,423
1,898
1,181
Apache-2.0
2023-09-11T05:14:07
2016-10-11T03:42:26
Python
UTF-8
Python
false
false
3,502
py
# coding: utf-8 """ LINE Messaging API This document describes LINE Messaging API. # noqa: E501 The version of the OpenAPI document: 0.0.1 Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. """ from __future__ import annotations import pprint impor...
[ "noreply@github.com" ]
line.noreply@github.com
f8e54ed7de4fa1713441907b2b002188d27537c3
d7da288db4fd9fc0bb1c60c5074f290b5f70c8ef
/Aulas Python/Conteúdo das Aulas/033/Gabarito/Exercício 1 - Gabarito.py
897f4b881fb6433e5d3d0ea8f4c4d834a4d639ac
[]
no_license
luizdefranca/Curso-Python-IgnoranciaZero
dbf4cf342b3f3efea6fb3b8cf27bf39ed92927e9
9fbf2f25e3e6fce1f1582af0bd6bc7dbc5b9f588
refs/heads/master
2020-04-09T07:17:00.735378
2016-09-12T10:51:37
2016-09-12T10:51:37
67,999,169
1
0
null
null
null
null
UTF-8
Python
false
false
613
py
""" Faça um programa com uma função chamada somaImposto. A função possui dois parâmetros formais: 1 - taxaImposto, que é a quantia de imposto sobre vendas expressa em porcentagem 2 - custo, que é o custo de um item antes do imposto. A função “altera” o valor de custo para incluir o imposto sobre venda...
[ "luizramospe@hotmail.com" ]
luizramospe@hotmail.com
9679197a61ccf26610d250d3868a81a8e7401233
3e9cdcc8847da5a2ea8391639ad8fd95592475b1
/696.py
edda7ebd43c2b347e2386e5ca317ea69007a5d58
[]
no_license
mindentropy/leetcode
ec790ed671a2224411133af127e605438bbbbe52
4a24edca5926c0b10d1a4786262dd403b12d1aee
refs/heads/master
2023-01-27T11:26:07.949478
2023-01-25T19:08:18
2023-01-25T19:08:18
233,759,165
0
0
null
null
null
null
UTF-8
Python
false
false
810
py
#!/usr/bin/env python class Solution(object): def countBinarySubstrings(self, s): strcnt = 0 i = 0 while i < len(s) - 1: j = i + 1 oppcnt = 1 eqflag = True while j < len(s): if s[i] == s[j]: if eqflag == False: break oppcnt += 1 else: oppcnt -= 1 eqflag = Fa...
[ "mindentropy@gmail.com" ]
mindentropy@gmail.com
8bf5c9cb87033d334d26c9436c9f04e4b173ba65
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/kusto/azure-mgmt-kusto/generated_samples/kusto_managed_private_endpoints_check_name_availability.py
3ccfc9a68d42bd47f54b8ba0ce14082f3885382b
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,746
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 may ...
[ "noreply@github.com" ]
Azure.noreply@github.com
f9149adc1d138f483eb14838fe57cbf12e65eec4
5de5ae0adb6fb1e73c2e897fbc13b6abf53c559b
/Applications/Equations/knapsack-1.py
98dc10ab696f6baaedba79c8b32dbe93669eedb8
[]
no_license
Trietptm-on-Coding-Algorithms/Learning-Z3
af935450226ee3299e10361f21a567945aa0fd5c
c5ef7faca49aa164556b3c7e9ccfb4709027cf74
refs/heads/master
2020-05-13T18:34:38.105308
2017-12-23T11:08:43
2017-12-23T11:08:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,109
py
# Solving knapsack problem with Z3 # # Use: # python knapsack.py # from z3 import * # from https://www.xkcd.com/287/ fruits, fries, salad, wings, sticks, plate = Ints('fruits fries salad wings sticks plate') s = Solver() s.add(fruits>=0, fries>=0, salad>=0, wings>=0, sticks>=0, plate>=0) s.add(2...
[ "me@xathrya.id" ]
me@xathrya.id
212ff7bb2d292acfcdecc48ba1e36050aa9e18ed
7b02411227428bb746e7622736dc006ee24ca925
/fhirclient/models/practitioner.py
a031183a9a28ca6bf7c19c5f0c4696218a018c6b
[]
no_license
NCATS-Tangerine/CPKG
81c74abaec8de75ad769724e84d893dec117cf97
92b6079d61bdb975a0a4bc08879f56b686ff08ef
refs/heads/master
2022-12-10T17:55:52.586808
2019-08-20T20:19:56
2019-08-20T20:19:56
202,387,355
0
0
null
2022-12-08T06:01:57
2019-08-14T16:29:04
Python
UTF-8
Python
false
false
3,478
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.1.0-0931132380 (http://hl7.org/fhir/StructureDefinition/Practitioner) on 2019-08-06. # 2019, SMART Health IT. import sys from dataclasses import dataclass from typing import ClassVar, Optional, List from .fhirabstractbase import empty_list from ...
[ "solbrig@jhu.edu" ]
solbrig@jhu.edu
b767dc6912417be37cab9363e2fe281e20c8e20d
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_lookouts.py
435d7553390587072a7651b0c3278816d229a48a
[ "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
245
py
from xai.brain.wordbase.nouns._lookout import _LOOKOUT #calss header class _LOOKOUTS(_LOOKOUT, ): def __init__(self,): _LOOKOUT.__init__(self) self.name = "LOOKOUTS" self.specie = 'nouns' self.basic = "lookout" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
bb918660688b08138dfff3f921550e5811812b22
6ed01f4503fc9de234a561c945adff7cf4b1c81b
/dcsTools/logTools/LogAnalizer.py
b87902b91912124b60bb08ef9caa08a1222ab954
[]
no_license
ostwald/python-lib
b851943c913a68424a05ce3c7b42878ff9519f68
9acd97ffaa2f57b3e9e632e1b75016549beb29e5
refs/heads/master
2021-10-28T06:33:34.156095
2021-10-21T23:54:49
2021-10-21T23:54:49
69,060,616
0
1
null
2018-06-21T16:05:30
2016-09-23T21:04:46
Roff
UTF-8
Python
false
false
2,332
py
""" tool for analyzing catalina.out log files e.g., "C:/Documents and Settings/ostwald/My Documents/DCS/Log Analysis/Catalina Logs/dcc-log.txt" parses the log file and returns a list of Request objects """ import string import sys import os import re from time import strptime, strftime, gmtime, localtime, asctime...
[ "ostwald@ucar.edu" ]
ostwald@ucar.edu
f27e2f2cc8ef12eb3d323fbd3190a05d27836935
404a8596d3c4a55efe57e6fe5f2f19747a487e28
/baekjoon/5565_receipt.py
aea7c94e573bc71e5e01f4d21b41b01260efb873
[]
no_license
taehwan920/Algorithm
370b72e48ba404ae1fb7a7786165b88a8daf090a
f837034d0c2f7cac370eb8cceacb8b3827ec62f9
refs/heads/master
2021-08-17T07:14:33.594428
2021-01-01T14:26:35
2021-01-01T14:26:35
237,892,425
0
0
null
null
null
null
UTF-8
Python
false
false
68
py
n = int(input()) for i in range(9): n -= int(input()) print(n)
[ "taehwan920@gmail.com" ]
taehwan920@gmail.com
71d201020a8661345685b3fe0dcde8ba8c88b1f4
49ba5356bdc5df7dd9803b56fe507c5164a90716
/plus-one/test_solution.py
574ad18d65637674d36fc84b6ad97ac231f5ded6
[]
no_license
uxlsl/leetcode_practice
d80ad481c9d8ee71cce0f3c66e98446ced149635
d8ed762d1005975f0de4f07760c9671195621c88
refs/heads/master
2021-04-25T18:12:28.136504
2020-03-11T07:54:15
2020-03-11T07:54:15
121,472,384
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
from solution import Solution def test_solution(): s = Solution() assert s.plusOne([1]) == [2] assert s.plusOne([1, 2, 3]) == [1, 2, 4] assert s.plusOne([1, 2, 9]) == [1, 3, 0] assert s.plusOne([9, 9, 9]) == [1, 0, 0, 0]
[ "songlin.lin@yundata.com" ]
songlin.lin@yundata.com
d4dcf28a56df6392227f886cba49f02edc0a4425
9152c6f5b692694c4cb95725319fc8dd21d30455
/tests/test_sharepoint_group.py
35ff7ddb18dd00b39d3d1f90d47262fff460b3cf
[ "MIT" ]
permissive
VISIN9/Office365-REST-Python-Client
cf3de86a6bdd2461ff5814dbfa02d4d4185917d5
91c07d427a76197f6eb143c6253bdc832cbb889d
refs/heads/master
2021-05-25T08:43:35.530546
2020-04-06T20:24:53
2020-04-06T20:24:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,336
py
from tests.sharepoint_case import SPTestCase class TestSharePointGroup(SPTestCase): @classmethod def setUpClass(cls): super(TestSharePointGroup, cls).setUpClass() cls.target_user_name = "i:0#.f|membership|mdoe@mediadev8.onmicrosoft.com" target_group_name = "Communication site Visitors...
[ "vvgrem@gmail.com" ]
vvgrem@gmail.com
edee59048bf7db2a486cc4da27fba9608ec32e7a
909ae0ab0f4fe78de433c3d72b34b84848303ee8
/lending-club/venv/bin/jupyter-kernel
d0fe4631191e2897d3d90fd697e3b7c5e8f6b55c
[]
no_license
jakekasan/data-science
f5cf2a7c0ead56e04a3549b930ca974495faae49
4bf589c268c517525abf3170c24cf42e0ae872cf
refs/heads/master
2021-09-17T21:18:51.278247
2018-07-05T07:31:51
2018-07-05T07:31:51
114,106,343
1
0
null
null
null
null
UTF-8
Python
false
false
280
#!/Users/jakubkasan/coding/data-science/lending-club/venv/bin/python3.6 # -*- coding: utf-8 -*- import re import sys from jupyter_client.kernelapp import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "jake.kasan@gmail.com" ]
jake.kasan@gmail.com
384b044a26741c3691f5aad15dccf32d43789fcd
184310f55b58e854dc3b6c58599ef99bc4c95739
/hujian_api/API_service/TestCase/Attendance_analyse_late_02.py
f08ad74fb962f34245281fa4384265995c3344b0
[]
no_license
tanjijun1/Python_API
c8585821a627c399fea1ab31bb024be6b82dd3ab
3c4771875870ffe425d2d39fc28a50449b1752f2
refs/heads/master
2023-01-07T23:30:30.284433
2020-11-11T08:43:10
2020-11-11T08:43:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
20,314
py
import pytest import allure import requests import json import time from Params.params import Login from Params.params import Login_info from Params.params import Password_reset from Params.params import Log_info from Params.params import Log_latest from Params.params import Log_list from Params.params import Attenda...
[ "1065913054@qq.com" ]
1065913054@qq.com
3278d42f28e4adebbe01bf582c688739941488df
8e95e79840005f6c34dfb978e8fe6e0ec4f7f643
/9_Introduction to PySpark_/33_Test vs Train.py
658938186f8e89f8ce821abc3d047cec0a15515f
[]
no_license
Naysla/Machine_Learning
a0593cac41ef1561f14bec55780570b82fc37720
e75d5cd2894ccb005228ab3da87dde9025385a08
refs/heads/master
2023-02-01T17:19:32.413609
2020-12-22T20:36:45
2020-12-22T20:36:45
323,708,628
0
0
null
null
null
null
UTF-8
Python
false
false
1,086
py
#Test vs Train #After you've cleaned your data and gotten it ready for modeling, one of the most important steps is to split the data into a test set and a train set. After that, don't touch your test data until you think you have a good model! As you're building models and forming hypotheses, you can test them on your...
[ "60472499+Naysla@users.noreply.github.com" ]
60472499+Naysla@users.noreply.github.com
92694715d35c931f58ea9fdacff0c277bec3d3a8
5ffed81ced523b6e417b4e48d20380b6f16f8f42
/exam/football_souvenirs.py
867e2341fa443122f3abe1f9ea0b7f84ec5776db
[]
no_license
Nikoletazl/Basics-Python
0f3f095bd51f9546c681e3cdd268232de88749ab
17aef1b95814f13a02053681aae3e617e56f2fe6
refs/heads/main
2023-08-14T15:48:48.450249
2021-10-08T15:02:35
2021-10-08T15:02:35
415,027,622
1
0
null
null
null
null
UTF-8
Python
false
false
2,959
py
team = input() souvenirs = input() count_souvenirs = int(input()) if souvenirs == "flags": if team == "Argentina": price = count_souvenirs * 3.25 print(f'Pepi bought {count_souvenirs} {souvenirs} of {team} for {price:.2f} lv.') elif team == "Brazil": price = count_souvenirs * 4.2...
[ "noreply@github.com" ]
Nikoletazl.noreply@github.com
132631fbc191c0d961db1e6783c48e19d8e8fd46
72d7cfbdd02f77300edb0f5e4104a1a147048ade
/djangoproject/myproject/users/migrations/0001_initial.py
e5e66726f68bb3366e771d7f04511d21d385f875
[]
no_license
simrangrover5/batch430
33f3e59b7d2c70f87d796cc869855975ffef976a
ec841051d3a84cd56515aeff3b9d328cebea3705
refs/heads/master
2020-12-18T09:21:12.518412
2020-02-11T12:40:48
2020-02-11T12:40:48
235,325,192
1
3
null
null
null
null
UTF-8
Python
false
false
608
py
# Generated by Django 3.0.1 on 2020-01-27 11:30 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Adduser', fields=[ ('username', models.Char...
[ "simrangrover5@gmail.com" ]
simrangrover5@gmail.com
5ef8097cf66e2db0fa6b7d8d2d11a22a0d3f97e1
ce75bce747bf60b364bc2e516824fc69c64a7eec
/opengever/maintenance/scripts/archive/04_fix_ai_refnums.py
ede9e2ca2e686c1b7c72846ef4c543e7a57ffdfb
[]
no_license
4teamwork/opengever.maintenance
c94e470af31f891d0969877533e5acd37369f70f
f2b9866fb6cce1d24e29b084b757eec857119479
refs/heads/master
2023-07-28T17:57:09.619138
2023-07-14T13:08:20
2023-07-14T13:08:20
14,493,557
2
0
null
2023-08-31T09:07:21
2013-11-18T13:46:30
Python
UTF-8
Python
false
false
6,511
py
from Acquisition import aq_inner from Acquisition import aq_parent from opengever.base.adapters import CHILD_REF_KEY from opengever.base.adapters import DOSSIER_KEY from opengever.base.adapters import PREFIX_REF_KEY from opengever.base.adapters import REPOSITORY_FOLDER_KEY from opengever.base.interfaces import IReferen...
[ "david.erni@4teamwork.ch" ]
david.erni@4teamwork.ch
ad5d1b7bda9bd683170c32f6da305b9a691513ef
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/ec_14270-1828/sdB_ec_14270-1828_lc.py
bdc07f94a156888a89f067ad64026758d3d61ea9
[]
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=[217.450125,-18.693147], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_ec_14270-1828/sdB_ec_14270-1828_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3) if __...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
7fc60fb3e6e5e97749994890220137591cb4ec56
51f6443116ef09aa91cca0ac91387c1ce9cb445a
/Curso_Python_3_UDEMY/banco_dados/incluir_contato.py
79c073a92c51debf70d449c7b8897597efd60f36
[ "MIT" ]
permissive
DanilooSilva/Cursos_de_Python
f449f75bc586f7cb5a7e43000583a83fff942e53
8f167a4c6e16f01601e23b6f107578aa1454472d
refs/heads/main
2023-07-30T02:11:27.002831
2021-10-01T21:52:15
2021-10-01T21:52:15
331,683,041
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
from mysql.connector.errors import ProgrammingError from db import nova_conexao sql = 'INSERT INTO contatos (nome, tel) VALUES (%s, %s)' args = ('Danilo', '94955-2951') with nova_conexao() as conexao: try: cursor = conexao.cursor() cursor.execute(sql, args) conexao.commit() except Prog...
[ "dno.gomesps@gmail.com" ]
dno.gomesps@gmail.com
acb65fbacc27a8ad5009c305ffa87265cef993a0
be6d5ac1b415335cc7a27cf44e3afa041ef299e3
/1_3.py
764d33752a0c10e1a5835a028ea67466c05963df
[ "MIT" ]
permissive
JeffreyAsuncion/PCEP_training_2020_12
4746a28f399c499e1bc2c3bf848ce0b05ad903bd
7477fb57a526ca0efdd156811aa72fae6129b062
refs/heads/main
2023-02-05T07:52:13.374651
2020-12-20T16:50:24
2020-12-20T16:50:24
319,857,046
0
0
null
null
null
null
UTF-8
Python
false
false
200
py
print(2**3) print(2**3.) print(2.**3) print(2.**3.) print(5//2) print(2**2**3) print(2*4) print(2**4) print(2.*4) print(2**4.) print(2/4) print(2//4) print(-2/4) print(-2//4) print(2%4) print(2%-4)
[ "jeffrey.l.asuncion@gmail.com" ]
jeffrey.l.asuncion@gmail.com
4cc163174dd2cd27ea349f42f6823c5afed30126
fd41984178ffba0846fa7ab1f67c1a0843a5e3ff
/py2与py3的区别和测试/1.作业-文件的封装/dealFile.py
43f453b28ac890199b9c17686a9fc1aff0e8e72b
[]
no_license
LasterSmithKim/Python-Base
23f17472ee80f7224e96a4185775c9cd05ac7a98
27756126d999ddabf53b6bdc7114903a297464a0
refs/heads/master
2020-03-28T08:00:11.156911
2018-11-28T09:54:51
2018-11-28T09:54:51
147,939,778
0
0
null
null
null
null
UTF-8
Python
false
false
2,170
py
import csv import sys import importlib importlib.reload(sys) from pdfminer.pdfparser import PDFParser,PDFDocument from pdfminer.pdfinterp import PDFResourceManager,PDFPageInterpreter from pdfminer.converter import PDFPageAggregator from pdfminer.layout import LTTextBoxHorizontal,LAParams from pdfminer.pdfinterp import...
[ "kingone@yeah.net" ]
kingone@yeah.net
39605e2d34194fa84b99d370e31e678f2bba6463
67929a76934c8c6bdacd573e2bc5ad6c0254d69c
/pyfusion/pyfusion/conf/utils.py
73bb7d253a04345383db0865cd7f7937bf7ccef3
[]
no_license
SyntaxVoid/PyFusionDIIID
bc284b8480a8c4fc7881585c4fdd76ecc61162e4
4d19abed536f7b4d0322636828254ed3dd7a9b4c
refs/heads/master
2020-05-29T08:41:16.970539
2017-06-19T21:26:16
2017-06-19T21:26:16
69,825,057
1
1
null
null
null
null
UTF-8
Python
false
false
2,471
py
""" Useful functions for manipulating config files.""" from ConfigParser import NoSectionError import pyfusion def CannotImportFromConfigError(Exception): """Failed to import a module, class or method from config setting.""" def import_from_str(string_value): # TODO: make shortcuts for loading from withi...
[ "j.gresl12@gmail.com" ]
j.gresl12@gmail.com
ee66a6bd15526f6ff00f62a9ee1641bd9236a49f
66e06eec0d72dd0f1fbbf2985bbbda858591bffc
/2016/007-Mathsjam/CircleInTriangle.py
5c15fba7fb64885b75eff5dac15c497aec504ad1
[]
no_license
kobylin/Lab
b35cd5eba8087946d475202e4d36ef7329bb74a5
35a33d84e0de6c891c34aa2806052b5f695f527d
refs/heads/master
2021-08-30T07:12:52.955872
2017-12-16T16:14:27
2017-12-16T16:14:27
114,474,224
0
0
null
2017-12-16T16:21:33
2017-12-16T16:21:33
null
UTF-8
Python
false
false
1,004
py
from sympy import Point,Line,Circle,intersection,Triangle,N from svg import Svg C = Point(0,8) D = Point(0,2) xaxis = Line(Point(0,0),Point(1,0)) CircleD = Circle(D,2) tangentE = CircleD.tangent_lines(C)[0] E = intersection(tangentE,CircleD)[0] A = intersection(tangentE, xaxis)[0] CircleD = Circle(D,2) svg = Svg() sv...
[ "janchrister.nilsson@gmail.com" ]
janchrister.nilsson@gmail.com
2823a48cbeebcac8a5b49aeb6306ea0ebabe21e0
01f535557c2275a0c0cd91687d52c644e8176d00
/src/vtra/analysis/flow_assignment/industry_flows.py
f08d77411f7d216c3c28a8190c7613a014fea9c4
[]
no_license
mmc00/oia-transport-archive
a8eaf72751a2c11b2cc2dc475e6eed2421d75381
f89cb686704fe76c1665697b35d14caccf37f3a1
refs/heads/master
2022-03-28T17:44:41.915217
2020-01-09T16:22:10
2020-01-09T16:22:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,444
py
"""Summarise hazard data Get OD data and process it Author: Raghav Pant Date: April 20, 2018 """ import configparser import csv import glob import os import fiona import fiona.crs import rasterio from sqlalchemy import create_engine import subprocess as sp import psycopg2 import osgeo.ogr as ogr import pandas as p...
[ "tomalrussell@gmail.com" ]
tomalrussell@gmail.com
4ca5452f0df11cd0388491948693a1c50cf6a03e
6be1990abf99c85ef886b49dcea1824aabb648d3
/weixinofneolocal/weixinofneolocal/libs/PIL/GbrImagePlugin.py
ff0f60f5d130760331d401418d04076713c432fc
[]
no_license
neoguojing/cloudServer
b53ae205efe52cf0aea28dbb9e6c16c20caf991f
7c19101789b0c46474269e4c8fe00e92203e9cd7
refs/heads/master
2020-12-04T23:02:23.551479
2017-09-22T03:08:35
2017-09-22T03:08:35
67,382,984
0
0
null
null
null
null
UTF-8
Python
false
false
1,635
py
# # The Python Imaging Library # $Id$ # # load a GIMP brush file # # History: # 96-03-14 fl Created # # Copyright (c) Secret Labs AB 1997. # Copyright (c) Fredrik Lundh 1996. # # See the README file for information on usage and redistribution. # import Image, ImageFile def i32(c): return ord(c[3]) + (or...
[ "guojing_neo@163.com" ]
guojing_neo@163.com
c2afa2f4ed3d27b5eb256f45fbb043bb45179a34
e167dfb535b72f56ea3c30c498f2a74324e9e04c
/app/common/model_utils.py
7b0f98496899cb726bdd5a7ea11ccb8adc155300
[ "MIT" ]
permissive
wlmsoft/Alpha-Gobang-Zero
ebde341af3ac6ecd9b6a71fdb0decedce078d2e8
f836aee7147aa2aeb47dd8b370f94950b833718d
refs/heads/master
2023-07-23T20:40:51.448213
2021-09-02T14:42:25
2021-09-02T14:42:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
327
py
# coding:utf-8 import torch from alphazero import PolicyValueNet def testModel(model: str): """ 测试模型是否可用 Parameters ---------- model: str 模型路径 """ try: model = torch.load(model) return isinstance(model, PolicyValueNet) except: return False
[ "1319158137@qq.com" ]
1319158137@qq.com
bd15811b1f2fa433f9fbce560c2bb146a9882c43
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/built-in/nlp/Bert-text-classification_for_PyTorch/transformers/src/transformers/models/convnext/feature_extraction_convnext.py
860bda96b6d2ca7b488d2f710a55318ee5e5e41c
[ "GPL-1.0-or-later", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
7,348
py
# coding=utf-8 # Copyright 2022 The HuggingFace Inc. team. 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 r...
[ "dongwenbo6@huawei.com" ]
dongwenbo6@huawei.com
16b93229b03936799fb366deb70beeb32959ddde
16caebb320bb10499d3712bf0bdc07539a4d0007
/objc/_AVFCore.py
8eff0d83bfa6c2ce26f78a9b763e51d9f784ce49
[]
no_license
swosnick/Apple-Frameworks-Python
876d30f308a7ac1471b98a9da2fabd22f30c0fa5
751510137e9fa35cc806543db4e4415861d4f252
refs/heads/master
2022-12-08T07:08:40.154553
2020-09-04T17:36:24
2020-09-04T17:36:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
32,715
py
''' Classes from the 'AVFCore' framework. ''' try: from rubicon.objc import ObjCClass except ValueError: def ObjCClass(name): return None def _Class(name): try: return ObjCClass(name) except NameError: return None AVStreamDataParser = _Class('AVStreamDataParser') AVStrea...
[ "adrilabbelol@gmail.com" ]
adrilabbelol@gmail.com
34fbcbb5b07243310281ddcea4e59205032d636b
153da69b35f032f5b83a06f17008ba41a1b336b4
/src/demo/__init__.py
da984a42f90721752b48b31d39530ff3bf6f8ff9
[ "MIT" ]
permissive
TrendingTechnology/hspylib
6400cadf9dfe6ab5733712dcfeccf8022d61c589
c79a2c17e89fe21d00ccd9c1646a03407cd61839
refs/heads/master
2023-06-20T15:47:35.962661
2021-07-19T22:12:18
2021-07-19T23:45:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
148
py
# _*_ coding: utf-8 _*_ # # HSPyLib v0.11.1 # # Package: demo """Package initialization.""" __all__ = [ 'calculator', 'cli', 'phonebook' ]
[ "yorevs@gmail.com" ]
yorevs@gmail.com
30b2b633485473169ebe3f7392c7b57e23c0e4d2
da7a165522daea7c346693c5f32850017c482967
/leetcode/60questions/347_top_k_frequent_elements.py
b13499eff1c603b9085c6ed2ac07a357fad804ac
[]
no_license
SShayashi/ABC
19f8750919208c5ff8935638dbaab941c255f914
3cbfee0c5251c1bb0df6306166d8d4b33bf7bb2c
refs/heads/master
2021-05-04T21:06:10.720367
2020-07-11T13:59:16
2020-07-11T13:59:29
119,886,572
2
0
null
null
null
null
UTF-8
Python
false
false
939
py
from typing import List class Solution: def topKFrequent(self, nums: List[int], k: int) -> List[int]: d = {} for num in nums: d[num] = d[num] + 1 if d.get(num, 0) else 1 tmp = list(d.items()) tmp.sort(key=lambda x: x[1], reverse=True) ans = [] for i in ...
[ "sshayashi0208@gmail.com" ]
sshayashi0208@gmail.com
ff99da7f9a431c6ffe09cca96a217b4f38518c7a
52b5773617a1b972a905de4d692540d26ff74926
/.history/merge_20200722101228.py
fc5063ed0117fd9fbf7a41674a7bab7060ccc3e0
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
477
py
items = [] def mergeSort(data): if len(data) > 1: mid = len(data) // 2 leftArr = data[:mid] rightArr= data[mid:] # now to perform the merge i = 0 j = 0 k = 0 while i < len(leftArr) and j < len(rightArr): if leftArr[i] < rightArr[j]: ...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
bde3cdffacb74c379934c3b976da5ac53db144a3
51e93332b5b0221bb1b34d4b53f761d9d53e1b9c
/app/core/migrations/0001_initial.py
a88ea9f86995282d556a7ffaa56cd09c1bfd0e23
[ "MIT" ]
permissive
MaistrenkoAnton/TDD
286d0cb0d24c796f045eeac4d03f29ac3bf0ab5a
20049d08f22aeeb626a7975bbee3dc5c95c76449
refs/heads/master
2020-06-02T03:32:20.396472
2019-08-05T12:24:57
2019-08-05T12:24:57
191,021,446
1
0
null
null
null
null
UTF-8
Python
false
false
1,707
py
# Generated by Django 2.1.9 on 2019-06-09 19:47 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
[ "it2015maistrenko@gmail.com" ]
it2015maistrenko@gmail.com
710826787f7469b5c8d8e68f530a894b8067623e
f24f8a5cf1580470cf616705a220027feac9b177
/awesome/api/awesome/celery.py
ecb47c15ebd34979cbb44196e89352deda7f603a
[]
no_license
tvtrong/restapi
4f5eb4ad545ed9dd7847f63994957fdc76fc3eba
c3da498108df1e7950ea2cc003dd75f0fe5a1b60
refs/heads/master
2022-12-25T19:39:45.627411
2020-10-10T12:39:33
2020-10-10T12:39:33
302,898,797
0
0
null
null
null
null
UTF-8
Python
false
false
245
py
import os from celery import Celery os.environ.setdefault("DJANGO_SETTINGS_MODULE", "awesome.settings") celery_app = Celery("awesome") celery_app.config_from_object("django.conf:settings", namespace="CELERY") celery_app.autodiscover_tasks()
[ "phongtaitieu@gmail.com" ]
phongtaitieu@gmail.com
746774617ed9e37b03bbc24665b63b4a592bf514
baf3996414315ffb60470c40c7ad797bf4e6897f
/02_ai/1_ml/4_ml_mastery/code/chapter_09/shuffle_split.py
300dc2268fc15665661c5450849e0a375e9836d3
[ "MIT" ]
permissive
thiago-allue/portfolio
8fbbecca7ce232567aebe97c19944f444508b7f4
0acd8253dc7c5150fef9b2d46eead3db83ca42de
refs/heads/main
2023-03-15T22:10:21.109707
2022-09-14T17:04:35
2022-09-14T17:04:35
207,919,073
0
0
null
2019-11-13T18:18:23
2019-09-11T22:40:46
Python
UTF-8
Python
false
false
733
py
# Evaluate using Shuffle Split Cross Validation from pandas import read_csv from sklearn.model_selection import ShuffleSplit from sklearn.model_selection import cross_val_score from sklearn.linear_model import LogisticRegression filename = 'pima-indians-diabetes.data.csv' names = ['preg', 'plas', 'pres', 'skin', 'test'...
[ "thiago.allue@yahoo.com" ]
thiago.allue@yahoo.com
c62c24e115cdf1835d84b2b7bb4b7def2fbadcf6
5da5473ff3026165a47f98744bac82903cf008e0
/packages/google-cloud-dms/samples/generated_samples/datamigration_v1_generated_data_migration_service_stop_migration_job_async.py
a4bc8f0f5878cfe73e659344426766b46ce49d17
[ "Apache-2.0" ]
permissive
googleapis/google-cloud-python
ed61a5f03a476ab6053870f4da7bc5534e25558b
93c4e63408c65129422f65217325f4e7d41f7edf
refs/heads/main
2023-09-04T09:09:07.852632
2023-08-31T22:49:26
2023-08-31T22:49:26
16,316,451
2,792
917
Apache-2.0
2023-09-14T21:45:18
2014-01-28T15:51:47
Python
UTF-8
Python
false
false
1,959
py
# -*- coding: utf-8 -*- # Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
googleapis.noreply@github.com
fab55d204978d837e4212c08440b33872d36947d
2405752a692d003f83fa2f24272d7afa47254fc6
/dynamics/probabilistic_ensemble.py
21cd4706ea25f86a424352dc12e3a9c085389b78
[ "MIT" ]
permissive
ZhihanLee/sac-plus
1edee7724939484cf72181e0789c3e03a2542451
829c8652bc07a420e855ace696ae44de5feb5379
refs/heads/main
2023-03-09T01:27:30.775603
2021-02-21T22:46:47
2021-02-21T22:46:47
476,717,412
2
0
MIT
2022-04-01T12:46:44
2022-04-01T12:46:43
null
UTF-8
Python
false
false
8,717
py
import os import torch as th from torch import nn as nn from torch.nn import functional as F import numpy as np import pickle #TODO: # - Better to predict logvar or logstd? # - Learn logvar or keep it constant? # - Holdout loss: best ratio? save best checkpoint in epoch? individual improvement? class EnsembleLayer(nn...
[ "lucasnale@gmail.com" ]
lucasnale@gmail.com
32899d3e754390786ab649a1de26f959c3d28b8e
ebd6f68d47e192da7f81c528312358cfe8052c8d
/swig/Examples/test-suite/python/overload_template_runme.py
014ec71cbb0db5035821e801e8ec2cb7a7342c9d
[ "LicenseRef-scancode-swig", "GPL-3.0-or-later", "LicenseRef-scancode-unknown-license-reference", "GPL-3.0-only", "Apache-2.0" ]
permissive
inishchith/DeepSpeech
965ad34d69eb4d150ddf996d30d02a1b29c97d25
dcb7c716bc794d7690d96ed40179ed1996968a41
refs/heads/master
2021-01-16T16:16:05.282278
2020-05-19T08:00:33
2020-05-19T08:00:33
243,180,319
1
0
Apache-2.0
2020-02-26T05:54:51
2020-02-26T05:54:50
null
UTF-8
Python
false
false
3,596
py
from overload_template import * f = foo() a = maximum(3, 4) b = maximum(3.4, 5.2) # mix 1 if (mix1("hi") != 101): raise RuntimeError, ("mix1(const char*)") if (mix1(1.0, 1.0) != 102): raise RuntimeError, ("mix1(double, const double &)") if (mix1(1.0) != 103): raise RuntimeError, ("mix1(double)") # mix ...
[ "inishchith@gmail.com" ]
inishchith@gmail.com
a45f8d01ea3d38c88df410debafde8bacda6c399
fa8d47841322bec699cc7d507e94327b63ea4990
/phonecall/apps.py
b8f64bbad6ab58535833538758addf946deb5d88
[]
no_license
vitorh45/work-at-olist
f9fd988bd746ecab93ca94dbca70f5eb5ed5c24a
9cc68f5faa29e8ac1ad061d83b6aae745e9404c7
refs/heads/master
2020-06-14T20:12:23.604161
2018-11-12T02:18:17
2018-11-12T02:18:17
75,351,575
0
0
null
2016-12-02T02:13:14
2016-12-02T02:13:14
null
UTF-8
Python
false
false
93
py
from django.apps import AppConfig class PhonecallConfig(AppConfig): name = 'phonecall'
[ "vitorh45@gmail.com" ]
vitorh45@gmail.com
ff962c602c1f68d63c7883569742a8670659f422
e6b45b6cc01a921c3cc510f1a5fff3074dd6b2dd
/example_update1/PoissonFEMWithRobinBC_example.py
3ff8c61a39419d78d70757f91ba1ecd69df871af
[]
no_license
yoczhang/FEALPyExamples
3bd339bd5f4576630f767a758da9590a1c068410
44d9acbecb528374bc67bba50c62711384228d39
refs/heads/master
2023-07-24T21:35:50.633572
2023-07-05T02:28:13
2023-07-05T02:28:13
208,667,003
0
0
null
null
null
null
UTF-8
Python
false
false
1,646
py
#!/usr/bin/env python3 # import sys import numpy as np from scipy.sparse.linalg import spsolve import matplotlib.pyplot as plt import pyamg from fealpy.functionspace import LagrangeFiniteElementSpace from fealpy.boundarycondition import RobinBC from fealpy.tools.show import showmultirate p = int(sys.argv[1]) n ...
[ "yoczhang@126.com" ]
yoczhang@126.com
cea744c519951b1d792842fa074670506fc24208
760e1c14d056dd75958d367242c2a50e829ac4f0
/bit/338_counting_bits.py
81ff431da8a2934e28c5d1339ee654906a25b2a5
[]
no_license
lawtech0902/py_imooc_algorithm
8e85265b716f376ff1c53d0afd550470679224fb
74550d68cd3fd2cfcc92e1bf6579ac3b8f31aa75
refs/heads/master
2021-04-26T22:54:42.176596
2018-09-23T15:45:22
2018-09-23T15:45:22
123,894,744
0
0
null
null
null
null
UTF-8
Python
false
false
1,266
py
# _*_ coding: utf-8 _*_ """ __author__ = 'lawtech' __date__ = '2018/9/3 下午4:25' 给定一个非负整数 num。对于 0 ≤ i ≤ num 范围中的每个数字 i ,计算其二进制数中的 1 的数目并将它们作为数组返回。 示例 1: 输入: 2 输出: [0,1,1] 示例 2: 输入: 5 输出: [0,1,1,2,1,2] 进阶: 给出时间复杂度为O(n*sizeof(integer))的解答非常容易。但你可以在线性时间O(n)内用一趟扫描做到吗? 要求算法的空间复杂度为O(n)。 你能进一步完善解法吗?要求在C++或任何其他语言中不使用任何内置函...
[ "584563542@qq.com" ]
584563542@qq.com
8b13f453089664e22c9cd377339d493878b30f89
43e5441f74359d620be6f7f80c99622769ea9774
/venv/Lib/site-packages/cma/fitness_functions2.py
b05afae699ea080bbdbf824990670620695da9b6
[ "BSD-3-Clause" ]
permissive
33Da/deeplearn_eassy
96f1bd09fe3df907c650378215eb686e4ab2801e
82d60c5ec3aec60822d68d13f11ef1320d0bba2e
refs/heads/master
2023-02-07T15:02:00.202693
2021-01-05T05:03:22
2021-01-05T05:03:22
326,892,905
1
0
null
null
null
null
UTF-8
Python
false
false
16,742
py
# -*- coding: utf-8 -*- """versatile container for test objective functions. For the time being this is probably best used like:: from cma.fitness_functions2 import ff Tested with:: import cma, cma.fitness_functions2 cma.ff2 = cma.fitness_functions2 cma.ff2.__dict__ dff, dff2 = dir(cma.ff), dir(...
[ "764720843@qq.com" ]
764720843@qq.com
dc12825f1785f0eceb733db879c05efe907c1ac8
e912af291e1457c61606642f1c7700e678c77a27
/python/532_k-diff_pairs_in_an_array.py
b3078a0372260afbe3f7744d4defba6a128add92
[]
no_license
MakrisHuang/LeetCode
325be680f8f67b0f34527914c6bd0a5a9e62e9c9
7609fbd164e3dbedc11308fdc24b57b5097ade81
refs/heads/master
2022-08-13T12:13:35.003830
2022-07-31T23:03:03
2022-07-31T23:03:03
128,767,837
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
class Solution: def findPairs(self, nums: List[int], k: int) -> int: if k > 0: return len(set(nums) & set(n + k for n in nums)) elif k == 0: return sum(v > 1 for v in collections.Counter(nums).values()) else: return 0
[ "vallwesture@gmail.com" ]
vallwesture@gmail.com
3b7afc565fc2ff0482cafb249736d156f6f05efc
59166105545cdd87626d15bf42e60a9ee1ef2413
/test/test_ice_hockey_league.py
c6490a78cce2303eb5bfa685c644b362d39686a4
[]
no_license
mosoriob/dbpedia_api_client
8c594fc115ce75235315e890d55fbf6bd555fa85
8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc
refs/heads/master
2022-11-20T01:42:33.481024
2020-05-12T23:22:54
2020-05-12T23:22:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,309
py
# coding: utf-8 """ DBpedia This is the API of the DBpedia Ontology # noqa: E501 The version of the OpenAPI document: v0.0.1 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime import dbpedia from dbpedia.models.ice_hockey_leagu...
[ "maxiosorio@gmail.com" ]
maxiosorio@gmail.com
ccd797d9bd113bf5dbade1cb215f77a6a5b3b320
9d40c348e256bd74455521a7a11d8a4ab5d0d9f0
/setup.py
b88fc0a1a902044454101d52320b623ab903dd99
[]
no_license
tianon/etest
acf5bd2f06cf9a5024353cfc8128c3e968b889c2
01f24e46caaa3c75c48c43e59a8c03da81e06e3b
refs/heads/master
2021-01-17T20:11:43.244552
2015-05-03T15:10:06
2015-05-03T15:10:33
36,564,139
0
0
null
2015-05-30T15:38:31
2015-05-30T15:38:31
null
UTF-8
Python
false
false
2,447
py
# Copyright (C) 2014 by Alex Brandt <alunduil@alunduil.com> # # etest is freely distributable under the terms of an MIT-style license. # See COPYING or http://www.opensource.org/licenses/mit-license.php. import os from setuptools import setup, find_packages from codecs import open with open(os.path.join('etest', 'in...
[ "alunduil@alunduil.com" ]
alunduil@alunduil.com
449664c6a652f208251835430b04392c9f31857d
457d07994582657539a52d2fe8b7c24557ecc1fb
/service10/migrations/0003_auto_20190201_0630.py
0bcec6dd58bbb0c6baf0b78d282f64a82370ca3c
[]
no_license
ohsehwan/django_admin_nanum
952c91452697f1ee7718449ceceaf4e434c3da27
0478389d3a44592fd2ee6f025f2b4a66c1a2176e
refs/heads/master
2022-12-23T01:18:58.124355
2019-06-21T07:42:49
2019-06-21T07:42:49
168,487,820
3
1
null
2022-12-08T01:02:50
2019-01-31T08:11:59
JavaScript
UTF-8
Python
false
false
597
py
# Generated by Django 2.1.5 on 2019-02-01 06:30 import ckeditor.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('service10', '0002_mentor'), ] operations = [ migrations.CreateModel( name='article', fields=[...
[ "dxman@naver.com" ]
dxman@naver.com
55f57819c1d4758954960879bf878e26885de0ae
e992b76761d2cc95e55d8c21f78f9636b0f74aae
/caches/__init__.py
1611d10b35c4da8ec7150bb0321420534a499a69
[ "MIT" ]
permissive
Jaymon/caches
7d61bed61ef8d3dc8a328ee037c14a4fc994e98f
3e2aa5fcf51e8de80bea46eb117b73fb1f398e53
refs/heads/master
2023-07-20T23:13:55.461196
2023-07-12T20:33:49
2023-07-12T20:33:49
12,884,773
1
0
null
null
null
null
UTF-8
Python
false
false
1,162
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals, division, print_function, absolute_import import logging from caches.compat import * from caches.core import ( Cache, DictCache, SetCache, SortedSetCache, SentinelCache, ) from .interface import get_interfaces, get_interface, set_inte...
[ "jay@marcyes.com" ]
jay@marcyes.com
5edeb038cd1f87c8aac071184fd2fef2036abf0b
781e2692049e87a4256320c76e82a19be257a05d
/all_data/cs61a/untarred backup/122.py
887a81dc01674a92d8b5e6f55aff075abf43e9b7
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
1,076
py
def num_common_letters(goal_word, guess): """Returns the number of letters in goal_word that are also in guess. As per the rules of the game, goal_word cannot have any repeated letters, but guess is allowed to have repeated letters. goal_word and guess are assumed to be of the same length. goal...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
cea269f71a06be2e88bab6c122be7e5ec8d08c22
8a6c1d9ff5f469774ca4651d46f212474b3435bf
/base/base_driver.py
8d5ef05be8b058f89c05bfb1479b57f4c18c3888
[]
no_license
yuanyue888666/test_jinkens_001
67a68378dc518e3033a4563f0530adeb530a8646
b553d0348d967cdb6e25c7d1a46746b75f6d9512
refs/heads/master
2020-04-27T15:46:15.202764
2019-03-08T03:42:47
2019-03-08T03:42:47
174,459,619
0
0
null
null
null
null
UTF-8
Python
false
false
657
py
from appium import webdriver def init_driver(): """ 只要调用,就可以打开对应的应用程序 :return: """ # server 启动参数 desired_caps = {} # 设备信息 desired_caps['platformName'] = 'Android' desired_caps['platformVersion'] = '5.1' desired_caps['deviceName'] = '192.168.56.101:5555' # app的信息 desire...
[ "johndoe@example.com" ]
johndoe@example.com
9808dd7f6cb3c4f34d801fa34e4fda3e2717b5d7
a15b050e661c31880acc72465421f3ba4906ef06
/0x06-python-classes/101-square.py
ffd6008dce8087b7476ce7b4b8aa8ac3e838cdf3
[]
no_license
zacwoll/holbertonschool-higher_level_programming
0c483195f50a55fe0bfae5cff03c0c86719d8063
9c7dda67dc5681fd96b90d6f05ee9748a37ed8b8
refs/heads/master
2022-12-22T04:54:13.815410
2020-09-25T16:03:41
2020-09-25T16:03:41
259,412,215
0
1
null
null
null
null
UTF-8
Python
false
false
1,844
py
#!/usr/bin/python3 """Represent a Square Object with a __repr__ toString""" class Square: """A Square""" def __init__(self, size=0, position=(0, 0)): """Init""" self.__size = size self.__position = position def __repr__(self): """Square toString""" to_str = '' ...
[ "zacwoll@gmail.com" ]
zacwoll@gmail.com
4c19051a43c291779e8c00d44bd6b787249af569
20b2d61c0959023cb51be92fafe54877aecb9887
/pabi_utils/models/ir_attachment.py
574f5bb0a1d036cefea059529c50c697e945ffb3
[]
no_license
BTCTON/pb2_addons
6841a23554054f859b0c4acafb4e91bd0c3a14e4
a5bfd90c202cea894690c96d74a74fa96eb79468
refs/heads/master
2021-09-07T16:55:41.195667
2018-02-26T11:27:01
2018-02-26T11:27:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,864
py
# -*- coding: utf-8 -*- import logging import os from openerp import models, fields, api _logger = logging.getLogger(__name__) class IrAttachment(models.Model): _inherit = 'ir.attachment' @api.model def name_search(self, name, args=None, operator='ilike', limit=80): if self._context.get('domain_...
[ "kittiu@gmail.com" ]
kittiu@gmail.com
485e5433667081aaf4dc508002d827c07367437d
6bc485e593a24354e8ec6ad1284809c5748b7995
/workon/contrib/admin2/templatetags/workon_admin_forms.py
5e50c0aa768171d3c1ca93e280ff13d4969dbcbe
[ "BSD-3-Clause" ]
permissive
dalou/django-workon
fba87b6951540d7f059c8fcb79cd556573f56907
ef63c0a81c00ef560ed693e435cf3825f5170126
refs/heads/master
2021-01-20T11:09:49.314839
2018-12-29T16:56:08
2018-12-29T16:56:08
50,340,299
0
0
null
null
null
null
UTF-8
Python
false
false
1,936
py
from django import template from ..config import get_config register = template.Library() def get_form_size(fieldset): default_label_class = get_config('form_size').split(':') # Try fieldset definition at first size_by_fieldset = get_fieldset_size(fieldset) if size_by_fieldset: return size_b...
[ "autrusseau.damien@gmail.com" ]
autrusseau.damien@gmail.com
f95b3ee3fe611007015802c0361cebe21cdbccd6
2b398353f5b0529ac666ef180e9dc966474a70c0
/vspk/v6/nulink.py
7802d9c7190be35e9f30fde7416b604ce123d54f
[ "BSD-3-Clause" ]
permissive
nuagenetworks/vspk-python
e0c4570be81da2a4d8946299cb44eaf9559e0170
9a44d3015aa6424d0154c8c8a42297669cce11f9
refs/heads/master
2023-06-01T01:12:47.011489
2023-05-12T19:48:52
2023-05-12T19:48:52
53,171,411
21
18
BSD-3-Clause
2020-12-16T12:36:58
2016-03-04T23:10:58
Python
UTF-8
Python
false
false
19,510
py
# -*- coding: utf-8 -*- # # Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia # 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 copyrigh...
[ "corentin.henry@nokia.com" ]
corentin.henry@nokia.com
e7fe710c9c2d6ebda3fbd6abeb440116a6fe2d4b
90c6262664d013d47e9a3a9194aa7a366d1cabc4
/tests/storage/cases/test_KT1EyeTPvtVgJHhrUaVSNQo75AKQZSGwu9aM.py
4057d7a5c0281d83115c8389161a41dd451ce6df
[ "MIT" ]
permissive
tqtezos/pytezos
3942fdab7aa7851e9ea81350fa360180229ec082
a4ac0b022d35d4c9f3062609d8ce09d584b5faa8
refs/heads/master
2021-07-10T12:24:24.069256
2020-04-04T12:46:24
2020-04-04T12:46:24
227,664,211
1
0
MIT
2020-12-30T16:44:56
2019-12-12T17:47:53
Python
UTF-8
Python
false
false
1,130
py
from unittest import TestCase from tests import get_data from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson class StorageTestKT1EyeTPvtVgJHhrUaVSNQo75AKQZSGwu9aM(TestCase): @classmethod def setUpClass(cls): cls.maxDiff = None cls....
[ "mz@baking-bad.org" ]
mz@baking-bad.org
6f50d5f2a0f722718cb1480dd3c12c423f57a9ac
5f13ce6fb06d86f99ddcc0d8aa16cc4817ec4b03
/api.py
9c029c70498dce7666c1bcb59689c55d50bada12
[]
no_license
news-ai/news-processing
1b59f17c24da9f48d35c09db64c98fca18471bb6
1b874e186f8b9d8510dd3b47a672a7c08f98e082
refs/heads/master
2021-03-19T16:42:57.783382
2016-06-11T18:26:31
2016-06-11T18:26:31
58,774,781
0
0
null
null
null
null
UTF-8
Python
false
false
1,493
py
# Stdlib imports import logging # Third-party app imports from flask import Flask, request, jsonify from flask.ext.cors import CORS from flask_restful import Resource, Api, reqparse from raven.contrib.flask import Sentry # Imports from app from middleware.config import ( SENTRY_USER, SENTRY_PASSWORD, SENT...
[ "me@abhiagarwal.com" ]
me@abhiagarwal.com
b4118ccd20e3a44af5e0864ac2e03dd8488f8d35
a6d62bb9f4cb00fea89ff10e27b516890dc8a49a
/utils/generic_utils.py
57536f8847a50c7ab234709d48cbf404620729cc
[ "MIT" ]
permissive
WeberJulian/Wav2Vec-Wrapper
dca6be0edd25f67b9a3e2719dc5bee8b0bbdfb4f
84519cd51a4f3d9cb61de99c5712640f3cf5213d
refs/heads/main
2023-06-11T15:26:53.754106
2021-07-06T17:13:38
2021-07-06T17:13:38
383,545,362
0
0
MIT
2021-07-06T17:14:03
2021-07-06T17:14:03
null
UTF-8
Python
false
false
2,816
py
import os import re import yaml import json import torch import numpy as np from datasets import load_metric wer_metric = load_metric("wer") def calculate_wer(pred_ids, labels, processor, debug=False): labels[labels == -100] = processor.tokenizer.pad_token_id pred_string = processor.batch_decode(pred_ids) ...
[ "edresson1@gmail.com" ]
edresson1@gmail.com
47e279735f840d1e03f6ec23975d5337aa5da6bc
376e4114a1ef612ae5d0d2a53a74076870562067
/2017/R1CA/Pancake.py
91a0621901dc3c2ad74766f7eec04f93645d6b25
[]
no_license
jacegem/google-codejam-py
1890e895c56ceb6c4cbcaa4c5cae213f1cb2dd6a
4e3300021c7f54c339da92afc0974d5076d60499
refs/heads/master
2021-06-06T07:45:53.946239
2021-04-10T03:30:49
2021-04-10T03:30:49
89,255,303
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
class Pancake: def __init__(self, r, h, top, surface): self.r = r self.h = h self.top = top self.surface = surface self.used = False self.top_surface = top + surface def set_used(self, used): self.used = used def is_used(self): return self.u...
[ "jacegem@gmail.com" ]
jacegem@gmail.com
0c951d03079b7356ec0f67cbf8d87e34b58a4537
1edf4c50123a6001b30cff3ad098d566f058ed8f
/utility/dataSplit.py
d7b3bfe61f47b3d43122e90d8c00effdac2fb8d1
[]
no_license
HaohanWang/geneExpressionRepresentation
be19fa9c89b55063f22614bf6938249275264369
5e6881f7e5f3c3a04325437a4894387219e852b8
refs/heads/master
2021-01-10T17:44:36.209021
2016-05-03T05:44:19
2016-05-03T05:44:19
50,133,394
0
0
null
null
null
null
UTF-8
Python
false
false
3,246
py
import numpy as np # ids = [line.strip() for line in open('../data/ids.txt')] # # text = [line.strip() for line in open('../data/ppi_ids.txt')] # # ppi = {} # # for line in text: # items = line.split() # id1 = items[0] # id2 = items[1] # ppi[(id1, id2)] = 0 # # count = 0 # # p = [] # n = [] # np.random...
[ "haohanw@andrew.cmu.edu" ]
haohanw@andrew.cmu.edu
30665cc9a04c96f8151128447b3694303cff9e74
293b7305b86628aa92e23ea10f799b4848661aa5
/implugin/flashmsg/tests/test_models.py
6cc1793d411b7303753914717ef8ebcdde503af4
[]
no_license
socek/impaf-flashmsg
2ce751c54ff8d9e95f38a691b3579320e3ace546
4af4355934f6edf512893f7e9dacfe188179ea62
refs/heads/master
2020-04-08T20:58:21.124723
2015-08-14T18:05:55
2015-08-14T18:05:55
38,713,760
0
0
null
null
null
null
UTF-8
Python
false
false
655
py
from mock import sentinel from impaf.testing import PyTestCase from ..models import FlashMessage class TestFlasMessage(PyTestCase): _object_cls = FlashMessage def test_to_dict(self): obj = self.object(sentinel.message, sentinel.msgtype) assert obj.to_dict() == { 'message': senti...
[ "msocek@gmail.com" ]
msocek@gmail.com
1ce69a1233f5a517348185955b4ec1e46eafffd4
c7aea375046d194a5bd3c9fda615519f4374b790
/lab3/text_recognizer/networks/line_lstm_ctc.py
35205b418d4502e5425aa5d9522fd2821741b094
[]
no_license
venuraja79/fsdl-text-recognizer-project
195b16bff453df5acda65181e96f65cb98172b54
1b9d20f0de2dd5aa59af490b086f985411c60e20
refs/heads/master
2020-06-30T22:09:45.433461
2019-08-07T08:53:05
2019-08-07T08:53:05
200,964,049
0
1
null
2019-08-07T03:20:26
2019-08-07T03:20:24
null
UTF-8
Python
false
false
2,406
py
"""LSTM with CTC for handwritten text recognition within a line.""" import tensorflow.keras.backend as K from tensorflow.python.client import device_lib # pylint: disable=no-name-in-module from tensorflow.keras.layers import Dense, Input, Reshape, TimeDistributed, Lambda, LSTM, CuDNNLSTM from tensorflow.keras.models i...
[ "sergeykarayev@gmail.com" ]
sergeykarayev@gmail.com
f49719da2036ba7ff1dc02db5fb0434c2acd830a
f23a0561ed2e1f5192a2933ba3205bbc84e0172c
/ruidun_system/internet_operate/viewsets/get_monitoring_viewset.py
f7d1a4efbee6c85c9b9e2e159797e78386e57bc5
[]
no_license
TingxieLi/django-restframework
a179a794760830cedcf60c0069cb7c8d4c7127cd
3645bc3a396727af208db924c6fdee38abc0f894
refs/heads/master
2020-12-05T13:13:29.937243
2019-07-18T03:33:23
2019-07-18T03:33:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
from rest_framework import viewsets class GetMonitoringViewSet(viewsets.ReadOnlyModelViewSet): def retrieve(self, request, *args, **kwargs): # 获取视频内容,视频应该是实时传输的,这里应该怎么返回数据? pass
[ "851864721@qq.com" ]
851864721@qq.com
08f94cf25a949eefbaca4cf0a9b2fc8d254be62e
f295b56e9af284092233a724af041a91b35a9f6a
/binary-tree-level-order-traversal/binary-tree-level-order-traversal.py
eb00973a0045f605df9fbf717059748d2f4e83a2
[]
no_license
saviaga/Coding_E
7ebdf03b5eca775903ee4b863b56e26190b40029
dd21bb3b9d8905263416b206877f1a3d9416ee3f
refs/heads/main
2023-05-02T19:42:07.267054
2021-05-21T17:41:52
2021-05-21T17:41:52
334,220,320
0
0
null
null
null
null
UTF-8
Python
false
false
794
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def levelOrder(self, root: TreeNode) -> List[List[int]]: if root is None: return ...
[ "saviaga@gmail.com" ]
saviaga@gmail.com
4ce02e446ce4895df060625959a73f6d4a1e7ff2
1deda52f84b25e52a70dd26afa31c1e40a8391ac
/tools/improved-bertscore-for-image-captioning-evaluation/match_cand_refs.py
e691f1f139291d3f3ce03d32227a38703e6144ae
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jlcsilva/syncap
7ae7b7974b1c3eeb6507006a325725a67c765c7b
c8191de4e77b6ea9109f124b9f398d9f2c7d7662
refs/heads/master
2023-04-10T23:16:39.902339
2021-04-23T06:03:24
2021-04-23T06:03:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
906
py
import json import argparse from collections import defaultdict if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--refs_file') parser.add_argument('--cand_file') parser.add_argument('--output_fn') args = parser.parse_args() # Refs j = json.load(open(args.r...
[ "emanuele@di.ku.dk" ]
emanuele@di.ku.dk
79d14202170a7d08135e126bbb7479e3da932f84
09f0505f3ac1dccaf301c1e363423f38768cc3cc
/r_DailyProgrammer/Easy/C266/unittests/unittest.py
07fde993ddb932a70f2021b847e679aadef121e2
[]
no_license
Awesome-Austin/PythonPractice
02212292b92814016d062f0fec1c990ebde21fe7
9a717f91d41122be6393f9fcd1a648c5e62314b3
refs/heads/master
2023-06-21T11:43:59.366064
2021-07-29T23:33:00
2021-07-29T23:33:00
270,854,302
0
0
null
2020-08-11T20:47:10
2020-06-08T23:24:09
Python
UTF-8
Python
false
false
259
py
#! python3 import unittest from r_DailyProgrammer.Easy.C266.unittests.test_values import TEST_VALUES class MyTestCase(unittest.TestCase): def test_something(self): self.assertEqual(True, False) if __name__ == '__main__': unittest.main()
[ "{ID}+{username}@users.noreply.github.com" ]
{ID}+{username}@users.noreply.github.com
994ef013a80753d1c06d852b575d1419200b2001
631c71f4f4309668dd7a3de9e7eeef944eac2158
/src/pretix/__init__.py
9e086b08d5bc3bcda9b85a56c4141cb81d10c768
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
bhaettasch/pretix
943ee6d8cb48fccd343e2e6fa054c8c4c86f5231
5e355b400573783bdd17b1352aefcb36b0efc3f6
refs/heads/master
2021-04-18T16:19:48.121409
2021-01-05T08:23:00
2021-01-05T08:23:00
249,561,199
0
0
NOASSERTION
2020-03-23T22:48:21
2020-03-23T22:48:20
null
UTF-8
Python
false
false
28
py
__version__ = "3.15.0.dev0"
[ "mail@raphaelmichel.de" ]
mail@raphaelmichel.de
7e177a8d82713addc215fa1037b0a74cbfaafb7d
b9be3d951bfab350191092540edc6e353283d621
/.direnv/python-3.4.3/bin/rst2xml.py
94a9206c1126cc30a738a855d3950f2aca899539
[]
no_license
bekkblando/django-social
7ebd82f66c82ffa6918621e5ee7142bfa5f712d8
fe47d1babb94170e5403af9ce0f3c672c3045a0d
refs/heads/master
2020-12-11T01:40:01.429628
2015-08-18T14:24:33
2015-08-18T14:24:33
38,706,690
0
0
null
2015-07-07T18:25:26
2015-07-07T18:25:25
null
UTF-8
Python
false
false
668
py
#!/Users/BekkBlando/Documents/github/djangosocial/.direnv/python-3.4.3/bin/python3.4 # $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing Docutils X...
[ "bekkblando@gmail.com" ]
bekkblando@gmail.com
52aee0fd09b24edae3d34ee70ae4d681a2aa67da
3291359d8867e7b5ca9e8befb83629810938f903
/timetable_v3/timetable_v3/urls.py
eb0c1bca0f82d83d2d60c6e88d1f7d126e417997
[]
no_license
A-miin/timetable_v3
f9e4610800acb83f3477dcffd2b0ce1c75d2c1d0
1de0885f04beec83657672275deff22b71af2de3
refs/heads/master
2023-06-09T18:51:44.298534
2021-07-02T15:01:54
2021-07-02T15:01:54
341,462,656
0
0
null
null
null
null
UTF-8
Python
false
false
1,035
py
"""timetable_v3 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
[ "zulaykaisaeva@gmail.com" ]
zulaykaisaeva@gmail.com
2ad7d7451c252323a7b922b7ce42a3e1f7a03c10
1ec29bec73904435980eedc26b3f1e07fafb8784
/shmakovpn/tests/add_method_to_class/test_add_method_to_class.py
cbf04d3fd1befc3caed91a88242ef0ba4f9491ed
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
shmakovpn/shmakovpn_tools
4f799c803f4ebdff0e82253ec161d5977e6036cb
85090c9489b0b9fa13b6c42c91459efe9b966a3b
refs/heads/master
2023-06-08T17:32:34.591391
2021-06-17T05:22:38
2021-06-17T05:22:38
284,875,102
0
0
null
null
null
null
UTF-8
Python
false
false
1,118
py
""" The simple example that explains the impossibility of adding a method to builtin type. Author: shmakovpn <shmakovpn@yandex.ru> Date: 2020-10-01 """ import unittest class TestAddMethodToClass(unittest.TestCase): """ It is possible to add a method to a class outside of the class """ ...
[ "shmakovpn@yandex.ru" ]
shmakovpn@yandex.ru
66d3b0de7469b1683d10d96d96d69ab4acea07d3
56b36ddf920b5f43e922cb84e8f420f1ad91a889
/Hackerrank/Hackkerrank-Designer PDF Viewer.py
1c85d2e8aa255eccd12daed1cbc4d104ce1bd3ca
[]
no_license
chithien0909/Competitive-Programming
9ede2072e85d696ccf143118b17638bef9fdc07c
1262024a99b34547a3556c54427b86b243594e3c
refs/heads/master
2022-07-23T16:47:16.566430
2020-05-12T08:44:30
2020-05-12T08:44:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
564
py
#!/bin/python3 import math import os import random import re import sys # Complete the designerPdfViewer function below. def designerPdfViewer(h, word): # word = nhan # arr = [1,3,2,1] arr=[] for letter in word: index = ord(letter) - 97 arr.append(h[index]) return max(arr) * len(a...
[ "ntle1@pipeline.sbcc.edu" ]
ntle1@pipeline.sbcc.edu
07c43020b2c4de524585a2995ba0ad589f42ef70
8fd92c0a65c9b3e3912b6e8ef043656ee225880a
/datetime_examples.py
e6023b44234c3f6cfb1b822db2448812f1685d86
[]
no_license
waiteb15/py3forsci3day
9fbcbb59f1c14f3d91cb2599d7ca8b4d6ac628c4
fc664042618f0910d40e85677a2438eef5cce2b7
refs/heads/master
2020-04-25T11:24:18.697218
2019-02-28T23:40:52
2019-02-28T23:40:52
172,743,315
0
0
null
null
null
null
UTF-8
Python
false
false
988
py
#!/usr/bin/env python from datetime import date, datetime, timedelta, time today = date.today() print(today, today.year) james_bd = date(2014, 8, 1) print(james_bd) delta = today - james_bd print(delta) years = int(delta.days // 365.25) print(f"James is {years} years old") event = datetime(2019,...
[ "waiteb15@gmail.com" ]
waiteb15@gmail.com
10ebe15e221446bab08a4d897fc101f9d8a8b95f
a5aabe2e4057d78e687a57a6b560516a7cdb5836
/unsserv/common/rpc/protocol.py
688b39a308b01db7dacf58311fc8aea432c875c7
[ "MIT" ]
permissive
aratz-lasa/py-unsserv
0ffc09ddab65a11ce917d0faa8b1b5dff091e563
6f332385e55d05953186b9a8b7848bca4b878e18
refs/heads/master
2022-12-14T21:10:12.397834
2020-05-03T11:29:49
2020-05-03T11:29:49
228,329,158
5
0
MIT
2022-12-08T07:00:55
2019-12-16T07:35:20
Python
UTF-8
Python
false
false
2,808
py
import asyncio from abc import ABC, abstractmethod from dataclasses import is_dataclass, asdict from enum import IntEnum from typing import Any, Tuple, Sequence, Dict, Callable from unsserv.common.rpc.rpc import RPCRegister, RPC from unsserv.common.rpc.structs import Message from unsserv.common.structs import Node Co...
[ "aratzml@opendeusto.es" ]
aratzml@opendeusto.es
1fc201d942e296adbcf250786df3f816a80ddebd
e6c65e2e354336a4bea5b6a4ccbccd3682915fe2
/out-bin/py/google/fhir/seqex/bundle_to_seqex_test.runfiles/com_google_fhir/external/pypi__nose_1_3_7/nose/plugins/testid.py
3bd121362c001ad4cc26af2877fb5c2b5dc40673
[ "Apache-2.0" ]
permissive
rasalt/fhir-datalab
c30ab773d84983dd04a37e9d0ddec8bf2824b8a4
3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de
refs/heads/master
2021-10-09T05:51:04.593416
2018-12-21T18:11:03
2018-12-22T05:38:32
162,744,237
0
0
null
null
null
null
UTF-8
Python
false
false
125
py
/home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__nose_1_3_7/nose/plugins/testid.py
[ "ruchika.kharwar@gmail.com" ]
ruchika.kharwar@gmail.com
17ae1f4270a5e2ebf48e65265aafc3399ecba836
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/E9FwvGyad5CDbiH4C_14.py
47f2553b08320fb3dbcb4e7c16ad17e66bc52e21
[]
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
157
py
def block(lst): lista = [list(i) for i in list(zip(*lst)) if 2 in i] q = 0 for i in lista: q += len(i) - (i.index(2) + 1) return q
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
aad3ab1abf6d1299b48f107d036bf3d579323977
2a1b8a671aceda6bc446f8ce26400aa84fa444a6
/Packs/MalwareBazaar/Integrations/MalwareBazaar/MalwareBazaar.py
99c29c578cf90e95546b390eaa97f99d11e81baa
[ "MIT" ]
permissive
demisto/content
6d4722d46f0ff0beea2748e9f7de585bf91a78b4
890def5a0e0ae8d6eaa538148249ddbc851dbb6b
refs/heads/master
2023-09-04T00:02:25.618032
2023-09-03T21:56:22
2023-09-03T21:56:22
60,525,392
1,023
1,921
MIT
2023-09-14T20:55:24
2016-06-06T12:17:02
Python
UTF-8
Python
false
false
12,931
py
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 import copy import urllib3 QUERIES = { "tag": "get_taginfo", "signature": "get_siginfo", "file_type": "get_file_type", "clamav": "get_clamavinfo", "imphash": "get_imphash", "yara_rule": "get_yarainfo", ...
[ "noreply@github.com" ]
demisto.noreply@github.com
f4823491f0f44b3d340a720dbc47cf29a5a8e325
55540f3e86f1d5d86ef6b5d295a63518e274efe3
/toolchain/riscv/MSYS/riscv64-unknown-elf/lib/rv32imfdc_zba_zbb/ilp32d/libstdc++.a-gdb.py
8e9d75e886ed14abcb55b187bbbe376b0ca67b81
[ "Apache-2.0" ]
permissive
bouffalolab/bl_iot_sdk
bc5eaf036b70f8c65dd389439062b169f8d09daa
b90664de0bd4c1897a9f1f5d9e360a9631d38b34
refs/heads/master
2023-08-31T03:38:03.369853
2023-08-16T08:50:33
2023-08-18T09:13:27
307,347,250
244
101
Apache-2.0
2023-08-28T06:29:02
2020-10-26T11:16:30
C
UTF-8
Python
false
false
2,772
py
# -*- python -*- # Copyright (C) 2009-2020 Free Software Foundation, 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 the License, or # (at your option) any later versio...
[ "jczhang@bouffalolab.com" ]
jczhang@bouffalolab.com
0d1bfe45270d76b88c774d848ede4a38ee8cb120
60364a7089bc359494a4a42ba6d79c2fd0b84185
/django_extended/emailing/backend.py
ced758319243991dd06e01a4e9d2d45cbf3c16e2
[ "BSD-3-Clause" ]
permissive
dalou/django-extended
4936c77535bc4421a9f003da58a49629bc7996df
a7ba952ea7089cfb319b4615ae098579c9ab14f9
refs/heads/master
2021-10-27T09:33:28.615992
2015-12-14T14:55:33
2015-12-14T14:55:33
46,408,921
1
0
null
null
null
null
UTF-8
Python
false
false
1,698
py
from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.core.mail.backends.base import BaseEmailBackend from django.core.mail.message import sanitize_address, DEFAULT_ATTACHMENT_MIME_TYPE from django.core.mail.backends.smtp import EmailBackend from .models import * class D...
[ "autrusseau.damien@gmail.com" ]
autrusseau.damien@gmail.com
f51a2ebb6f85f0f5d06ee9ac9dd3373d5880f1d0
d17724b2ce056b435f57b16fb0cbea32e44a29c6
/Gun4PY/ftp-bruteforce.py
0f673dce18e4b54b0c7f64d8571451b8a5f6f497
[]
no_license
UgurCIL/Examples
27264d89131b4aaff46f91705a03779c4e825ad6
c1722a519836a24c8a946380e6cbcd6da963f0c5
refs/heads/master
2020-04-24T15:28:17.288204
2019-02-22T13:30:35
2019-02-22T13:30:35
172,069,050
0
0
null
null
null
null
UTF-8
Python
false
false
1,018
py
import sys from ftplib import FTP def checkAnonymous(dstIP): try: ftp = FTP(dstIP) ftp.login() print "[*] Anonymous giris acik" print "[*] Kullanici Adi : anonymous" print "[*] Parola : anonymous" ftp.close() except: pass def ftpLogin(dstIP, user, passw): try:...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
1925c14fb7975bde7b1a13295e923c9cc4a022d7
338be5c20c24e10f11f0fea4a1a156dc4e4a9922
/greenleaf/config/gunicorn.conf.py
ff0f6aab1ec9aec6ec500de100e1811f081f1fa0
[]
no_license
Jimiliani/my_python
a532c332683a0f795bff5ed6b15db5c961e017d4
28f078d9499854b2b09fbd50686beb8cfdc12227
refs/heads/master
2022-10-27T08:38:04.449331
2020-10-06T10:41:10
2020-10-06T10:41:10
241,277,471
0
1
null
2022-10-15T16:06:02
2020-02-18T05:07:19
Python
UTF-8
Python
false
false
66
py
bind = '127.0.0.1:8000' workers = 2 user = 'dima' timeout = 60
[ "dikorolyov@mail.ru" ]
dikorolyov@mail.ru
d14bf3bde060c5cda07a825296dee074f729f51f
5db0fab37c2b8a618d85d3b60fab9f806c416474
/src/python/pants/backend/go/util_rules/build_pkg_test.py
be4d1f7e5dab9561e76f8e82e785b6d2d8bc7090
[ "Apache-2.0" ]
permissive
pantsbuild/pants
4988d1ac5474ec95f94ce2218aeb759401e4b011
98cbda8545f0d58c586ed2daa76fefd729d5e0d5
refs/heads/main
2023-09-05T03:44:17.646899
2023-09-01T19:52:09
2023-09-01T19:52:09
7,209,075
2,708
593
Apache-2.0
2023-09-14T19:33:33
2012-12-17T17:39:04
Python
UTF-8
Python
false
false
6,371
py
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import os.path from textwrap import dedent import pytest from pants.backend.go import target_type_rules from pants.backend.go.target_types import GoMo...
[ "noreply@github.com" ]
pantsbuild.noreply@github.com
f6bc336f85c826b416c7a82c6d5707a2e558c142
cad999eacee16dc0e001a57f50b5d8b0f4d4ebf6
/p202.py
a2cc8d0b585a2940e0c568ce938cd4db057be5f3
[]
no_license
divyanarra0/pythonprogram
8694a41ba3b39eb44a94a693eac3f7f5f18b588b
10d8f59a472ccd4548771bad29be84a1a44854d8
refs/heads/master
2020-03-27T10:32:21.664657
2019-05-14T07:31:00
2019-05-14T07:31:00
146,427,260
0
0
null
null
null
null
UTF-8
Python
false
false
723
py
def isVowel(c): c = c.lower() if (c == 'a' or c == 'e' or c == 'i' or c == 'o' or c == 'u'): return True return False # Function to return first X vowels def firstXvowels(s, x): # String to store first X vowels result = "" for i in range(0, len(s), 1): ...
[ "noreply@github.com" ]
divyanarra0.noreply@github.com
7dc0c27e821890eced9d0802e8432f93546a7563
3ce946b7fac93c237a073c5395ba2f3d293a3c52
/src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/operations/_collection_operations.py
cb47c68b013ff541760c6fa0f4aa019997d88c17
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
imabedalghafer/azure-cli-extensions
a7e05873aaf1bfa164e89f8fe80a80e7240abc78
017848c33388d48b382414db66656965f1c1874f
refs/heads/main
2022-11-06T11:43:14.960651
2022-10-17T12:12:55
2022-10-17T12:12:55
403,272,601
2
0
MIT
2021-09-05T09:59:12
2021-09-05T09:59:11
null
UTF-8
Python
false
false
21,317
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" ]
imabedalghafer.noreply@github.com
751cf05a4a081982c332d1d32c6bfbd742ac75f9
40ca01569e9c8ed6d2312447fac604229bdeace3
/fabfile.py
bb0342de308a2dc2d08064b855fa24d83163edb7
[ "MIT" ]
permissive
deniskrumko/izyan-poker
c393c9c4cb401d3180a97075fde59ff2e371a77d
ce70c9c8f761409adad289809e5220237b312407
refs/heads/master
2021-06-14T08:59:03.364660
2020-02-11T06:48:00
2020-02-11T06:48:00
200,377,031
7
2
MIT
2021-06-10T18:43:43
2019-08-03T13:11:06
Python
UTF-8
Python
true
false
3,424
py
from fabric.api import task, local def print_msg(msg, error=False): """Print message in console.""" def green_msg(msg): """Make message green color in console.""" return '\033[92m{0}\033[00m'.format(msg) def red_msg(msg): """Make message red color in console.""" return '\...
[ "dkrumko@gmail.com" ]
dkrumko@gmail.com
576b6d9babf5c6a9873f3626e654acd855eb9a57
e547f7a92e7a1c1d79f8631f9e8ee8a93879a4eb
/src/ecpp_individual_grammar_all_states.py
b9efc69d0dd8291e782f6fe9c3c66b6e7bc673e7
[]
no_license
gsakkas/seq2parse
3c33ec7bc6cc6e4abd9e4981e53efdc173b7a7b9
7ae0681f1139cb873868727f035c1b7a369c3eb9
refs/heads/main
2023-04-09T12:29:37.902066
2023-01-18T21:32:12
2023-01-18T21:32:12
417,597,310
7
1
null
null
null
null
UTF-8
Python
false
false
58,203
py
""" Error Correcting Python Earley Parser. @author: Georgios Sakkas, Earley Parser based on Hardik's implementation """ import argparse import re # from ast import parse from pathlib import Path from collections import defaultdict, deque from itertools import product from nltk.tree import Tree from functools import p...
[ "george.p.sakkas@gmail.com" ]
george.p.sakkas@gmail.com
4fd52351a670070b2a03c71c3135823c46cdb129
4526ed71f39d70111c3787ec90b4932a183c452c
/2016/Pyquen_WToMuNu_TuneZ2_8160GeV_pythia6_reverse_cfi.py
f47777dec69a0a32fa2aa7721bb9c36a5c2f145d
[]
no_license
CMS-HIN-dilepton/MCRequest
773f414739efc529dc957a044232478b1c4f1c03
ff49d22fde2c4a006fe7fa02d4cf53d794f91888
refs/heads/master
2021-05-02T12:16:51.891664
2020-06-20T18:35:52
2020-06-20T18:35:52
45,127,457
0
0
null
null
null
null
UTF-8
Python
false
false
4,712
py
import FWCore.ParameterSet.Config as cms from Configuration.Generator.PythiaUEZ2Settings_cfi import * generator = cms.EDFilter("PyquenGeneratorFilter", comEnergy = cms.double(8160.0), aBeamTarget = cms.double(208.0), protonSide = cms.untracked...
[ "emilien.chapon@cern.ch" ]
emilien.chapon@cern.ch
b05505c9b445af3674a860fe8d4fd78dda734376
b9cd1b9758e58f00335900fd120e1d47c23600ce
/tests/test_pipeline_chipseq.py
543d39616238213767af72ed8a467fa36a735e65
[ "Apache-2.0" ]
permissive
Multiscale-Genomics/mg-process-fastq
4fb7fef68526237f06312a3f137df031a448731c
50c7115c0c1a6af48dc34f275e469d1b9eb02999
refs/heads/master
2020-04-12T06:46:01.100270
2018-11-19T16:05:03
2018-11-19T16:05:03
64,320,140
2
4
Apache-2.0
2018-11-16T16:54:54
2016-07-27T15:29:25
Python
UTF-8
Python
false
false
7,060
py
""" .. See the NOTICE file distributed with this work for additional information regarding copyright ownership. 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....
[ "mark.mcdowall@gmail.com" ]
mark.mcdowall@gmail.com
c4e2b115dbe1fb2ca6e5626b223b88a4f3dde73e
b0e67fbd4c42aba24f7d4bccb99e9aa037c0b7d5
/lda/train_LDA.py
39ade7589cc4a9b7f6176b106691125a03142547
[]
no_license
gombru/SocialMediaWeakLabeling
f979aea8218be115758ff8e1e9a945a701ac99b9
518437903ba7370a4098303a41196a08f1d6a58e
refs/heads/master
2022-02-26T17:49:08.997335
2022-02-10T12:54:57
2022-02-10T12:54:57
84,461,511
15
4
null
null
null
null
UTF-8
Python
false
false
5,004
py
# Trains and saves an LDA model with the given text files. from nltk.tokenize import RegexpTokenizer from stop_words import get_stop_words from nltk.stem.porter import PorterStemmer from gensim import corpora, models import glob import string import random import numpy as np whitelist = string.letters + string.digit...
[ "raulgombru@gmail.com" ]
raulgombru@gmail.com
09b194ff61b3e409331b5fb117555aaaa998c26a
52b5773617a1b972a905de4d692540d26ff74926
/.history/find_max_20200722114432.py
63139ffb63e0f85ee0899b804e0ff82130382654
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
items = [6,20,8,19,56,23,87,41,49,53] def find_max(items): # Breaking condition if len(items) == 1: return items[0] op1 = items[0] op2 = find_max(items[1:])
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
907769470c06a9adb96a73b04f9ea62d43e0d19c
0ee4debe412b996de7f5a592800515ae7104c5a5
/scripts/artifacts/fitbitHeart.py
6710cc413d11222ce7d902507ea13b4b8ec52313
[ "MIT" ]
permissive
kibaffo33/ALEAPP
af7eebd9d4ab078c57c4108ebab0c80c89df8630
ca50b7d665dccb846ff601b7b797d754eb8100d9
refs/heads/master
2022-06-15T03:55:37.407875
2022-06-13T20:39:47
2022-06-13T20:39:47
243,058,738
1
0
null
2020-02-25T17:29:43
2020-02-25T17:29:36
null
UTF-8
Python
false
false
1,477
py
import sqlite3 import textwrap from scripts.artifact_report import ArtifactHtmlReport from scripts.ilapfuncs import logfunc, tsv, timeline, is_platform_windows, open_sqlite_db_readonly def get_fitbitHeart(files_found, report_folder, seeker, wrap_text): file_found = str(files_found[0]) db = open_sqlite_db...
[ "abrignoni@gmail.com" ]
abrignoni@gmail.com