blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
⌀
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
a369eb768bede74a941e6a7f1b78805a3808bd47
b7b71d87de87b12417fd99fc6277085ef5195ebd
/lektira.py
8b4a771e3d0873a4b04734f3450b6524e66111a0
[]
no_license
botaklolol/Kattis
30d8d826160f7bc49cd9fb871d1d61dd1b9ca522
43ccd2c52c3ea519a3d5ad0ef372bab55ec20d45
refs/heads/master
2022-03-27T02:43:55.090517
2019-12-27T03:30:32
2019-12-27T03:30:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
import sys def smallest(word): min_sofar = word n = len(word) for i in xrange(1,n+1): for k in xrange(i+1, n): parts = [word[:i],word[i:k], word[k:]] new_w = "".join(["".join(reversed(w)) for w in parts]) if new_w < min_sofar: min_sofar = new_w print min_sofar def main(): small...
[ "hermon@tresata.com" ]
hermon@tresata.com
695c9fddfc2192faf0cadbfc9df44a3bd247768f
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/332/usersdata/304/95971/submittedfiles/pico.py
46406e8072434dd2d4445b25184eb756cbe4a4db
[]
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
465
py
# -*- coding: utf-8 -*- def pico(lista): #CONTINUE... conta = 0 contb = 0 contc = 0 for i in range(1,len(a),1): if(a[i]>a[i-1]) and contb==0: conta=conta+1 elif(a[i]<a[i-1]): contb=contb+1 else: contc=contc+1 break if conta...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
a242419fb3bc0c0d4aa12494b1c55d288c54cbb9
0d8426779d2a56f55d32f7b2c51b932a252a3e37
/openstack/identity/v3/project.py
582d083d5d94fbe545f8e2136b2acfcf9b5f839b
[ "Apache-2.0" ]
permissive
sivel/python-openstacksdk
3a2785e85c7e44156c1cdc9c34257372fe0a2dde
85c6a42c8f983b467c79e5dacdfdc996657250b1
refs/heads/master
2021-01-12T20:49:22.958672
2014-09-19T12:37:20
2014-09-19T12:37:20
24,230,938
1
0
null
null
null
null
UTF-8
Python
false
false
1,129
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 t...
[ "jamielennox@redhat.com" ]
jamielennox@redhat.com
25aa1d2780d2ef7ee28051af9b57c815442c102f
aa5af5dbd8ed3d8469e44e9f7f0ba211e81d0fcf
/oil_library/initializedb.py
33d3664466cf2654dfe7cabbc4995a7f50292bc3
[]
no_license
simonweppe/OilLibrary
f5ffc7c9360a4921b37218bfd51ad6f4beceabf9
015e5a71ee8071c613067a212c6c85ec4c7aa75e
refs/heads/master
2021-06-15T21:54:07.465587
2017-05-01T20:08:48
2017-05-01T20:08:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,269
py
import os import sys import logging import transaction from sqlalchemy import engine_from_config from .oil_library_parse import OilLibraryFile from .models import DBSession, Base from .init_imported_record import purge_old_records, add_oil_object from .init_categories import process_categories from .init_oil import...
[ "james.makela@noaa.gov" ]
james.makela@noaa.gov
3f382edccc9708085f53169241ad4b3ce84de6ba
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part010237.py
2289a2f21ea5721b7bd19aa6d09b875107b6ff7d
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
1,300
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
a36c69dfd199b3735eccc76a667ca01cc01b4a48
6f10b0f7f3ead596714f7f3cc130173d259cb3f6
/v1/cluster_shell.py
96ec7086fbbbf63f31a4fb1d0bdd51afbc0d5dc1
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
sajuptpm/starlingx_cgtsclient
cfd6931223fc9238c3155cecbe830533a9722d98
4abea76e4c08dc1fae8e541b47491fa6ca5e603b
refs/heads/master
2020-04-08T11:39:13.355361
2018-11-27T10:03:26
2018-11-27T10:03:26
159,314,385
0
0
null
null
null
null
UTF-8
Python
false
false
4,433
py
#!/usr/bin/env python # # Copyright (c) 2016-2018 Wind River Systems, Inc. # # SPDX-License-Identifier: Apache-2.0 # # vim: tabstop=4 shiftwidth=4 softtabstop=4 # All Rights Reserved. # from cgtsclient.common import utils from cgtsclient import exc from cgtsclient.v1 import cluster as cluster_utils import os def _p...
[ "sajuptpm@gmail.com" ]
sajuptpm@gmail.com
70583e5bdd2ac371acd256f9deb6362e5ee7919b
567e89b21aca23db5f14032889fdd1cb7c7700f7
/Kaggle.py
2ca5b3e2f224fe2e32ae4de4edef1796ee9c0f5e
[]
no_license
MarcPartensky/Python-2018
7ab83d42eb28b34bed88fc6fb77892e62094dd8d
27d2a57a6b6d6cdaa883fd2ce55e1c5eefd13ccc
refs/heads/master
2020-04-17T13:12:41.448439
2019-01-19T23:55:05
2019-01-19T23:55:05
166,605,846
0
0
null
null
null
null
UTF-8
Python
false
false
354
py
import pandas as pd main_file_path = '../input/train.csv' # this is the path to the Iowa data that you will use data = pd.read_csv(main_file_path) # The cod below will help you see how output appears when you run a code block # Run this code block with the control-enter keys on your keyboard. Or click the blue botton...
[ "marc.partensky@gmail.com" ]
marc.partensky@gmail.com
22c4bfd376c3d40a3db10637054e09be4424152d
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/ec_09174-1033/sdB_EC_09174-1033_coadd.py
cf096fb23be4f1afbf351d34dec4753ecbd5ec5e
[]
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
439
py
from gPhoton.gMap import gMap def main(): gMap(band="NUV", skypos=[139.968292,-10.775531], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_EC_09174-1033/sdB_EC_09174-1033_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sd...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
53eef98e0e49f7b056af89b8ce5dfed1a76cd833
60ec1bf5342eca3d97629dcdf974f7731d7be12b
/direzione/choices.py
23342f27de101bacf901a34e84a141d9726285d6
[ "BSD-2-Clause" ]
permissive
andywar65/rpnew_base
8eef1b71562a00889d170b1668faa487a753cb05
9281cb16783313a1cd23b1394f2bad485ac1b33d
refs/heads/master
2020-09-07T15:06:23.205802
2020-03-09T17:24:13
2020-03-09T17:24:13
220,818,439
1
0
BSD-2-Clause
2020-02-16T12:30:04
2019-11-10T16:38:52
Python
UTF-8
Python
false
false
222
py
DENOMINATION = [('ASD', 'Associazione Sportiva Dilettantistica'), ('SSD', 'Società Sportiva Dilettantistica'), ] TYPE = [('1-IS', 'Iscrizioni'), ('2-ST', 'Storia'), ('3-PR', 'Privacy'), ('4-IN', 'Istruzioni'), ]
[ "andy.war1965@gmail.com" ]
andy.war1965@gmail.com
d8286e7788fe3fe7df2567adc85b2369e1e9e755
ee79e734486c0ca550bb8238ef54c78c7727384a
/Tools/codetesters/pytesters/getcoords.py
82f62f62fd5af919e915c48dee954905d6c72285
[]
no_license
neilrobertson/BICRCode
212636e5395f0c0e4dfb3ac3c133f01eb07273ee
7b3f4da9cdefd7680f07b707339aee59faece1d2
refs/heads/master
2020-03-30T16:07:22.637571
2018-10-03T10:12:57
2018-10-03T10:12:57
151,394,096
0
0
null
null
null
null
UTF-8
Python
false
false
641
py
#!/usr/bin/env python import csv infile = "/home/pzs/histone/HISTONE_DATA/data/annotation/IAN_GENES.txt" chromindex = 0 startindex = 1 endindex = 2 nameindex = 3 strandindex = 5 reader = csv.reader(open(infile, "rb"), delimiter=" ") for row in reader: if not row: continue try: chrom = row[chromindex] start...
[ "neil.alistair.robertson@hotmail.co.uk" ]
neil.alistair.robertson@hotmail.co.uk
7b72ca263932cefc9e49e02541c76523670d6ffc
0f03a534fe04f7784ccf3c32f733712d4481c0bd
/core/urls.py
cdcd1a90b3670ee5906ee8ca0e7bce83f39ed295
[ "MIT" ]
permissive
shaymk1/used-cars-hub
7d0b9441e8dcc761b5cbbdc2fee5e933660cac37
2130118b11059bd70be6e5a92955acfd475ac31c
refs/heads/main
2023-07-03T13:55:18.668698
2021-08-07T23:07:42
2021-08-07T23:07:42
393,796,031
0
0
null
null
null
null
UTF-8
Python
false
false
939
py
"""core URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
[ "mkekae@gmail.com" ]
mkekae@gmail.com
d41507b1f8168904ee555ca9e7e903261ffc5cf8
32c56293475f49c6dd1b0f1334756b5ad8763da9
/google-cloud-sdk/lib/googlecloudsdk/command_lib/compute/xpn/flags.py
11be0c4aba0ec24f22e3475b53aa642ad526b1dc
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "MIT" ]
permissive
bopopescu/socialliteapp
b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494
85bb264e273568b5a0408f733b403c56373e2508
refs/heads/master
2022-11-20T03:01:47.654498
2020-02-01T20:29:43
2020-02-01T20:29:43
282,403,750
0
0
MIT
2020-07-25T08:31:59
2020-07-25T08:31:59
null
UTF-8
Python
false
false
1,300
py
# -*- coding: utf-8 -*- # # Copyright 2016 Google LLC. 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 requir...
[ "jonathang132298@gmail.com" ]
jonathang132298@gmail.com
1a0fe343fa141ba9b0c2f46e1d3440f85aa46287
1a395004d6f28592b80d0f49bdb8a69be958a165
/cfgov/permissions_viewer/views.py
a89b3d43f47d2723d752e2256219e1e8cc71052f
[ "CC0-1.0" ]
permissive
khashashin/cfgov-refresh
7398ae6e65a0f8a96241ccee9135d6150bd4db58
3bac3b585331d48890a9b980586480cee1c0baed
refs/heads/master
2021-04-09T13:32:20.389656
2018-03-16T16:53:33
2018-03-16T16:53:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,558
py
from collections import namedtuple, OrderedDict from django.contrib.auth import get_user_model from django.contrib.auth.models import Group from django.contrib.contenttypes.models import ContentType from django.shortcuts import get_object_or_404, render from wagtail.wagtailcore.models import Page, Collection User = ...
[ "ross.karchner@cfpb.gov" ]
ross.karchner@cfpb.gov
85b1e4e249c6a7b7bf2c4680ace248c00398e08d
80c2336d72d13d1d23190cc3046340811b7de502
/slack_bolt/workflows/step/async_step_middleware.py
c1583aa2f9ad8b1a2645c284160504a728606347
[ "MIT" ]
permissive
stevengill/bolt-python
b901d0b7c43ae2e46fad504d552e8df20f714db1
e29e061928fc62c80eb162fab54dd09108e45d05
refs/heads/main
2023-02-18T02:38:27.029723
2021-01-07T03:31:48
2021-01-07T03:31:48
327,755,545
0
0
MIT
2021-01-08T00:17:20
2021-01-08T00:17:20
null
UTF-8
Python
false
false
1,980
py
from typing import Callable, Optional, Awaitable from slack_bolt.listener.async_listener import AsyncListener from slack_bolt.listener.asyncio_runner import AsyncioListenerRunner from slack_bolt.middleware.async_middleware import AsyncMiddleware from slack_bolt.request.async_request import AsyncBoltRequest from slack_...
[ "seratch@gmail.com" ]
seratch@gmail.com
36f7bb44de25274dfe3903f40daaecdc2a23a0d1
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_cashes.py
c640eb6c3fe20e8aeacbcd301b1438c42f1b986c
[ "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
216
py
#calss header class _CASHES(): def __init__(self,): self.name = "CASHES" self.definitions = cash self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['cash']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
81a9815e06eb77de02746b3bc89aa766c03e028d
1c4d8ab18de6c3ec5fa3179f92e81d5b656c37bd
/Random/pythagorean_Triplet.py
da12c5a80a50f290629b6033167d6e2674291aed
[]
no_license
implse/Code_Challenges
b5c3c4105374fca60ae5435f12ab4350dc16d105
c9ef3d2d300686edb7cb0f71c86386de3a740857
refs/heads/master
2021-11-23T13:01:42.718795
2021-08-19T10:51:37
2021-08-19T10:51:37
112,112,965
0
0
null
null
null
null
UTF-8
Python
false
false
1,035
py
# Given an array of integers, determine whether it contains a Pythagorean triplet. # Recall that a Pythagorean triplet (a, b, c) is defined by the equation a2+ b2= c2. # Naive Solution O(n^3) def Pythagorean_triplet(array): ln = len(array) if ln < 3: return False array = [x**2 for x in arra...
[ "finite.impulse@gmail.com" ]
finite.impulse@gmail.com
c381e72a31603915342a06c179de9797dfef7733
acd1829a1acbca7bd84fb045228c4f568441ecdb
/sclrecommender/bandit/model/uncertaintyModel.py
2e1b306029397c938587bf8483e6af06e1ee0552
[ "MIT" ]
permissive
wezteoh/Bandit_Recommendation
a4d6702ec31b3c7ec2f012359ae9b6e42848e8e8
a326e4d1d082e1a2113fe739bc343fb45b0b8a4a
refs/heads/master
2021-09-07T00:29:42.894275
2018-02-14T07:23:25
2018-02-14T07:23:25
113,940,187
0
0
null
null
null
null
UTF-8
Python
false
false
793
py
import numpy as np class UncertaintyModel(object): def __init__(self, ratingMatrix): self.ratingMatrix = ratingMatrix def reset(self, seed=None): # Reset the weights as if no training was done pass def save(self, fileName): # Save the model return fileName def...
[ "scheeloong@gmail.com" ]
scheeloong@gmail.com
8e1b9a4c63c44c656ecc2929c9af70e098e486bd
b2cf4b4900a3a8728c673af47df8fe6b577900ed
/experiments/src/ex29/ex29_4_graph.py
9632a7b5209daef63402147e7a837947ac84cd6c
[]
no_license
gabormakrai/landuseregression
7b7b2a2e78de263a5db765c3cf4d827e2023b771
ac103485dc846758c2bf75e10d52080e334af61e
refs/heads/master
2021-01-20T01:13:57.867355
2018-09-24T22:19:49
2018-09-24T22:19:49
42,457,548
10
0
null
null
null
null
UTF-8
Python
false
false
1,477
py
import matplotlib.pyplot as plt from collections import defaultdict INPUT_FILE_1 = "/experiments/ex29/ex29_4.csv" INPUT_FILE_2 = "/experiments/ex29/ex29_4_1.csv" INPUT_FILE_3 = "/experiments/ex29/ex29_4_2.csv" OUTPUT_FILE = "/experiments/ex29/ex29_4.png" data = defaultdict(lambda: defaultdict(lambda: 0.0)) # min_sam...
[ "makraigabor@gmail.com" ]
makraigabor@gmail.com
3b55c7ad3b4ace2c46797cd2add952085edc99b8
2b4fa15d3b7514a8fea0ee08633c6b9480828d60
/lychee/main.py
b0d592d5f24981fd62943f90078aed878c3f53fa
[]
no_license
Bugsbane/arkos-applications
9d39e4d8546dd574225cf26c7e104e152e5b9ea9
10d1fa5bdfbd508a95bf8fa0170ae679a2eac9ea
refs/heads/master
2020-12-31T04:17:38.109361
2015-02-11T07:55:17
2015-02-11T07:55:17
28,763,282
0
0
null
2015-01-04T03:50:12
2015-01-04T03:50:11
null
UTF-8
Python
false
false
2,504
py
import grp import nginx import os from arkos.core.languages import php from arkos.core.sites import SiteEngine class Lychee(SiteEngine): addtoblock = [ nginx.Location('= /favicon.ico', nginx.Key('log_not_found', 'off'), nginx.Key('access_log', 'off') ), nginx.L...
[ "jacob@peakwinter.net" ]
jacob@peakwinter.net
36c54e306c29a27c14cae308aa058dfa35ef1d78
3f3280471cf70f84d45601a74362a452904d3232
/asterisk_log_project/asterisk_log_project/urls.py
dd62565273b3a2d82ff0cc3d27e373b854a116fc
[]
no_license
desecho/asterisk-log-legacy
78482a596ef7c3864704853d1f346aac3ae531cb
e23dde1141c5cc3d93e60f66a93ca522f394eba6
refs/heads/master
2021-06-14T19:59:01.951495
2017-04-11T06:14:03
2017-04-11T06:14:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
655
py
from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: url(r'^$', 'asterisk_log.views.home', name='home'), url(r'^login/$', 'django.contrib.auth.views.login', ...
[ "desecho@gmail.com" ]
desecho@gmail.com
7a7a0ff844782b3a338f5ec02e79136eba507c13
21a49ff65b2811023b08417f4dc9128cbdce220a
/reglog/models.py
305449b174a08ec327718f2aa164df8ba0a6067a
[]
no_license
joypaulgmail/Myproject
301f22055693700e25a19889ff3dc6f059d71512
b60c41be01d022d1e5430bd063d33ab7629a747d
refs/heads/main
2023-01-20T15:55:43.299280
2020-11-26T16:03:32
2020-11-26T16:03:32
316,166,241
0
0
null
null
null
null
UTF-8
Python
false
false
973
py
from django.db import models class product(models.Model): name=models.CharField(max_length=100) price=models.IntegerField() image=models.ImageField(null=True,blank=True,upload_to='media/') description=models.TextField() def __str__(self): return self.name class Meta: db_tab...
[ "joypaul650@gmail.com" ]
joypaul650@gmail.com
26db45d8d365a7639665b811eecccaaab7193f06
abccdbf9b0849b47960c3c352870793405debfed
/0x0F-python-object_relational_mapping/3-my_safe_filter_states.py
4fe795929a88293e9c20bec12f2c1504a0456ee2
[]
no_license
hunterxx0/holbertonschool-higher_level_programming
88b1b0f31b536c6940f2e64a6924a06ba9cbf193
44064cf0722cd20d93f58b64ab185d2898770d73
refs/heads/master
2022-12-20T12:14:15.877147
2020-09-24T21:25:54
2020-09-24T21:25:54
259,276,369
0
1
null
null
null
null
UTF-8
Python
false
false
548
py
#!/usr/bin/python3 """ Lists all states with a name starting with N from the database hbtn_0e_0_usa """ if __name__ == "__main__": import MySQLdb from sys import argv conn = MySQLdb.connect(host="localhost", port=3306, user=argv[1], passwd=argv[2], db=argv[3], charset="utf8") ...
[ "azouzimhamed@gmail.com" ]
azouzimhamed@gmail.com
a4100eb9561cc8c45f4491acf7cbbae4755537f6
b76615ff745c6d66803506251c3d4109faf50802
/pyobjc-framework-GameKit/PyObjCTest/test_gkmatch.py
d6a989d475ba438a363056676c6cfa76743789b8
[ "MIT" ]
permissive
danchr/pyobjc-git
6ef17e472f54251e283a0801ce29e9eff9c20ac0
62b787fddeb381184043c7ff136f1c480755ab69
refs/heads/master
2021-01-04T12:24:31.581750
2020-02-02T20:43:02
2020-02-02T20:43:02
240,537,392
0
0
null
null
null
null
UTF-8
Python
false
false
2,497
py
from PyObjCTools.TestSupport import * import GameKit class TestGKMatchHelper(GameKit.NSObject): def match_player_didChangeConnectionState_(self, m, p, s): pass def match_player_didChangeState_(self, m, p, s): pass def match_shouldReinviteDisconnectedPlayer_(self, m, p): return 1...
[ "ronaldoussoren@mac.com" ]
ronaldoussoren@mac.com
dacb2a478ac16ec610bc71f8d1780d3f9c682441
c6a4829b78e6a2aeb29a4218862502a43f2245d2
/src/robot/running/arguments/embedded.py
65355cae4d609485f6ccf670cd8321f80866f7ae
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
Lemonlemmings/robotframework
37832bfa4eb4ebab4eb748ba21eea02da176bbea
1acecfdba69b361ae533e5d2920de764c4763839
refs/heads/master
2023-03-02T16:05:48.260517
2021-03-08T00:15:31
2021-03-08T00:15:31
237,944,176
1
0
Apache-2.0
2023-02-08T04:01:52
2020-02-03T10:54:45
Python
UTF-8
Python
false
false
3,446
py
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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 ...
[ "peke@iki.fi" ]
peke@iki.fi
1e7775d1f58ad37e6eff5232174c5a7759308b3e
e88a8bb96ee85d52fdd21613356a1b48a0aba18e
/src/analyse/y.py
4a461f36d79d7c53dbddd5361cd967449ddc7be0
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
timtroendle/money-land
b5c3f527e7a30eaa25dd47cf2f1082c5dbb6bb29
fe3ed6e531cfe91156886d4fa685a14840749f36
refs/heads/master
2023-06-28T16:42:27.982087
2021-08-04T15:07:51
2021-08-04T15:07:51
229,407,310
0
0
null
null
null
null
UTF-8
Python
false
false
4,164
py
from dataclasses import dataclass import numpy as np import pandas as pd import xarray as xr MAX_IRRADIATION = 1000 # Wp / m2 @dataclass class CostFactors: wind_onshore: float wind_offshore: float roof_mounted_pv: float open_field_pv: float @classmethod def from_x(cls, x): return Co...
[ "tim.troendle@usys.ethz.ch" ]
tim.troendle@usys.ethz.ch
a7da026104e7da9912b235e67141d2a685cab6da
f925499f896b012624118cfafd02fef76ff5075a
/src/testcase/GN_APP/input_case/GN_APP_Login.py
5616447322759b0bad81fc644079e68c2bff5539
[ "Apache-2.0" ]
permissive
maiyajj/AutoTest_script-Appium_Connect
f7c06db1d2f58682d1a9d6f534f7dd5fb65d766d
f9c2c42c281a9e2f984acb4a72dda0694b053f22
HEAD
2019-07-26T01:39:48.413753
2018-04-11T02:11:38
2018-04-11T02:11:38
112,449,369
30
22
null
null
null
null
UTF-8
Python
false
false
1,007
py
# coding=utf-8 try: from src.testcase.GN_APP.case.GN_APP_LOGIN.GN_APP_LOGIN_001 import * from src.testcase.GN_APP.case.GN_APP_LOGIN.GN_APP_LOGIN_002 import * from src.testcase.GN_APP.case.GN_APP_LOGIN.GN_APP_LOGIN_003 import * from src.testcase.GN_APP.case.GN_APP_LOGIN.GN_APP_LOGIN_004 import * from...
[ "1045373828@qq.com" ]
1045373828@qq.com
9531a1e7abca47d7a9a6b1c6239655e6a55077df
65b9a63e8c132f32aeb56961968f5e363bd9a087
/20191208_torch自注意力机制/att_torch.py
8eeae577b542ae16cd3d51840a60e4a626f2611b
[]
no_license
346644054/examples2019
e70f13cfb56c3478fc6e335c730e0e70e70a6226
5f9777e7a887e635971156354f56ce065fa3f41e
refs/heads/master
2022-04-09T03:52:52.973414
2020-02-28T03:05:02
2020-02-28T03:05:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,995
py
# -*- coding: utf-8 -*- ''' sefattn ref: https://mp.weixin.qq.com/s/uscTj1hr_Aogaz98VS0JTQ https://zhuanlan.zhihu.com/p/96492170 ''' from __future__ import print_function __author__ = 'elesun' import torch ########prepare_inputs############ x = [ [1,0,1,0],# input 1 [0,2,0,2],# input 2 ...
[ "elesun2018@gmail.com" ]
elesun2018@gmail.com
90eca2a9dfa72ea22c37e61fe3e47512b996d466
b3df21a3e8317e68b98e027285ee6b863eb7378f
/scripts/utils.py
2dd1c3cf3a58f002a3fd2225223ee713f4ad9608
[ "Apache-2.0" ]
permissive
xwang2713/haas
b2e1d3d8881788f72b740db5edcecf1ae2cd3c3c
9c5611f0428dda04906d4ecffe051c1c739cf0be
refs/heads/master
2021-06-30T06:30:12.406590
2017-09-20T15:26:30
2017-09-20T17:37:33
104,367,546
1
2
null
2017-09-21T15:43:41
2017-09-21T15:43:41
null
UTF-8
Python
false
false
2,895
py
import logging from executor.concurrent import CommandPool from executor.ssh.client import RemoteCommand from executor import ExternalCommand class Node(object): def __init__(self, hostname, ip): self.hostname = hostname self.ip = ip def get_hostname(self): return self.hostname ...
[ "kmscout@gmail.com" ]
kmscout@gmail.com
9e80043d0757e35c6ab0d9712296c0f1f6913237
0db702833cad71e605d2df351d00fe48df80c4a5
/scrapy_zizhiname/zizhiname/zizhiname/middlewares.py
fda327841c4342daaf924124860f3926453472af
[]
no_license
satori-koishi/Spider_All
eca80db22b984bb31410cdc53e81bec9880f6742
1dc25a75b0b76f7c16e5897e72d49224962dfbf1
refs/heads/master
2022-01-16T15:44:26.921096
2019-07-10T01:00:29
2019-07-10T01:00:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,453
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://doc.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals from scrapy.downloadermiddlewares.useragent import UserAgentMiddleware import random import time class ZizhinameSpiderMiddl...
[ "xiangbei197@123.com" ]
xiangbei197@123.com
936f4059297856fb954ab2421195d97e50cabf03
53219fcaf67c9136ca549f6dc9442f4cf16b9b4b
/django/polls/migrations/0002_choice_question.py
d694466ec5632f4fa11bb5eb9583a2f58cdc2cbe
[]
no_license
smallbee3/First-django-app
3b25d3b400a4df20d0a82fd71b672a50ea74b9ef
32bc003edf8ac756b111d46345e3f0892b7160ae
refs/heads/master
2021-05-08T21:12:45.280909
2018-02-15T10:15:12
2018-02-15T10:15:12
119,633,001
0
0
null
null
null
null
UTF-8
Python
false
false
505
py
# Generated by Django 2.0.1 on 2018-02-01 03:58 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('polls', '0001_initial'), ] operations = [ migrations.AddField( model_name='choice', ...
[ "smallbee3@gmail.com" ]
smallbee3@gmail.com
d8df77a229209572e191beebd209dbdf1d3e89c7
76e62ddbfdfba19c80b37e855a4df67672ef0808
/IVTa/2014/AMETOVA_M_M/task_12_23.py
2a90c0ba57cac86c166e798106f60ea6e48bba07
[ "Apache-2.0" ]
permissive
stasvorosh/pythonintask
9d30f3cd492e89783b7221402375c1ebe4690baa
8169ed26510022fe0d589f4013f11749131957df
refs/heads/master
2021-01-17T16:49:32.778063
2016-10-10T14:08:04
2016-10-10T14:08:04
52,255,539
6
0
null
2016-02-22T07:33:16
2016-02-22T07:33:15
null
UTF-8
Python
false
false
2,883
py
# Задача 12. Вариант 49 # Разработайте игру "Крестики-нолики". #(см. М.Доусон Программируем на Python гл. 6). # Ametova M.M. # 20.05.2016 from tkinter import * class Game: crturn = True field = [] def __init__(self): for i in range (3): self.field.append(['', '', '']) def move(sel...
[ "stasyan.v@gmail.com" ]
stasyan.v@gmail.com
38f8e8b14b1572c2ff94b4f1b38e787aa63d10c6
98b1956594921aeef6e4b3c0f5b15703c3eee6a7
/atom/proton/python/test/test_goal_decumulation_status_request.py
58cd0940d2dfebaf13b2c1d8e1d1cf0ae999df26
[ "Apache-2.0" ]
permissive
sumit4-ttn/SDK
d4db3dcac077e9c9508a8227010a2ab764c31023
b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff
refs/heads/master
2022-11-25T14:05:16.911068
2020-08-09T17:31:55
2020-08-09T17:31:55
286,413,715
0
0
Apache-2.0
2020-08-10T08:03:04
2020-08-10T08:03:03
null
UTF-8
Python
false
false
1,028
py
# coding: utf-8 """ Hydrogen Proton API Financial engineering module of Hydrogen Atom # noqa: E501 OpenAPI spec version: 1.7.18 Contact: info@hydrogenplatform.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest impor...
[ "hydrogen@Hydrogens-MacBook-Pro.local" ]
hydrogen@Hydrogens-MacBook-Pro.local
75994e816da12317a553c13778e9d5e23b6ea6fb
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/abc033/C/4907526.py
e7b50af3ce42d8761bc0257ff0f24399c365fd4d
[]
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
214
py
n = input() cnt = 0 x = "" for i in n: if i == "+": if "0" in x: x = "" else: x = "" cnt = cnt + 1 else: x = x + i if "0" not in x: cnt = cnt + 1 print(cnt)
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
b9c1cb823c6f808d47ef5c2cb9f452bd6de8760c
f090c3e0faa70cf0ef7c4be99cb894630bce2842
/scripts/dataAnalysis/729Experiments/2012/2012Nov06/Rabi_1D_carrier_fitter.py
a2f98b056017bebf3c40917a94edeaeea95e6142
[]
no_license
HaeffnerLab/resonator
157d1dc455209da9b7de077157bda53b4883c8b7
7c2e377fdc45f6c1ad205f8bbc2e6607eb3fdc71
refs/heads/master
2021-01-09T20:48:03.587634
2016-09-22T18:40:17
2016-09-22T18:40:17
6,715,345
2
1
null
null
null
null
UTF-8
Python
false
false
7,529
py
""" Fitter for Carrier and Sideband Rabi Flopping to extract Temperature.#### """ import numpy as np from scipy.special.orthogonal import eval_genlaguerre as laguer from scipy import optimize import matplotlib from matplotlib import pyplot import labrad from labrad import types as T, units as U #optimization class Pa...
[ "soenkeamoeller@gmail.com" ]
soenkeamoeller@gmail.com
97e8c13492c348f18e76f57e49c7f58b4fe4282f
06f7ffdae684ac3cc258c45c3daabce98243f64f
/vsts/vsts/service_hooks/v4_0/models/__init__.py
30e3e5eedb9fa8dd01a60586f4ba19056390fcd0
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
kenkuo/azure-devops-python-api
7dbfb35f1c9637c9db10207824dd535c4d6861e8
9ac38a97a06ee9e0ee56530de170154f6ed39c98
refs/heads/master
2020-04-03T17:47:29.526104
2018-10-25T17:46:09
2018-10-25T17:46:09
155,459,045
0
0
MIT
2018-10-30T21:32:43
2018-10-30T21:32:42
null
UTF-8
Python
false
false
2,622
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ "tedchamb@microsoft.com" ]
tedchamb@microsoft.com
87eaae3180e5de6f1e7e1840a0e554b9f57895af
4a3a6911c8f76f4a230fdfff142e18802d19a537
/python_skills/use_geopy.py
cb42588f25eb4ed3e5acb6cd810e8f245890f7f7
[]
no_license
Degelzhao/python
eab0c479403ae6003ebbb0752b04132d78f25336
f623d8d83c7ff6d7add46f5a2cdc80b9834a5999
refs/heads/master
2021-07-14T16:06:05.646965
2019-02-22T13:36:20
2019-02-22T13:36:20
149,408,660
2
0
null
null
null
null
UTF-8
Python
false
false
331
py
# geopy模块是通过抽象出一系列不同的地理编码服务的API来工作,它可以让你获得 # 某一地点的完整街道地址、维度、精度甚至海拔高度 from geopy import GoogleV3 place = "221b Baker Street, London" location = GoogleV3().geocode(place) print(location.address) print(location.location)
[ "barryember@outlook.com" ]
barryember@outlook.com
57500b0b4c0ef227d1149a7fcfd4c171f330f219
5be4ba98d02d8862d327f04291cafe4f0f6760f0
/flask_mysql/test/test_python.py
996e96eab4f10311cdb089ed22d28fa99c1c5060
[]
no_license
HassanZaghmoury/Python
f614e962e17bf9d767ba17d9be7bf862709274a7
b45f1b0392112bce73dce0dc6baf021bb2c1beaa
refs/heads/master
2020-03-08T00:42:00.672277
2018-04-02T21:21:09
2018-04-02T21:21:09
127,811,770
0
0
null
null
null
null
UTF-8
Python
false
false
288
py
import md5 # imports the md5 module to generate a hash password = 'password' # encrypt the password we provided as 32 character string hashed_password = md5.new(password).hexdigest() print hashed_password #this will show you the hashed value # 5f4dcc3b5aa765d61d8327deb882cf99 -> nice!
[ "34197290+HassanZaghmoury@users.noreply.github.com" ]
34197290+HassanZaghmoury@users.noreply.github.com
11e3669bd08496a7e3f01fd261e3c974e6ca9ec1
c5fd62d436b2e586a55b9bd23de7da36629dc7ff
/demo_impl/daemon/vrc_t70_daemon.py
70190047e1966172b7b269b6fd72290900470f44
[ "MIT" ]
permissive
JFF-Bohdan/vrc_t70_demo
09c8a9909c1455c5010d2f06c665a351f9b4f0c4
32c9630f3a216d1ddd98d67f36515d2aa0d15569
refs/heads/master
2020-06-28T15:00:00.718390
2019-08-22T23:32:07
2019-08-22T23:32:07
200,262,097
0
0
null
null
null
null
UTF-8
Python
false
false
4,070
py
import datetime import random import time from .data_types import DeviceLastCommunicationTouch, SensorReadData from .utils import hexlify_to_string from .vrc_t70_stateful_communicator import VrcT70StatefulCommunicator class VrcT70Daemon(object): DEFAULT_POLLING_SLEEP_INTERVAL = 1 DEFAULT_TEMP_ROUND_PRESISSIO...
[ "dbn@aminis.com.ua" ]
dbn@aminis.com.ua
639efa90c2d2e145964e7add7e0e873a9e78d835
d6dc9ef30d191014a0a5b43693ac31d65f4e79cb
/src/zopeapp/Products/ZopeExampleApp/app.py
8f53f717264737db7c5ddef51af3656dc104df4e
[]
no_license
pybucuresti/zope-presentation
986f577336f4b2cc298d680359406e2bb32870a0
87d29b2211699cd6cacb99460daf867838999699
refs/heads/master
2021-01-22T11:58:47.523770
2011-01-24T17:00:08
2011-01-24T17:00:08
1,288,353
1
0
null
null
null
null
UTF-8
Python
false
false
806
py
from OFS.SimpleItem import SimpleItem from Products.PageTemplates.PageTemplateFile import PageTemplateFile #Add an object def manage_add(container, REQUEST=None): """ Add a sample app """ if REQUEST is not None and REQUEST.method == 'GET': return PageTemplateFile('zpt/manage_add.zpt', globals()).__of_...
[ "alexandru.plugaru@gmail.com" ]
alexandru.plugaru@gmail.com
ae4edc5b2331ed9b42ed6c9f8bce1ef4b0fbb089
271c7959a39f3d7ff63dddf285004fd5badee4d9
/venv/Lib/site-packages/ncclient/operations/retrieve.py
b1005857e9bbcaa7f190b5fe9362cb9b52d7f0c4
[ "MIT" ]
permissive
natemellendorf/configpy
b6b01ea4db1f2b9109fd4ddb860e9977316ed964
750da5eaef33cede9f3ef532453d63e507f34a2c
refs/heads/master
2022-12-11T05:22:54.289720
2019-07-22T05:26:09
2019-07-22T05:26:09
176,197,442
4
1
MIT
2022-12-08T02:48:51
2019-03-18T03:24:12
Python
UTF-8
Python
false
false
7,419
py
# Copyright 2009 Shikhar Bhushan # # 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 writin...
[ "nate.mellendorf@gmail.com" ]
nate.mellendorf@gmail.com
cc9cc2e4e416bd0669f35629414163ad81be5aeb
2e9e994e17456ed06970dccb55c18dc0cad34756
/atcoder/abc/041/B.py
bd5d097184c2b30f3d15506c284f66bb94ac1c4e
[]
no_license
ksomemo/Competitive-programming
a74e86b5e790c6e68e9642ea9e5332440cb264fc
2a12f7de520d9010aea1cd9d61b56df4a3555435
refs/heads/master
2020-12-02T06:46:13.666936
2019-05-27T04:08:01
2019-05-27T04:08:01
96,894,691
0
0
null
null
null
null
UTF-8
Python
false
false
182
py
def main(): ABC = input() m = 10 ** 9 + 7 A, B, C = map(lambda x: int(x) % m, ABC.split()) ans = (A*B*C) % m print(ans) if __name__ == '__main__': main()
[ "kntsmy@hotmail.co.jp" ]
kntsmy@hotmail.co.jp
ec57bcc8744eb6022edf3dbfb45c47cc215d5d6a
c0e9fe97583b8d431064e9bc382f8d4e4b7c2ad4
/api/v1/voting/city.py
041438dffd6395a421102e424c28740dbb229b0e
[]
no_license
satoriforos/data-api-website
4f21c58702b9586ebc9aea1e6d1db9beb35da190
3fad87754568201c1a2dc345227837a1096d2513
refs/heads/master
2020-08-06T04:08:53.695134
2019-10-04T13:59:34
2019-10-04T13:59:34
212,810,425
0
0
null
null
null
null
UTF-8
Python
false
false
7,523
py
#!/usr/bin/env python3 import sys sys.path.append("../../../") import re from os import environ import re from settings.settings import settings from modules.HttpServer import HttpServer from modules.apimanager.ApiManager import ApiManager from modules.apimanager.SubscriptionPlan import SubscriptionPlan from modules.da...
[ "{ID}+{username}@users.noreply.github.com" ]
{ID}+{username}@users.noreply.github.com
051f742b51edc91d5a19ce996e6870a2b4de5239
aa3dc5ae4fa7d531bbaa75c3008031f2a1b8845d
/83. Remove Duplicates from Sorted List.py
832b56127985444d0e5a000f185c9bb4ceeacbe2
[]
no_license
alankrit03/LeetCode_Solutions
354e797d1d5f5a78b116c1f9a3034dd651d71d9a
f8ca46afdfbd67509dde63e9cdc5fd178b6f111b
refs/heads/master
2021-01-08T17:41:22.976375
2020-11-03T17:01:37
2020-11-03T17:01:37
242,097,188
1
0
null
null
null
null
UTF-8
Python
false
false
542
py
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def deleteDuplicates(self, head: ListNode) -> ListNode: if not head: return head ptr = head while ptr and ptr.next: ...
[ "alankritagarwal9@gmail.com" ]
alankritagarwal9@gmail.com
66858c41678a8f6148ee700cc4639dd234db47cc
fdbb74a95924e2677466614f6ab6e2bb13b2a95a
/third_party/python/Lib/multiprocessing/popen_spawn_win32.py
6fd588f542673ef89e3a2eeee694930e36115b80
[ "Python-2.0", "GPL-1.0-or-later", "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-other-copyleft", "ISC" ]
permissive
jart/cosmopolitan
fb11b5658939023977060a7c6c71a74093d9cb44
0d748ad58e1063dd1f8560f18a0c75293b9415b7
refs/heads/master
2023-09-06T09:17:29.303607
2023-09-02T03:49:13
2023-09-02T03:50:18
272,457,606
11,887
435
ISC
2023-09-14T17:47:58
2020-06-15T14:16:13
C
UTF-8
Python
false
false
2,999
py
import os import msvcrt import signal import sys import _winapi from .context import reduction, get_spawning_popen, set_spawning_popen from . import spawn from . import util __all__ = ['Popen'] # # # TERMINATE = 0x10000 WINEXE = (sys.platform == 'win32' and getattr(sys, 'frozen', False)) WINSERVICE = sys.executable...
[ "jtunney@gmail.com" ]
jtunney@gmail.com
9c0cd140d3c61e0f6f19950d8b6545d0c5c153ac
3d4cd68400eb5429282b23bf6a1b7226851b731a
/spddo/subs/actions/context.py
f67724a06feb8257e6ccc6ce7088574f7affb0d3
[]
no_license
blueshed/spddo-chat
2dee16478e9a30ed0196d76d450e0772147aa208
d7ba492162ba95c0d2b8ed78370366eb96e39c3a
refs/heads/master
2021-01-17T11:29:48.959086
2016-05-21T18:33:08
2016-05-21T18:33:08
43,005,167
1
0
null
null
null
null
UTF-8
Python
false
false
2,597
py
import logging from blueshed.micro.orm import db_connection from blueshed.micro.utils.base_context import BaseContext from tornado.ioloop import IOLoop from spddo.subs.actions.sync_auth import sync_auth from spddo.subs.actions.active_subscriptions import active_subscriptions_for from spddo.subs import model class Con...
[ "pete@blueshed.co.uk" ]
pete@blueshed.co.uk
78cdfc5dff890c89a66d22d11586f507f7207d5f
98ca37f5dd2751efaa060cca19e0b83f871d7765
/sdk/core/azure-core/tests/testserver_tests/async_tests/test_rest_stream_responses_async.py
67314874971936b2204cc96812c60a7c33df2ff1
[ "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later", "MIT" ]
permissive
jayhebe/azure-sdk-for-python
5ea99732ebb9929d3f6f77c08cc640d5915970b1
f4455f85d9fe747fa4de2fdc691b975c07bfeea5
refs/heads/main
2023-06-24T01:22:06.602194
2021-07-28T02:12:25
2021-07-28T02:12:25
390,290,984
1
0
MIT
2021-07-28T09:23:46
2021-07-28T09:23:46
null
UTF-8
Python
false
false
7,698
py
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See LICENSE.txt in the project root for # license information. # ------------------------------------------------------------------------- from azure....
[ "noreply@github.com" ]
jayhebe.noreply@github.com
b3d9031e9084d33199bc73dc2c2a786aee69cf2e
049ca48d22011604f4c7594c42467e0a6d95d7f5
/python2/kyu_7/gas_2_mutation.py
df4f077915a2142892691f280ffc7dac25fb4495
[]
no_license
wangerde/codewars
3ffdf560f0fd2333ab2711d20e2f2b32588fd9fd
bcfd15aba49f87c0a64cf840e96df06ef5ec9162
refs/heads/master
2021-01-23T05:35:29.217960
2017-01-15T18:23:30
2017-01-15T18:23:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,446
py
# coding=utf-8 """Genetic Algorithm Series - #2 Mutation http://www.codewars.com/kata/567b39b27d0a4606a5000057 Mutation is a genetic operator used to maintain genetic diversity from one generation of a population of genetic algorithm chromosomes to the next. A mutation here may happen on zero or more positions in a ...
[ "lancelote.du.lac@gmail.com" ]
lancelote.du.lac@gmail.com
3539a221b1ffb1c802cd7ca1b987332b48c1c91a
a74b980fd95d5d810315f181449fc9d1710e6923
/EXP/drupal_sqli_getshell.py
10b27d90d560c992b75c11c099d81c567177c889
[ "Apache-2.0" ]
permissive
cbbbbbbbb/sspywork
b70f5539203b47b21eec2f0514ddca155affc2b8
8f05a6b91fc205960edd57f9076facec04f49a1a
refs/heads/master
2023-03-22T19:45:13.024076
2021-03-08T01:24:21
2021-03-08T01:24:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,933
py
#coding: utf-8 import os import sys import datetime import re import json, base64 from exp_template import Exploit, Level, session, get_random_password """ 构造函数需要传递以下参数: url 要测试的目标 taskid 默认为0,当没有创建任务时使用 targetid 默认为0,当没有创建任务时使用 exp需要实现的方法为meta_info和exploit """ class drupal_sqli_getshell(Exploit): def ...
[ "shiyuegege@qq.com" ]
shiyuegege@qq.com
1d8fbde140d8d45500fb55f6322a3565f3db98ee
d529b72eb4610ddf0e0b8170354a21f87dbf0e42
/Unit24/quickSortPages.py
71921170a15137135de9a224ce01576ab412ec49
[]
no_license
SaretMagnoslove/Udacity-CS101
57a8b6609e2f2a09135ea0189a782d66e225b641
2e573a362a4d8d688199777937c6aaff59f6b900
refs/heads/master
2021-04-15T17:43:05.522259
2018-06-20T23:33:26
2018-06-20T23:33:26
126,618,278
0
0
null
null
null
null
UTF-8
Python
false
false
402
py
def quickSortPages(pages, ranks): if not pages or len(pages) <=1: return pages else: pivot, worse, better = ranks[pages[0]], [], [] for page in pages[1:]: if ranks[page] <= pivot: worse.append(page) else: better.append(page) ...
[ "magnoslove@gmail.com" ]
magnoslove@gmail.com
2ef6ff834cfc98e69bccf8c15861f2f674ff12f3
e77385ef4d706837460296a2265a0fd9d0ef5682
/thursdayaftcwproject/thursdayaftcwproject/wsgi.py
6be37eaed4248fd2024198263798f5365ca33182
[]
no_license
cs-fullstack-2019-spring/django-models4-cw-bettyjware11
56df0007001de837828930f22fa3bd648f6e09dc
086ad576db6e4f10d8285b4ccd0edc9865c65e22
refs/heads/master
2020-04-24T12:07:33.454674
2019-02-24T22:16:39
2019-02-24T22:16:39
171,946,547
0
0
null
null
null
null
UTF-8
Python
false
false
417
py
""" WSGI config for thursdayaftcwproject project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault(...
[ "bettyjcawthon@gmail.com" ]
bettyjcawthon@gmail.com
7b2c735fa3a1534eab8638654c2ba29eacaf0f63
51f7752df6a6e2b4dcee7ea585bacf7b9cb5ea14
/112. Path Sum.py
d858f66ab2286dcecdc63467e6b78676c36f7e12
[ "MIT" ]
permissive
ten2net/Leetcode-solution
a9ba7235987c0fdd1860d88ae461a4ea1fb979e4
97e84daa2926a9cd2036e0dee36dfe5773114b15
refs/heads/master
2021-01-21T20:29:42.570931
2016-12-06T10:29:18
2016-12-06T10:29:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
716
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 hasPathSum(self, root, sum): """ :type root: TreeNode :type sum: int :rtype: bool ...
[ "982899917@qq.com" ]
982899917@qq.com
07b20c75ebd529fb04d1ee8960a79d27565042da
a6ed630429fafb1ab9b24e5f7f9ca2b82cee30ad
/backend/users/migrations/0002_auto_20201203_0927.py
e276ddfa91ab2b0f707d6a4e17c3daa186a5576a
[]
no_license
crowdbotics-apps/test3-4895-dev-16185
5dc40f4b56a85cc641ddc3fcddb899749af8ad46
72adade7d35d97002e100f2c7a339e189fb06660
refs/heads/master
2023-01-21T08:12:22.751685
2020-12-03T09:28:05
2020-12-03T09:28:05
318,139,932
0
0
null
null
null
null
UTF-8
Python
false
false
394
py
# Generated by Django 2.2.17 on 2020-12-03 09:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AlterField( model_name='user', name='name', field=...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
360425a1f1aa4f0e8e988eeeacfd50ca9b282ff8
dc4213f8dcbcb3ba5913af8bbd11d0c00f0b16cb
/_ThesisRecordings/CalculateCognitiveMetrics.py
acfcf4987d7e2e3d456655aa97bc8eb10169e891
[]
no_license
jabarragann/eeg_project_recording_scripts
9ca33ce92523b90e3e78ec66acb8ca95befa213c
2244ba92bd739050a384c3d9590682f7a5083eb6
refs/heads/master
2023-06-18T12:25:44.233289
2021-07-21T05:30:16
2021-07-21T05:30:16
267,696,974
1
0
null
null
null
null
UTF-8
Python
false
false
5,695
py
from pathlib import Path import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt from scipy.stats import ttest_ind from itertools import product def reduce_size(df, min_size): results = [] np.random.seed(10) for c in ['manual','autonomy']: p = df.loc[df['condit...
[ "barragan@purdue.edu" ]
barragan@purdue.edu
20c1ebbf993d3518315f22971f1a0cfb70786af4
a275cec1fddb6e034b4e9df72f8039536c009990
/codes/leetcode/divide-two-integers.py
c39d594808ab8d009f7f623844c82a33f9964004
[]
no_license
taoste/dirtysalt
a3cbd16710c81de65f00aa919f4e67a1fc66d226
bd68294fb7727d598ea1c8bf0a559247e07c1aea
refs/heads/master
2021-08-24T10:44:47.607924
2017-12-09T08:47:12
2017-12-09T08:47:12
113,807,519
1
0
null
null
null
null
UTF-8
Python
false
false
945
py
#!/usr/bin/env python # coding:utf-8 # Copyright (C) dirlt class Solution(object): def divide(self, dividend, divisor): """ :type dividend: int :type divisor: int :rtype: int """ max_int = (1 << 31) - 1 if divisor == 0: return max_int if dividend == ...
[ "dirtysalt1987@gmail.com" ]
dirtysalt1987@gmail.com
6002345eff492ada8a197ca4cb414e0f601c4a75
77e8b7bc211624687eb61fdb071020642b2c0080
/w33/Q1/q1.py
da6710e918a665143801445a3bedf0c45b3d7d68
[]
no_license
wherby/hackerrank
fab46ea208042ce8055c2755545896bf69f88895
84345f56690ea6b1d5db181b12d2a2669007456c
refs/heads/master
2020-09-26T23:53:06.841052
2019-09-15T12:11:43
2019-09-15T12:11:43
67,225,970
0
0
null
null
null
null
UTF-8
Python
false
false
580
py
filename = "input/input00.txt" f=open(filename,'r') # Enter your code here. Read input from STDIN. Print output to STDOUT import math import sys if "f" in locals(): inputA=f else: inputA=sys.stdin ins=[] for line in inputA: ins.append(line) q, = map(int , ins[0].strip().split()) ...
[ "187225577@qq.com" ]
187225577@qq.com
6fe1d106160795264cfd5087072d0550e6335082
8f1ffae6ad99c91cd765af2f0abe31cea93b2f26
/django/prac/movies/migrations/0001_initial.py
2855ff579e9d874f7515ff453ebe06959c980727
[]
no_license
dongdong-e/TIL
23844526dc077a779402ea3605a2174af82c6dec
35f839df9dbb3206bd0d901843d876292712c2b4
refs/heads/master
2020-05-27T20:12:04.934834
2019-07-08T12:46:18
2019-07-08T12:46:18
188,774,388
0
0
null
null
null
null
UTF-8
Python
false
false
888
py
# Generated by Django 2.2.1 on 2019-06-17 00:41 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Movie', fields=[ ('id', models.AutoField(au...
[ "youngdong9800@gmail.com" ]
youngdong9800@gmail.com
8a3507315496de3a29d96e6e28925710c2a6aec6
d0749cf5c5ea67c7134935f1d5a45a78382e8885
/python/rabbitmq/client.py
2a00482298adb28dd65010c3ba4969bba5f58a17
[]
no_license
planset/samples
910369430814685970c093cbde4a5345c4735156
dee2aca74e1d5fe983cad6b90ff1ede4223ae571
refs/heads/master
2021-01-17T11:28:29.870215
2017-02-21T15:13:00
2017-02-21T15:13:00
5,727,944
0
0
null
null
null
null
UTF-8
Python
false
false
1,037
py
from __future__ import with_statement from kombu.common import maybe_declare from kombu.pools import producers from queues import task_exchange priority_to_routing_key = {"high": "hipri", "mid": "midpri", "low": "lopri"} def send_as_task(connection, fun, args=(...
[ "planset@gmail.com" ]
planset@gmail.com
a568f1f8ffdf875d10de29dab5f6f8aa5693874c
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/do3MBKp3AqnnnCBMQ_3.py
1b3704b1705095d07d34f2d480b5e5e6cba5e209
[]
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
184
py
from random import randint def numbers(): num = "" while len(num)<5: temp = str(randint(1,5)) if temp not in num: num += temp return int(num)
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
8b860f8ddc18757a961063a4e6cefee191514e49
620323fc090cebaf7aca456ff3f7fbbe1e210394
/socket__tcp__examples/send_recv_complex_object/server.py
6c45ebe4b76cb8a4564d3629a481ae95a8206be7
[ "CC-BY-4.0" ]
permissive
gil9red/SimplePyScripts
bd2733372728bf9b9f00570e90316fa12116516b
773c2c9724edd8827a1dbd91694d780e03fcb05a
refs/heads/master
2023-08-31T04:26:09.120173
2023-08-30T17:22:59
2023-08-30T17:22:59
22,650,442
157
46
null
2023-09-08T17:51:33
2014-08-05T16:19:52
Python
UTF-8
Python
false
false
639
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "ipetrash" import pickle import socket BUFFER_SIZE = 4096 sock = socket.socket() sock.bind(("", 9090)) sock.listen() print(f"Sock name: {sock.getsockname()}") while True: conn, addr = sock.accept() print("Connected:", addr) all_data = byte...
[ "ilya.petrash@inbox.ru" ]
ilya.petrash@inbox.ru
501cc68ae0542e9fd11ad455cc6dd60e4d074ec7
2903ac66369b6bd45889b12629d8c8e34e6089b3
/frappe_training/frappe_training/doctype/crud/test_crud.py
0370572ae18b202ce76976c74d066bf54079f4d2
[ "MIT" ]
permissive
sivaranjanipalanivel/training
6fa50b5f97fb00894404fba11122599fd796623c
b177c56a319c07dc3467ce3113e332ecee9b81fa
refs/heads/master
2023-07-17T06:11:29.894363
2021-08-02T14:47:31
2021-08-02T14:47:31
391,987,470
0
0
null
null
null
null
UTF-8
Python
false
false
211
py
# -*- coding: utf-8 -*- # Copyright (c) 2021, valiantsystems and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class Testcrud(unittest.TestCase): pass
[ "you@example.com" ]
you@example.com
d7a9107d1da2a157e7535edae16aaf56aa547eb7
690a3fa866708fdd3ebf9fc0cf99e2d83fadad30
/ddtrace/contrib/asyncio/__init__.py
891c018dcf72a44a2db5943e1b2c9e0f74e4e119
[]
no_license
jairhenrique/dd-trace-py
4e38057ec4e7e28e228a6be3047786d0b172ff50
aec83c3448a2fa7f3b38ccabf87d3118d7c922c7
refs/heads/master
2020-04-05T14:12:19.487224
2017-07-01T13:51:50
2017-07-01T13:51:50
94,831,404
0
0
null
2017-06-20T00:09:25
2017-06-20T00:09:24
null
UTF-8
Python
false
false
1,914
py
""" This integration provides the ``AsyncioContextProvider`` that follows the execution flow of a ``Task``, making possible to trace asynchronous code built on top of ``asyncio``. To trace asynchronous execution, you must:: import asyncio from ddtrace import tracer from ddtrace.contrib.asyncio import conte...
[ "emanuele.palazzetti@datadoghq.com" ]
emanuele.palazzetti@datadoghq.com
66bfd616d2dc6ea6bfeb2e26a8674f6c1cdbe02f
abcd53ba3d93d94f558016d57f5b31ff1abcf364
/app/request.py
e3cc98b4cad89a5f048cd3da79ec743f67007c7f
[]
no_license
PatrickNgare/Movie-of-the-day
3366641a9ecb4e2545312fba87155f5c3dde4035
1fa1efa5d9abf44f9e8a98065ce7037620552edb
refs/heads/master
2021-05-03T07:13:48.724085
2018-02-07T14:58:56
2018-02-07T14:58:56
120,605,190
0
0
null
null
null
null
UTF-8
Python
false
false
2,961
py
import urllib.request,json from .models import Movie # Getting api key api_key = None # Getting the movie base url base_url = None def configure_request(app): global api_key,base_url api_key = app.config['MOVIE_API_KEY'] base_url = app.config['MOVIE_API_BASE_URL'] def get_movies(category): ''' ...
[ "patrickngare@gmail.com" ]
patrickngare@gmail.com
9be83d8ddef65a225c5c0b3c49e2439362e3ec92
0ed9a8eef1d12587d596ec53842540063b58a7ec
/cloudrail/knowledge/context/aws/resources_builders/cloudformation/ec2/cloudformation_subnet_route_table_association_builder.py
b3dfad057463c5afc085b0782dc0e1894c3c3d9f
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
cbc506/cloudrail-knowledge
8611faa10a3bf195f277b81622e2590dbcc60da4
7b5c9030575f512b9c230eed1a93f568d8663708
refs/heads/main
2023-08-02T08:36:22.051695
2021-09-13T15:23:33
2021-09-13T15:24:26
390,127,361
0
0
MIT
2021-07-27T21:08:06
2021-07-27T21:08:06
null
UTF-8
Python
false
false
1,206
py
from typing import Dict from cloudrail.knowledge.context.aws.resources.ec2.route_table_association import RouteTableAssociation from cloudrail.knowledge.context.aws.cloudformation.cloudformation_constants import CloudformationResourceType from cloudrail.knowledge.context.aws.resources_builders.cloudformation.base_cloud...
[ "ori.bar.emet@gmail.com" ]
ori.bar.emet@gmail.com
1c6c2edaad7a3b5863711e58d07457ac907540a4
73de523bde0c9e8398c63a924b44aadc46d11202
/isi_sdk/models/summary_protocol_stats.py
b5537a29a1883bbdcd3a19ef265d1b016b0f6f4b
[ "Apache-2.0", "MIT" ]
permissive
Feyd-Aran/isilon_sdk_python
1c2fae306c1a95a99024dd13dc0fc3b120f9c1de
24e85a5577d15ac3db06862d07d5a261658c67b7
refs/heads/v8.0.0
2020-09-23T00:16:36.684270
2019-12-02T13:45:12
2019-12-02T13:45:12
225,351,700
0
0
MIT
2019-12-02T10:51:54
2019-12-02T10:51:53
null
UTF-8
Python
false
false
3,378
py
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 3 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from isi_sdk_8_0.models.summary_p...
[ "brandonfkrueger@gmail.com" ]
brandonfkrueger@gmail.com
998e48ab57c9aad849c3bda397e28352b490f99d
d40b4797badd00d3daef21c3466d9194abba7a0e
/mandrill/mayhem_26.py
9d7dcf01fa3686649f2616c97bc0b5890c3ee1ab
[ "MIT" ]
permissive
gcetusic/mayhem
ada18d8d1df1ea5b4caf184e4c8a24131acd46b7
638cf040a832fe209dcac4847418545678f52ed9
refs/heads/master
2020-03-24T11:56:54.798628
2018-07-26T12:48:56
2018-07-26T12:48:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,252
py
#!/usr/bin/env python3.7 # asyncio.run for run_forever import asyncio import functools import logging import random import signal import string import uuid import attr logging.basicConfig( level=logging.INFO, format='%(asctime)s,%(msecs)d %(levelname)s: %(message)s', datefmt='%H:%M:%S', ) @attr.s cla...
[ "lynn@lynnroot.com" ]
lynn@lynnroot.com
6b98772653c4555fc318caa98c444095ba5cc4fa
ec95cf11db88a7aad1ae6bf4daf321fc38a3ca43
/evennia/evennia/evennia/objects/migrations/0005_auto_20150403_2339.py
d8359a909db9ff3bba23f61f283f4a328adc8f32
[ "BSD-3-Clause" ]
permissive
castlelorestudios/EvenniaPluginSampleProject
25d68adf7fe2b716a7e1d317d1aeca568f67fcdd
095ad7a2fe583033fb7e2070f3f8920a6e88b323
refs/heads/master
2022-12-14T08:19:07.572206
2019-09-19T01:11:16
2019-09-19T01:11:16
195,511,481
3
3
BSD-3-Clause
2022-11-22T03:00:00
2019-07-06T07:32:23
Python
UTF-8
Python
false
false
556
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('objects', '0004_auto_20150118_1622'), ] operations = [ migrations.DeleteModel( name='DefaultCharacter', ...
[ "corneelbooysen@hotmail.com" ]
corneelbooysen@hotmail.com
57a226c683e765dd42ca389a760eee71e426de33
2c7b6ceffd09dae72d18a573a82d3a4c1d105e06
/url_args.py
e95d4a29aa00df79019c94798cf980ac7c3c6696
[]
no_license
feleHaile/20180813JPL
c23144a2139bc256e86a81a4402dc6ace0bb2791
09af77d98a9eeea193760aacff52b21fac8fc920
refs/heads/master
2020-05-15T22:31:14.922844
2018-08-16T21:59:40
2018-08-16T21:59:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
#!/usr/bin/env python # (c)2015 John Strickler from flask import Flask, request app = Flask(__name__) @app.route('/') def index(): return_str = '''<h1>Query strings demo</h1>\n''' for query_name, query_value in request.args.items(): return_str += '{} => {}<br/>\n'.format(query_name, query_value) ...
[ "jstrickler@gmail.com" ]
jstrickler@gmail.com
39e5d1b6602b9908ae0bc14a9a45118605b05f15
4d259f441632f5c45b94e8d816fc31a4f022af3c
/pecan/pecan_test/test_project_config/test_project/controllers/v2/root.py
21f664a4541a92ec6ed91b54ceaef6c8446b1d6e
[]
no_license
xiaoruiguo/lab
c37224fd4eb604aa2b39fe18ba64e93b7159a1eb
ec99f51b498244c414b025d7dae91fdad2f8ef46
refs/heads/master
2020-05-25T01:37:42.070770
2016-05-16T23:24:26
2016-05-16T23:24:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
from test_project.controllers.v2 import meters from test_project.controllers.v2 import query from test_project.controllers.v2 import query2 class V2Controller(object): """Version 2 API controller root.""" meters = meters.MetersController() query = query.QueryController() query2 = query2.QueryContro...
[ "you@example.com" ]
you@example.com
d73590d78d72c2dfd70f754ba7f5a9e16c9a2fa7
70bee1e4e770398ae7ad9323bd9ea06f279e2796
/test/test_vms_api.py
5f2dd3fcb19ce84e2bf998fdd164a23f1c8ba9d8
[]
no_license
hi-artem/twistlock-py
c84b420b1e582b3c4cf3631eb72dac6d659d4746
9888e905f5b9d3cc00f9b84244588c0992f8e4f4
refs/heads/main
2023-07-18T07:57:57.705014
2021-08-22T04:36:33
2021-08-22T04:36:33
398,637,698
0
0
null
null
null
null
UTF-8
Python
false
false
1,517
py
# coding: utf-8 """ Prisma Cloud Compute API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 21.04.439 Generated by: https://openapi-generator.tech """ from __future__ import absolute_impor...
[ "aakatev@virtru.com" ]
aakatev@virtru.com
2ee11e708d64b2837a6dc25335b8249c493be029
fb4cc084453c472b66cda9d32a510d75dd5d61ca
/kalon/concurrency.py
df3ea670ba5bea77f46300b28a83f48ad738ecbd
[]
no_license
dadbob/kalon
585f7f0cbdb311dce53fd4fd4f3efa94765aa1cb
af4fe6288c62a9674cd934777dce1e0e76bfb8e1
refs/heads/master
2021-01-18T12:02:12.852796
2016-03-04T11:34:57
2016-03-04T11:34:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,252
py
from functools import wraps from flask import request from flask.ext.restful import unpack from kalon.tools import abort class ConcurrencyError(Exception): pass def concurrency_handler(func, etag_src_field='_version'): """ Decorator to handle ConcurrencyError (retry or abort depending of the presen...
[ "emmanuel.leblond@gmail.com" ]
emmanuel.leblond@gmail.com
082958e0bf3ab927ed1afce4ebea902b8ed33521
e5f4696ec403913acbe201ce9e0e8ab9d036f812
/leetcode/middle/arrAndStr/longSubString.py
6cb2de86fd8d9896fb2f427d27a9d68daadf22e3
[]
no_license
javacode123/oj
393a4021666527d54872f3a056d4f50459a20b9d
c9bb551a1681af595dfc81f285d4c15e4d1ffb38
refs/heads/master
2020-06-20T16:57:00.941505
2019-12-11T08:01:11
2019-12-11T08:01:11
197,185,346
0
0
null
null
null
null
UTF-8
Python
false
false
703
py
# -*- coding: utf-8 -*- # @Time : 2019-08-19 15:36 # @Author : Shark # @mail : zhang_jia_luo@foxmail.com # @File : longSubString.py # @Software: PyCharm class Solution(object): def lengthOfLongestSubstring(self, s): """ :type s: str :rtype: int """ res = 0 ...
[ "zjl@zjldeMacBook-Air.local" ]
zjl@zjldeMacBook-Air.local
5f503526d2e8a74186629ac6a1fa3494df217946
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/legendmohe_LEHome/LEHome-master/usr/callbacks/logical/logical.py
0e79ce37189c490053e827e66ae6ba83776fde9c
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
527
py
#!/usr/bin/env python # encoding: utf-8 from util.log import * from lib.model import Callback class logical_callback(Callback.Callback): def callback(self, aValue, bValue): DEBUG("logical callback invoke.") return aValue and bValue class and_callback(Callback.Callback): def callback(self, aV...
[ "659338505@qq.com" ]
659338505@qq.com
f59968c362152ed6a63234eac85cf350a44da24d
70f492c05e4fc86681f87a76ac5c9d965b7d0050
/python-client/swagger_client/models/event_level.py
93b976d2b9c2d2b3b4409c1a5beca8764ba0a3e2
[]
no_license
sclow/covenant_mgmt
017a63f14ca41389d10a20e872247c630273c533
789464e49ceceac84cfb92838c4f289c11b529a8
refs/heads/main
2023-06-15T18:56:21.138320
2021-07-15T12:51:58
2021-07-15T12:51:58
332,005,056
15
2
null
null
null
null
UTF-8
Python
false
false
2,589
py
# coding: utf-8 """ Covenant API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six...
[ "sc@sclow.com" ]
sc@sclow.com
4b9de524a5a0224fc52aba185fdea59064786b81
e345fcbfaa9ff2699597d62818f03eea85114206
/docs/stepcode/SCL/essa_par.py
d57138be17ffd437a095be9e76eab97f5dee3b0a
[ "MIT" ]
permissive
mozman/steputils
95b12b02dc759553a7e4fbecc0ce535ff7004540
547860b349a36cf24c564d6c87ffd8f60484f6fb
refs/heads/master
2022-12-25T01:19:37.302871
2022-12-16T10:36:06
2022-12-16T10:36:06
230,062,642
28
10
NOASSERTION
2022-05-10T03:50:54
2019-12-25T07:37:10
Python
UTF-8
Python
false
false
2,313
py
def process_nested_parent_str(attr_str): """ The first letter should be a parenthesis input string: "(1,4,(5,6),7)" output: tuple (1,4,(4,6),7) """ params = [] agg_scope_level = 0 current_param = '' for i, ch in enumerate(attr_str): if ch == ',': params.append(cur...
[ "me@mozman.at" ]
me@mozman.at
9c93f6a9ea2a4abfcde6169cda6eb61a48fced8b
12967293f285decb1568bd56af38b1df4e5c533d
/.eggs/docutils-0.14-py2.7.egg/docutils/utils/roman.py
f2b6a145d9d6031e119d5757ef2752284addf3cb
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
martbhell/git-bigstore
36cd16276379833fbade252a77c73cf3644aa30f
960e9ea64d4d5646af3ce411adf46f3236b64d7e
refs/heads/master
2020-05-16T17:51:52.011171
2019-03-12T20:54:42
2019-03-12T20:54:42
183,206,409
0
0
Apache-2.0
2019-04-24T10:29:48
2019-04-24T10:29:47
null
UTF-8
Python
false
false
2,686
py
"""Convert to and from Roman numerals""" __author__ = "Mark Pilgrim (f8dy@diveintopython.org)" __version__ = "1.4" __date__ = "8 August 2001" __copyright__ = """Copyright (c) 2001 Mark Pilgrim This program is part of "Dive Into Python", a free Python tutorial for experienced programmers. Visit http://diveintopython....
[ "dan@lionheartsw.com" ]
dan@lionheartsw.com
efda3fdf3029a2dca13bbe3bac1c5c5502998666
9d5c9d9373002ab4ed1b493136517e8b4ab160e5
/saas/backend/service/action_group.py
484d3d62de38dcd59771f96cceeb96239f86ba6b
[ "MIT" ]
permissive
robert871126/bk-iam-saas
f8299bb632fc853ef0131d445f84c6084fc84aba
33c8f4ffe8697081abcfc5771b98a88c0578059f
refs/heads/master
2023-08-23T19:23:01.987394
2021-10-22T09:45:28
2021-10-22T09:45:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,113
py
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-权限中心(BlueKing-IAM) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with th...
[ "zhu327@gmail.com" ]
zhu327@gmail.com
c29ea73266f6865cd68886fd6abd819f54d53c27
d54e1b89dbd0ec5baa6a018464a419e718c1beac
/Python from others/字典/wk_01_字典的定义.py
6283a4cdd13d6e4954bf6f69f4075eab38851fae
[]
no_license
cjx1996/vscode_Pythoncode
eda438279b7318e6cb73211e26107c7e1587fdfb
f269ebf7ed80091b22334c48839af2a205a15549
refs/heads/master
2021-01-03T19:16:18.103858
2020-05-07T13:51:31
2020-05-07T13:51:31
240,205,057
0
0
null
null
null
null
UTF-8
Python
false
false
260
py
xiaoming = {"name": "小明", "age": 18, "height": 1.75} # 1. 取值 print(xiaoming['name']) # 2. 增加 / 修改 xiaoming['address'] = "chengdu" xiaoming['age'] = 19 print(xiaoming) # 3. 删除 xiaoming.pop('age') print(xiaoming)
[ "1121287904@qq.com" ]
1121287904@qq.com
8639cbbc8c42a459ead0778d324654afeb8b8d05
0fea8a6421fe5f5967f2202910022c2bfd277b4d
/160.判断一个字符串是否包含非数字内容.py
d7bce3038d03cccb4b5874546ba850c199a55246
[]
no_license
maohaoyang369/Python_exercise
4dc10ec061aa0de2bcfe59c86be115e135fb3fab
8fbee8854db76d09e2b1f9365ff55198ddabd595
refs/heads/master
2020-04-09T23:04:02.327118
2019-09-05T14:49:07
2019-09-05T14:49:07
160,646,057
0
2
null
2019-03-21T14:44:13
2018-12-06T08:50:19
Python
UTF-8
Python
false
false
307
py
# !/usr/bin/env python # -*- coding: utf-8 -*- # 判断一个字符串是否包含非数字内容 sentence = "adsfdsds,.13579" is_break = False for i in sentence: if i in "0123456789": is_break = True break if not is_break: print("不包含数字") else: print("包含数字")
[ "372713573@qq.com" ]
372713573@qq.com
88f4b9d5bde03555b677060e5fb564307547c5ad
363b92829f094970fd45bf545af0e47548ceb358
/backend/home/migrations/0001_load_initial_data.py
e82885248f7ffc30787026bd69c64984780fccbd
[]
no_license
crowdbotics-apps/cold-hall-27243
b1c3295aa8b8d784e1b0eecf172076cd3d14524d
cb9c4082f845d7c4eadaeba972dc38226418212c
refs/heads/master
2023-05-02T12:19:37.543112
2021-05-22T13:09:12
2021-05-22T13:09:12
369,810,866
0
0
null
null
null
null
UTF-8
Python
false
false
536
py
from django.db import migrations def create_site(apps, schema_editor): Site = apps.get_model("sites", "Site") custom_domain = "cold-hall-27243.botics.co" site_params = { "name": "Cold Hall", } if custom_domain: site_params["domain"] = custom_domain Site.objects.update_or_crea...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
5dba223b3f8f2f19dd7315afc14729d03ea77ef8
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-gsn-edf/gsn-edf_ut=2.5_rd=0.5_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=35/sched.py
43f4ba714dad70208b5f14fb8e321e27451c5556
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
-X FMLP -Q 0 -L 4 79 250 -X FMLP -Q 0 -L 4 71 400 -X FMLP -Q 1 -L 3 51 250 -X FMLP -Q 1 -L 3 50 300 -X FMLP -Q 2 -L 2 43 175 -X FMLP -Q 2 -L 2 38 175 -X FMLP -Q 3 -L 2 34 100 32 150 30 200 28 300 24 250 17 100 11 100
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
5a179e57100bce4d315f5e799447d108b59b7061
25853310d96778cdadab9eb5b95ff6dea5c3bdb7
/agenda/migrations/0005_auto_20190808_1753.py
052e403d61d57e524528c8647f54536c210964d4
[]
no_license
crashorbo/dermatologia
f839db99e3577167c6bafec7669c25cbc840b38b
e088dda52b3467c7e66b8ce23c7779d3378311da
refs/heads/master
2022-12-25T02:30:40.945013
2020-01-20T14:47:21
2020-01-20T14:47:21
209,484,979
0
0
null
2019-12-05T00:20:36
2019-09-19T07:02:15
JavaScript
UTF-8
Python
false
false
845
py
# Generated by Django 2.2.4 on 2019-08-08 21:53 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('agenda', '0004_auto_20190808_1746'), ] operations = [ migrations.AddField( model_name='agenda', ...
[ "alexander.calani.apaza@gmail.com" ]
alexander.calani.apaza@gmail.com
52b9e0b9e5d530a6fa39a3760132b7e572b3196d
2d3cf0901b544b5da5f203f375240357ae3b9562
/Plots/CombineTimePlots.py
8f5ebb51fbec9ffda4876209ebbf625fa6e2724c
[ "MIT" ]
permissive
space-physics/histfeas
97710ead65aa34a293827bb68165ce2dff585f31
caa0100087d8c2b8711c1c3cb60c322379ef5431
refs/heads/master
2023-03-24T19:50:13.636004
2021-03-22T05:10:05
2021-03-22T05:10:05
30,336,524
1
0
null
null
null
null
UTF-8
Python
false
false
3,598
py
#!/usr/bin/env python """ example creation of PNGs for use with this program: ./FigureMaker.py in/apr14T085454.ini For a real video root directory, finds all the time results and makes multipage GIFs or TIFFs as you like from the PNGs if you have very many PNGs, you might like to use FFV1 in an .avi instead of .gif. ...
[ "scivision@users.noreply.github.com" ]
scivision@users.noreply.github.com
5f4284af37467fb7eb559db561e967df6f328e7d
211e33716ec22df305ce4eaf7dd143d27716d408
/learning/firstProject.py
2a2eccd64910041048e0a0144ed2572f4c86dad2
[]
no_license
malgosza/Projekty
63dfa30f5384e31c774ac15fd2101c3f486c68ac
d0cfd67654af9be1ea5cc0beba99c4a69996bf0f
refs/heads/master
2021-04-03T07:23:51.034095
2020-10-11T12:05:20
2020-10-11T12:05:20
124,683,840
0
0
null
null
null
null
UTF-8
Python
false
false
888
py
tab=[("ser",41), ("sok",25), ("miod",32)] suma=0 for z in tab: # suma+=z suma=suma+z[1] slownik={} for x in tab: # str zamienia typ na stringa prop=x[1]*100/suma print(x[0]+ ' -> ' +str(prop)) slownik[x[0]]=prop #krotka ma niezmienna dlugosc i moze trzymac elementy roznego typu krotka=("ser", ...
[ "kamil.figon@gmail.com" ]
kamil.figon@gmail.com
d05d22c71f77c7c14009577b4b849f5467fb4509
565e8557bd528992059a38e25b8f93f9495e4f56
/Week8/Day5/mini_project/bike_store/rent/migrations/0001_initial.py
acbb6543ba98eeb4d7a2fbacf0d7ed88ab813c4a
[]
no_license
eranfuchs1/DI_Bootcamp
2f753bfa9381e01d3f99b7f39a6faa8d794143c9
a19885444459e7f6ffd552fe32eef9003e7fda14
refs/heads/main
2023-08-14T09:36:14.300816
2021-10-05T18:22:06
2021-10-05T18:22:06
381,000,955
0
0
null
null
null
null
UTF-8
Python
false
false
2,050
py
# Generated by Django 3.2.6 on 2021-08-19 16:26 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Customer', fields=[ ...
[ "xer@xer-labtop" ]
xer@xer-labtop
d8f5ccd28012277035fccae2ceb431338857fef2
9a9e0398f26cee9864d48c4618c0a482e5475e83
/Python/code/reverse_nodes_in_k_group.py
a0a0e878f321d375ae06f065a7391284bbb1e498
[]
no_license
CNife/leetcode
92693c653bb41780ee431293286c3e909009e9b0
7cdd61692ecb52dd1613169e80b924dd39d35996
refs/heads/main
2021-06-22T21:22:12.997253
2021-03-18T07:07:15
2021-03-18T07:07:15
206,955,329
0
0
null
null
null
null
UTF-8
Python
false
false
950
py
from leetcode import ListNode, test, new_list def reverse_group(head: ListNode, k: int) -> ListNode: if not head or k < 2: return head dummy = ListNode(-1) dummy.next = head pre, end = dummy, dummy while end.next: for _ in range(k): if end: end = end.n...
[ "CNife@vip.qq.com" ]
CNife@vip.qq.com
cce20994ce679f81a3ddc42ba1e1d21c630ee448
c380976b7c59dadaccabacf6b541124c967d2b5a
/.history/src/data/data_20191019130416.py
a78354d4402b951ed3e02e68f04aaaac167b3fdf
[ "MIT" ]
permissive
bkraft4257/kaggle_titanic
b83603563b4a3c995b631e8142fe72e1730a0e2e
f29ea1773773109a867278c001dbd21a9f7b21dd
refs/heads/master
2020-08-17T12:45:28.653402
2019-11-15T16:20:04
2019-11-15T16:20:04
215,667,760
0
0
null
null
null
null
UTF-8
Python
false
false
4,290
py
import pandas as pd from typing import Union from pathlib import Path from nameparser import HumanName class ExtractData: def __init__(self, filename: Union[str, Path], drop_columns=None): # """Extract Training Data from file or Path # Arguments: # filename {[str]} -- Filename of CSV ...
[ "bob.kraft@infiniteleap.net" ]
bob.kraft@infiniteleap.net
f2a5779f5e351873be632a36a74090935d3ce1fe
903d3eb210e4cc06818beef01897dc5b9d9a9746
/compiled/Python3/Euler_Problem-012.py
3a71e52e8e8aa4d1c9eb474191c174c641add06c
[ "MIT" ]
permissive
Mikescher/Project-Euler_Befunge
ab4d642e95fd76eb126771c8027fad45bf325c98
db6be0cb0b2cbf41eb6ac0f8b0140998c509acc5
refs/heads/master
2020-04-06T06:31:16.183969
2019-09-26T14:45:22
2019-09-26T14:45:22
24,105,754
7
2
null
null
null
null
UTF-8
Python
false
false
5,885
py
#!/usr/bin/env python3 # transpiled with BefunCompile v1.3.0 (c) 2017 import gzip, base64 _g = ("Ah+LCAAAAAAABACT7+ZgAAEWhre3/fMvG0iwP1iftOvdpIwrZdu8TVxjdhQ/CZjKNUNpoaIOi+3HhxvLJZhD/jmbf7NpN9koo20bsf963mbus1mi8/bUfn716OjuDz/+" + "Pj16u+DSuvnxcXv4NNkZGB5s6GMYbOCHOtOB8zdaAx5dWG7J9/XJlrlzrj0T+pVoenyL3br2jVu38j1vr4vaYb7...
[ "mailport@mikescher.de" ]
mailport@mikescher.de
19fd70d2b0ddbb5ac9743b2533bfe5eaf67d5d45
ac4b9385b7ad2063ea51237fbd8d1b74baffd016
/.history/google/docs_quickstart_20210212183910.py
76ad9235581484f58c22c101b94ac5314a482057
[]
no_license
preethanpa/ssoemprep
76297ef21b1d4893f1ac2f307f60ec72fc3e7c6f
ce37127845253c768d01aeae85e5d0d1ade64516
refs/heads/main
2023-03-09T00:15:55.130818
2021-02-20T06:54:58
2021-02-20T06:54:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,718
py
from __future__ import print_function import pickle import os.path import io from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request from googleapiclient.http import MediaIoBaseDownload from oauth2client.service_account import...
[ "{abhi@third-ray.com}" ]
{abhi@third-ray.com}
a9d40f50d15eae993b8af048aa5eb5e0cd33d854
e2230f57dd5bb508b5c0f7bf4df6af8ae7b36f83
/sympycore/algebras/tests/test_multiplicative_groups.py
ab24fbd92bdb85b605c99500e8f98f57adfc0085
[ "Apache-2.0" ]
permissive
wenyifdu/pymaclab
2fd40192d9dff4fda488f3f9a61e584c1adafd49
e5100ad4201bdf59c01dd600ac7e8865664075c3
refs/heads/master
2021-09-16T11:16:00.680933
2018-06-20T07:29:29
2018-06-20T07:29:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,640
py
from __future__ import with_statement from sympycore import * import sympycore.algebras.groups as groups def test_additive_group_operations(): Group = groups.MultiplicativeGroup x,y,z = map(Group, 'xyz') operands = [x, y, x*y, x*x, Group(1), 1, 'x', 'x*y'] unary_operations = [] binary_operations...
[ "emscheffel@gmail.com" ]
emscheffel@gmail.com
20a283278253e4b608058aac11f4f294d3e9b330
85a0ee08b54b2c5e3154e3727b92c37915b4c1de
/test/Order3.py
934d2886e675a101c69437b9d8de212c15538a64
[]
no_license
yaotony/sandbox-empty
877da9b9ba0ec658bbdc8acc79a97267f96408b9
85f04e5db5d26a04fad9ae4ad6d3c86977a9f865
refs/heads/master
2022-05-20T17:14:51.348759
2022-05-04T08:06:56
2022-05-04T08:06:56
35,472,699
0
0
null
null
null
null
UTF-8
Python
false
false
7,622
py
#2021-03-20 已完成!不可修改 from LineMSG import linePush from SendOrderMSG import sendMSG #定義進場函數,呼號範例為(r,b) = inp(df,r,b,i) def inp(df,r,b,i): #r=成本 b=多空方設定 多方=1 空方=-1 #print(df['Open'].iloc[i]) #print(df['Close'].iloc[i-1]) #print(df['BoxTop'].iloc[i]) #BoxTopMax BoxDownMin # if( b == 1 and d...
[ "tony.exmail@gmail.com" ]
tony.exmail@gmail.com
163f6e80b6cddcc377b036d30e3a93096ff5e13c
e741d661b1cbb1d48eff4adff3ce8d424b0b3aee
/meiduo_mall/libs/yuntongxun/sms.py
ac9dbd8e016a85ddfbc532a11408339076774f71
[ "MIT" ]
permissive
Tao-bug/meiduo_project
09b3900ab7e1436ee3201c53461a9c119d1f56db
e3a24eac2c8231d0e27f6a7fa639dd36baa410b0
refs/heads/master
2022-07-16T02:18:22.319641
2019-11-12T13:54:23
2019-11-12T13:54:23
218,697,808
0
0
MIT
2022-07-01T00:55:01
2019-10-31T06:20:01
JavaScript
UTF-8
Python
false
false
2,726
py
# -*- coding:utf-8 -*- from .CCPRestSDK import REST # 说明:主账号,登陆云通讯网站后,可在"控制台-应用"中看到开发者主账号ACCOUNT SID _accountSid = '8aaf07086e0115bb016e21b0206c1132' # 说明:主账号Token,登陆云通讯网站后,可在控制台-应用中看到开发者主账号AUTH TOKEN _accountToken = '4b07ab923f934a6eb6761311f49137e0' # 请使用管理控制台首页的APPID或自己创建应用的APPID _appId = '8aaf07086e0115bb016e21...
[ "897384405@qq.com" ]
897384405@qq.com
b3ae1f7dc4ad774c4656a0c7480ed503152409d6
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-1/af4d3de83206e591e58fe0f8883db2fdb3d02375-<compact>-fix.py
95205bc10435daa9397bb878691854010183d070
[]
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
526
py
def compact(seq): "\n Removes ``None`` values from various sequence-based data structures.\n\n dict:\n Removes keys with a corresponding ``None`` value.\n\n list:\n Removes ``None`` values.\n\n >>> compact({'foo': 'bar', 'baz': None})\n {'foo': 'bar'}\n\n >>> compact([1, None, 2])\...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
7ea859a37919863d431963068398597586660bd3
2a6f6cc148cbccb55c826bf01e0159ef58a733ec
/ref_intro_pulse_1.py
e2c09aca466a4167af254222e82b00e4171b1151
[]
no_license
QuantumPlumber/CookieBoxMachineLearning
5e9a4ebf385aa40373d4d5dbc1020b40dc06500f
dfc60bb9b29d519618d59b10f9acae058f368e17
refs/heads/master
2022-11-21T20:13:52.507033
2019-09-19T02:09:00
2019-09-19T02:09:00
168,767,419
0
0
null
null
null
null
UTF-8
Python
false
false
1,533
py
import h5py import numpy as np import matplotlib.pyplot as plt #h5_file = h5py.File('convert_test.hdf5', 'r') #h5_file = h5py.File('TF_train_wave_unwrapped.hdf5', 'r') #h5_file = h5py.File('../Data/unwrapped/Eggs/TF_train_wave_unwrapped_eggs.hdf5', 'r') #h5_file = h5py.File('/Data/25Hit_unwrapped/Scrambled/TF_train_25...
[ "44450703+QuantumPlumber@users.noreply.github.com" ]
44450703+QuantumPlumber@users.noreply.github.com
0f24f971e0c5022d0c3a947d4afcc30b7cd67f77
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2142/60782/309123.py
b311a7ba9bdec7e02854d0e7ec6d6dd3c2b6cc25
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
366
py
a = input() b = input() if a == '1' and b == '((()()())(()()))': print('1 2 3 3 4 4 5 5 2 6 7 7 8 8 6 1 ') elif a == '3' and b == '(a+(b*c))+(d/e)​': c = input() d = input() if c == '((())(()))' and d == '((((()': print('1 2 2 1 3 3 ') print('1 2 3 3 2 4 5 5 4 1 ') print('1 2 3 4...
[ "1069583789@qq.com" ]
1069583789@qq.com
7fa93f8ed3d7fa389caa741aa5c309107048bad0
35bec89e0e63fd615b0d73790a99050455e2e20d
/docs/source/conf.py
6c5c0eb08c71ce66604e45caeae30daaf10b1f2b
[ "BSD-3-Clause" ]
permissive
jct94/darc
b89cf5e8aa859fc4daac287e15c2157c6fe4913d
5f2292a852f72f51d9974ecfa8c2f0be3b59e52e
refs/heads/master
2023-01-31T21:43:22.150176
2020-12-21T12:50:57
2020-12-21T12:50:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,437
py
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
[ "jarryshaw@icloud.com" ]
jarryshaw@icloud.com
5584ae50f8fbd2a3633b377c375388c0e7ee6ebc
26fa6c561926696862b8036f16a30f5b6a190765
/tests/e2e/models/dev_sin.py
db847d66c49ce14dbcc6ef4a2df242f1501c7949
[ "Apache-2.0" ]
permissive
rb2309/galini
2900413cb82cfb3243cd728e9c82a8e26f522b22
e9d15ab7ebff49f89f643643d3d67fa573290290
refs/heads/master
2022-11-29T03:17:19.826500
2020-02-12T14:07:08
2020-02-12T14:07:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
339
py
# pylint: skip-file import pyomo.environ as aml import math def get_pyomo_model(): m = aml.ConcreteModel() m.x = aml.Var(initialize=10.0) m.y = aml.Var(initialize=0.0) m.c0 = aml.Constraint(expr=aml.sin(m.x) >= 0) m.c1= aml.Constraint(expr=aml.sin(m.y) >= 0) m.o = aml.Objective(expr=aml.sin(...
[ "francesco@ceccon.me" ]
francesco@ceccon.me
9ad3cb61be54da2cf2ca9e04c2dce65ca2819ccd
f508da1fd2e65491e1e6b5dd3a64d8bf6039bc6c
/eho/openstack/common/exception.py
c0bd14b7248c324f6f8cf3e356a4daf1d1d1627d
[ "Apache-2.0" ]
permissive
senhuang/eho
b9595739b109829b44e6d538b36348ac84529af8
ca4dba1d0e7ab24d748b746e115ca6dc2191997a
refs/heads/master
2021-01-21T00:36:50.271363
2013-03-19T07:55:50
2013-03-19T07:55:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,439
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 OpenStack LLC. # 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/...
[ "slukjanov@mirantis.com" ]
slukjanov@mirantis.com
44e861b07aea5b087930a6da7a3cf134f3ca55f9
6ae8717002f8fce4457cceb3375a114ddcb837df
/1-100/15. Three Sum.py
eafe484c38e6d5f6cd0034610bbd629bea996331
[]
no_license
SunnyMarkLiu/LeetCode
31aea2954d5a84d11a1c4435f760c1d03c6c1243
852fad258f5070c7b93c35252f7404e85e709ea6
refs/heads/master
2020-05-30T07:17:33.992197
2018-03-29T03:57:51
2018-03-29T03:57:51
104,643,862
1
1
null
null
null
null
UTF-8
Python
false
false
1,882
py
#!/usr/local/miniconda2/bin/python # _*_ coding: utf-8 _*_ """ (1) 数组排序 (2) 遍历排序后的数组第一个数到倒数第三个数, 假设为 a (下标为 i), 剩余的两个值一个比a小,在a的左边数组中,一个比a大,在a的右边数组中。 (3) 左边的数 l 从 i 的下一个数开始, 右边的数 r 从最后一个数开始, 遍历, 并求和 s = i + l + r (4) 如果 s = 0, 记录该 solution (5) 如果 s < 0, 表明 l 位置的值太小,则 l 位置的数要往右移, l++ (6) 如果 s...
[ "SunnyMarkLiu101@gmail.com" ]
SunnyMarkLiu101@gmail.com
49a23b8140bf10350c119193822522ca79b6fb5f
11b8c06280fd776be2dfc9a29ef5c1d3beacdc03
/bumps/mystic/functional.py
f36385549c03b666a13a0e252c99f1208c9c0c45
[ "LicenseRef-scancode-public-domain" ]
permissive
ScottSWu/bumps
4a47d58d84542da177c683f0d431eb1990cee362
11ed2e548a33c5d3ff3171240495bd8cf4f58d39
refs/heads/master
2020-12-25T12:57:31.238003
2013-06-21T19:55:36
2013-06-21T19:55:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,466
py
""" Defines a functional interface to the optimizers. """ import inspect from copy import copy from .solver import Minimizer from .problem import Problem from . import stop class Result: """Minimization result. Attributes:: *problem* is the function that was minimized *steps* is the number it...
[ "paul.kienzle@nist.gov" ]
paul.kienzle@nist.gov
36bcd7c79b4072bc55aa5fca66179cd13e389614
5154926f8365a92cfaf7c22b612b64f4aa7a5002
/hookspecs.py
41571beec99b6baed22d0ec132e6585deab6f835
[ "MIT" ]
permissive
kracekumar/pluggy_talk
841bed7368df828ee769a349796bbea783f1599d
566ab712b2089c527eb8eb90c7c9497e8395af02
refs/heads/master
2022-12-25T01:27:52.632527
2020-10-04T18:29:29
2020-10-04T18:29:29
293,239,994
1
0
null
null
null
null
UTF-8
Python
false
false
138
py
import pluggy hookspec = pluggy.HookspecMarker("gutenberg") @hookspec def print_output(resp, kwargs): """Print formatted output"""
[ "me@kracekumar.com" ]
me@kracekumar.com