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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5be8b2753fc3836a90f8d7c0598d176e35dd78fe | 58eac1826eb44833ffc5a4c61ae017883b202334 | /my_cookbook/util/dbhelper.py | 98c6289858c8669160392d1107e167b3996b4cae | [] | no_license | PeterMitrano/my_cookbook | dd8b91170cd101d453c942972a87b2d85dc163b4 | 46d47e863d10947b3052fc59351da5d83a8dba36 | refs/heads/master | 2021-01-19T06:36:26.718989 | 2016-10-17T03:35:17 | 2016-10-17T03:35:17 | 61,961,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,128 | py | import boto3
from collections import namedtuple
import logging
from my_cookbook.util import core
from my_cookbook.util import responder
from my_cookbook.util import decimilify
logging.getLogger('boto3').setLevel(logging.WARNING)
logging.getLogger('botocore').setLevel(logging.WARNING)
logging.getLogger('nose').setLeve... | [
"mitranopeter@gmail.com"
] | mitranopeter@gmail.com |
829aa65b7b2a65e3d7e9942fa1d7a674d3847e32 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_5/gvnser004/question4.py | fafeb85496b5963f5894bd01a6991ab115f6763a | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | """Serayen Govender
16 April 2014
question 4"""
import math
def main():
f = input("Enter a function f(x):\n")
for i in range(10,-11,-1):
for j in range(-10,11,1):
x=j
roundf = round(eval(f))
if roundf == i:
print("o", end="")
... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
7845e499addec0c061ab6ac650294117ce5343af | 613d9b4259e63e6b5ee4f85131c93389569e3f17 | /rllib/utils/framework.py | b63ee1ee8be46be82a71b9805e05b77854562b1a | [
"Apache-2.0",
"MIT"
] | permissive | stephanie-wang/ray | 097986a02eb517eeeddddc3c636eb4c380f1c714 | 62bb26d5d04343e339d014f302a9fbacbd4482d7 | refs/heads/master | 2023-08-31T08:07:38.864072 | 2020-02-06T17:49:40 | 2020-02-06T17:49:40 | 77,302,388 | 4 | 3 | Apache-2.0 | 2022-05-24T22:22:31 | 2016-12-24T22:37:23 | Python | UTF-8 | Python | false | false | 2,402 | py | import logging
import os
logger = logging.getLogger(__name__)
def check_framework(framework="tf"):
"""
Checks, whether the given framework is "valid", meaning, whether all
necessary dependencies are installed. Errors otherwise.
Args:
framework (str): Once of "tf", "torch", or None.
Retu... | [
"ekhliang@gmail.com"
] | ekhliang@gmail.com |
3366f8ecebe10d4951a32eb3a26f1b90dd1d42f0 | b592eaa683d5d117057cc77ad5e14bf1d4ffae6c | /leetcode/560-subarray-sum-equals-k/main.py | f28dd2871708747e4200f1360f3f64d740168bed | [] | no_license | soninishank/AlgoDaily | 97b4dbc5721660c83f6e71e97767a430378cf35d | 1ecb944dc39c33b042f1ce259dbccea68135f0ce | refs/heads/master | 2020-06-12T20:36:32.153719 | 2019-06-29T03:53:39 | 2019-06-29T03:53:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,683 | py | """
1st approach: zero sum subarray
- this question is fucking similar to leetcode 325, 525, 930
- the basic idea is to store the previous sum in a hashtable
e.g. key: previous sum, value: number of occurence of a previous sum
- if currentSum - target in the hastable, the result += occurence
... | [
"chan9118kin@gmail.com"
] | chan9118kin@gmail.com |
ddf84f70287f3306277500405ced26171e13ca0e | f92aebe345bf2ddc11cb09549e550a6668642b75 | /wnf.py | 6bfb2d0c6dd156775afea8b5251371e56b7454cc | [
"MIT"
] | permissive | tobrahma/wnframework | 90d52a9fc7b1756b71b42630b7d885c48948c8f6 | ba279d2765620723b67532d8911ef09c4545c332 | refs/heads/master | 2021-01-16T00:57:49.678548 | 2011-09-23T08:43:28 | 2011-09-23T08:43:28 | 2,040,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,795 | py | #!/usr/bin/env python
import os, sys
from py.build import version
version.verbose = True
def print_help():
print "wnframework version control utility"
print
print "Usage:"
print "python lib/wnf.py build : scan all folders and commit versions with latest changes"
print "python lib/wnf.py setup : setup the local ... | [
"rmehta@gmail.com"
] | rmehta@gmail.com |
6de9ffd7f8b04ddf11cf70bb07916e6884580fee | eed2957c1d2ede09c8129d3f6bbde1164ecef03c | /Chapter-10/elasticsearch/es-insert-books.py | 06820b69fc9d265f4f5a8c18e22071e7884c0cc3 | [] | no_license | aparnak799/cloud-computing-solutions-architect-book-code | 31d8d50c8079142ce571de403544aa00c20af071 | 06dfd36a2e80195724c57e625cb55dede5cc890d | refs/heads/master | 2023-03-17T19:15:12.591485 | 2019-07-05T06:48:53 | 2019-07-05T06:48:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,404 | py | '''
MIT License
Copyright (c) 2019 Arshdeep Bahga and Vijay Madisetti
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, mo... | [
"arshdeepbahga@gmail.com"
] | arshdeepbahga@gmail.com |
849229f5d374d94d5fc0d6702b009159054abbcb | 015383d460fa4321391d964c4f65c4d0c044dcc1 | /.venv/lib/python3.7/site-packages/faker/providers/automotive/no_NO/__init__.py | 8fc3109e1730330326703d853225f74f131ec90f | [
"Unlicense"
] | permissive | kobbyrythm/temperature_stories_django | 8f400c8d3c8190b0e83f7bcfece930d696c4afe9 | 552d39f1f6f3fc1f0a2f7308a7da61bf1b9b3de3 | refs/heads/main | 2023-07-03T21:28:46.020709 | 2021-07-20T09:44:29 | 2021-07-20T09:44:29 | 468,728,039 | 3 | 0 | Unlicense | 2022-03-11T11:41:47 | 2022-03-11T11:41:46 | null | UTF-8 | Python | false | false | 316 | py | from .. import Provider as AutomotiveProvider
class Provider(AutomotiveProvider):
"""Implement automotive provider for ``hu_HU`` locale.
Sources:
- https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Norway
"""
license_formats = (
# Classic format
'?? #####',
)
| [
"b.scharlau@abdn.ac.uk"
] | b.scharlau@abdn.ac.uk |
b9e756dcf6c3adbe5bd9e4736f3caa1f1cf3d9c1 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/grade-school/66eb10ae5e7947bc8420a6287eab37ff.py | 9a7a06cb596504f6b44768b287206983ea596ebf | [] | 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 | 330 | py | class School:
def __init__(self, s):
self.db = {}
def add(self, st, gr):
if gr not in self.db:
self.db[gr] = set([st])
else:
self.db[gr].add(st)
def grade(self, gr):
if gr in self.db:
return self.db[gr]
else:
return set()
def sort(self):
return {gr:tuple(self.db[gr]) for gr in self.d... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
359dba8f63a554807bc2ee9394c1d4bddb72f884 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02778/s807913858.py | 46d6fec1b87e0d9c172257f6ce3b7c16ac5af64b | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | s = input()
S = len(s)
print("x"*S) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
07aa1299a340b7d2b644948704ca394a847d10ba | 70cdf0741a22c678401a306229003bf036ffe5a6 | /ocbind/network_instances/network_instance/protocols/protocol/bgp/peer_groups/peer_group/ebgp_multihop/__init__.py | 0815f188e94ac1523f7c2244c82d8e4b31e00246 | [] | no_license | zsblevins/nanog81-hackathon | 5001e034339d6b0c6452ae2474f06916bcd715cf | 1b64fd207dd69837f947094fbd6d6c1cea3a1070 | refs/heads/main | 2023-03-03T09:39:28.460000 | 2021-02-15T13:41:38 | 2021-02-15T13:41:38 | 336,698,856 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,462 | py | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | [
"zblevins@netflix.com"
] | zblevins@netflix.com |
2b4e68a9756e23a282ef6982511d41ccbff06d75 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc034/B/4787405.py | 19124c42d1599c8a18fd736144ed01fa8618d9f7 | [] | 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 | 71 | py | n = int(input())
if n%2 == 0:
print(n-1)
else:
print(n+1) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
aeefd4e3a3c09b73360cd8fe23548b4cf098e94c | 27a787a3b9fceee77fb860f1f8f3d58036861b01 | /abc158/A/main.py | a5b27972d1fc9597fb3fc8568e5e73e301157f64 | [] | no_license | AtomScott/atcoder | 8a837fd4b70adb3ace30efa744887b7d76b0043d | 7fdaa07a19e7b07f1443fdd3cdb5c0a2ec792a63 | refs/heads/master | 2021-07-20T11:54:39.665630 | 2021-01-07T06:14:37 | 2021-01-07T06:14:37 | 230,913,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | #!/usr/bin/env python3
import sys
YES = "Yes" # type: str
NO = "No" # type: str
def solve(S: str):
allA = [s=='A' for s in S]
allB = [s=='B' for s in S]
if all(allA) or all(allB):
print(NO)
else:
print(YES)
return
# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-... | [
"atom.james.scott@gmail.com"
] | atom.james.scott@gmail.com |
3c084661f96b6e73210f36b1d6819fc42804a0e7 | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_rho1.py | b988fda21570d022f1cb7c0b19a6bff79476db72 | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | from xcp2k.inputsection import InputSection
class _rho1(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Section_parameters = None
self.Nbin = None
self.Min_cycle_lengths_wdg = None
self.Min_cycle_lengths_non = None
self.Min_cycle_lengths_all = No... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
35c2c11149eda396514d9a1aeb6298b840a1329f | a853c53a3ad0f55983f86d527059dfd37d4f6997 | /rbansalrahul6_project/wsgi.py | 3b54083c8c4e0721b8a8595e5c8aa1ebb322a7c0 | [] | no_license | jpic/rbansalrahul6_project | d2566e8578c631fe258c5958211da2a3745640c6 | 9b984719b106293b4254477e174c7e4c0b9ba904 | refs/heads/master | 2021-01-18T11:24:36.682641 | 2017-03-08T13:44:28 | 2017-03-08T13:44:28 | 84,324,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | """
WSGI config for rbansalrahul6_project project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefaul... | [
"jamespic@gmail.com"
] | jamespic@gmail.com |
92d79ab9e002bbd8412559ed8e40cacbe96d4b1c | 0d24036dcf8736c0392a1ee1c2f3b45633221d8a | /etc/src/genpy-bgp-oper/cisco_ios_xr_ipv4_bgp_oper/bgp/instances/instance/instance_active/default_vrf/afs/af/update_generation_neighbors/update_generation_neighbor/bgp_updgen_nbr_bag_pb2.py | 9c02eb131cf7b693516532975254a24a67f722ef | [] | no_license | mspiez/telemetry_collector | c4b97c6686748fc20748898a25e9fc756d2d0b63 | 52ed12c06debfe04181f0bfea9854a66ed8bb3df | refs/heads/master | 2020-12-19T23:28:08.358956 | 2020-05-02T19:54:38 | 2020-05-02T19:54:38 | 235,883,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 101,097 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: cisco_ios_xr_ipv4_bgp_oper/bgp/instances/instance/instance_active/default_vrf/afs/af/update_generation_neighbors/update_generation_neighbor/bgp_updgen_nbr_bag.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))... | [
"mspiez@gmail.com"
] | mspiez@gmail.com |
b1edecab0708377a24aa8dabed91222d09774391 | 651055bd68ca8c9257c242f02fa09301d1773dd1 | /Cuda/Kernels/PRelu.py | c065133900c3fbed89335c1683a3d94687a47fea | [
"Apache-2.0"
] | permissive | ashmanov/PuzzleLib | 135483881669030f06a387248927e4a8d5fc5ad2 | 58c54c5740594db8fe48b066eb393906c8b3f325 | refs/heads/master | 2021-02-05T23:58:51.768676 | 2020-02-28T20:34:09 | 2020-02-28T20:34:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,039 | py | import numpy as np
from PuzzleLib.Cuda.GPUArray import GPUArray
from PuzzleLib.Cuda.SourceModule import SourceModule
from PuzzleLib.Cuda.Utils import device, prod, roundUpDiv, nthreads, memoryPool as memPool
from PuzzleLib.Cuda.Kernels.MatVec import matsum
preluTmpl = """
extern "C"
__global__ void prelu(float *ou... | [
"psukhachev@yahoo.com"
] | psukhachev@yahoo.com |
a16c0e4d77d80c8dc964d43f433bc0f0f0fbabd7 | 3284e336509aa58fb8b720b4506f8aa111601d64 | /4-grouping-data/2_grouping_by_another_class.py | 5ff9ae78d8b1c7501207ca2a95276958585a1b0d | [] | no_license | OCulzac/manipulating-dataframes-with-pandas | 61d8bc918051d3629a066864d48860a75d9e5533 | 0cab0d9410d8f3b484d9dd03c78d54f1cc1a5e6c | refs/heads/master | 2020-05-20T09:39:05.260419 | 2019-05-08T01:38:33 | 2019-05-08T01:38:33 | 185,506,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | """ Grouping by another series
In this exercise, you'll use two data sets from Gapminder.org to investigate the average life expectancy (in years) at birth in 2010 for the 6 continental regions. To do this you'll read the life expectancy data per country into one pandas DataFrame and the association between country and... | [
"oronculzac@gmail.com"
] | oronculzac@gmail.com |
325cdc5bbf3169e5b7a3e1241f8f547b507049c8 | c548c10c4fd0b6c1d1c10cc645cb3b90b31f2de6 | /ml/m11_kfold_estimators2_cancer.py | 10c3aa2d3782c5d481b8f91eb25fe8b612db1d79 | [] | no_license | sswwd95/Study | caf45bc3c8c4301260aaac6608042e53e60210b6 | 3c189090c76a68fb827cf8d6807ee1a5195d2b8b | refs/heads/master | 2023-06-02T21:44:00.518810 | 2021-06-26T03:01:26 | 2021-06-26T03:01:26 | 324,061,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,211 | py | from sklearn.model_selection import train_test_split, KFold,cross_val_score
from sklearn.metrics import accuracy_score,r2_score
from sklearn.utils.testing import all_estimators
from sklearn.datasets import load_breast_cancer
import warnings
warnings.filterwarnings('ignore') # warning에 대해서 무시하겠다.
dataset = load_breast... | [
"sswwd95@gmail.com"
] | sswwd95@gmail.com |
62dd618455ca4b0447b2a52944cd4af3085b85bf | dfc827bf144be6edf735a8b59b000d8216e4bb00 | /CODE/postprocessing/readplot/db/bigsmooth1/odx/smoothloopoverdx.py | 72a338c5c99ec62664ce7a506434ad5cc63f6106 | [] | no_license | jordanpitt3141/ALL | c5f55e2642d4c18b63b4226ddf7c8ca492c8163c | 3f35c9d8e422e9088fe096a267efda2031ba0123 | refs/heads/master | 2020-07-12T16:26:59.684440 | 2019-05-08T04:12:26 | 2019-05-08T04:12:26 | 94,275,573 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 23 16:53:37 2015
@author: jordan
"""
import csv
from numpy.linalg import norm
from scipy import *
from pylab import plot, show, legend,xlim,ylim,savefig,title,xlabel,ylabel,clf, loglog
from matplotlib2tikz import save as tikz_save
diffw = "11"
wdirord = "FDcent"
#nums ... | [
"jordanpitt3141@github.com"
] | jordanpitt3141@github.com |
b0d888c57793d1a16729c34bcc5d71043ad29f17 | 6a9f6e6527afb38611a5c695e5845e492d7676ff | /contest/1156.swap-for-longest-repeated-character-substring.py | 257dcdf7596f4be5f643d99fb1e781dfc9310b0b | [] | no_license | Junyangz/leetcode | 39913d48778d369f9f0a96070352d63b207e7df6 | 5de48fbdcb61ce8a437255a119a4a3ae242ede52 | refs/heads/master | 2020-06-09T08:57:26.361138 | 2019-11-14T08:38:07 | 2019-11-14T08:38:07 | 193,413,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,621 | py | class Solution:
def maxRepOpt1(self, text: str) -> int:
'''
At least swap one character
'''
stack = [['!',0]]
for i in text:
if i != stack[-1][0]:
stack += [[i,1]]
else:
stack[-1][1] += 1
stack = stack[1:]
... | [
"junyangz.iie@gmail.com"
] | junyangz.iie@gmail.com |
dfc49cbc577919a03e7e39f6b2973bd164f1af96 | d84cccafc4a36c58cdde31999443018546af4b96 | /trunk/HippyBotGrammar/FiziksGramrParser.py | ef19b8eb9439397ca1a0d2429d058794f835f37c | [] | no_license | BGCX261/zigolive-svn-to-git | 5ccd1e854eee96ea9de9891c5e0867d2d063c412 | df83cab16842ac5d24ba5b5172a8268179bd3d2d | refs/heads/master | 2021-01-19T22:01:35.962133 | 2015-08-25T15:22:55 | 2015-08-25T15:22:55 | 41,502,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,809 | py | # $ANTLR 3.2 Sep 23, 2009 12:02:23 C:\\Users\\James\\Documents\\FiziksGramr.g 2010-01-23 21:47:36
import sys
from antlr3 import *
from antlr3.compat import set, frozenset
from antlr3.debug import *
# for convenience in actions
HIDDEN = BaseRecognizer.HIDDEN
# token types
EXPONENT=9
T__25=25
T__24=24
... | [
"you@example.com"
] | you@example.com |
f6bb6b08fedb44b4ec58386ca3da6c9c63a4f551 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/python/ops/lookup_ops.py | 661a80a325190192acbd66267da421880871e4b6 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:ec822f3d2eb1d21582601ca0bb0168762e2b6010ee2bae46858c902896a56374
size 79247
| [
"github@cuba12345"
] | github@cuba12345 |
d6b76b693109b8a87aae87b29e846fa3185f64f2 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/12175060.py | 83dc86a15b3516f2b377e9ac578084dabe7be680 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,797 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/12175060.py generated: Wed, 25 Jan 2017 15:25:24
#
# Event Type: 12175060
#
# ASCII decay Descriptor: [B+ -> (D*+ -> (D0 -> K- pi+) pi+) (J/psi -> mu+ mu-)]cc
#
from Configurables import Generation
Generation().EventType = 12175060
Generation().SampleG... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
009cb63232160840f0b28f73f9c5a48ea74e2092 | 4c585fa91486a2a703776741193e06c1006d9177 | /wishbone/etherbone.py | 3ad84c6add11900a4e5aacb9e64f87a302d63511 | [] | no_license | felixheld/transceiver_test | fa2f59ae287a58aad55bf79d2801dc717606db7d | 5e9d2350193b0b68805aa92646b0c250956a7ac0 | refs/heads/master | 2021-04-29T18:16:04.074074 | 2018-09-23T09:22:40 | 2018-09-23T09:22:40 | 121,689,855 | 0 | 0 | null | 2018-02-15T22:19:58 | 2018-02-15T22:19:58 | null | UTF-8 | Python | false | false | 21,451 | py | """
Etherbone
CERN's Etherbone protocol is initially used to run a Wishbone bus over an
ethernet network. This re-implementation is meant to be run over transceivers
and introduces some limitations:
- no probing (pf/pr)
- no address spaces (rca/bca/wca/wff)
- 32bits data and address
- 1 record per frame
TODO:
- repor... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
26c7fdd7dcebb8ef63fc8054d747201a41710c1b | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq2908.py | d1b5c6c4545673ae016aead34dcc2b843cf29168 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,037 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=38
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
fb74a26dee41c1e9c205b12ab711938497de1a73 | 1cfa9dc29acbe1c6cdc3ee74379750aacdfee7b5 | /test/functional/disablewallet.py | a832e83c17eabfb23ab7c19257530a4e24a81d03 | [
"MIT"
] | permissive | yinsongbj/MagnaChain-dev-master | e2198ba2f46d64d4bd75d55cb257d5b475d0fb70 | 0b1f1d1a881c82ec11474e250c1dfdaec4d55a38 | refs/heads/master | 2020-04-08T21:55:45.810445 | 2018-11-29T07:37:54 | 2018-11-29T07:38:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2016 The MagnaChain Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test a node with the -disablewallet option.
- Test that validateaddress RPC works when running with... | [
"weigun@weigun.com"
] | weigun@weigun.com |
23a5f48dcbd0f809ae2fe88137395d9699088b7a | 2521e6427a7668d8cc91eabb368a5cf0eb7310f9 | /Cap17-Exceptions/11_UnknowError.py | 4d531662322263d3b2c623e7908a3d0cee44fa79 | [] | no_license | frclasso/turma3_Python1_2018 | 4a7bc0ba0eb538100400c15fc5c5b3ac1eeb7e50 | 47cd3aaa6828458b7f5164a8bce717bb8dd83a7c | refs/heads/master | 2020-04-06T16:18:00.889198 | 2019-06-10T15:11:32 | 2019-06-10T15:11:32 | 157,614,408 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | #!/usr/bin/env python3
# Exceçao generica UnknowError
import sys
def main():
try:
x = 5/0
except ZeroDivisionError: # ValueError
print('Erro, nao é possivel dividir por zero')
except:
print(f'UnknowError:{sys.exc_info()[0]}') #Erro desconhecido
else:
print('OK!!')
... | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
51519d9a4750b3bb7a12df1564b9ec747ec535fa | 4162c9034583ef718e12d206e91e3fc3c9dfa1c7 | /pylot/planning/behavior_planning_operator.py | 810d971f53f0504cec68d1ca8135966ffde814f0 | [
"Apache-2.0"
] | permissive | sunnyjiang/pylot | ee09c01de3b9dfe308f1a6130c4791ab8c9fc898 | 0cd317745b7c2cc00432346a49aefb72c19a79cd | refs/heads/master | 2022-11-30T14:14:30.481458 | 2020-08-09T03:38:39 | 2020-08-09T03:38:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,957 | py | from collections import deque
import erdos
import numpy as np
import pylot.planning.cost_functions
import pylot.utils
from pylot.planning.messages import WaypointsMessage
from pylot.planning.utils import BehaviorPlannerState
from pylot.planning.waypoints import Waypoints
class BehaviorPlanningOperator(erdos.Operat... | [
"gogionel@gmail.com"
] | gogionel@gmail.com |
5ed0a3e71c73654162b073177f93e274765f6afa | 48bb4a0dbb361a67b88b7c7532deee24d70aa56a | /codekata/rightangletri.py | dee28d1ce9e150d12df7e4fb50d1eba5ff5003fe | [] | no_license | PRAMILARASI/GUVI | 66080a80400888263d511138cb6ecd37540507c7 | 6a30a1d0a3f4a777db895f0b3adc8b0ac90fd25b | refs/heads/master | 2022-01-28T08:54:07.719735 | 2019-06-24T15:57:05 | 2019-06-24T15:57:05 | 191,355,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | a1,bb,c=map(int,input().split())
if ((a1**2)+(bb**2))==c**2 or a1**2+c**2==bb**2 or bb**2+c**2==a1**2:
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | PRAMILARASI.noreply@github.com |
f2a52b8162d96b34bb427c135c3728041852a3bc | 268568ff2d483f39de78a5b29d941ce499cace33 | /spyder/plugins/editor/tests/__init__.py | f859085cb3bc49e352a6f944d6f48f218b81f9b9 | [
"MIT"
] | permissive | MarkMoretto/spyder-master | 61e7f8007144562978da9c6adecaa3022758c56f | 5f8c64edc0bbd203a97607950b53a9fcec9d2f0b | refs/heads/master | 2023-01-10T16:34:37.825886 | 2020-08-07T19:07:56 | 2020-08-07T19:07:56 | 285,901,914 | 2 | 1 | MIT | 2022-12-20T13:46:41 | 2020-08-07T19:03:37 | Python | UTF-8 | Python | false | false | 344 | py | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) Spyder Project Contributors
#
# Licensed under the terms of the MIT License
# (see LICENSE.txt for details)
# -----------------------------------------------------------------------------
"""Tests fo... | [
"mark.moretto@forcepoint.com"
] | mark.moretto@forcepoint.com |
3699b17a876dc0213cede5d90e5fea60be2303cb | 9351ede00660383eb9510f38efa1e6eb13ed490a | /hostingservices/services/resources.py | 56b5e6b86aeba5915e41d954db3de7fe63cdae32 | [] | no_license | zbyte64/django-hostingservices | 72109d578da54d766822e9c5f11b3f999d226d96 | 32cf2f411cd900374e285d544ca9e04fb3f6d3cf | refs/heads/master | 2020-12-24T13:17:56.779976 | 2012-11-01T21:11:18 | 2012-11-01T21:11:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,147 | py | from django.conf.urls.defaults import patterns, url, include
import hyperadmin
from hyperadmin.resources import BaseResource
from hyperadmin.hyperobjects import Link
from dockitresource.resources import DocumentResource
from hostingservices.services.models import HostedSite, Service, ServicePlan, ServicePlanRequest
... | [
"jasonk@cukerinteractive.com"
] | jasonk@cukerinteractive.com |
84ef7110f3bffb93e7af85f901b015d85d349862 | ea1373d9a58ad198c15d35a6daddb4e06d21aa39 | /netScripts/3DCNN_Voxel/models/3DCNN_Atrous.py | e39921bf6cf639e8e0e519ca08cc686dc440e3b1 | [] | no_license | screnary/VoxSegNet | bb2778dfc460dfafdbd923f79755f7f0776dc36f | 264f2efc0a589018a1fc68c111626beacbe095a5 | refs/heads/master | 2020-09-04T03:41:47.067129 | 2019-11-07T06:34:29 | 2019-11-07T06:34:29 | 219,649,857 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,199 | py | """ 3DCNN encode decode U net
mimick O-CNN segmentation network---20180120
get_model_2block_v1_afa ---20181121, TVCG response letter, additional ablation study
"""
import tensorflow as tf
import numpy as np
import os
import sys
import pdb
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
sys.pat... | [
"screnary@qq.com"
] | screnary@qq.com |
047ea09d11072afd6f653da2b0a5ffffea2f24bd | f9c8295ad3e0d5a0c2c8cfe34146696881c46f23 | /controllers/show.py | 518756e71e5675c41b05f75de0036c0a0e5a1bf0 | [] | no_license | mary-lev/concordances2.0 | 60fa72405d75b65bf7eceb92312c644636146c03 | 8c3da6d684e61d3c4395a985a8d798f2bb2d3d65 | refs/heads/master | 2023-08-08T15:29:33.045917 | 2023-07-29T20:14:33 | 2023-07-29T20:14:33 | 32,200,125 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,690 | py | # coding: utf8
# попробовать что-либо вида
from xml.etree import cElementTree as ET
import difflib
import re
import gensim
import json
months = ['января', 'февраля', 'марта', 'апреля', 'мая', 'июня', 'июля', 'августа', 'сентября', 'октября', 'ноября', 'декабря']
months2 = ['январЬ', 'февраль', 'март', 'апрель', 'май',... | [
"marylevchenko@gmail.com"
] | marylevchenko@gmail.com |
b826550db33716d06881ef1866c9532145d2caad | 1113e8eec4ccbbcd00c6a9b5466c5239b6f0eb03 | /cpos/foundation/nosql/mongodb_spec.py | 3bb52635e484bbaf49cb53465ad5f896fb115755 | [] | no_license | yizhong120110/CPOS | a05858c84e04ce4aa48b3bfb43ee49264ffc5270 | 68ddf3df6d2cd731e6634b09d27aff4c22debd8e | refs/heads/master | 2021-09-01T17:59:53.802095 | 2017-12-28T05:43:06 | 2017-12-28T05:43:06 | 106,247,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,095 | py | # -*- coding: utf-8 -*-
"""
Inbound request:
0 4 8 8+keylen 8+keylen+valuelen 40+keylen+valuelen 41+keylen+valuelen
+-------+----------+-------------+---------------+------------------+---------------+
|keylen | valuelen | key | value | md5 | flag ... | [
"yizhong120110@gmail.com"
] | yizhong120110@gmail.com |
5f5adf9e27448dbbe3bb8b56552ae13bcd7e3f19 | 354bbeb486fa164629fccd94385d7570589c62e1 | /tensorflow_datasets/testing/feature_test_case.py | 4987e4d9dd33abec6375f945c3a2b1bf86598b0c | [
"Apache-2.0"
] | permissive | whatwilliam/datasets | 34da847f3434f660a5d670688ff6e26f3c5ca0c4 | e336b79dfce5d89d3753042f4c70c0a281fe1f9f | refs/heads/master | 2023-06-04T21:24:57.018730 | 2021-06-17T20:59:58 | 2021-06-17T20:59:58 | 372,873,415 | 1 | 0 | Apache-2.0 | 2021-06-01T15:14:09 | 2021-06-01T15:14:08 | null | UTF-8 | Python | false | false | 13,021 | py | # coding=utf-8
# Copyright 2021 The TensorFlow Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
505e4d6ffac2bb86a4b4b1438faa545897060b9f | e8fc643dc5ff7cc3a61334d910621c0b7267fd24 | /python/phdthesis/config/matplotlib/rcparams.py | 68e645034f6d9233f313d584c2d8074a3bd167cc | [] | no_license | kidaa/phd-thesis-physics | a14c4045fb46b1bc92ae162748c6bb163213734e | 660e2e8bcde47f50d5325ca41d2f941d5044dd9a | refs/heads/master | 2020-12-28T17:12:54.033423 | 2013-08-18T11:56:42 | 2013-08-18T11:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | from matplotlib import rcParams
rcParams['lines.linewidth'] = 2
rcParams['font.size'] = 8
#rcParams['axes.color_cycle'] = ('r','b','g')
| [
"andreas.dewes@gmail.com"
] | andreas.dewes@gmail.com |
6455b1e92935bfd85b5d09f2d8dac22e687caf08 | 9e26b28f74585a4f95476847f6e886ecf3bff0a1 | /python/restore.py | 089f1d10aee331fd545d839edda194e72fb37e0c | [] | no_license | wanziforever/tools | 28e4aa30377395fd9966407051e92f83efd23481 | 49f8de6e3dd18846c8b5f187507513312778a7ed | refs/heads/master | 2016-09-06T10:30:28.303092 | 2015-06-04T01:53:18 | 2015-06-04T01:53:18 | 6,934,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,772 | py | #!/usr/bin/env python
import os
import sys
import subprocess
import shlex
import re
import shutil
from datetime import datetime
target_d = "/home/denny/.platform.bak"
project_d = "/root/platform"
m_all_packages = {}
signature = ".signature"
packageRe = re.compile(r"platform_\d{4,4}-\d{2,2}-\d{2,2}_\d{2,2}"
... | [
"wanziforever@gmail.com"
] | wanziforever@gmail.com |
dc935cee80139ddbef2bc417db35898320052b13 | 337ece3f5c5ea9b48c00c6535c6aead9344ca452 | /messaging/migrations/0007_thread_accepted.py | f0ace331caf73ca67e62414901320bf6029bb5e6 | [] | no_license | ryanbrandt/debatr | 3bb4156eaa7ed33d63524ed0bd845d44122c096f | 10082a02b0405c3f55a6fd5344e4facf78482133 | refs/heads/master | 2021-06-29T20:56:57.713184 | 2020-10-14T03:31:50 | 2020-10-14T03:31:50 | 165,954,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # Generated by Django 2.1.4 on 2019-01-11 22:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('messaging', '0006_auto_20190111_1648'),
]
operations = [
migrations.AddField(
model_name='thread',
name='accepted',
... | [
"rnb52@scarletmail.rutgers.edu"
] | rnb52@scarletmail.rutgers.edu |
cb9cf4e44b99137619d492eb51159bb148b1d0f2 | 60ff82c168f247728fa88ca8e748b61876d6b5c3 | /Chrome/GuestUser/HomePage/ChooseTileSection/ExploreCompaniesSubsection/Test_LookInside_button.py | f92d9761c7f40379b5c29c39a30a4db28831ba3a | [] | no_license | mariana-rusu/the.muse | 2b9bee8a7740c3f305463cbfc28ebd3bacd49907 | 58434e3ad45795cb980aca8d6b5c67132b8a855c | refs/heads/master | 2021-01-12T07:33:04.831570 | 2017-01-09T21:02:52 | 2017-01-09T21:02:52 | 76,977,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | from selenium import webdriver
import unittest
import time
from selenium.common.exceptions import WebDriverException
class LookInside(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Chrome()
self.driver.maximize_window()
self.driver.get("https://www.themuse.com/")
tim... | [
"mirabelia@yahoo.com"
] | mirabelia@yahoo.com |
c38497b70f17aa149ee0ca405860efae8ae80a6f | 70263abbb3c7efabf4039f5861e4d417926c13af | /nova/nova/block_device.py | 55f188b153758613e9f9ea28ee051a522391babe | [
"Apache-2.0"
] | permissive | bopopescu/keystone_hierarchical_projects | 9b272be1e3069a8ad1875103a1b7231257c90d9c | bf5cbb2e1c58dae17e77c2ec32ed171ec3104725 | refs/heads/master | 2022-11-21T04:33:35.089778 | 2014-02-24T19:23:47 | 2014-02-24T19:23:47 | 282,174,859 | 0 | 0 | null | 2020-07-24T09:12:32 | 2020-07-24T09:12:31 | null | UTF-8 | Python | false | false | 18,120 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 Isaku Yamahata <yamahata@valinux co jp>
# 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
#
# ... | [
"tellesnobrega@gmail.com"
] | tellesnobrega@gmail.com |
eca0223363c2f2e9272154b035e1b511337fc270 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/1699c9ea4809fb85a8c95d60724b6d182125cc4e-<list_elbs>-bug.py | 70b49004fedcf7d6367bc104eafb264df516f69a | [] | 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 | 510 | py | def list_elbs(self):
elb_array = []
try:
all_elbs = self.connection.get_all_load_balancers()
except BotoServerError as err:
self.module.fail_json(msg=('%s: %s' % (err.error_code, err.error_message)))
if all_elbs:
if self.names:
for existing_lb in all_elbs:
... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
84818de34bab04ad7f2f018f702636581362ce4b | 43c24c890221d6c98e4a45cd63dba4f1aa859f55 | /from_cpython/Lib/test/test_peepholer.py | eafbe21adff83f3c0c9f2eba40a4a50edc7da335 | [
"Apache-2.0",
"Python-2.0",
"BSD-2-Clause"
] | permissive | jmgc/pyston | c8e4df03c33c6b81d20b7d51a781d9e10148238e | 9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f | refs/heads/master | 2020-12-11T07:51:58.968440 | 2020-09-11T14:38:38 | 2020-09-11T14:38:38 | 39,242,644 | 0 | 0 | NOASSERTION | 2020-09-11T14:38:39 | 2015-07-17T08:09:31 | Python | UTF-8 | Python | false | false | 8,869 | py | # expected: fail
import dis
import sys
from cStringIO import StringIO
import unittest
def disassemble(func):
f = StringIO()
tmp = sys.stdout
sys.stdout = f
dis.dis(func)
sys.stdout = tmp
result = f.getvalue()
f.close()
return result
def dis_single(line):
return disassemble(compile(... | [
"kmod@dropbox.com"
] | kmod@dropbox.com |
4380d3a397f45edcf97c4ec47eee313caf165254 | e16d7d8f60145c68640b25aa7c259618be60d855 | /django_by_example/code/Chapter 3/mysite/blog/templatetags/blog_tags.py | 760795f5cfa3222bcc1a7d5325271f7486f8cbff | [] | no_license | zongqiqi/mypython | bbe212223002dabef773ee0dbeafbad5986b4639 | b80f3ce6c30a0677869a7b49421a757c16035178 | refs/heads/master | 2020-04-21T07:39:59.594233 | 2017-12-11T00:54:44 | 2017-12-11T00:54:44 | 98,426,286 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | from django import template
from django.db.models import Count
from django.utils.safestring import mark_safe
import markdown
register = template.Library()
from ..models import Post
@register.simple_tag
def total_posts():
return Post.published.count()
@register.inclusion_tag('blog/post/latest_posts.html')
def... | [
"544136329@qq.com"
] | 544136329@qq.com |
b9d19aef570e68f727f247124e9fa92a342f75e8 | b605322be54890f1c9e41f7b00ee036f2b4461dd | /modules/.idea/turtleDemo.py | 8a82f9bea50cf32194911b0803b2fae9d273fdc2 | [] | no_license | piushvaish/pythonProgrammingExcercises | 2685400a81b4ebe5b8b50ac3d13ed3ba7be16ded | da8174e7002ba38b9476e5c51668094fcae6b3a4 | refs/heads/master | 2020-12-04T16:08:48.585463 | 2017-07-30T23:34:44 | 2017-07-30T23:34:44 | 67,771,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | # import turtle
#
#
# turtle.forward(150)
# turtle.right(250)
# turtle.forward(150)
# turtle.done()
# print(dir())
#print(dir(__builtins__))
# for m in dir(__builtins__):
# print(m)
import random
# # print(dir())
# # print()
# # print(dir(shelve))
#
# for obj in dir(shelve.Shelf):
# if obj[0] != '__':
# ... | [
"vaishpiush@gmail.com"
] | vaishpiush@gmail.com |
67783058ef8015f28a2f3d51c06bb79c407d2115 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/apimanagement/azure-mgmt-apimanagement/generated_samples/api_management_create_product_group.py | fc2148c1c51aa2e421348cbc785119724e17eb69 | [
"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,640 | 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 |
67491d200a820e668c3b6d167c7cc0119242848f | da687718aa8ce62974090af63d25e057262e9dfe | /cap17-tratamento-de-excecoes/extras/exceptions0-ValueError.py | 67db6876abb96d5c952dcb4273543c852f69b637 | [] | no_license | frclasso/revisao_Python_modulo1 | 77928fa4409c97d49cc7deccdf291f44c337d290 | 1e83d0ef9657440db46a8e84b136ac5f9a7c556e | refs/heads/master | 2020-06-25T05:37:28.768343 | 2019-07-27T22:23:58 | 2019-07-27T22:23:58 | 199,217,969 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | #!/usr/bin/env python3
def main():
try:
x = int('foo')
except ValueError:
print('I caugth a ValueError!')
if __name__ == '__main__':main()
| [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
b25bf234deb667ed16d92c0ea681638240a40ea5 | 16109c0fa3a7d0faf86a9c680ee2490170492a79 | /file.py | 640da9826bc1b6ba9b397ab6f5df2ade90516552 | [] | no_license | sandhyakopparla/python | 361ea5f0dedcdd2c08d0d16c25f3dd9b42b6c3f2 | b87a9ecce5005e2e43e5b0a2d8aa17d477d2c7a2 | refs/heads/submit | 2023-07-16T01:55:46.120786 | 2021-08-20T04:21:31 | 2021-08-20T04:21:31 | 397,566,663 | 0 | 0 | null | 2021-08-20T04:21:31 | 2021-08-18T10:51:48 | Python | UTF-8 | Python | false | false | 431 | py | while (True):
print("1.Add name")
print("2.Display")
print("3.Exit")
choice=int(input("Enter your choice "))
if choice==1:
user=input("Enter the name : ")
myfile=open('demo.txt','w+')
myfile.write(user)
if choice==2:
myfile=open('demo.txt','r+')
x... | [
"sandhyakopparla2413@gmail.com"
] | sandhyakopparla2413@gmail.com |
6fa6b707153ad3cdf3ea560af50ddf8c08a82176 | 36568b9928866b0056e2ae8da9315cd96ae16215 | /cs/lambda_cs/05_hash_tables_and_blockchain/Blockchain/basic_transactions_gp/blockchain.py | 1a904a99e7e0b87b1a1543ec0eb5176710d80677 | [
"MIT"
] | permissive | tobias-fyi/vela | 90de580a17114194273b9a655d3239c020ba8ada | b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82 | refs/heads/master | 2023-01-12T19:40:45.290898 | 2021-05-14T03:10:05 | 2021-05-14T03:10:05 | 218,124,737 | 0 | 0 | MIT | 2020-03-31T09:06:08 | 2019-10-28T19:07:01 | null | UTF-8 | Python | false | false | 6,372 | py | """
Blockchain — Day 2 Project :: Server with transactions
"""
import hashlib
import json
from time import time
from uuid import uuid4
from flask import Flask, jsonify, request
class Blockchain:
def __init__(self):
self.chain = []
self.current_transactions = []
# Create the genesis bloc... | [
"tobyreaper@gmail.com"
] | tobyreaper@gmail.com |
f82c6db7a724ce6b6190ab545cb05ac86efe95c3 | e18b3cb22c09cb6b2fff7555eeaeddba1513ac1f | /python_stack/flask_fundamentals/counter_proj/app.py | 96fbb3161606610a74abadbccd8181370e6b693c | [] | no_license | LawerenceLee/coding_dojo_projects | e71760850f3164fbd217004d0ea2f38c5bddd2d8 | 099b1f862ec520bab93c58235151680bb74c0bf6 | refs/heads/master | 2021-05-10T16:11:40.466412 | 2018-05-09T02:24:04 | 2018-05-09T02:24:04 | 118,569,970 | 1 | 1 | null | 2018-03-24T22:37:58 | 2018-01-23T06:48:41 | Python | UTF-8 | Python | false | false | 640 | py | from flask import (Flask, render_template, redirect, session)
DEBUG = True
PORT = 8000
HOST = "0.0.0.0"
app = Flask(__name__)
app.secret_key = "sdfasdfasdfasdasasdahwteh0835p26190248*65987y87ttabglazuv"
@app.route('/')
def index():
if "counter" not in session:
session['counter'] = 0
else:
se... | [
"lucifitz.edward@gmail.com"
] | lucifitz.edward@gmail.com |
2de02e4e6f992dbc932608462e867a919595b1ae | c9b1e04ba65ba3e0af2a8ae86b88187b72bcaa0b | /.svn/pristine/2d/2de02e4e6f992dbc932608462e867a919595b1ae.svn-base | 64d7baf79859b7e0052149be6373e68d2fcd7bc3 | [] | no_license | feitianyiren/TaskCoach | 7762a89d5b521cfba0827323a9e8a91d1579810b | 0b7427562074845ac771e59e24a750aa5b432589 | refs/heads/master | 2020-04-08T04:56:35.491490 | 2016-01-12T13:29:03 | 2016-01-12T13:29:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,201 | '''
Task Coach - Your friendly task manager
Copyright (C) 2004-2009 Frank Niessink <frank@niessink.com>
Task Coach 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 opti... | [
"hieronymus_schweiz@yahoo.de"
] | hieronymus_schweiz@yahoo.de | |
251c43edd0a8d0f3da4b44d155da73a69a3d5ca5 | 485be21ebe0a956b7f4a681968e160a463903ecc | /cxBase/TextBase.py | ed3cb659242b3412b5d63f634876a6597e9de5dd | [] | no_license | xiongchenyan/cxPyLib | e49da79345006d75a4261a8bbd4cc9a7f730fad2 | 8d87f5a872458d56276a2a2b0533170ede4d5851 | refs/heads/master | 2021-01-10T20:43:20.147286 | 2016-01-14T04:02:45 | 2016-01-14T04:02:45 | 17,610,431 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,480 | py | '''
Created on May 28, 2014
basic operations for texts
@author: cx
'''
lStopWord=["a","about","above","according","across","after","afterwards","again","against","albeit","all","almost","alone","along","already","also","although","always","am","among","amongst","an","and","another","any","anybody","anyhow","anyone","a... | [
"xiongchenyan@gmail.com"
] | xiongchenyan@gmail.com |
f89c3b955be5176b713ee70c61bc9e54024a7033 | 2d1f2f5f6af2560e00cb1bd2277b1c1e465f77ce | /wikirepo/data/electoral_results/rd1_executive.py | a09d67f12d363f561767ecd20be26bdb1718843c | [
"BSD-3-Clause"
] | permissive | TrendingTechnology/wikirepo | f9a8f8428be20cdf35fbf4f6120fa330095774f3 | eb107306b27021631588e2d83814c756eb702f64 | refs/heads/main | 2023-03-26T05:40:13.180549 | 2021-03-17T01:57:03 | 2021-03-17T01:57:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | """
Executive Round 1
-----------------
Functions querying 'PXYZ' (first round executive election results) information
Contents
query_prop_data
"""
| [
"andrew.t.mcallister@gmail.com"
] | andrew.t.mcallister@gmail.com |
ef56de076bb6d703c91cebde5a1515f56ddf6f68 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_coughed.py | fe397a3ac8fd5ffca1fe6ba285992a7392f8f7ea | [
"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 | 233 | py |
from xai.brain.wordbase.nouns._cough import _COUGH
#calss header
class _COUGHED(_COUGH, ):
def __init__(self,):
_COUGH.__init__(self)
self.name = "COUGHED"
self.specie = 'nouns'
self.basic = "cough"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
6b13b84258090165cd4874b44f33ab289b1a6b70 | 59fbeea017110472a788218db3c6459e9130c7fe | /maximum-width-ramp/maximum-width-ramp.py | f05d46f6c1579c8b55d89818cf96141c34dcdb45 | [] | no_license | niufenjujuexianhua/Leetcode | 82b55d9382bc9f63f4d9da9431194e20a4d299f1 | 542c99e038d21429853515f62af51a77deaa4d9c | refs/heads/master | 2022-04-27T16:55:00.035969 | 2022-03-10T01:10:04 | 2022-03-10T01:10:04 | 79,742,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | class Solution(object):
def maxWidthRamp(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
st = []
for i, n in enumerate(nums):
if not st or nums[st[-1]] > n:
st.append(i)
res = 0
for j in reversed(range(len(nums))):
... | [
"wutuo123@yeah.net"
] | wutuo123@yeah.net |
2dc46c68adc1d90703e34c48bb281b16650fe278 | db3bbc0e9b699af336cb6a02e00f1c498ef342c9 | /Models/Pytorch/encoder.py | 751a6e2a1c9a3694e8fc36ab079050438d0ba8d0 | [] | no_license | Meinwerk/WebAsKB | ec5e8518b01b54c99ea38cf80bec4940715148ef | 4e65ae02e62f44bde49a7ff041303ff88773ae0d | refs/heads/master | 2020-03-19T20:00:33.930382 | 2018-06-08T13:52:30 | 2018-06-08T13:52:30 | 136,884,082 | 1 | 0 | null | 2018-06-11T06:33:38 | 2018-06-11T06:33:38 | null | UTF-8 | Python | false | false | 1,813 | py | import torch
import torch.nn as nn
from torch.autograd import Variable
import torch.nn.init as weight_init
from config import config
class EncoderRNN(nn.Module):
def __init__(self, input_size, hidden_size, n_layers=1):
super(EncoderRNN, self).__init__()
self.n_layers = n_layers
self.hidden_... | [
"salont@gmail.com"
] | salont@gmail.com |
61a0567fc9d2768c0d42421e09b033498aec58fb | 7b84d055c2e0f247079d7bce08dc16f9681d1f11 | /bin/euca-delete-vpn-connection | fc5ddeb13dd3956c0e7c853698f078a75fe4c65b | [
"BSD-2-Clause"
] | permissive | eucalyptus/euca2ools | a660bbc6ef14b2ce340df7f28b55f758ca81f5d8 | 6b3f62f2cb1c54f14d3bfa5fd92dab3c0ecafecb | refs/heads/master | 2021-03-19T11:36:33.828355 | 2017-04-26T23:13:12 | 2017-04-26T23:32:47 | 1,795,596 | 38 | 22 | BSD-2-Clause | 2018-07-31T12:28:02 | 2011-05-24T20:37:14 | Python | UTF-8 | Python | false | false | 174 | #!/usr/bin/python -tt
import euca2ools.commands.ec2.deletevpnconnection
if __name__ == '__main__':
euca2ools.commands.ec2.deletevpnconnection.DeleteVpnConnection.run()
| [
"gholms@devzero.com"
] | gholms@devzero.com | |
697b06153fe63bb96b972396499f65b5737825b6 | a66b69c3f9da9779ae80f347b61f47e3bc5ba145 | /day1011/windows03.py | a00d11cd1a07b5e14b182a441b033215e269e932 | [] | no_license | kyungtae92/python-basic | c841d9c9c6196b01da3de007c1298fe2c4b8f693 | 80a2051e37b6e87c9dbfd332c4b2946089ff0d5c | refs/heads/master | 2020-11-25T08:01:22.156661 | 2019-12-17T08:25:38 | 2019-12-17T08:25:38 | 228,567,120 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | from tkinter import * # 윈도우 위젯을 지원하는 라이브러리
window = Tk()
window.title("이미지 지원")
photo = PhotoImage(file= "BothNeatArcticseal-size_restricted.gif")
label = Label(window, image=photo)
label.pack()
window.mainloop() | [
"noreply@github.com"
] | kyungtae92.noreply@github.com |
24b08bfecfcbeb81106219f1fc84db038c4569d1 | 18d3b2de6877ced2e843e1a7daad39c1a191d97e | /src/django-resume/resume/views.py | 7bfc9bb0a079df5cffaaeed11ee4128517a43a98 | [] | no_license | csinchok/django-chrissinchok-resume | 3dfbf974d4befa8ddede6f60d852b92ce0b81052 | 26ca9fafbf79622c76a8ef41bb941617f62f0def | refs/heads/master | 2016-09-09T18:22:16.079117 | 2011-06-24T23:15:07 | 2011-06-24T23:15:07 | 901,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | from django.template import Context, loader
from django.shortcuts import render_to_response, get_object_or_404
from chrissinchok_resume.models import Skill, Role, Company
from django.http import HttpResponse
from chrissinchok_resume.models import Skill, Role, Company, Experience
def resume(request, template_name='chr... | [
"chris@sinchok.com"
] | chris@sinchok.com |
38389ab794801cce365d9c2cd3605f29f84bd889 | 169e75df163bb311198562d286d37aad14677101 | /tensorflow/tensorflow/python/kernel_tests/distributions/categorical_test.py | d8939433ce68ffa561e8e2200826f88dbe283ac2 | [
"Apache-2.0"
] | permissive | zylo117/tensorflow-gpu-macosx | e553d17b769c67dfda0440df8ac1314405e4a10a | 181bc2b37aa8a3eeb11a942d8f330b04abc804b3 | refs/heads/master | 2022-10-19T21:35:18.148271 | 2020-10-15T02:33:20 | 2020-10-15T02:33:20 | 134,240,831 | 116 | 26 | Apache-2.0 | 2022-10-04T23:36:22 | 2018-05-21T08:29:12 | C++ | UTF-8 | Python | false | false | 17,910 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"thomas.warfel@pnnl.gov"
] | thomas.warfel@pnnl.gov |
3799cd1d8be5461f9d70fd3ef51cae349cd318e9 | 54708c482b13760fc4a747274b62849b5e8b8277 | /leetcode_python/Bit_Manipulation/hamming-distance.py | 5420f5200c0c11dfee0a56c18936828fcc1fd9cc | [] | no_license | DataEngDev/CS_basics | 6520818caa61609eae9b026fb5b25ef9e4ea6961 | 05e8f5a4e39d448eb333c813093fc7c1df4fc05e | refs/heads/master | 2023-03-02T18:58:42.469872 | 2021-02-14T02:23:27 | 2021-02-14T02:23:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,160 | py | # V0
# IDEA : BITWISE OPERATOR
# https://github.com/yennanliu/CS_basics/blob/master/doc/bit_manipulation.md
class Solution(object):
def hammingDistance(self, x, y):
return bin(x ^ y).count('1')
# V1
# http://bookshadow.com/weblog/2016/12/18/leetcode-hamming-distance/
# IDEA : BITWISE OPERATOR
# https... | [
"f339339@gmail.com"
] | f339339@gmail.com |
c62e904c3e57ae6df03bf83a657bc9ae6a47b0c5 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-smartag/aliyunsdksmartag/request/v20180313/DescribeSagPortRouteProtocolListRequest.py | d251d09f82f2f20866f932f14403a1dcd263af82 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,528 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
7631eaca29003e20dd7c72316fa7a307ab7360b5 | 05536893d069dd87256ba74ecdee06bdf481d44b | /args_api/ORA11G/ORA11G-DBTEC.py | 843f2ad579ffdf4219f9f81ef101891ed370dfe6 | [] | no_license | TheRockStarDBA/DataBuddy | b2d889e11745d0afe1b39a11aab5945e2bd08cf7 | 38fa7adfdd228e2b2e4b4408393505163c5702e8 | refs/heads/master | 2020-12-25T23:27:02.363977 | 2015-05-28T19:14:12 | 2015-05-28T19:14:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107,059 | py | #do not change
aa={'ORA11G_Partition_trimWhitespace.DBTEC_Table': [{'field_term': ('-t', '--field_term', '"|"', 'Field terminator.'), 'num_of_shards': ('-r', '--num_of_shards', 1, 'Number of shards.'), 'pool_size': ('-o', '--pool_size', 1, 'Pool size.'), 'copy_vector': ('-w', '--copy_vector', 'ora11g-dbtec', 'Data copy... | [
"alexbuzunov@gmail.com"
] | alexbuzunov@gmail.com |
74205f0cb27d3bbf4583266adfffb6d4cf9fec08 | 88748ec85d537e4b50ba45a255a0dcc3c154116f | /vanilla/__init__.py | 784b57a6b8a062cf8b1302fa24465807e4d0d797 | [
"MIT"
] | permissive | byrgazov/vanilla | 17c53843b1b2f6b5484e4ff8e2fab54123245cc0 | 2896ae049d9e58ef3b4008a869ebf481951d0780 | refs/heads/master | 2020-07-30T12:30:04.497223 | 2020-07-24T10:08:03 | 2020-07-24T10:08:03 | 210,235,284 | 0 | 0 | MIT | 2019-09-23T00:49:06 | 2019-09-23T00:49:06 | null | UTF-8 | Python | false | false | 318 | py | __import__('pkg_resources').declare_namespace(__name__)
from vanilla.core import Hub
from vanilla.exception import ConnectionLost
from vanilla.exception import Abandoned
from vanilla.exception import Timeout
from vanilla.exception import Closed
from vanilla.exception import Stop
from vanilla.exception import Halt
| [
"andy@thecablelounge.com"
] | andy@thecablelounge.com |
e0fa1eb42270523f07d28039d2ff0d162a5bf9be | 473035074bd546694d5e3dbe6decb900ba79e034 | /traffic fluid simulator/single_road/utils/utils.py | 7d8fc035c229792ca9a0a5e1d2b4ffdf61396a52 | [] | no_license | johny1614/magazyn | 35424203036191fb255c410412c195c8f41f0ba5 | a170fea3aceb20f59716a7b5088ccdcb6eea472f | refs/heads/master | 2022-03-26T01:10:04.472374 | 2019-09-19T16:34:22 | 2019-09-19T16:34:22 | 171,033,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | import sys
sys.path.append("..")
from params.params import FlowParams
def q(p):
q=p*(1-p/FlowParams.p_max)*FlowParams.v_max
return q if q>0 else 0
def positive(p):
return p if p>0 else 0
def gamma_wylot_(p):
if(p<FlowParams.p_max/2):
return q(p)
return q(FlowParams.p_max/2)
def edgeColor(p_a... | [
"johny1614@gmail.com"
] | johny1614@gmail.com |
2282724c06c79a2410dcadc90a903f8c2c1db0bf | cedfdd1398b947b15eccf4473e9bbaddccb878d7 | /SDK/openstack/tests/unit/network/v2/test_metering_label.py | 1c4fde627ab26c68c90d3ede059e98aed2630730 | [] | no_license | Doctor-DC/CMP-Recycle | 36fb1fdcf7c3a396bfef89d03948bd0ce626b053 | e3e6421f0b5dc28a075bc5bf91be9a45bcbe97c6 | refs/heads/dev | 2022-12-15T06:28:12.695868 | 2019-02-26T06:22:21 | 2019-02-26T06:22:21 | 142,127,512 | 0 | 0 | null | 2022-12-08T02:29:44 | 2018-07-24T08:18:46 | Python | UTF-8 | Python | false | false | 1,673 | 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... | [
"8920622362@qq.com"
] | 8920622362@qq.com |
2f55caeae5671a310f4aabdb8f9be522ff183e5f | c7979f4f6435fe8d0d07fff7a430da55e3592aed | /ABC084/B.py | bc005cdf640bb2479922fb8b2afc101f1e4693e1 | [] | no_license | banboooo044/AtCoder | cee87d40bb98abafde19017f4f4e2f984544b9f8 | 7541d521cf0da848ecb5eb10ffea7d75a44cbbb6 | refs/heads/master | 2020-04-14T11:35:24.977457 | 2019-09-17T03:20:27 | 2019-09-17T03:20:27 | 163,818,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | A,B = map(int,input().split(" "))
S = input()
for i in range(A+B+1):
if i == A:
if S[i] != '-':
print("No")
exit(0)
else:
if not (S[i].isdigit()):
print("No")
exit(0)
print("Yes")
| [
"touhoucrisis7@gmail.com"
] | touhoucrisis7@gmail.com |
476e9bd36b1d884855255c34ac04fb5e6af91070 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/centernet2/tests/layers/__init__.py | 4c9b9f6c3987c68e4296326725f8a7e3d3f72bc4 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license"
] | 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 | 667 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
# Copyright 2020 Huawei Technologies Co., Ltd
#
# 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.... | [
"hanjun20@huawei.com"
] | hanjun20@huawei.com |
e136def58ce168aa45d894dcd10d3c825b61b0bb | 3d9196705c16d46043ee56d0d89070a66a235ccd | /jpegdump.py | 29867944870d764c0ac2a629f20152dc261daee1 | [] | no_license | nov3mb3r/DidierStevensSuite | 7c5261a0744a3baa655e5b0cdee7a0cdd9b9ac0d | 0805acdae500ed223aeb2680c67a9a75ae0901de | refs/heads/master | 2022-08-20T09:26:23.359233 | 2022-07-18T21:00:49 | 2022-07-18T21:00:49 | 258,283,996 | 2 | 0 | null | 2020-04-23T17:42:11 | 2020-04-23T17:42:11 | null | UTF-8 | Python | false | false | 60,127 | py | #!/usr/bin/env python
__description__ = 'JPEG file analysis tool'
__author__ = 'Didier Stevens'
__version__ = '0.0.9'
__date__ = '2022/02/08'
"""
Source code put in public domain by Didier Stevens, no Copyright
https://DidierStevens.com
Use at your own risk
History:
2017/09/09: start
2017/09/10: continue
2017/... | [
"didier.stevens@gmail.com"
] | didier.stevens@gmail.com |
3a405d0da69f27baa37f4fd107aee11378e5aa2f | 913b7f06e91b37686838fe915864b4a417d3d158 | /src/taskserver/settings.py | c1b60921caedfdc74964cf17737af280e327c147 | [] | no_license | sand8080/taskserver | 4243d3bcb8650a2fe88525f8c99427674a52a8bb | 32f32d8b2560215fa6d9de40365e299058f4fbae | refs/heads/master | 2016-09-05T14:30:21.384666 | 2012-05-25T19:22:11 | 2012-05-25T19:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | import os
import logging
c_dir = os.path.dirname(__file__)
tm_log_file = os.path.join(c_dir, '..', 'log', 'taskmanager.log')
tm_log_level = logging.DEBUG
tasks_dir = os.path.join(c_dir, '..', 'tasks', 'to_proc')
ready_tasks_dir = os.path.join(c_dir, '..', 'tasks', 'ready') | [
"sand8080@gmail.com"
] | sand8080@gmail.com |
b5e70136f1edb727edbc4d8e84b091c071091283 | d4aec6a6f7b11119ea3f114823c26287fc096daf | /main.py | 0aaeb5219969e1f492709217ff012f6b7f862b71 | [] | no_license | hristo-grudev/metzler | 2eebb168b89763ecf8d6f27f2ce0693fc6e93a51 | ecc530e8f2faa6ee822f19ae08120bd4ebcd9353 | refs/heads/main | 2023-03-23T13:03:51.083440 | 2021-03-18T12:00:06 | 2021-03-18T12:00:06 | 349,056,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | from scrapy import cmdline
cmdline.execute("scrapy crawl metzler".split()) | [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
990f6c1c342ae10d0d5cc8865966f8a183c77159 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03609/s693045383.py | 0354964e27553353d030c88f704abd377bd7af96 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | X,T =map(int,input().split())
print(max(0,X-T)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
200e74bab26c06d7314abf1df9c5b2dba10bfa88 | 12914e19872f4e9b505ed7bd7e06d31e508c3d62 | /CurveEQ.glyphsFilter/Contents/Resources/EQMethods/Balance.py | 5a7c1d0cdf5c1c514c0420a897e367705dd618d5 | [] | no_license | schriftgestalt/Curve-Equalizer | 1d8dea5e32af1f0b49f88d6a8037f9d4cde04f58 | 93af357bb3097dc5f02fea0bc0b21e5f07dbf581 | refs/heads/master | 2021-12-14T23:48:31.950110 | 2021-11-27T17:57:37 | 2021-11-27T17:57:37 | 130,104,486 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,840 | py | # -*- coding: utf-8 -*-
from math import atan2
from .geometry import (
distance,
getNewCoordinates,
getTriangleSides,
isOnLeft,
isOnRight,
)
# Adjustment factor for curves with zero handles
tension_adjust = 1.18
def eqBalance(p0, p1, p2, p3):
# Check for zero handles
factor = 1
zero... | [
"webmail@kutilek.de"
] | webmail@kutilek.de |
76bc10a5dd7ccbacc5b4f498a6e6b597ee66ef39 | ab8a34e5b821dde7b09abe37c838de046846484e | /twilio/sample-code-master/video/v1/room/update-update-room-status-to-completed/update-update-room-status-to-completed.6.x.py | 306c5eedb74c1b93cd6df2dca906665f00fe0f25 | [] | no_license | sekharfly/twilio | 492b599fff62618437c87e05a6c201d6de94527a | a2847e4c79f9fbf5c53f25c8224deb11048fe94b | refs/heads/master | 2020-03-29T08:39:00.079997 | 2018-09-21T07:20:24 | 2018-09-21T07:20:24 | 149,721,431 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | # Download the helper library from https://www.twilio.com/docs/python/install
from twilio.rest import Client
# Your Account Sid and Auth Token from twilio.com/console
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
auth_token = 'your_auth_token'
client = Client(account_sid, auth_token)
room = client.video.rooms('... | [
"sekharfly@gmail.com"
] | sekharfly@gmail.com |
df8360febc509ae442be0c3aab1f5dc91258adaf | 60c4255fb0cf7ed817ff09d8113bf404cde8e12b | /env/lib/python2.7/site-packages/django/utils/crypto.py | 1207ce68797afbed5c3bb03e71b38d8d4944f9df | [] | no_license | adamjberg/finna-be-octo-ninja | 83aba13f619d4fbfb5308e48336917f0ada0459d | cf16bfcb3d7bb4e878ba0b99ad701b5cda8be34c | refs/heads/master | 2021-01-10T20:19:20.849476 | 2014-01-11T05:42:23 | 2014-01-11T05:42:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,666 | py | """
Django's standard crypto functions and utilities.
"""
from __future__ import unicode_literals
import hmac
import struct
import hashlib
import binascii
import operator
import time
from functools import reduce
# Use the system PRNG if possible
import random
try:
random = random.SystemRandom()
... | [
"ilikecattle@gmail.com"
] | ilikecattle@gmail.com |
077933d5120de2d13e25bf9338aa42ac677316eb | 7a73fef9ae426c48573bae41447cef7cb2b97bf6 | /dynamicserialize/dstypes/com/raytheon/uf/common/management/response/diagnostic/StatusResponse.py | 031d883b99250965c86d9c037bf0f5a1a55adf16 | [
"LicenseRef-scancode-public-domain",
"BSD-3-Clause"
] | permissive | mjames-upc/python-awips | 7f0a80a04457224c9e195b82a95eef4d9b2b3091 | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | refs/heads/master | 2020-03-31T03:00:49.540816 | 2018-10-05T23:15:42 | 2018-10-05T23:15:42 | 53,707,817 | 0 | 0 | null | 2017-04-12T18:00:59 | 2016-03-12T01:46:57 | Python | UTF-8 | Python | false | false | 686 | py | ##
##
# File auto-generated against equivalent DynamicSerialize Java class
class StatusResponse(object):
def __init__(self):
self.hostname = None
self.jvmName = None
self.statistics = None
def getHostname(self):
return self.hostname
def setHostname(self, hostname):
... | [
"mjames@unidata.ucar.edu"
] | mjames@unidata.ucar.edu |
cf34c7625f15615f2beae1eb24023a0f80dca83e | 9b87a520e85566a66f729d2b4cafd00c67ea5db0 | /Source/Git/wb_git_callback_server_win32.py | b6b537c1f8f2ba3da080f58553fbca874b40637b | [
"Apache-2.0"
] | permissive | barry-scott/scm-workbench | c694720acd316789821b7f8ebf32f7b941913d94 | 6ae79141ae54424d81a94a76690b2ab12df9d901 | refs/heads/master | 2023-03-15T21:13:28.394412 | 2022-07-10T11:47:30 | 2022-07-10T11:47:30 | 50,042,812 | 28 | 12 | null | null | null | null | UTF-8 | Python | false | false | 7,734 | py | '''
====================================================================
Copyright (c) 2016-2017 Barry A Scott. All rights reserved.
This software is licensed as described in the file LICENSE.txt,
which you should have received as part of this distribution.
======================================================... | [
"barry@barrys-emacs.org"
] | barry@barrys-emacs.org |
cadd070bbdb417b1cf6543e9ffacd5555593d2d1 | 511ac588011ac86e9389488e9379215709b0b137 | /venv/Scripts/pip-script.py | 03f0427195a7933402069cbcdf83620b4d5e5d3c | [
"MIT"
] | permissive | itrail/cinemavant | 3010ffa4b280274235796fe98aa8114785594493 | d0a9439276cd5c3aae6d8d381323b72585ee6733 | refs/heads/master | 2023-02-08T05:54:01.110085 | 2020-03-27T07:33:58 | 2020-03-27T07:33:58 | 223,629,483 | 0 | 0 | null | 2023-02-02T08:57:35 | 2019-11-23T17:45:08 | Python | UTF-8 | Python | false | false | 399 | py | #!C:\xampp\htdocs\cinemavant\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.e... | [
"root@debian"
] | root@debian |
3cee07d4e9b7da75d31ff11c2c9fdbd6d290c14c | e6e4189ea7a196ce793848ef35eabbf5d81fdf6c | /08-29-2019/bulb_switcher.py | b84470c1de1e6e233f1330803abaed970d46c20b | [] | no_license | rayandasoriya/CodingPractice | f9dad7da313387ae087bfdab970040878368e69c | 71c96ecc7526d77e220c8841e9aac6698837382d | refs/heads/master | 2020-04-23T19:31:54.808181 | 2019-09-12T20:47:56 | 2019-09-12T20:47:56 | 171,407,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | def switcher(n):
arr = [0]*n
for i in range(n):
if i == 0:
arr = [1]*n
elif i == 1:
for j in range(i,n,2):
arr[j] = 0
else:
for j in range(i,n,i):
if arr[j] == 1:
arr[j] = 0
else:
... | [
"dasoriyarayan@gmail.com"
] | dasoriyarayan@gmail.com |
7f5386f548a4a6de747578d4750dc2d7acc5128c | 63768dc92cde5515a96d774a32facb461a3bf6e9 | /jacket/db/sqlalchemy/migrate_repo/versions/120_storage_015_drop_migrations_table.py | 86ae6a56fdbe4a1507a06129dcbdd1ed34be7ea4 | [
"Apache-2.0"
] | permissive | ljZM33nd/jacket | 6fe9156f6f5789e5c24425afa7ce9237c302673d | d7ad3147fcb43131098c2a5210847634ff5fb325 | refs/heads/master | 2023-04-16T11:02:01.153751 | 2016-11-15T02:48:12 | 2016-11-15T02:48:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | 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
# d... | [
"yibo_grace@163.com"
] | yibo_grace@163.com |
1dc607e2c0f027659a8ab0c29ce9543b71c01071 | 56dee1773099c4413c1e00c377a2254c65dd5fcd | /highlights.py | ac7e097657674496a4b96b8cb4cb30e67b76d918 | [] | no_license | jhubaum/pyground | b074c9a4c8c0d0555381c7eb8cb156f24fa43402 | 0c088123c42ab50df157da1224f855bd5bdd694b | refs/heads/master | 2023-03-05T16:11:55.603404 | 2021-02-16T08:01:57 | 2021-02-16T08:01:57 | 264,245,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,957 | py | import sys
import re
import os
NOTE_REGEX = re.compile(r'\n-+\n\n')
class Note:
def __init__(self, title):
self.title = title
self.notes = []
self.bookmarks = []
def add_entry(self, note_type, content):
if note_type == 'Bookmark':
self.add_bookmark(content)
... | [
"="
] | = |
3c92008a82c24408042226c28c4980c2e48cdced | aa0bdafb61b8ea16e21daf4f9bfc2d87044eb57e | /solnml/components/transfer_learning/tlbo/models/gp_ensemble.py | 4e977a5f3e041d931c9cf4588a3b82d4d5bc8919 | [
"MIT"
] | permissive | williamy1996/AutoExpression | c32b5105aa9ba71d14269d04745b5fbf8e75c646 | b470d9ff67074c8b076abbc1dce359db9a36f921 | refs/heads/master | 2022-12-14T20:22:37.529136 | 2020-09-03T10:04:10 | 2020-09-03T10:04:10 | 292,527,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,766 | py | import time
import typing
import numpy as np
from ..config_space import ConfigurationSpace
from ..config_space.util import convert_configurations_to_array
from ..models.base_model import BaseModel
from .gp import GaussianProcess
from .gp_kernels import ConstantKernel, Matern, WhiteKernel, HammingKernel
from .gp_base_p... | [
"1225646303@qq.com"
] | 1225646303@qq.com |
982adcc6ccc8a592c527f3c255f9d7671376946e | 49813760337894f578bd6cf4f3ee76c32bd1d7ba | /guvip124.py | 02678239f821512a5e854c7d23aba5c7d25cfdf5 | [] | no_license | devigajsrr/codekata | e1256cf7fd88a0c7cefd02dea11305391143253a | a9ae003a7d3c8865b1d4e9aae73723a5fedf79be | refs/heads/master | 2020-05-23T01:01:09.927231 | 2019-07-20T11:31:51 | 2019-07-20T11:31:51 | 186,580,561 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | n=int(input())
p=list(map(int,input().split()))
for i in range(1,100000):
s=0
for j in range(0,n):
if i%p[j]==0: s=s+1
if s==n:
print(i)
break | [
"noreply@github.com"
] | devigajsrr.noreply@github.com |
17e13c5abe658562a0a8fa81a4af71afc8d311f2 | 622109ab34a57029bd0469983a4c1235994d869c | /pabi_pos/models/product_interface.py | 0132da501bc09f9894ca263b6749be849e040de2 | [] | no_license | thapanat/pb2_addons | edf413305c01b1e4a1bb3692973a02e6dd9d7d7b | 9b818741af5eea5ede5fd11ec6c5c5462b48f71a | refs/heads/master | 2020-03-18T11:12:44.753171 | 2018-08-09T02:55:23 | 2018-08-09T02:55:23 | 134,657,411 | 0 | 0 | null | 2018-05-24T03:50:21 | 2018-05-24T03:41:14 | Python | UTF-8 | Python | false | false | 2,307 | py | # -*- coding: utf-8 -*-
from openerp import models, api, _
class ProductProduct(models.Model):
_inherit = 'product.product'
@api.model
def test_get_pos_product_count(self):
""" If product names or default_code not specified,
it will retrieve all products in this POS machine """
re... | [
"kittiu@gmail.com"
] | kittiu@gmail.com |
c42aad18e0c9266a8fe5d3092ee6b4d845714fcc | e8b0e90d938e92ba0319ba673568677810430cd0 | /399.py | c5a2433ebadd6cee4918a4646aa4b12c966d29ef | [] | no_license | ilanschnell/project-euler | 6d99673d101a56d2e2b2d301f0738ca1986afbf7 | 24f38523b5631c71894b957e5d59e66bd6da1149 | refs/heads/master | 2023-08-27T08:03:45.206810 | 2023-02-16T16:23:05 | 2023-02-16T16:23:05 | 225,198,011 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | from time import time
from sympy.ntheory import primerange
from numba import njit
from bitarray import bitarray
from bitarray.util import count_n
@njit
def ith_fib(i):
hi1 = hi2 = 1.0
ex = 0
lo1 = lo2 = 1
n = 2
while n < i:
n += 1
lo1, lo2 = lo2, (lo1 + lo2) % 10**16
hi1, hi... | [
"ilanschnell@gmail.com"
] | ilanschnell@gmail.com |
6b137860693566b94ea60475afd668c3612de551 | b63142e8540cb30bb0c663332e29a4112721073e | /657_insert_delete_getrandom.py | f84499963aa06e8a8edfaa92b3e36d6422021840 | [] | no_license | HaydenInEdinburgh/LintCode | 025bb2f0d75686097061de324c0fd292536dbb14 | dbeae2bf631e57667d1415164d452d5ca2df7447 | refs/heads/master | 2023-08-18T19:52:54.561623 | 2021-10-06T21:46:50 | 2021-10-06T21:46:50 | 370,733,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | py | import random
import sys
class Node:
def __init__(self, value):
self.value = value
self.next = None
class RandomizedSet:
def __init__(self):
# do intialization if necessary
self.value_to_index = {}
self.dummy = Node(-sys.maxsize)
self.value_to_index[self.dummy.va... | [
"bony960323@gmail.com"
] | bony960323@gmail.com |
cd2912e5ffc34c564c974073b9e1169082686481 | 9b63e5c8cd45755733a708d68c41d2ec2cae6672 | /email_backup/models.py | d7ecfecb48cfd036a02e8d61056c587148d8a6e0 | [
"MIT"
] | permissive | ppinard/django-email-backup | cacd571512bbb8876cec93ae0dacff6528aabdd3 | 915c0c146f6c66a792c77359bb990a429159818b | refs/heads/main | 2023-01-15T06:23:33.653698 | 2020-11-21T14:32:33 | 2020-11-21T14:32:33 | 312,872,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | """"""
# Standard library modules.
# Third party modules.
from django.db import models
# Local modules.
# Globals and constants variables.
class Email(models.Model):
address = models.EmailField(unique=True)
name = models.CharField(max_length=255, blank=True)
def __str__(self):
if self.name:
... | [
"philippe.pinard@gmail.com"
] | philippe.pinard@gmail.com |
0865df8a3acaa7cee73a75f3e06d473be6c90274 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/3194.py | 8af2cbda423d03ea2e7eb7a418a98b4a36ec8a30 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,360 | py | #!/usr/bin/python
import sys
import unittest
import math
from sys import stdin
Debug=False
sys.setrecursionlimit(100000000)
def d(Str):
if Debug: print Str
def flip(S,K,pos,count):
d("%s:pos:%dcnt:%d" % ("".join(S),pos,count))
if not has_garbage(len(S),S):
return count
elif pos > len(S) - K :
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
0ac348b024cc334ab6c0dc7596da7a25689ba92a | f04be8f9b840778849c7e97ec4b00daa27d158b4 | /recongnize/utils/genPlate/genPlate.py | 19797b6b1c95b70cb4b6581744e245141e3e0340 | [] | no_license | Peiiii/cnn_lstm_ctc_tf | 4978e288850f2465031cfa8905aa6701589a56ca | d182b468947a9dec6ee6ec62725794ca673de057 | refs/heads/master | 2020-07-10T12:51:37.797963 | 2019-08-25T08:29:18 | 2019-08-25T08:29:18 | 204,266,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,298 | py | # coding=utf-8
"""
genPlate.py:生成随机车牌
"""
__author__ = "Huxiaoman"
__copyright__ = "Copyright (c) 2017 "
import PIL
from PIL import ImageFont
from PIL import Image
from PIL import ImageDraw
import cv2;
import numpy as np;
import os;
from math import *
import sys
index = {"京": 0, "沪": 1, "津": 2, "渝": 3, "冀": 4, "晋... | [
"1535376447@qq.com"
] | 1535376447@qq.com |
be2d01431001d969d146fc096a29cc2a1cb95055 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /lib/python2.7/site-packages/numba/__init__.py | 6742b5520f9c9d2c53d68be4730e0ccc9a4908b9 | [
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 3,097 | py | """
Expose top-level symbols that are safe for import *
"""
from __future__ import print_function, division, absolute_import
import re
import sys
from . import runtests, decorators
from . import errors, special, types, config
# Re-export typeof
from .special import *
from .errors import *
# Re-export all type names... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
994cef04099d12ecefe18c24a62b1ac27aca64f2 | 8e1be167066e30eff91c26c0757211cf3cf8b016 | /django/full_stack/favorite_books/favorite_books/urls.py | ec26d9579c78d5def357ff9d8a80034834d39b90 | [] | no_license | dojo-solutions/online-ft-python | 074d0ba968f5a77eaec1bca0904232f2aa29051a | b4f6941d0bba376d121a40a6429b815d5b03c32f | refs/heads/master | 2020-04-21T11:52:31.390772 | 2019-03-02T01:27:54 | 2019-03-02T01:27:54 | 169,542,448 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | """favorite_books URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
C... | [
"wes@tao.team"
] | wes@tao.team |
f470df7340e98e79900bd441965f70f53bb56693 | 46c318dbfedfb95d38207431bbf14bacf12d185f | /ML/Kernels/BasicSVNExample.py | 6903edfea21355b3352dcb7302d7f7b89895d96b | [] | no_license | miltonluaces/problem_solving | 2e92877ee736c0920ce6e94dcc73fd01a52e3e46 | bccb89d8aadef4a2e409fc6c66ccad2fb84b6976 | refs/heads/master | 2023-01-08T15:58:51.002478 | 2020-10-28T21:31:46 | 2020-10-28T21:31:46 | 308,143,277 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,802 | py | # Classifying Muffins and Cupcakes with SVM
from Utils.Admin.Standard import *
import pandas as pd
import numpy as np
from sklearn import svm
import matplotlib.pyplot as plt
import seaborn as sns; sns.set(font_scale=1.2)
import pickle
# Load Data
recipes = pd.read_csv(csvPath + 'recipes_muffins_cupcakes.csv')
recipe... | [
"miltonluacs@gmail.com"
] | miltonluacs@gmail.com |
5b43777b4ee661737088039db9497b378454ab0c | 464850ba426263b17084fc71363ca14b8278b15e | /leap.py | 7a7a95f4fa45e075748e401830cb7855f0a61999 | [] | no_license | eng-arvind/python | 8442c30ec10f979f913b354458b4f910539d8728 | 249f5f35f245a3f1742b10310de37ca6c6023af2 | refs/heads/master | 2020-12-23T06:40:16.911269 | 2020-02-02T18:42:01 | 2020-02-02T18:42:01 | 237,069,973 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | y=int (input("Enter year:"))
if(y%4==0):
if y%100==0:
if y%400==0:
print("Leap")
else:
print("Not leap")
else:
print("Leap")
else:
print("Not Leap")
| [
"noreply@github.com"
] | eng-arvind.noreply@github.com |
d954ef5a836db47c2bc269c732f12b22b17baea6 | c84d807bd359ae58ed5e115a51fb85be5ac93262 | /8_depth_first_search/7_path_with_maximum_sum.py | 8c2a9a0e2ed2de98650401fc9094b4255482d590 | [] | no_license | terrifyzhao/educative | bc35d1d10ea280ddc50b1a2708c0e22a7a5cd6d0 | 7a5c82abeb7853a9a1262e28b2fe58a20f547802 | refs/heads/master | 2020-11-28T04:25:30.425519 | 2020-03-05T10:23:09 | 2020-03-05T10:23:09 | 229,702,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | import math
# 找到和最大的路径
class TreeNode:
def __init__(self, val, left=None, right=None):
self.val = val
self.left = left
self.right = right
class MaxPath:
def find_maximum_path_sum(self, root):
self.max_sum = -math.inf
self.find(root)
return self.max_sum
... | [
"zjiuzhou@gmail.com"
] | zjiuzhou@gmail.com |
6a128cb79df33d5162cf17915bfd26a95dad2bc5 | 7cebfa2066e679e19993a5507e59d1979df3d4a8 | /1_Basics/Today0/2_generator_memory.py | 7bfe339425b4cc140f258a59ab27fcb424bbad0d | [
"Apache-2.0"
] | permissive | Arunken/PythonScripts | 833e9e43ccb29234a206027f1cda1d978718d5eb | 702d0a3af7a9be3311f9da0afc5285d453f15484 | refs/heads/master | 2022-12-24T18:50:43.672779 | 2021-05-13T11:31:51 | 2021-05-13T11:31:51 | 237,631,027 | 0 | 0 | Apache-2.0 | 2022-12-08T00:47:45 | 2020-02-01T15:01:20 | Python | UTF-8 | Python | false | false | 1,135 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 18 15:55:33 2018
@author: Ourabora
"""
import memory_profiler # pip install memory_profiler
import random
import time
names = ['ram','rahim','robert','steve','modi','rahul']
des = ['doctor','actor','engineer','politician','IAS','IPS','IFS']
def name_des(people):
r... | [
"mail.arunken@gmail.com"
] | mail.arunken@gmail.com |
c510bf1fbe503836996931d9dc2107f20be1bea1 | 68fbc395c43e91ea633bdec4e8602d033d286250 | /events/pydata-2019-06-22/rsi_factor.py | 4b811bc78f695870ce7bb47552ec6a4441c5b6bd | [] | no_license | munibabu/blueshift-demo-strategies | 276d29dc3ed994312a0be24a9fe5e09bca4ae427 | fb88b64c60613890d50ed8f8d30f8a055fa8f94b | refs/heads/master | 2023-09-06T05:29:26.774791 | 2021-11-16T04:23:23 | 2021-11-16T04:23:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,319 | py | """
Title: Utterly experimental, can RSI be a factor?
Description: This strategy uses RSI indicator to rank securities
and go long (short) the top (bottom) n-percentile
Style tags: Technical momentum
Asset class: Equities, Futures, ETFs, Currencies
Dataset: All
"""
from blueshift_lib... | [
"prodiptag@gmail.com"
] | prodiptag@gmail.com |
1e33334da138f5ebfe3365bdf8a2358647f2372a | 5c531de5e4759c904e608b4fc653b2b041f79a0e | /1632. Rank Transform of a Matrix.py | f3259bb86178e1a2d7630a1c72c5f51a7be34965 | [] | no_license | jianhui-ben/leetcode_python | 133c7e6e5c7316d00607ba2e327239e002de28b2 | fcc16124cc24a5993e27f5d97e78d8f290e68230 | refs/heads/master | 2022-06-05T22:32:18.034581 | 2022-05-17T02:27:11 | 2022-05-17T02:27:11 | 250,683,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,965 | py | #1632. Rank Transform of a Matrix
#Given an m x n matrix, return a new matrix answer where answer[row][col] is the rank of matrix[row][col].
#The rank is an integer that represents how large an element is compared to other elements. It is calculated using the following rules:
#The rank is an integer starting from 1.
... | [
"jianhui.ben@gmail.com"
] | jianhui.ben@gmail.com |
91f7f744ccf46e45598940d4226b7721d7c61c9c | 0a6c62e001d01db3c9cf60236c1a59cc1257ce20 | /detectron2/modeling/mmdet_wrapper.py | e228b6088aea783f9e945e35bad8e6e4a8960552 | [
"Apache-2.0"
] | permissive | yuanluxu/detectron2 | ccc8901ce91be42985ea68694841dc03f27abea8 | 67a005946f7bc01be8899c8a6d3f75e832624414 | refs/heads/master | 2021-09-11T16:22:41.897378 | 2021-08-30T21:55:05 | 2021-08-30T21:55:05 | 240,957,861 | 0 | 1 | Apache-2.0 | 2020-02-16T20:06:46 | 2020-02-16T20:06:45 | null | UTF-8 | Python | false | false | 11,153 | py | # Copyright (c) Facebook, Inc. and its affiliates.
import itertools
import logging
import numpy as np
from collections import OrderedDict
from collections.abc import Mapping
from typing import Dict, List, Optional, Tuple, Union
import torch
from omegaconf import DictConfig, OmegaConf
from torch import Tensor, nn
from ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
12fee7f37e4a8a6cf7f19a7f694f66ee906d8baa | 634514a9c10e32051964b179cc807d089d31124e | /S2l/Thesis_Ch3/Exp2_push3dof/gym_push3dofreal_test_thesis.py | a05c8513ac62d1f50513e2d6de24b50f5a1d9303 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | leopauly/Observation-Learning-Simulations | 34009872a1f453ffc4ae7ddced7447a74ff704c4 | 462c04a87c45aae51537b8ea5b44646afa31d3a5 | refs/heads/master | 2021-08-04T10:55:42.900015 | 2021-07-05T13:41:09 | 2021-07-05T13:41:09 | 129,761,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,944 | py | #### Training agent in Pusher7Dof gym env using a single real-world env
## Wrtitten by : leopauly | cnlp@leeds.ac.uk
## To be used : as of 05/05/2018
## Courtesy for DDPG implementation : Steven Spielberg Pon Kumar (github.com/stevenpjg)
####
##Imports
import gym
from gym.spaces import Box, Discrete
import numpy as np... | [
"meetleopauly@yahoo.com"
] | meetleopauly@yahoo.com |
95628b7b3ba27204304a34a7b02ae304bab7f3df | 7e2848f26667ffad3efa2dbe98946af7bb0351a6 | /supersuit/action_transforms/homogenize_ops.py | 3529b0983b0e7cd5a2d4e4eb7013da0731fd1d1f | [
"MIT"
] | permissive | lssr/SuperSuit | 03780603b1cc5f2523f01aff9049360d7efa12cf | 85b058e0f1aabac3cff39d7e5de005e06855b122 | refs/heads/master | 2023-02-16T20:08:18.828036 | 2020-11-22T18:32:22 | 2020-11-22T18:32:22 | 315,846,914 | 0 | 0 | MIT | 2020-11-25T06:18:16 | 2020-11-25T06:18:15 | null | UTF-8 | Python | false | false | 3,138 | py | import numpy as np
from gym.spaces import Box, Discrete
from gym import spaces
def check_homogenize_spaces(all_spaces):
assert len(all_spaces) > 0
space1 = all_spaces[0]
assert all(isinstance(space, space1.__class__) for space in all_spaces), "all spaces to homogenize must be of same general shape"
i... | [
"weepingwillowben@gmail.com"
] | weepingwillowben@gmail.com |
1841e92158029786590f61b4286a6eb9b7fd0925 | 32257983a6aa9b6f719ce8835e789c94df8b9346 | /subcat/views.py | b1b492b00455cc4991bbcd85eb421f1faf9ac80c | [] | no_license | alireza-shirmohammadi/MySite | 2b165260460ea2a74769b0ceb81e520b26307a64 | 4537069f0ba50ac46f265d0157195f91bac5d853 | refs/heads/master | 2023-07-26T13:50:52.249782 | 2021-01-30T10:55:06 | 2021-01-30T10:55:06 | 303,093,825 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | from django.shortcuts import render,redirect
from .models import SubCat
from cat.models import Cat
# Create your views here.
def subcat_list (request):
# login check start
if not request.user.is_authenticated :
return redirect('mylogin')
# login check end
subcat=SubCat.objects.all()
return... | [
"alireza.sh076@gmail.com"
] | alireza.sh076@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.