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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9ee34a36c6cbeac87b5646c5dbbb11eab6be70e7 | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/xia2/Wrappers/XDS/XDSIdxrefHelpers.py | 1ece3814e6d03fb1f8d8c1c98da05f3ab386cc0f | [
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 4,598 | py | #!/usr/bin/env python
from __future__ import absolute_import, division, print_function
from xia2.Experts.LatticeExpert import ApplyLattice
def _parse_idxref_lp_distance_etc(lp_file_lines):
"""Parse the LP file for refined distance, beam centre and so on..."""
beam = None
diatance = None
i = 0
... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
154c06a1de6e9daa5b49b9d632fe6d9e1f3aca12 | f549367629d0a7cb04a7b39e5e1231a0cb9facd1 | /meter_mount/cnc/drill.py | a8ccf00b40ca4744656a641e5fdee5ffc29b43f0 | [] | no_license | iorodeo/lasercutter | 9d0a64e549a688eb7efa93d765dab5ed1b753110 | f99dddd183bdd200b2367ef11b4b72fefe82bbbe | refs/heads/master | 2022-11-05T06:59:56.153523 | 2016-01-17T02:25:38 | 2016-01-17T02:25:38 | 273,791,961 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | from __future__ import print_function
import os
import sys
from py2gcode import gcode_cmd
from py2gcode import cnc_dxf
feedrate = 50.0
fileName = 'meter_mount.dxf'
stockThickness = 0.25
drillMargin = 0.125
startZ = 0.0
stopZ = -(stockThickness + drillMargin)
safeZ = 0.3
stepZ = 0.05
startDwell = 0.5
prog = gcode_cm... | [
"will@iorodeo.com"
] | will@iorodeo.com |
d6e362aeef9e06deff41345d07bc7e077179895f | c6ed09339ff21fa70f154f34328e869f0dd8e394 | /python/PIL/img_resize.py | df58e1a603cfe03dbd1eaf110ceb6417453cdd19 | [] | no_license | fits/try_samples | f9b15b309a67f7274b505669db4486b17bd1678b | 0986e22d78f35d57fe1dd94673b68a4723cb3177 | refs/heads/master | 2023-08-22T14:35:40.838419 | 2023-08-07T12:25:07 | 2023-08-07T12:25:07 | 642,078 | 30 | 19 | null | 2022-12-28T06:31:24 | 2010-05-02T02:23:55 | Java | UTF-8 | Python | false | false | 177 | py |
import sys
from PIL import Image
img_file = sys.argv[1]
w = int(sys.argv[2])
h = int(sys.argv[3])
dest_file = sys.argv[4]
Image.open(img_file).resize((w, h)).save(dest_file)
| [
"wadays_wozx@nifty.com"
] | wadays_wozx@nifty.com |
bb624387b9809c5be48f30160e3823420ebc7d8c | 11763b1150a3a05db89c13dcd6152f8fcca87eaa | /designs/nonlinear/permutation/multipermutation.py | 4eadfbacef2804804aa094c272ce232c834a6bb7 | [] | no_license | acad2/crypto | 343c32fa25aaec73e169290579fc3d02c4b226f6 | cb283df4101fcd618a0478a0018273f00d0734ae | refs/heads/master | 2021-08-19T06:36:26.068033 | 2017-11-25T00:41:03 | 2017-11-25T00:41:03 | 113,048,326 | 2 | 0 | null | 2017-12-04T13:49:02 | 2017-12-04T13:49:01 | null | UTF-8 | Python | false | false | 1,866 | py | from crypto.utilities import random_bytes
WORD_SIZE_BITS = 32
MASK64 = (2 ** WORD_SIZE_BITS) - 1
STATE_LENGTH = 8
def generate_state(length=STATE_LENGTH):
return range(length)
def generate_key(length=STATE_LENGTH, mask=MASK64):
key_m = [(item & mask) | 1 for item in bytearray(random_bytes(l... | [
"python_pride@protonmail.com"
] | python_pride@protonmail.com |
07f4280c356519b82898efa367c3a2e25905248c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03033/s453850284.py | f13a451bed63db4a6bf67d8ade18d71786d676fd | [] | 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 | 885 | py | def main():
n,q = map(int, input().split())
tl = []
que = []
d = dict()
for _ in range(n):
s,t,x = map(int, input().split())
tl.append((s-x,1,x))
tl.append((t-x,0,x))
for _ in range(q):
t = int(input())
tl.append((t,2))
tl.sort()
wor = set()
wc... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
78ece2afb6dc8d9e7775dd7cae8618c12045b454 | 49e1b436eaeb7064b674d611aa33d70ed8138cb5 | /examples/composing_pdf.py | e06a4c6f02e07f766bbd9ac4cf061e11f0852073 | [
"BSD-3-Clause"
] | permissive | aburke1605/zfit | ee810cf786b5121eee3cc2770d0d1b3c02ff86ac | d49fb5513b61b653cf0ca5b5720d4210862b2a70 | refs/heads/master | 2023-09-05T05:08:59.214839 | 2021-09-20T11:16:42 | 2021-09-20T11:16:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | # Copyright (c) 2020 zfit
import zfit
# create space
obs = zfit.Space("x", limits=(-10, 10))
# parameters
mu = zfit.Parameter("mu", 1., -4, 6)
sigma = zfit.Parameter("sigma", 1., 0.1, 10)
lambd = zfit.Parameter("lambda", -1., -5., 0)
frac = zfit.Parameter("fraction", 0.5, 0., 1.)
# pdf creation
gauss = zfit.pdf.Ga... | [
"mayou36@jonas.eschle.com"
] | mayou36@jonas.eschle.com |
ffb5aae78efbd94d9112b4913b0759fb644ffd30 | d50bf972c9e4321eb77aad8a0126b27d70432779 | /apps/person/api/attribute/views.py | e350811058631c777e41b4a0d4984b9b8ffe0072 | [] | no_license | PUYUP/kawalmedia | 1778b3473220ff64e2f5c998649fc0f637787976 | ffff74b94f111bb17d7a290ba57a13c63e32e5fa | refs/heads/master | 2022-10-20T19:36:45.413061 | 2019-11-07T08:02:31 | 2019-11-07T08:02:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,487 | py | from uuid import UUID
from itertools import chain
from django.db.models import F, Subquery, OuterRef
from django.db import transaction
from django.utils.translation import ugettext_lazy as _
from django.utils.decorators import method_decorator
from django.core.exceptions import ObjectDoesNotExist
from django.views.dec... | [
"hellopuyup@gmail.com"
] | hellopuyup@gmail.com |
b7270e1e061dbd90bf3c7a6898118fd3d3223cfd | 222dbb2f43dccbd4538ef76798a26457edffe07c | /utils/plot_utils.py | 87ac03b4a10ee2e0494afbd36ccfe9a6ea1c7221 | [] | no_license | MJHutchinson/PytorchBayes | 9699351822416deeb61e95a34653580fdfbbb5ae | e95a9bd308c595b9603bdfb799288a0ed50cc7c6 | refs/heads/master | 2020-04-09T18:39:57.643468 | 2019-01-15T16:06:05 | 2019-01-15T16:06:05 | 160,519,698 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,693 | py | import matplotlib.pyplot as plt
import matplotlib
import numpy as np
# plt.style.use('ggplot')
# matplotlib.rcParams['text.usetex'] = True
def plot_training_curves(input, val = 'accuracies', legend=None):
_, ax = plt.subplots(1, 1)
ax.set_xlabel('Epoch')
ax.set_ylabel(val)
ax.set_title(val)
if leg... | [
"hutchinson.michael.john@gmail.com"
] | hutchinson.michael.john@gmail.com |
f0541ee8e9970bfd430b5485a39c0009a9631e76 | 72d010d00355fc977a291c29eb18aeb385b8a9b0 | /pushbase/user_component.py | 4dbab9d5ed556ff989cde117595a4b3af7d19a17 | [] | no_license | maratbakirov/AbletonLive10_MIDIRemoteScripts | bf0749c5c4cce8e83b23f14f671e52752702539d | ed1174d9959b20ed05fb099f0461bbc006bfbb79 | refs/heads/master | 2021-06-16T19:58:34.038163 | 2021-05-09T11:46:46 | 2021-05-09T11:46:46 | 203,174,328 | 0 | 0 | null | 2019-08-19T13:04:23 | 2019-08-19T13:04:22 | null | UTF-8 | Python | false | false | 2,340 | py | # Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/pushbase/user_component.py
# Compiled at: 2018-04-23 20:27:04
from __future__ import absolute_import, print_function, unicode_literals
from ableton.v2.base import listens, task
from ableton.v2.control_sur... | [
"julien@julienbayle.net"
] | julien@julienbayle.net |
70b37329ad3c3cce6622f4f307c71cffaad6359f | ab19b1e637109f6a6f32e99714ea1c7cbe1d5ec0 | /month/migrations/0003_theme_slug.py | 1fbf6c4bf241ba87a30afe5e9f364aafa2a4cbf7 | [] | no_license | devonwarren/totemag | daf05876cfe636c4dcfe83b764900a0bc4c9c29d | 304ab0e2f72b926e63de706a6e3dc0b043db36fd | refs/heads/master | 2021-01-17T20:48:48.671352 | 2016-06-02T00:57:11 | 2016-06-02T00:57:11 | 58,146,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-03-31 19:21
from __future__ import unicode_literals
import autoslug.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('month', '0002_auto_20160218_1741'),
]
operations = [
migratio... | [
"devon.warren@gmail.com"
] | devon.warren@gmail.com |
fcac3eef07e02c904d9de6b2316190c32ac0beb8 | 6550cc368f029b3955261085eebbddcfee0547e1 | /第6部分-Django(哪吒,肖锋)/django-2-进阶-肖锋/day69/day69/about_middleware/app01/views.py | 5de771df74370c060b8d9679eadaa846206f9934 | [] | no_license | vividyellow/oldboyeduPython14qi | d00c8f45326e16464c3d4e8df200d93779f68bd3 | de1e9f6efafa2846c068b3fe5ad6e1ca19f74a11 | refs/heads/master | 2022-09-17T21:03:17.898472 | 2020-01-31T10:55:01 | 2020-01-31T10:55:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | from django.shortcuts import render, HttpResponse
def index(request,num):
# print(id(request))
print('这是index函数')
print(num)
# int('xxxx')
ret = HttpResponse('ok')
def xxxx():
print('这是index中的xxxx')
return HttpResponse('这是index中的xxxx')
ret.render = xxxx
print(id(r... | [
"524991368@qq.com"
] | 524991368@qq.com |
e7f5999714364ca89bfd6d481fb3df9478301b51 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_fondue.py | 40fa3e508406b5f07e49c5433e9cbb0992d0ff0d | [
"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 | 471 | py |
#calss header
class _FONDUE():
def __init__(self,):
self.name = "FONDUE"
self.definitions = [u'a hot dish prepared by keeping a container of either hot oil or melted cheese over a flame at the table and putting pieces of meat in the oil to be cooked or pieces of bread into the cheese: ']
self.parents = []
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
cbf38e40373cc0ba6702a4cd35e5d42ac32433e4 | 2f989d067213e7a1e19904d482a8f9c15590804c | /lib/python3.4/site-packages/allauth/socialaccount/app_settings.py | feffe48c9996e4b546c0e9e2cfdecc3b368227bf | [
"MIT"
] | permissive | levabd/smart4-portal | beb1cf8847134fdf169ab01c38eed7e874c66473 | 2c18ba593ce7e9a1e17c3559e6343a14a13ab88c | refs/heads/master | 2023-02-18T05:49:40.612697 | 2022-08-02T09:35:34 | 2022-08-02T09:35:34 | 116,001,098 | 0 | 1 | MIT | 2023-02-15T21:34:01 | 2018-01-02T10:00:07 | Roff | UTF-8 | Python | false | false | 2,466 | py | class AppSettings(object):
def __init__(self, prefix):
self.prefix = prefix
def _setting(self, name, dflt):
from django.conf import settings
getter = getattr(settings,
'ALLAUTH_SETTING_GETTER',
lambda name, dflt: getattr(settings, name,... | [
"levabd@gmail.com"
] | levabd@gmail.com |
43e93fad15954e6b80db34598f7a446137cb7af2 | f1614f3531701a29a33d90c31ab9dd6211c60c6b | /alembic/versions/a27b6e57783e_add_price_field_into_product.py | abe46cef631b593c42bf69355694e6b56fccead4 | [] | no_license | pfpacheco/menu-sun-api | 8a1e11543b65db91d606b2f3098847e3cc5f2092 | 9bf2885f219b8f75d39e26fd61bebcaddcd2528b | refs/heads/master | 2022-12-29T13:59:11.644409 | 2020-10-16T03:41:54 | 2020-10-16T03:41:54 | 304,511,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | """add_price_field_into_product
Revision ID: a27b6e57783e
Revises: 7bbdc8a9d923
Create Date: 2020-05-15 16:10:48.441492
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = 'a27b6e57783e'
down_revision = '7bbdc8a9d923'
branch_lab... | [
"pfpacheco@gmail.com"
] | pfpacheco@gmail.com |
0e9112638e0087b9dbc8196f6bbc82002dfc1c6f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_104/257.py | 07a54af8721054894995ab319662d0fe7ec4ce8d | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | #!/usr/bin/env python
import sys
import multiprocessing
import itertools
log = sys.stderr
def doit(line):
n = [int(i) for i in line.split()]
n = n[1:n[0]+1]
log.write("Case: {0}\n".format(n))
for c in sorted([c for c in itertools.combinations(range(1, len(n)), 2)], key = lambda x: sum(x)):
lo... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
a6028b97150017982a67e819999bbc0d43e86378 | 61d248b587c6a89f30caa8bc92daeda4d30cbcd2 | /Crawler/tools/convert.py | cd292c49afd90d4afe1a0b67b660424dedb0e5b6 | [] | no_license | luckyyd/hackathon-ocw | 0f6aab5899c628246a6391fd94116245bc4505e4 | b03fbbe7cad9456c84093b00cb946f2d14de50c5 | refs/heads/master | 2021-01-17T10:26:05.793986 | 2016-04-27T05:47:42 | 2016-04-27T05:47:42 | 52,526,118 | 0 | 1 | null | 2016-04-27T05:47:43 | 2016-02-25T13:26:36 | Python | UTF-8 | Python | false | false | 1,458 | py | # 把爬下内容融合到items.json中
import json
import codecs
import io
from pprint import pprint
def get_duration(olist, url):
for item in olist:
if (item['courselink']) == url: return item['duration']
return ''
#input_file = open(r'C:\Users\foamliu.FAREAST\Documents\GitHub\hackathon-ocw\FeedAPI\app\assets\jsons\i... | [
"foamliu@yeah.net"
] | foamliu@yeah.net |
112ef319e46a7d047de72eaa19d85ade85d1b4c9 | f807e5aecbe175e493ea1c47304ceca2817e6083 | /logging_exam/bar_logging.py | 53b4272d799d6cd9d906feec5f680ea020fd6675 | [] | no_license | jbking/logging-custom-for-json | d2a22745488d44fd667cb59a011c0232f531550c | 28613ef67fb0d1a4f7a440dcd838638ef8f9ee78 | refs/heads/master | 2023-03-24T03:47:12.295311 | 2021-03-18T04:44:10 | 2021-03-18T04:53:33 | 348,305,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | import logging
from loguru import logger
_logger = logging.getLogger(__name__)
def log_out(msg, additional_context=None):
if additional_context is None:
logger.info("logging out")
_logger.info("logging.logger out")
else:
with logger.contextualize(**additional_context):
l... | [
"yusuke@jbking.org"
] | yusuke@jbking.org |
8e10ece00228060d469cc533d663c551c8f60b8d | 5942e3e75ef7dc22a67b04fb1f12e14658a2093d | /documentation_files/findertools.py | f6431928c62051fbea22ed0766b2c89ba6574eb3 | [] | no_license | the-factory/kdevelop-python | 9e94d2a4d4906a31a4d2a8a08300766e02d41a59 | 1e91f2cb4c94d9455a2ee22fef13df680aeed1ab | refs/heads/master | 2021-01-18T08:57:16.707711 | 2012-04-09T22:37:47 | 2012-04-09T22:37:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
""":platform: Mac
:synopsis: Wrappers around the finder's Apple Events interface.
"""
def launch(file):
"""
Tell the finder to launch *file*. What launching means depends on the file:
applications are started, folders are opened and documents are opened in the
corr... | [
"svenbrauch@googlemail.com"
] | svenbrauch@googlemail.com |
ad3e0221462b158b16454706a9dd1f8ccf500736 | 7a649b4969eecc48a13924c610409f32502e945f | /workspace_tools/data/support.py | d46c99ee9bc24d6d2c330faaf52eccb1eb69432c | [
"Apache-2.0"
] | permissive | giapdangle/mbed | 3434cfa485220a3997653742e85a020ab6eb488a | 4a6e8aa5f6f6ee6749dbf7ff4dade7501f73c996 | refs/heads/master | 2020-12-29T02:07:13.522820 | 2013-04-11T16:45:02 | 2013-04-11T16:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | DEFAULT_SUPPORT = {
"LPC1768" : ["ARM", "GCC_ARM", "GCC_CS", "GCC_CR", "IAR"],
"LPC11U24": ["ARM", "uARM"],
"LPC2368" : ["ARM"],
"KL25Z" : ["ARM", "GCC_CW"],
"LPC812" : ["uARM"],
}
CORTEX_ARM_SUPPORT = {
"LPC1768" : ["ARM"],
"LPC11U24": ["ARM", "uARM"],
"KL25Z" : ["ARM"],
"LPC81... | [
"emilmont@gmail.com"
] | emilmont@gmail.com |
5c1c5c7f5bf537882d403059f0342a0d9cb50424 | b8b26feac86b66b0b534996cf9c3fbf7ec660240 | /aoc/2017/p3-2.py | b3003e4e3d06cb26545a197036c34205d9cd62a1 | [
"MIT"
] | permissive | neizod/problems | 775fffe32166c5b124d0e4c973b8d0aba7f3900b | 180aaf7d0ecfc3d0dd5f1d4345a7a4d83b1b884a | refs/heads/master | 2021-07-08T12:30:31.100320 | 2021-05-26T09:34:19 | 2021-05-26T09:34:19 | 6,245,523 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | #!/usr/bin/env python3
grid = [[1]]
def iter_ring(size):
x = size - 1
y = size - 2
while y > 0:
yield x, y
y -= 1
while x > 0:
yield x, y
x -= 1
while y < size - 1:
yield x, y
y += 1
while x < size - 1:
yield x, y
x += 1
yiel... | [
"neizod@gmail.com"
] | neizod@gmail.com |
93bf28364394d57d3c7f4a0af0218e1624b63385 | 429d5ec5f3d4941391807f2a46582938698f82dc | /doc/Homeworks/Solutions/CodesPart2firstmidterm.py | 536c95a48aeffc6437934bd27ab13e3e29d4e9e0 | [
"CC0-1.0"
] | permissive | mhjensen/Physics321 | b24548bbe69633b4618f39ed0b0cf2eb94f10266 | 91970ed5502de694e4812dc77d886c02701f300e | refs/heads/master | 2023-08-04T06:29:22.148776 | 2023-07-24T20:38:14 | 2023-07-24T20:38:14 | 190,315,277 | 30 | 42 | CC0-1.0 | 2021-07-13T17:34:44 | 2019-06-05T02:52:53 | HTML | UTF-8 | Python | false | false | 1,248 | py | import numpy as np
from math import *
import matplotlib.pyplot as plt
# The acceleration a = F/m with F = -dV/dx
def acceleration(x):
return (-1/m)*((10/(x**2)) + (-2*3/(x**3)) + 1)
def potential_energy(x):
return -10.0/x +3.0/(x**2) + 1.0*x
# initial time
t0 = 0
#final time
tf = 10.0
dt = 0.00001
# set up a... | [
"morten.hjorth-jensen@fys.uio.no"
] | morten.hjorth-jensen@fys.uio.no |
2bf0f812aba10ee36b3e812498abf89e69bdafa1 | 3b4e8cc46c1373d36150ad839d2f6539ea8f92b3 | /qmcpy/accumulate_data/_accumulate_data.py | 9b04e7fbd1ad2b0356f426d5bc5ce79ae29a46f9 | [
"Apache-2.0"
] | permissive | kachiann/QMCSoftware | a244efb085c95924ee80a5aa8b8480ea4a9f8e72 | 0ed9da2f10b9ac0004c993c01392b4c86002954c | refs/heads/master | 2023-01-11T12:01:19.527177 | 2020-10-29T03:49:47 | 2020-10-29T03:49:47 | 313,940,226 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,700 | py | from ..true_measure._true_measure import TrueMeasure
from ..util import ParameterError, MethodImplementationError, _univ_repr, DimensionError
class AccumulateData(object):
""" Accumulated Data abstract class. DO NOT INSTANTIATE. """
def __init__(self):
""" Initialize data instance """
prefix =... | [
"agsorokin3@gmail.com"
] | agsorokin3@gmail.com |
9dc8c6f47259ee29a2b53f1fabf5e6d90e53eb36 | ea8a9889534df7323b3d159ff4ba9563191b8eba | /phantomcli/scripts/util.py | 1dfa842bb230f1dcc79c38592d4b01c65ae2acaa | [
"MIT"
] | permissive | the16thpythonist/phantom-cli | 946b7fb69fd4917ba10f46fe2ecbd3884ee49513 | 921588dda66bf84bf79569493f4e4312b59cd56d | refs/heads/master | 2023-01-11T21:22:28.962704 | 2020-01-15T10:07:16 | 2020-01-15T10:07:16 | 171,679,615 | 2 | 2 | null | 2022-12-26T20:47:38 | 2019-02-20T13:37:21 | Python | UTF-8 | Python | false | false | 3,142 | py | # standard library imports
import logging
from collections import defaultdict
# local imports
from phantomcli.network import PhantomSocket
# ##############
# LOGGING CONFIG
# ##############
# This will be the translation table, which will be used to return the appropriate constant for defining the logging
# level ... | [
"jonseb1998@gmail.com"
] | jonseb1998@gmail.com |
578c8787ceceb57fd6f1b00ccf5a18c45bce3112 | d62863d049c0206bfa744ca4c9e886030bfce1ab | /core/sw_content/api/urls.py | bb16923771941697e7d045724f76f110488d8588 | [] | no_license | jurgeon018/box | 51738b99e640202936ed72357d3c67d2517e589b | 50b84a0afa73fab85a00eef54194f3c126d15397 | refs/heads/master | 2021-07-17T13:37:08.665292 | 2020-10-15T09:50:33 | 2020-10-15T09:50:33 | 232,013,297 | 0 | 1 | null | 2020-03-27T02:16:44 | 2020-01-06T03:01:34 | Python | UTF-8 | Python | false | false | 159 | py | from django.urls import path, include
from .views import *
urlpatterns = [
path('contents/', contents_list),
path('contents/<code>/', content),
]
| [
"jurgeon018@gmail.com"
] | jurgeon018@gmail.com |
fe51faa3136ef571cd703ca4d4e1d4e76927e009 | 3d0ae7c8693463faa11bacad8e6ea9d0d70b9eb1 | /pytools/map_partitioning/bin/logfile_utils/show_trajectory.py | d9f9db720d302afbb88b0a3504799fb9d6148ab7 | [] | no_license | stefie10/slu_hri | a76f79094bd1740676fec5d889411ba3b1d9dc26 | 50753379953e1ff822162eeab094cffe4a30f3e1 | refs/heads/master | 2022-12-14T01:07:51.522258 | 2020-08-31T00:50:12 | 2020-08-31T00:50:12 | 291,386,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,457 | py | from pyTklib import tklib_log_gridmap
import carmen_maptools
from sys import argv
from pylab import *
def load_logfile(filename):
filein = open(filename, 'r')
C =[]
X = []
Y = []
for line in filein:
c, x, y = line.split()
C.append(float(c))
X.append(float(x))
Y.appen... | [
"stefie10@alum.mit.edu"
] | stefie10@alum.mit.edu |
0725144ab0336ebe177e178f18b16ccb28c97f24 | ea5b878376318675931f21ffda41c5914ad0e382 | /keras/optimizers/optimizer_experimental/rmsprop.py | f0ae4683563940c788925ed6817093352ec74525 | [
"Apache-2.0"
] | permissive | Wajih-O/keras | 44089847c6f284b2c2150da8530c5fe05c2a8bb5 | 9628af85a0a2cb04cf433b1ad991017b70ae2005 | refs/heads/master | 2022-03-03T15:20:18.045765 | 2022-02-19T00:16:17 | 2022-02-19T00:16:55 | 125,854,516 | 0 | 0 | null | 2018-03-19T12:32:07 | 2018-03-19T12:32:07 | null | UTF-8 | Python | false | false | 7,968 | py | # Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
862419c52e382090fdc0f8bc88d9d9b50545d941 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /PwGFjiSG3kXzp8rjw_0.py | 2c3f3f4190281dfb4dc976c0f2a808f87fb5bbdb | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | """
Write a function that returns the number of users in a chatroom based on the
following rules:
1. If there is no one, return `"no one online"`.
2. If there is 1 person, return `"user1 online"`.
3. If there are 2 people, return `user1 and user2 online"`.
4. If there are `n>2` people, return the first two na... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
56701fd811a38660046b136f603979a0cef5719a | 964f2882117ff656d7a2757c233c6dd88226d975 | /services/catalog/src/simcore_service_catalog/core/application.py | 9738689b9d5b75e0d9567c716f0419f4c9c74665 | [
"MIT"
] | permissive | ignapas/osparc-simcore | a002dd47d7689af9c1c650eea33e31add2b182c1 | cb62e56b194265a907f260f3071c55a65f569823 | refs/heads/master | 2023-01-22T08:55:32.580775 | 2022-12-09T15:57:36 | 2022-12-09T15:57:36 | 170,852,656 | 0 | 0 | MIT | 2023-01-09T05:03:04 | 2019-02-15T11:12:34 | Python | UTF-8 | Python | false | false | 3,437 | py | import logging
import time
from typing import Callable, Optional
from fastapi import FastAPI, Request
from fastapi.exceptions import RequestValidationError
from fastapi.middleware.gzip import GZipMiddleware
from servicelib.fastapi.openapi import override_fastapi_openapi_method
from starlette import status
from starlet... | [
"noreply@github.com"
] | ignapas.noreply@github.com |
b413251bf658c5caebaf53a11df9e546d7b74c8d | fb6037de54380ef9776fa18b099df03129cef27b | /config.py | 0f52e7589bdb34f27ca16a8992c3e2cb5ee0941f | [] | no_license | webclinic017/newmainbucketssurver | 1385dffe0ea573bb9cb81a4eeb5ddd341aabe88c | 71f86ec7d52b7d68960ecd2fed6b11713b11622e | refs/heads/main | 2023-07-08T10:03:02.915075 | 2021-08-05T13:25:13 | 2021-08-05T13:25:13 | 395,801,207 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | from flask_restful import Api
from flask import Flask
from flask_cors import CORS
from flask_mail import Mail
from dotenv import load_dotenv
from cryptography.fernet import Fernet
from flask_jwt_extended import JWTManager
from apscheduler.schedulers.background import BackgroundScheduler
from apscheduler.jobstores.mongo... | [
"noreply@github.com"
] | webclinic017.noreply@github.com |
7f54b92aa08f3953e791158a06be7ed846bbe676 | 2029785d79244b601c978deb2617e88cc658dc9e | /config.py | f2cfc36ddde563db0c6ade78c57a0b1148b0b1fc | [] | no_license | JalexDooo/Pytorch_Learning | 025bcf422c5fb39b03a2a6521fc69502d899c37e | 622cddff30359763270fffa0b52dca79b02164bb | refs/heads/master | 2020-04-03T02:06:36.248827 | 2018-11-01T03:33:45 | 2018-11-01T03:33:45 | 154,947,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | import torch as t
import warnings
class DefaultConfig(object):
"""docstring for DefaultConfig"""
env = 'default' # visdom
vis_port = 8097
model = 'AlexNet'
train_data_root = './data/train/'
test_data_root = './data/test'
load_model_path = None
batch_size = 32
use_gpu = True
num_workers = 4 # how many worke... | [
"393351322@qq.com"
] | 393351322@qq.com |
9da4f23ce929496941a6e018e60fc0d53ce7f602 | d4f9a423353fe79cf8824a8407690655fc1379fe | /django/virtualenv/django/lib/python2.7/site-packages/ansible-2.2.0-py2.7.egg/ansible/modules/extras/system/modprobe.py | 94c1a70437b97af6e6cb0e52a67fbc5c237d1106 | [] | no_license | 007root/python | 9ab62d433d17c8bb57622fd1d24a3b17cb3d13ad | 16bf729e5824555eab0c9de61ce6b8b055551bd1 | refs/heads/master | 2020-06-23T09:43:05.308328 | 2020-06-09T08:31:20 | 2020-06-09T08:31:20 | 74,656,519 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,607 | py | #!/usr/bin/python
#coding: utf-8 -*-
# (c) 2013, David Stygstra <david.stygstra@gmail.com>
#
# This file is part of Ansible
#
# This module 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 ... | [
"wangzhishuai@gstianfu.com"
] | wangzhishuai@gstianfu.com |
c6e6f419fb3b519d47880163dc872c60998281b1 | 845058c3434ff43c5f9bd48df13818bef74f04e3 | /tyler/cs301/spring19/materials/code/lec-08/sec3/battleship.py | d2e064aef38d1dee1842b8a4e1b5a7e87db4a51a | [] | no_license | tylerharter/caraza-harter-com | ad7d7f76a382dfd1d4ff4c05922ea57425d1be2b | 70b983a28d94d744b92c9f00dfb8ec6ca20e080d | refs/heads/master | 2023-08-18T23:16:21.588376 | 2023-08-09T17:03:18 | 2023-08-09T17:03:18 | 142,339,324 | 19 | 114 | null | 2023-02-21T18:28:00 | 2018-07-25T18:35:07 | HTML | UTF-8 | Python | false | false | 685 | py | def draw_map(x, y, character):
width = 10
height = 10
print(('.' * width + "\n") * y, end="")
print("." * x + character + "." * (width - (x + 1)))
print(('.' * width + "\n") * (height - (y + 1)))
def ship1_hit(x, y):
ship1_x = 5
ship1_y = 4
return (x == ship1_x and y == ship1_y)
de... | [
"tylerharter@gmail.com"
] | tylerharter@gmail.com |
170b36e7ee43850c846de900bb40777b8a51c861 | c1eec99e798d71878b341cb016c4b1be193d5a68 | /tests/test_inplayserviceresources.py | 0ae060ae2704306a437f141d4dc57bad9881653c | [
"MIT"
] | permissive | KelvinVail/betfairlightweight | 7f7dc14ae80dc1778f8819d3990a5fe2f4d0703b | 3bcad61b2319e40c02fd41cd5179838e53e995ad | refs/heads/master | 2021-01-15T20:03:19.918425 | 2017-08-09T17:55:32 | 2017-08-09T17:55:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | from __future__ import print_function
import unittest
import datetime
from betfairlightweight import resources
from tests.tools import create_mock_json
class InPlayServiceTest(unittest.TestCase):
def test_scores(self):
mock_response = create_mock_json('tests/resources/scores.json')
resource = ... | [
"paulingliam@gmail.com"
] | paulingliam@gmail.com |
720f9ff24ca6f6b8bfcb316886af1ead65756ab9 | a2d13658503b9b921e27994152ab6adb554725bc | /store/migrations/0065_auto_20210205_1244.py | 4faf2433a9c2ce5bd22224da671c9cd04cea01fd | [] | no_license | avishkakavindu/sushi-chef-django | 40a1d7916d7f8c37ba1290cb717af517d2bce265 | 4c112d806720d903877822baaa26159c32704901 | refs/heads/master | 2023-03-18T11:12:41.721554 | 2021-03-11T08:22:52 | 2021-03-11T08:22:52 | 303,053,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | # Generated by Django 3.1.5 on 2021-02-05 07:14
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0064_auto_20210205_1227'),
]
operations = [
migrations.AlterField(
model_name='coupon',
nam... | [
"avishkakavindud@gmail.com"
] | avishkakavindud@gmail.com |
7254d4913dabf70b27f3b77a544a4b9cbf1d9990 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2008-EOL/programming/libs/indilib/actions.py | 6bc591a0b0b40e7bbf3c3b128c1d8577fa1bfce1 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2008 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
WorkDi... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
a20349f17c7be0c3eb620b4d2bc9924a7c4380e4 | ac9c04d564d781eab3a5a0e2d7fce8377047a6d5 | /obsoper/test/test_coordinates.py | 510fa864ce079dfd46ddaaecde821ccc965c12dc | [
"BSD-3-Clause"
] | permissive | met-office-ocean/obsoper | ee57fb4bc0f5f06e9126bbb161223aca4d535e45 | 15030dedc3cbdeb67407b940b4f923b054520fc3 | refs/heads/master | 2021-01-11T01:36:07.516059 | 2019-02-01T12:15:54 | 2019-02-01T12:15:54 | 70,684,510 | 0 | 0 | null | 2017-02-06T16:40:37 | 2016-10-12T09:28:36 | Python | UTF-8 | Python | false | false | 1,393 | py | # pylint: disable=missing-docstring, invalid-name
import unittest
import numpy as np
import obsoper
class TestCartesian(unittest.TestCase):
def test_cartesian_given_lists_returns_arrays(self):
x, y, z = obsoper.cartesian([], [])
self.assertIsInstance(x, np.ndarray)
self.assertIsInstance(y,... | [
"andrew.ryan@metoffice.gov.uk"
] | andrew.ryan@metoffice.gov.uk |
d1bc5e61fa3c11ca862dc136ea3dbb0de9ae534f | bf049dd5150794070fb816b665e626559b29d5ed | /code/docmodel/metadata_parser.py | 4cce43ffcdfd329bfbd82d879b8e3eeb39fa42ed | [] | no_license | mnscholz/ttk | af8cbaeb7e7a15e00757a1e65c4d8e36402fd372 | 07291e45512ad9a819016f8891a3bfa6f462eef0 | refs/heads/master | 2021-01-18T06:22:46.658707 | 2016-05-16T18:35:43 | 2016-05-16T18:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,675 | py | """Metadata Parsers.
This module contains metadata parsers, that is, parsers that pull out the
metadata and add it to a TarsqiDocument. The only requirements on each parser is
that it defines an __init__() method that takes a dictionary of options and a
parse() method that takes a TarsqiDocument instance.
Current par... | [
"marc@cs.brandeis.edu"
] | marc@cs.brandeis.edu |
0147192e5e7915f56773a85531b0aa0143af88c2 | 8d6ae21b78b3b40382e21198c571a7957e055be5 | /Aug20/projectEuler/utilities/numeric.py | 8c0bf7fb94084c1085ac1ceaf2dfa7ca1596a545 | [] | no_license | vj-reddy/PythonBatch1 | 6c1a429e0ac57ea1db7b04af18187e84cd52f2d5 | b86a5a16b1004d1e4f855a57b019704c71425bbf | refs/heads/master | 2023-03-16T06:05:48.104363 | 2020-10-16T13:55:03 | 2020-10-16T13:55:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | def is_divisible_by(number, factor):
"""
This method will return true if the number is divisible by factor
:param number: number
:param factor: factor
:return: true if divisible false other wise
"""
return number % factor == 0
def is_prime(number):
"""
This method will be used to d... | [
"qtdevops@gmail.com"
] | qtdevops@gmail.com |
75f825c43426ee4c037bbc78f9ee08315259bbd0 | 2afb1095de2b03b05c8b96f98f38ddeca889fbff | /web_scrapping/try_beautifulSoup.py | c821555604b1369258a76b38f3042aaacfd6ecbb | [] | no_license | draganmoo/trypython | 187316f8823296b12e1df60ef92c54b7a04aa3e7 | 90cb0fc8626e333c6ea430e32aa21af7d189d975 | refs/heads/master | 2023-09-03T16:24:33.548172 | 2021-11-04T21:21:12 | 2021-11-04T21:21:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | # import requests
# from bs4 import BeautifulSoup
#
# url = "https://www.bilibili.com/video/av28951415?from=search&seid=12506065350425881349"
#
# r = requests.get(url)
# r_text = r.text
#
# soup = BeautifulSoup(r_text, "html.parser")
# ##查看第一个a标签
# a = soup.a
# print (a)
##查询a标签在bs4中的对象种类(tag,navigable ... | [
"13701304462@163.com"
] | 13701304462@163.com |
6af7ce031ab72dbf0aff50709a14055d44efc7f8 | 6206ad73052b5ff1b6690c225f000f9c31aa4ff7 | /Code/Optimal Account Balancing.py | 1e1d342648e9e3f972af5beca08a82012254c012 | [] | no_license | mws19901118/Leetcode | 7f9e3694cb8f0937d82b6e1e12127ce5073f4df0 | 752ac00bea40be1e3794d80aa7b2be58c0a548f6 | refs/heads/master | 2023-09-01T10:35:52.389899 | 2023-09-01T03:37:22 | 2023-09-01T03:37:22 | 21,467,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,380 | py | class Solution:
def minTransfers(self, transactions: List[List[int]]) -> int:
balance = collections.defaultdict(int) #Initialize final balances for each person.
for x, y, amount in transactions: #Traverse transcations and upd... | [
"noreply@github.com"
] | mws19901118.noreply@github.com |
7ab3beaed3f6386264eb6ef9b7bfcc566325c83f | eef64f44003dff45287b487bc7a8da589d85d9cc | /chatbot/twitter_qa.py | 1ba8c671b2a055f4723ba61405dd3e29f7cbe936 | [
"Apache-2.0"
] | permissive | k8tems/TwitterQA | 387462c8e47e4c3dadeb9861e4009837e8b22f6b | 938fc29a050ab736d88446e9d794e2047850b4df | refs/heads/master | 2020-06-14T10:40:19.616309 | 2016-11-30T08:09:13 | 2016-11-30T08:09:13 | 75,195,384 | 0 | 1 | null | 2016-11-30T14:36:54 | 2016-11-30T14:36:53 | null | UTF-8 | Python | false | false | 3,924 | py | import json
import os
import re
import itertools
from TwitterAPI import TwitterAPI
with open("chatbot/credentials.json") as f:
credentials = json.load(f)
api = TwitterAPI(**credentials)
def get_tweets(screen_name, max_tweets=None):
show = api.request("users/show", {"screen_name": screen_name}).json()
m... | [
"kootenpv@gmail.com"
] | kootenpv@gmail.com |
edeff8f4740317cae44fe79e7ea6e421a6b1a75a | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/runtime/models/composite_entity_model_py3.py | 45ac985fffc41176922ca0c663519fdecff97333 | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,607 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
3593906c7a346a04d30bc4f47ee8e891762d98c1 | 5e01b849530ceac9f62ef2fb85497792bbe4c15a | /Jan10/naver_top10.py | dd1cf2fe92f9dd24cc756974a264eb7c6063d04f | [] | no_license | cheesecat47/ML_DL_Jan2020 | 2206599c0eb20eebdd152d1e3b27e72ffa2c6900 | 15bffd8c9c19d9ff2871aa7afe95607f95e491fe | refs/heads/master | 2021-07-16T18:10:20.609018 | 2021-01-19T00:48:01 | 2021-01-19T00:48:01 | 232,076,415 | 0 | 0 | null | 2020-01-28T04:58:03 | 2020-01-06T10:23:19 | Python | UTF-8 | Python | false | false | 478 | py | if __name__ == "__main__":
import requests
from bs4 import BeautifulSoup
url = 'https://www.naver.com/'
keyword = 'span.ah_k'
source = requests.get(url).text
# print('source -> ', source)
soup = BeautifulSoup(source, 'html.parser')
hotkeys = soup.select(keyword)
# print('hotkeys -... | [
"cheesecat47@gmail.com"
] | cheesecat47@gmail.com |
824b3247e9500207e27b7026be68e30c9b0945f5 | bbe7d6d59ef6d7364ff06377df9658367a19c425 | /minigame/ClerkPurchase.py | 11eb86228f3c0a79bcb7b11df4bc25c5c43d2f20 | [
"Apache-2.0"
] | permissive | DedMemez/ODS-August-2017 | 1b45c912ad52ba81419c1596644d8db2a879bd9b | 5d6214732e3245f63bfa250e3e9c881cc2dc28ad | refs/heads/master | 2021-01-22T18:37:51.626942 | 2017-08-19T02:04:51 | 2017-08-19T02:04:51 | 100,762,513 | 0 | 8 | null | null | null | null | UTF-8 | Python | false | false | 2,295 | py | # Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: toontown.minigame.ClerkPurchase
from PurchaseBase import *
from toontown.toonbase import ToontownTimer
COUNT_UP_RATE = 0.15
DELAY_BEFORE_COUNT_UP = 1.25
DELAY_AFTER_COUNT_UP = 1.75
COUNT_DOWN_RATE = 0.075
DELAY_AFTER_COUNT_DOWN = 0.0
DELAY_AFTER_CELEBRA... | [
"noreply@github.com"
] | DedMemez.noreply@github.com |
bf71278902d24a993bdc103a887f085dbdb8912a | 2729fff7cb053d2577985d38c8962043ee9f853d | /bokeh/models/scales.py | 0a037eca1337cf7ff71966fd9f2667aba5e93bf4 | [
"BSD-3-Clause"
] | permissive | modster/bokeh | 2c78c5051fa9cac48c8c2ae7345eafc54b426fbd | 60fce9003aaa618751c9b8a3133c95688073ea0b | refs/heads/master | 2020-03-29T01:13:35.740491 | 2018-09-18T06:08:59 | 2018-09-18T06:08:59 | 149,377,781 | 1 | 0 | BSD-3-Clause | 2018-09-19T02:02:49 | 2018-09-19T02:02:49 | null | UTF-8 | Python | false | false | 923 | py | '''
'''
from __future__ import absolute_import
from ..core.has_props import abstract
from .transforms import Transform
@abstract
class Scale(Transform):
''' Base class for ``Scale`` models that represent an invertible
computation to be carried out on the client-side.
JavaScript implementations should im... | [
"noreply@github.com"
] | modster.noreply@github.com |
25c6321f32ecd55981098fa2638aa02c4977a194 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/ae37519b7fd0b4361acf63a040329b1ef9200f17-<get_symbol>-bug.py | ecd07ea2a9e15c3c4a911abc5f699d4508e5a9c2 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,935 | py | def get_symbol(num_classes=1000, **kwargs):
data = mx.symbol.Variable(name='data')
conv1a_3_3 = ConvFactory(data=data, num_filter=32, kernel=(3, 3), stride=(2, 2))
conv2a_3_3 = ConvFactory(conv1a_3_3, 32, (3, 3))
conv2b_3_3 = ConvFactory(conv2a_3_3, 64, (3, 3), pad=(1, 1))
maxpool3a_3_3 = mx.symbol.... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
c966e69945ab0e2351d0e63be5dcf607c2581dbe | 3b93fc92d4d95dab66438ebf221f6cb4745aac5f | /src/content/serializers.py | 5d6310607bff4b88a555a6a08f16a50ae05b552f | [
"MIT"
] | permissive | vollov/django-restful | f20fb1236e2c4d16c62f7f7a6318e842dac0b6ce | ee796ded68470fd1609a9313fbf21e89481bccce | refs/heads/master | 2021-01-10T01:32:42.643182 | 2016-02-23T15:18:44 | 2016-02-23T15:18:44 | 46,464,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from django.contrib.auth.models import User, Group
from rest_framework import serializers
class PageSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Page
fields = ('url', 'title', 'created_at')
| [
"dike.zhang@gmail.com"
] | dike.zhang@gmail.com |
e29f67bd34420ecb4d41e6b4df9f51e438faa20f | ca17bd80ac1d02c711423ac4093330172002a513 | /goodyhandy/SubsetII.py | a0dcac809e84135cf1f348571b84dae783ec73ff | [] | no_license | Omega094/lc_practice | 64046dea8bbdaee99d767b70002a2b5b56313112 | e61776bcfd5d93c663b247d71e00f1b298683714 | refs/heads/master | 2020-03-12T13:45:13.988645 | 2018-04-23T06:28:32 | 2018-04-23T06:28:32 | 130,649,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | class Solution(object):
def subsetHelper(self, currentLst, remainLst, k,solution):
if len(currentLst) == k:
solution.append(currentLst)
return
prev = None
for i in xrange(0, len(remainLst)):
if remainLst[i] == prev: continue
prev = remainLst[i... | [
"zhao_j1@denison.edu"
] | zhao_j1@denison.edu |
10460c5c619b4240ff0b99f145ead047cb018d65 | 4c601eaa346e660c296e270cc2d79aea9a3721fe | /homeassistant/components/nexia/entity.py | 33962bb11c09d49123998860af8903052ae16907 | [
"Apache-2.0"
] | permissive | basnijholt/home-assistant | f55110af9ff602274c0a929c7298ef97a0ef282f | ba55b4b8338a2dc0ba3f1d750efea49d86571291 | refs/heads/dev | 2023-01-21T11:53:52.621353 | 2020-08-08T15:03:06 | 2020-08-08T15:03:06 | 220,313,680 | 5 | 1 | Apache-2.0 | 2023-01-13T06:04:49 | 2019-11-07T19:29:54 | Python | UTF-8 | Python | false | false | 3,620 | py | """The nexia integration base entity."""
from homeassistant.const import ATTR_ATTRIBUTION
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from homeassistant.helpers.entity import Entity
from .const import (
ATTRIBUTION,
DOMAIN,
MANUFACTURER,
SIGNAL_THERMOSTAT_UPDATE,
SIGNAL_Z... | [
"noreply@github.com"
] | basnijholt.noreply@github.com |
5ce9615a4c88d5518f60ae94f94389d009de2e7d | ad6f20ca36dc65e34b43c69db66f383554718fed | /matrix/MaximumSizeSquareSubMatrixWithAll1s.py | e71c6b396ccd19a920cd3ae3144e2eadfef0eb5e | [] | no_license | atulanandnitt/questionsBank | 3df734c7389959801ab6447c0959c85f1013dfb8 | 477accc02366b5c4507e14d2d54850a56947c91b | refs/heads/master | 2021-06-11T21:39:24.682159 | 2021-05-06T17:54:18 | 2021-05-06T17:54:18 | 175,861,522 | 0 | 1 | null | 2020-05-02T09:26:25 | 2019-03-15T17:10:06 | Python | UTF-8 | Python | false | false | 983 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 26 19:29:19 2018
@author: Atul Anand
"""
def MaximumSizeSquareSubMatrixWithAll1s(mat):
print(mat)
solMat=[[0 for j in range(len(mat[0]))] for i in range(len(mat))]
print(len(mat), len(mat[0]))
print(len(solMat), len(solMat[0]))
... | [
"atul.anand.nitt@gmail.com"
] | atul.anand.nitt@gmail.com |
a7cd0fc7c724c7705a289d6cdd963479b3160bdf | 358519772669c73092f625f630722c38e1d33783 | /DatabaseTopology/Force/AbstractAngle.py | c9c4fb2ea68e3a0faa2f0df8796e1238f9370815 | [] | no_license | minghao2016/mmtools | e7e61aca084498408ceae965dd6c9450ad89eafa | 3ade988afb51cd54ee5a4067d8deaad88afbb0fe | refs/heads/master | 2021-09-21T01:02:22.522187 | 2014-09-19T03:40:03 | 2014-09-19T03:40:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | class AbstractAngle(object):
def __init__(self, atom1, atom2, atom3):
self.atom1 = atom1
self.atom2 = atom2
self.atom3 = atom3
def __eq__(self, object):
if ((self.atom1 == object.atom1
and self.atom2 == object.atom2
and self.atom3 == object.atom3... | [
"choderaj@mskcc.org"
] | choderaj@mskcc.org |
314741efab3731b5875ac8b4f6eb9a3c6dfd630c | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5765824346324992_0/Python/xldrx/b_small.py | 602f0976eae08d0b2671638f6d4a89b2f1cbb49a | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | #! /usr/bin/env python -u
# coding=utf-8
import sys
__author__ = 'xl'
def find_n(m_time):
global M
ans = 0
for m in M:
ans += m_time / m
return ans
def find_next_time(m_time):
global M
ans = 1e6
for i, m in enumerate(M):
ans = min((m - m_time % m) % m, ans)
return a... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
2f2653ba38a9974a5cb6175428c4f23170ab8e86 | c2ee9d6d84e2270ba4c9d6062460a2be0ff5f19c | /205. Isomorphic Strings.py | 771d7e09dcbe8419877d10b7e415c0b9bf96c449 | [] | no_license | Peiyu-Rang/LeetCode | 0dd915638e8c41c560952d86b4047c85b599d630 | f79886ed3022664c3291e4e78129bd8d855cf929 | refs/heads/master | 2021-11-27T23:48:39.946840 | 2021-11-09T12:47:48 | 2021-11-09T12:47:48 | 157,296,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Aug 16 17:43:45 2020
@author: Caven
"""
class Solution:
def isIsomorphic(self, s: str, t: str) -> bool:
seen = {}
for ss, tt in zip(s,t):
if ss in seen:
if seen[ss] == tt:
continue
else:
... | [
"prang3@gatech.edu"
] | prang3@gatech.edu |
32d2f686c52afd000a755700d21c23ebcfedfdd7 | d8cf93900e6d86240ceb7643fd78bd2841b38152 | /test/str_mainpulation_test/test_Unicode_bytes_bytearray.py | 874ebae0cd1e269f91aee5e9a376b059d0e359db | [] | no_license | Onebigbera/Daily_Practice | 165cee0ee7883b90bcf126b23ff993fed0ceffef | 8f1018a9c1e17c958bce91cbecae88b0bb3c946b | refs/heads/master | 2020-04-09T01:20:48.857114 | 2019-01-03T03:24:59 | 2019-01-03T03:24:59 | 159,900,636 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,129 | py | # -*-coding:utf-8 -*-
# File :test_Unicode_bytes_bytearray.py
# Author:George
# Date : 2019/1/3
# motto: Someone always give up while someone always try!
# Python字符串使用Unicode编码来表示文本,大致而言,每个Unicode字符都用一个码点(code point)表示,而
# 码点是Unicode标准给每个字符指定的数字。这让你能够以任何现
# 代软件都能识别的方式表示129个文字系统中的12万个以上的字
# 符。当然,鉴于计算机键盘不可能包含几十万个键,因... | [
"2578288992@qq.com"
] | 2578288992@qq.com |
f897cb71f4618b8576015ce323dfbf1a9d1943b8 | 14252ea933a08056363230c6df89223b996a0da2 | /app/users/models.py | 4f39bdd9a656c75d57734bd0ce1fd9a66d26467e | [
"MIT"
] | permissive | S3Infosoft/mvr-insights | eeb02aa2e6767e6a23818d4e09f7be7ce29f80cb | ac73feff03c1592d5efd8e0b82f72dd4dbd3e921 | refs/heads/master | 2020-05-29T14:08:11.070784 | 2020-04-23T19:46:57 | 2020-04-23T19:46:57 | 189,184,619 | 0 | 1 | MIT | 2020-04-23T19:46:58 | 2019-05-29T08:35:56 | CSS | UTF-8 | Python | false | false | 6,123 | py | from django.db import models
from django.urls import reverse
from django.contrib.auth import base_user, models as auth_models
from django.utils.timezone import now
from django.utils.translation import ugettext_lazy as _
from django.core.files.base import ContentFile
from django.db.models.signals import post_save
from ... | [
"abhie.lp@gmail.com"
] | abhie.lp@gmail.com |
67bf7155188ac9ad6196f709cc8f1055cfa2148c | 4cbc8b81d197bc392d1b57856254300331b9738f | /python/tutorial_env/bin/virtualenv | 73d447dc889101d6aedde9c0a52c9b20a8ff657c | [
"MIT"
] | permissive | vcatafesta/chili | 87b9606f17cda645ba44cbf2bb4cc4637e18d211 | 5c734ac88454db76eb2f4e92c13364a5bbc7a93a | refs/heads/main | 2023-09-01T01:39:09.457448 | 2023-08-29T21:23:28 | 2023-08-29T21:23:28 | 171,972,556 | 2 | 2 | null | 2019-02-22T01:38:49 | 2019-02-22T01:26:46 | null | UTF-8 | Python | false | false | 267 | #!/github/chili/python/tutorial_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from virtualenv.__main__ import run_with_catch
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_with_catch())
| [
"vcatafesta@gmail.com"
] | vcatafesta@gmail.com | |
b35fca13f4a26f547668416fc0650b4da2010002 | 07e6fc323f657d1fbfc24f861a278ab57338b80a | /python/pySimE/space/exp/OrbitalTransferOpt/OrbOpt_Cos/OrbitalOptCos_profile.py | 9e3b7306b0af6b7d12671d76c2f1f9c87fc2bfa2 | [
"MIT"
] | permissive | ProkopHapala/SimpleSimulationEngine | 99cf2532501698ee8a03b2e40d1e4bedd9a12609 | 47543f24f106419697e82771289172d7773c7810 | refs/heads/master | 2022-09-05T01:02:42.820199 | 2022-08-28T10:22:41 | 2022-08-28T10:22:41 | 40,007,027 | 35 | 4 | null | null | null | null | UTF-8 | Python | false | false | 6,048 | py | #!/usr/bin/env python
from pylab import *
from basiset import *
from Simplex_optimization import Simplex
from Random_optimization import MCBias_Run,MCBias2_Run
nnodes = 8
nsamp = 64
Gen = [0.0]*2*nnodes
def R2omega(R):
return sqrt(1.0/R**3)
T = 2.0; R0 = 1.0; R1 = 0.2... | [
"ProkopHapala@gmail.com"
] | ProkopHapala@gmail.com |
f85334f39cfa415b73ca89a1cfa22453ea4916e7 | 2ad9a73cb3e2da46fb15ae56a6dee11407fe8845 | /ports/kodi/addons/plugin.video.transistortv/scrapers/local_scraper.py | 06c7ae7a3925f2c85a4975534ba43cc2f04195b2 | [] | no_license | hpduong/retropie_configs | cde596b35897a3faeedefabd742fc15820d58255 | ed4e39146e5bebc0212dcef91108541a128d9325 | refs/heads/master | 2021-07-12T15:46:17.589357 | 2018-11-11T19:10:54 | 2018-11-11T19:10:54 | 157,111,040 | 1 | 2 | null | 2020-07-24T03:43:29 | 2018-11-11T18:59:52 | Python | UTF-8 | Python | false | false | 7,649 | py | """
SALTS XBMC Addon
Copyright (C) 2014 tknorris
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
T... | [
"henryduong@gmail.com"
] | henryduong@gmail.com |
71c6c990cb067a053461d52af67c6a7f6bfa3c21 | 075c07c4e6efebbcdec670c07712281ed7ba659e | /traceback_format.py | fd82ab2d76aa08c4033e50b691553f48e7a1258d | [] | no_license | crystalDf/Automate-the-Boring-Stuff-with-Python-Chapter-10-Debugging | 86380e0e4a71656bd7638255252d470fe27b35e1 | 75dfc3bb0272fc799f6c618a7ccdef6820702bb0 | refs/heads/master | 2021-01-20T19:39:16.394050 | 2016-07-27T15:30:22 | 2016-07-27T15:30:22 | 63,609,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | import traceback
try:
raise Exception('This is the error message.')
except:
error_file = open('errorInfo.txt', 'w')
print(error_file.write(traceback.format_exc()))
error_file.close()
print('The traceback info was written to errorInfo.txt.')
| [
"chendong333@gmail.com"
] | chendong333@gmail.com |
f562169114f72ae7fd9906281c117a34e96029bb | f7a20374403b55189cc5db6e8fa34d0ba290387c | /modules/smm_marketing/__openerp__.py | 407d9650426c5d52c098a18e603a7044ae1b3ba3 | [] | no_license | dark-ice/upink_modules | 1a7b5a165cc5e05396c62cf33c261b907c23e33c | c497bf87a39796f1df3877542359b1927bec3a76 | refs/heads/master | 2021-05-01T04:40:16.436666 | 2014-04-12T15:09:31 | 2014-04-12T15:09:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,683 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# $Id$
#
# This program is free software: you can redistribute it and/or modify
#... | [
"karbanovich.andrey@gmail.com"
] | karbanovich.andrey@gmail.com |
fa237d48bc666c059cf88d567f64c6ae48cb8b0d | 271dbb5f0c23ae40f19a8df7dd3f15a44fbe5ae1 | /EdmureBlog/EdmureBlog/settings.py | 65db68c5b7535414c71de5b01c5cb3823e4aa1fa | [] | no_license | obligate/python3-king | a4d1c5c145c3b1c42efe059cf2bbd797d0b3c528 | 2b31400468c7a2621f29f24f82e682eb07c0e17d | refs/heads/master | 2020-05-02T11:45:16.218771 | 2019-03-27T08:05:39 | 2019-03-27T08:05:39 | 177,938,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,756 | py | """
Django settings for EdmureBlog project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import o... | [
"peter@tidebuy.net"
] | peter@tidebuy.net |
eeb786c8a7d518628fe96db228bbf2089d27276b | 0a48086ea4dd24cf696aab16fc3969c5980f1442 | /gcpdjango/apps/users/utils.py | c34df67721671cfd06d7fcd7d74ca1fa7676693e | [
"MIT"
] | permissive | stanford-rc/gcp-django-stanford | 67b7b0b532b3c4b7236ec80ad66892e979b52dda | a8d72130e03f96c7d9636b951b780e478594309d | refs/heads/master | 2022-11-21T03:25:03.980764 | 2020-07-31T18:40:56 | 2020-07-31T18:40:56 | 282,962,179 | 2 | 0 | MIT | 2020-07-31T18:40:58 | 2020-07-27T17:03:03 | HTML | UTF-8 | Python | false | false | 3,245 | py | import string
import random
from gcpdjango.settings import SENDGRID_API_KEY, SENDGRID_SENDER_EMAIL
from django.contrib import messages
from sendgrid import SendGridAPIClient
from sendgrid.helpers.mail import (
Mail,
Email,
To,
Content,
Attachment,
FileContent,
FileName,
FileType,
D... | [
"vsochat@stanford.edu"
] | vsochat@stanford.edu |
9c10f9833c7b2a77775984733c373b5641329b23 | 23556b966ee6a3abbe42ee5b66e13af3dce0cf71 | /u24_lymphocyte/third_party/treeano/nodes/tests/composite_test.py | eccc06bc2a77e4301650a679bfcae56d78ee2209 | [
"BSD-3-Clause"
] | permissive | SBU-BMI/quip_classification | 74dbf6d41e579755a952ba475f8a89bd82ac8530 | be61e5f047093243404f6f2dc8e837e27e8e1eb3 | refs/heads/master | 2022-07-30T20:29:48.459298 | 2022-07-17T16:59:15 | 2022-07-17T16:59:15 | 162,736,219 | 5 | 14 | BSD-3-Clause | 2022-02-11T02:53:02 | 2018-12-21T16:36:39 | Python | UTF-8 | Python | false | false | 5,315 | py | import nose.tools as nt
import numpy as np
import theano
import theano.tensor as T
import treeano
import treeano.nodes as tn
fX = theano.config.floatX
def test_dense_node_serialization():
tn.check_serialization(tn.DenseNode("a"))
tn.check_serialization(tn.DenseNode("a", num_units=100))
def test_dense_comb... | [
"sabousamra@cs.stonybrook.edu"
] | sabousamra@cs.stonybrook.edu |
55ff4fe9356b729e0c86ab973ecb0755cbe6c0bf | 6418b2bca8c9d95a69109e2fe4b0a827f9a87ddd | /cloudmesh/pi/board/led.py | b6abe06d0b12d0aae28eb57e5922230ca9ef7ccd | [
"Apache-2.0",
"Python-2.0"
] | permissive | nitesh-jaswal/cloudmesh-pi-cluster | 49d31baecd08eef3e8fc355fbf72fbcd655ebd35 | 804a7f0f93fb06161bccb4c9ff0fcecc93854747 | refs/heads/master | 2022-11-26T12:52:20.313904 | 2020-08-04T21:52:11 | 2020-08-04T21:52:11 | 273,601,432 | 0 | 0 | NOASSERTION | 2020-08-04T21:52:12 | 2020-06-19T23:02:02 | Python | UTF-8 | Python | false | false | 7,945 | py | import os
import time
from pprint import pprint
from cloudmesh.common.Host import Host
from cloudmesh.common.Tabulate import Printer
from cloudmesh.common.parameter import Parameter
"""
From: https://www.raspberrypi.org/forums/viewtopic.php?t=12530
If you want the LED to go back to its default function:
echo mmc0 ... | [
"laszewski@gmail.com"
] | laszewski@gmail.com |
178ebe48b20de522d522befa1f047f91edf82428 | 4289fcc440e0cf3d2ecaca03bd2cb1a40933f8fc | /dtformats/recycler.py | 7c2f3c368d1e9f32eebd78e298c581e9be311590 | [
"Apache-2.0"
] | permissive | ydkhatri/dtformats | 4251563ad8a42dbfb8f293890ed844e29b2c856a | 692d53616f7c89e5ff4d6950778c46d3b94a0130 | refs/heads/master | 2020-04-20T23:41:11.816017 | 2019-02-03T12:40:55 | 2019-02-03T14:32:54 | 169,174,860 | 2 | 0 | Apache-2.0 | 2019-02-05T01:16:42 | 2019-02-05T01:16:41 | null | UTF-8 | Python | false | false | 4,752 | py | # -*- coding: utf-8 -*-
"""Windows Recycler INFO2 files."""
from __future__ import unicode_literals
from dtformats import data_format
from dtformats import errors
class RecyclerInfo2File(data_format.BinaryDataFile):
"""Windows Recycler INFO2 file."""
_DEFINITION_FILE = 'recycler.yaml'
_DEBUG_INFO_FILE_ENTRY... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
8d35fadf93c1e4e0d7f0a894831ab7b3ad385070 | 2194b6c17f3153c5976d6ac4a9ab78211027adab | /otoroshi_admin_api_client/models/otoroshimodels_infra_provider_match_type.py | 94a545a8ff9ec8adb0fa47d5f3f07861625e89b3 | [] | no_license | krezreb/otoroshi-admin-api-client | 7fab5e873c9c5950d77fffce6bcf80d3fdf4c319 | 9b3156c11eac227024cfe4a26c0129618deb2c4d | refs/heads/master | 2023-05-08T08:32:00.982987 | 2021-05-27T09:55:00 | 2021-05-27T09:55:00 | 371,324,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | from enum import Enum
class OtoroshimodelsInfraProviderMatchType(str, Enum):
ALWAYSMATCH = "AlwaysMatch"
NETWORKLOCATIONMATCH = "NetworkLocationMatch"
GEOLOCATIONMATCH = "GeolocationMatch"
def __str__(self) -> str:
return str(self.value)
| [
"josephbeeson@gmail.com"
] | josephbeeson@gmail.com |
1a3371799d39e8df80c7bf8ff391b29ea564c666 | 482ca5a05c3e34eb0c5b9eb239b86288fa3ea5be | /lilac2/const.py | 5d623e05a3db8e66eda7abb6976aecbbc8e377b5 | [] | no_license | renyuneyun/lilac | de8462deb6275f8ea8e540ad71de10313d976250 | c224a65ac810a8aaba05c410c5b07683a5055868 | refs/heads/master | 2020-03-14T04:23:42.518149 | 2019-10-28T16:20:10 | 2019-10-28T16:21:17 | 131,441,132 | 1 | 0 | null | 2018-04-28T20:15:02 | 2018-04-28T20:15:02 | null | UTF-8 | Python | false | false | 335 | py | from pathlib import Path
import types
mydir = Path('~/.lilac').expanduser()
AUR_REPO_DIR = mydir / 'aur'
AUR_REPO_DIR.mkdir(parents=True, exist_ok=True)
SPECIAL_FILES = ('package.list', 'lilac.py', 'lilac.yaml', '.gitignore')
_G = types.SimpleNamespace()
# repo: Repo
# mod: LilacMod
# pkgver: Optional[str]
# pkgrel:... | [
"lilydjwg@gmail.com"
] | lilydjwg@gmail.com |
6ed4c3efbfd2ae0af22e5a4be77058890cced371 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-facebody/aliyunsdkfacebody/request/v20191230/MonitorExaminationRequest.py | 91ad61a32de73924cfe85364b9c031859e147480 | [
"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 | 1,621 | 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 |
c3ee35fe9436a493ef738377774073c953dba7cc | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /n4JA3je7FEFfZKaWp_11.py | 7b07527a21b2f44574d4b5255563e5c16f1eaaeb | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | """
You landed your dream job. They pay in geometric progression (see resources).
In your first month of work, you will get your first paycheck `first_month`.
For every month after, your paycheck will be `multiplier` times bigger than
the previous paycheck.
Create a function that takes the `first_month`'s paycheck ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
33f6368a00941a84a7f75fc5b8debc37bf78b59e | 3d626f6034eddda6122feb81a5c98c8a3dab9d20 | /08-def-type-hints/messages/no_hints/messages.py | df037e7fa4ee7666a450ae417e60e5916bf32bae | [
"MIT"
] | permissive | eliaskousk/example-code-2e | b8d4f9ce86a55c2e7b905d2d1f94a5c867485fa2 | 28d6d033156831a77b700064997c05a40a83805f | refs/heads/master | 2022-07-13T19:12:57.425453 | 2022-04-24T20:41:30 | 2022-04-24T20:41:30 | 216,843,265 | 2 | 0 | MIT | 2019-10-22T15:09:18 | 2019-10-22T15:09:17 | null | UTF-8 | Python | false | false | 371 | py | """
# tag::SHOW_COUNT_DOCTEST[]
>>> show_count(99, 'bird')
'99 birds'
>>> show_count(1, 'bird')
'1 bird'
>>> show_count(0, 'bird')
'no birds'
# end::SHOW_COUNT_DOCTEST[]
"""
# tag::SHOW_COUNT[]
def show_count(count, word):
if count == 1:
return f'1 {word}'
count_str = str(count) if count else 'no'
... | [
"luciano@ramalho.org"
] | luciano@ramalho.org |
526677bfe45d954fc32b6679c20729126f9eda0a | 14ddda0c376f984d2a3f7dcd0ca7aebb7c49648d | /bnn_mcmc_examples/examples/mlp/penguins/hmc/pilot_run.py | 97dd6cec9d34ff10a9f74c188fb2a7a85f034672 | [
"MIT"
] | permissive | papamarkou/bnn_mcmc_examples | 62dcd9cc0cf57cda39aa46c2f2f237bbcd2d35bb | 7bb4ecfb33db4c30a8e61e31f528bda0efb24e3d | refs/heads/main | 2023-07-12T20:51:28.302981 | 2021-08-22T13:06:17 | 2021-08-22T13:06:17 | 316,554,634 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | # %% Import packages
from datetime import timedelta
from timeit import default_timer as timer
from bnn_mcmc_examples.examples.mlp.penguins.constants import num_burnin_epochs, num_epochs, verbose, verbose_step
from bnn_mcmc_examples.examples.mlp.penguins.hmc.constants import sampler_output_pilot_path
from bnn_mcmc_exa... | [
"theodore.papamarkou@gmail.com"
] | theodore.papamarkou@gmail.com |
adabad459eeb610321cf8aca55eaa46f883670a0 | 209aae9f40657d48461bed5e081c4f235f86090a | /2019/day23-1.py | 84c2010cfdb302f687417c5081575342cd025e26 | [] | no_license | scheidguy/Advent_of_Code | 6e791132157179928e1415f49467ad221ef1e258 | fbc09e4d26502b9a77e0c8d2840b11ec85a3c478 | refs/heads/main | 2023-03-05T12:34:15.343642 | 2021-02-20T00:27:58 | 2021-02-20T00:27:58 | 329,106,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,618 | py |
from copy import deepcopy
# import numpy as np
f = open('day23-1_input.txt')
# f = open('day23-1_debug.txt')
text = f.readlines()
f.close()
program = [int(i) for i in text[0].strip().split(',')]
program.extend([0 for _ in range(10**4)])
NIC = [deepcopy(program)for computer in range(50)]
inputs = [[network_address]... | [
"scheidguy@gmail.com"
] | scheidguy@gmail.com |
aa1107a2f5107739a1951e5cb4948883dd283ca3 | 1fe0b680ce53bb3bb9078356ea2b25e572d9cfdc | /venv/lib/python2.7/site-packages/ansible/module_utils/network/checkpoint/checkpoint.py | 7545ebfe34554f4f7f9eeede21eb5bc3b8718fe6 | [
"MIT"
] | permissive | otus-devops-2019-02/devopscourses_infra | 1929c4a9eace3fdb0eb118bf216f3385fc0cdb1c | e42e5deafce395af869084ede245fc6cff6d0b2c | refs/heads/master | 2020-04-29T02:41:49.985889 | 2019-05-21T06:35:19 | 2019-05-21T06:35:19 | 175,780,457 | 0 | 1 | MIT | 2019-05-21T06:35:20 | 2019-03-15T08:35:54 | HCL | UTF-8 | Python | false | false | 2,516 | py | # This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | [
"skydevapp@gmail.com"
] | skydevapp@gmail.com |
c21fe724fc485be315124ec386b0530e099af7b8 | 5c58587ebfbf56192b3dc6ed6f43bc002c8e2cff | /core/migrations/0032_market.py | cf05224f92656563bdf5d67622b60b565cf3d04c | [] | no_license | hossamelneily/nexchange | fb9a812cfc72ac00b90cf64d6669a8129c2d2d4b | 6d69274cd3808989abe2f5276feb772d1f0fa8b4 | refs/heads/release | 2022-12-13T09:20:47.297943 | 2019-02-12T08:20:34 | 2019-02-12T08:20:34 | 210,064,740 | 1 | 2 | null | 2022-12-09T00:54:01 | 2019-09-21T23:19:34 | Python | UTF-8 | Python | false | false | 963 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-09-27 13:08
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0031_merge_20170921_1946'),
]
operations = [
migrations.CreateModel... | [
"noreply@github.com"
] | hossamelneily.noreply@github.com |
9344fa509479d8e7ecc91673c3b50f17ddea5d7d | df4fd380b3e1720a970573c4692eb0a32faf8f47 | /string_matching/rabin_karp.py | a335b90d14aa9c110503ed37eb35d99914e008e6 | [] | no_license | Taeheon-Lee/Algorithm | 99dd21e1e0ddba31190a16d6c9646a9f393f4c4b | 64ebacf24dfdf25194b5bce39f4ce43c4bc87141 | refs/heads/master | 2023-07-10T20:26:10.121214 | 2021-08-07T17:26:26 | 2021-08-07T17:26:26 | 383,803,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,793 | py | "Rabin-Karp 라빈-카프 알고리즘"
# 패턴의 해시값과 본문 안에 있는 하위 문자열의 해시값만을 비교하여 탐색
# 즉 문자열 패턴을 수치로 바꾸어 문자열의 비교를 수치 비교로 전환해 매칭하는 방법
# 해싱은 인덱스만 계산하면 바로 값을 참조할 수 있기 떄문에 연산 속도가 O(1)로 매우 빠름
# 해싱 값은 문자열이 달라도 같을 수 있기 때문에 해싱 값이 같을 경우, 단순 비교를 시작
# 따라서 최악의 경우, 해싱이 모두 같고 매칭이 다른 경우가 발생할 수 있어 시간 복잡도가 O(mn)
# 평균적인 시간 복잡도는 선형에 가까운 O(m+n)으로 매우 빠름
de... | [
"taeheon714@gmail.com"
] | taeheon714@gmail.com |
5fd492e636197ff8865032922e0ce3ac8d9b7f52 | 8d213a21ac532d6713f1239449ffc08497a77476 | /drf_api/wsgi.py | d73b8908123d55b0bf0f1c22f994774fe1a86fe5 | [] | no_license | anykate/drf_api | 3453c2a27a3d7ab8e1560848d84dd6f7b985d5ec | 7fe9c7c2950ae0a84f6a9f9d33a9f2dccd723560 | refs/heads/master | 2020-09-04T03:32:44.440439 | 2019-11-05T03:22:08 | 2019-11-05T03:22:08 | 219,648,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for drf_api 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.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault(... | [
"aryamane.aniket@gmail.com"
] | aryamane.aniket@gmail.com |
6fb44519ef839fdb96140c65a58683b9d72f9322 | 9b7291d81a416bde2ec181229601eb2e33c7b8b2 | /monophoton/configs/TagAndProbe2016/trigger.py | b9028479a55860739488b7b49c1131b654df69a0 | [] | no_license | MiT-HEP/MonoX | ab1528e72dad2590a0ae64f1a1d47195139e1749 | 224ee01107a94cedf8563c497edb2f326b99d9b1 | refs/heads/master | 2021-01-24T06:04:16.645559 | 2019-11-15T09:18:40 | 2019-11-15T09:18:40 | 41,823,403 | 1 | 9 | null | 2018-07-19T17:05:30 | 2015-09-02T19:33:33 | Python | UTF-8 | Python | false | false | 7,143 | py | import ROOT
ROOT.gSystem.Load('libPandaTreeObjects.so')
e = ROOT.panda.Event
ROOT.gROOT.ProcessLine('int val;')
def getEnum(cls, name):
ROOT.gROOT.ProcessLine('val = panda::' + cls + '::TriggerObject::' + name + ';')
return ROOT.val
measurements = {
('photon', 'sel'): ('sel-16b-m', 'tpegLowPt', 'probes.m... | [
"yiiyama@mit.edu"
] | yiiyama@mit.edu |
6627c39817bf5dff8482e5da4e684c51071c774c | 80e36c723d26fef80892a684a5987295e1dbd48c | /library/forms.py | 6e5c194fa078d5e8c738dff33f835dd95c7f4495 | [
"LicenseRef-scancode-public-domain"
] | permissive | xritzx/WordFruit | 9f4ef8b6fe4774d3ca4e9ea2ceff83ece99c6f3b | 04dd9539c5c7fb57a40ceb5d02b76f8f95c52ae6 | refs/heads/master | 2022-12-13T16:03:51.388925 | 2019-06-06T06:15:22 | 2019-06-06T06:15:22 | 168,710,999 | 4 | 3 | null | 2022-12-08T01:34:48 | 2019-02-01T14:39:55 | CSS | UTF-8 | Python | false | false | 189 | py | from django.forms import ModelForm
from .models import Book
class BookAddForm(ModelForm):
class Meta:
model = Book
exclude = ['contributor', 'date', 'read', 'likes']
| [
"ritankarpaul47@gmail.com"
] | ritankarpaul47@gmail.com |
52d0ac2b85718c3c146720e8f651230dfff0cc2c | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /NhPYFqfQcFXWvdH8t_6.py | d9f026bff80b989b0ba365c2911524b73da7508c | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,766 | py | """
A positive integer multiplied times its inverse is always equal to 1:
`17*(1/17)==1`. Modular arithmetic has a similar inverse function, although,
for modulus `m`, we are confined to integers from 0 to m-1. The modular
multiplicative inverse of 3 modulus 5 is equal to 2 because `(3*2)%5==1`.
Another example: the... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b77eadfb20bc641f8047bfe61ca0392ebcd0f42d | f439d2e77582a747957df6ff6e102df91b8a16d3 | /examples/nlp/lstm_generator_textfile.py | 0c0399ed1f4628d5d8524f0a780eba7e0bb936c8 | [
"MIT"
] | permissive | NLPDev/tflearn | 6bba8a0e811d465c008511ef2946d183c996d0bf | 77436978c62124bd91ef739dc77c9ea58277c779 | refs/heads/master | 2020-04-09T13:20:36.113533 | 2018-12-07T15:46:33 | 2018-12-07T15:46:33 | 160,370,136 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,976 | py | from __future__ import absolute_import, division, print_function
import os, sys, argparse
import urllib
import tflearn
from tflearn.data_utils import *
parser = argparse.ArgumentParser(description=
'Pass a text file to generate LSTM output')
parser.add_argument('filename')
parser.add_argument('-t','--temp', hel... | [
"vasile123andronic@gmail.com"
] | vasile123andronic@gmail.com |
44e793c1248ef2e36ba33257f2adbf511b590309 | 37d8802ecca37cc003053c2175f945a501822c82 | /09-动态规划/0062-不同路径-2.py | 7c1a0f8ea366b820befe2445e2814772c7343155 | [
"Apache-2.0"
] | permissive | Sytx74/LeetCode-Solution-Python | cc0f51e31a58d605fe65b88583eedfcfd7461658 | b484ae4c4e9f9186232e31f2de11720aebb42968 | refs/heads/master | 2020-07-04T18:17:24.781640 | 2019-07-30T03:34:19 | 2019-07-30T03:34:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | class Solution:
def uniquePaths(self, m, n):
"""
:type m: int
:type n: int
:rtype: int
"""
dp = [1] * n
for i in range(1, m):
for j in range(1, n): # 从索引 2 开始走就行了
dp[j] = dp[j] + dp[j - 1]
return dp[-1]
if __name__ == '_... | [
"121088825@qq.com"
] | 121088825@qq.com |
431bc242a4cad6bd666fd73d507d2df2e74fb34f | dd3bbd4e7aaee7a8a5f26b927ce28ac472c855a5 | /eggs/z3c.form-2.4.3-py2.7.egg/z3c/form/adding.py | 5cee0932d4335930114a159e520d1c93762c90c9 | [] | no_license | nacho22martin/tesis | ea0a822f8bdbdef6f13f41276ecd4d6e85427ca5 | e137eb6225cc5e724bee74a892567796166134ac | refs/heads/master | 2020-12-24T13:20:58.334839 | 2013-11-09T12:42:41 | 2013-11-09T12:42:41 | 14,261,570 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | ##############################################################################
#
# Copyright (c) 2007 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOF... | [
"ignacio@plone.(none)"
] | ignacio@plone.(none) |
8c9bec14ad6067364063355bda91fc6dd73ef21e | 82d6b24fb786143b07e897d4bbe70f2c1d5fc481 | /hsvTrackbarColorDetection.py | a44002da3b1ae0702e5c89290e7119015a5ecbf1 | [] | no_license | Pritam055/image_opencv | cded3eff39d4ef2006bef7b4a05a38a86700da2b | 63c19bb4b30e6db76b3e1d90697409acebb3ec3e | refs/heads/master | 2021-03-19T00:12:05.157661 | 2020-07-01T16:21:32 | 2020-07-01T16:21:32 | 247,113,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,544 | py | import cv2
import numpy as np
frameWidth = 640
frameHeight = 480
cap = cv2.VideoCapture(0)
cap.set(3, frameWidth)
cap.set(4, frameHeight)
frameCounter = 0
def empty(a):
pass
cv2.namedWindow("HSV")
cv2.resizeWindow("HSV", 640, 240)
cv2.createTrackbar("HUE Min", "HSV", 0, 179, empty)
cv2.createTrackbar("HUE Max"... | [
"admin@gmail.com"
] | admin@gmail.com |
7b181c3b3d9e7fab86725dd12b5b8595e930051d | ecebefec65cc55b305419a689660eb8e2ea04fef | /release/virtual_player/simulation.py | 41fe28c584133cc4bcb995c6df09b94e2150affb | [] | no_license | generlist/ABRTuner | 4ab1d6d5e5201a7953d4565ca4574307a35513c3 | baea8fab155a71c185e74121a8f014e6ad889308 | refs/heads/master | 2020-05-26T01:09:29.712879 | 2018-08-03T23:40:01 | 2018-08-03T23:40:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,782 | py | # SIMULATION 1.0
import math
import sys
import os
import collections
from config import *
from helpers import *
from chunkMap import *
from performance_vector import *
from algorithms import *
from simulation_performance_vector import *
import numpy as np
from collections import deque
import time
from vplayer_state imp... | [
"zahaib.akhtar@gmail.com"
] | zahaib.akhtar@gmail.com |
d82b95343bfad8ecb00fb1488a773f0a45b56461 | c9f67529e10eb85195126cfa9ada2e80a834d373 | /lib/python3.5/site-packages/torch/legacy/nn/MSECriterion.py | a93d045d898a3dc9560df362a1571c9a4ec7de11 | [
"Apache-2.0"
] | permissive | chilung/dllab-5-1-ngraph | 10d6df73ea421bfaf998e73e514972d0cbe5be13 | 2af28db42d9dc2586396b6f38d02977cac0902a6 | refs/heads/master | 2022-12-17T19:14:46.848661 | 2019-01-14T12:27:07 | 2019-01-14T12:27:07 | 165,513,937 | 0 | 1 | Apache-2.0 | 2022-12-08T04:59:31 | 2019-01-13T14:19:16 | Python | UTF-8 | Python | false | false | 1,082 | py | import torch
from .Criterion import Criterion
class MSECriterion(Criterion):
def __init__(self, sizeAverage=True):
super(MSECriterion, self).__init__()
self.sizeAverage = sizeAverage
self.output_tensor = None
def updateOutput(self, input, target):
if self.output_tensor is Non... | [
"chilung.cs06g@nctu.edu.tw"
] | chilung.cs06g@nctu.edu.tw |
dfcf03607d0d721031a3b8bef63a7511114a9ca0 | 836f2095d5ac8a200fc4b19c2644c8f693612d23 | /src/preprocess.py | 25f880dacaaeded768f7cc037a5e26423e60fa4b | [] | no_license | peternara/VL-T5-embeding-image-to-text-mulit-modal | bf62e910dcc8d89606099a8b15065def917e9349 | 1902413ade01fb6f032c1cdbec65aaa41313277a | refs/heads/main | 2023-05-01T21:45:10.682026 | 2021-05-25T15:49:57 | 2021-05-25T15:49:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,560 | py | import torch
import numpy as np
import random
from copy import deepcopy
def corrupt_spans(text, mask_ratio=0.15, prefix=None):
"""Masked Language Modeling with corrupted span prediction
Args:
text
Returns:
source_text (masked_text)
target_text
Ex) (in vocab ids... | [
"heythisischo@gmail.com"
] | heythisischo@gmail.com |
bdc874a8f0c2d822cf43731e1ed0437f025b91f7 | 16385e10f6ad05b8147517daf2f40dbdda02617c | /site-packages/cs.metrics-15.4.0.2-py2.7.egg/cs/metrics/updates/v15_2_0_15/__init__.py | 3fe53ff954cbc858516882f09d4b8a7e3f041ebb | [] | no_license | prachipainuly-rbei/devops-poc | 308d6cab02c14ffd23a0998ff88d9ed0420f513a | 6bc932c67bc8d93b873838ae6d9fb8d33c72234d | refs/heads/master | 2020-04-18T01:26:10.152844 | 2019-02-01T12:25:19 | 2019-02-01T12:25:19 | 167,118,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,759 | py | #!/usr/bin/env powerscript
# -*- mode: python; coding: iso-8859-1 -*-
#
# Copyright (C) 1990 - 2014 CONTACT Software GmbH
# All rights reserved.
# http://www.contact.de/
#
from __future__ import unicode_literals
__revision__ = "$Id: __init__.py 154332 2017-02-21 14:43:33Z khi $"
class AddServiceUsers(object):
"""... | [
"PPR4COB@rbeigcn.com"
] | PPR4COB@rbeigcn.com |
197cc624f47f8f44191b93e8603750c75b54ad13 | 6f2ae51bfa26f58cf0eccad67a563dc91f87e0ac | /oop18 (quick tips).py | 62cd87d8ff9bd42976ba810c827c9dfcd799132c | [
"MIT"
] | permissive | nicholaskarlson/Object-Oriented-Programming-in-Python | c830e9dc86df72ee6fbfd017cf05198e4664e2b6 | 9a51892a99f9920c20c3abf8342a060af94305e6 | refs/heads/master | 2022-12-03T03:27:12.282726 | 2020-08-22T12:17:27 | 2020-08-22T12:17:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | # OOP quick tips
# Tip 1
# printing the children classes of Parent class.
# Parent classes
class Father:
def __init__(self):
value=0
def update(self):
value+=1
def renew(self):
value=0
def show(self):
print(value)
class Mother:
def __init__(self):
value=1... | [
"ahammadshawki8@gmail.com"
] | ahammadshawki8@gmail.com |
b5aecc91b76a83f848608b2e1b3114abc8dd616c | b5921afe6ea5cd8b3dcfc83147ab5893134a93d0 | /tl/utils/lockmanager.py | 1fa59de415bd6e96b46201e2b870ea969f38ebeb | [
"LicenseRef-scancode-other-permissive"
] | permissive | techdragon/tl | aaeb46e18849c04ad436e0e786401621a4be82ee | 6aba8aeafbc92cabdfd7bec11964f7c3f9cb835d | refs/heads/master | 2021-01-17T16:13:18.636457 | 2012-11-02T10:08:10 | 2012-11-02T10:08:10 | 9,296,808 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,410 | py | # tl/utils/lockmanager.py
#
#
""" manages locks """
## basic imports
import _thread
import threading
import logging
## LockManager class
class LockManager(object):
""" place to hold locks """
def __init__(self):
self.locks = {}
def allocate(self, name):
""" allocate a new lock """
... | [
"feedbackflow@gmail.com"
] | feedbackflow@gmail.com |
4fd7d2bf8eaab733ceafeabe6a8c3ece9b28126e | e641bd95bff4a447e25235c265a58df8e7e57c84 | /third_party/blink/renderer/modules/webcodecs/DEPS | f79eda8dda151643478fa884e467ea8d8ff57eff | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft"
] | permissive | zaourzag/chromium | e50cb6553b4f30e42f452e666885d511f53604da | 2370de33e232b282bd45faa084e5a8660cb396ed | refs/heads/master | 2023-01-02T08:48:14.707555 | 2020-11-13T13:47:30 | 2020-11-13T13:47:30 | 312,600,463 | 0 | 0 | BSD-3-Clause | 2022-12-23T17:01:30 | 2020-11-13T14:39:10 | null | UTF-8 | Python | false | false | 942 | include_rules = [
"+base/threading/thread_task_runner_handle.h",
"+components/viz/common/gpu/raster_context_provider.h",
"+components/viz/common/resources/single_release_callback.h",
"+gpu/command_buffer/client/shared_image_interface.h",
"+media/base",
"+media/filters",
"+media/formats/mp... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org | |
c0a00ebc3b8a77426bb463375c0e5a7233203829 | 4ac23b2633321df48a896180e6205dfc17ad5746 | /scratch09/ex04.py | b5ece5306f502f6fa8319f3759496fd815d500bf | [] | no_license | lee-saint/lab-python | f051a544ed97956f9725bb6f4a080bdc65c7e1ad | a425c173c379dda0de21eec538195ded17d31697 | refs/heads/master | 2020-11-30T12:24:12.614119 | 2019-12-27T07:35:50 | 2019-12-27T07:35:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | """
pandas 패키지를 사용한 csv 파일 읽기
"""
import os
import pandas as pd
import matplotlib.pyplot as plt
file_path = os.path.join('..', 'scratch08', 'mpg.csv')
df = pd.read_csv(file_path)
print(df.head()) # 데이터프레임의 앞의 일부분 데이터 출력
print('shape:', df.shape) # 관측값 234, 변수 11
print('dtypes:', df.dtypes)
# DataFrame.dtypes: 각 컬럼(변... | [
"plutorian131@gmail.com"
] | plutorian131@gmail.com |
9e8e3a770c962073cf83f0c6dfa97a5803dfcdfe | 90f2cbe1c940a20dcc893837b6033a51d3233931 | /Learn_Flas/flask_study/lab-4-movie/app/home/forms.py | e82f1fe123a80255955704bfb4bcbf1116930796 | [] | no_license | MaxNcu/Learn_Python | 71501f38f6442f3ff2a1de1ff685b8975e50af20 | 5a1c6edf353ed7447b2ffd4126ad7668d8c5a407 | refs/heads/master | 2022-01-15T18:56:04.814476 | 2019-07-20T03:02:02 | 2019-07-20T03:02:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | # -*- coding: utf-8 -*-
# @Time : 2018/8/15 0015 13:48
# @Author : Langzi
# @Blog : www.langzi.fun
# @File : forms.py
# @Software: PyCharm
import sys
reload(sys)
sys.setdefaultencoding('utf-8') | [
"982722261@qq.com"
] | 982722261@qq.com |
5c55b42e4c4e1fb43abd86684c0665b0d4446b63 | d3d53fd1fb10e3895495066c3cc7b5529dfb2e27 | /main/migrations/0007_partenaire.py | 4e88e863572660060118dbc8e3e939a601dac5f3 | [] | no_license | miyou995/msenergy | c517b05cb3b28e9bbe3a5e668990ea96951f3fb7 | 8f635d1e19f8d91bffe7490cc88e25aa9b65e410 | refs/heads/master | 2023-01-13T06:50:10.379344 | 2020-10-20T10:41:05 | 2020-10-20T10:41:05 | 299,890,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | # Generated by Django 3.0.7 on 2020-07-27 09:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0006_contactform_date_added'),
]
operations = [
migrations.CreateModel(
name='Partenaire',
fields=[
... | [
"inter.taki@gmail.com"
] | inter.taki@gmail.com |
7ea82c6443323fd95423f77eaa3d686341b30664 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /KQe5w8AdSLbweW8ck_5.py | e974521972362f31814cf4c82cbb398519e4a242 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | """
Create a function that returns the characters from a list or string `r` on odd
or even positions, depending on the specifier `s`. The specifier will be
**"odd"** for items on _odd positions_ (1, 3, 5, ...) and **"even"** for items
on _even positions_ (2, 4, 6, ...).
### Examples
char_at_pos([2, 4, 6, 8, 10... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
51d3c030d8d2022184af7c47d538156b2dbd5e13 | 738ac84e16f206e417399e96702b04433b2f286f | /setup.py | 1713fc06cbf62f9b132418e455eae59f547c13d0 | [] | no_license | belonesox/pg2bcolz | d732f7575c061f82b0097487bce29ec0ec8d89ae | 56964fca6256a9afa3051782fadea8708a56cce4 | refs/heads/master | 2020-07-05T05:17:33.306526 | 2019-08-15T12:11:03 | 2019-08-15T12:11:03 | 202,534,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of pg2bcolz.
# https://github.com/belonesox/pg2bcolz
# Licensed under the MIT license:
# http://www.opensource.org/licenses/MIT-license
# Copyright (c) 2018, Stas Fomin <stas-fomin@yandex.ru>
from setuptools import setup, find_packages
from pg2bcolz i... | [
"stas-fomin@yandex.ru"
] | stas-fomin@yandex.ru |
40c82ae4f2841d3d7fe415a716b29527eac584bb | 2b0eab74af8d23244ff11699830f9bb10fbd717a | /accounts/migrations/0015_auto_20190527_1010.py | 7e0ed91e427e416ba95a9cf189e3a066bef8f203 | [] | no_license | alexandrenorman/mixeur | c7e25cd20b03c78b361cb40e3e359a6dc5d9b06b | 95d21cd6036a99c5f399b700a5426e9e2e17e878 | refs/heads/main | 2023-03-13T23:50:11.800627 | 2021-03-07T15:49:15 | 2021-03-07T15:49:15 | 345,384,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | # Generated by Django 2.2 on 2019-05-27 08:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0014_user_phone_cache'),
]
operations = [
migrations.RenameField(
model_name='rgpdconsent',
old_name='allo... | [
"norman@xael.org"
] | norman@xael.org |
427d19c541374cbceef49ce9c683561c00b10ed6 | d05a59feee839a4af352b7ed2fd6cf10a288a3cb | /xlsxwriter/test/worksheet/test_write_filter.py | cf9f4989a1a59d294da00df1dafaf3b81e3ff4fb | [
"BSD-2-Clause-Views"
] | permissive | elessarelfstone/XlsxWriter | 0d958afd593643f990373bd4d8a32bafc0966534 | bb7b7881c7a93c89d6eaac25f12dda08d58d3046 | refs/heads/master | 2020-09-24T06:17:20.840848 | 2019-11-24T23:43:01 | 2019-11-24T23:43:01 | 225,685,272 | 1 | 0 | NOASSERTION | 2019-12-03T18:09:06 | 2019-12-03T18:09:05 | null | UTF-8 | Python | false | false | 743 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2019, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ...worksheet import Worksheet
class TestWriteFilter(unittest.TestCase):
"""
Te... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
2591a5d573367c1b0e87394c9bd88b7c4525efbb | 292cec77b5003a2f80360d0aee77556d12d990f7 | /src/bentoml_cli/worker/http_dev_api_server.py | 669023f72a5ef4abf765eec7ab835a72487e137f | [
"Apache-2.0"
] | permissive | yubozhao/BentoML | 194a6ec804cc1c6dbe7930c49948b6707cbc3c5f | d4bb5cbb90f9a8ad162a417103433b9c33b39c84 | refs/heads/master | 2022-12-17T00:18:55.555897 | 2022-12-06T00:11:39 | 2022-12-06T00:11:39 | 178,978,385 | 3 | 0 | Apache-2.0 | 2020-12-01T18:17:15 | 2019-04-02T01:53:53 | Python | UTF-8 | Python | false | false | 3,932 | py | from __future__ import annotations
import socket
import click
@click.command()
@click.argument("bento_identifier", type=click.STRING, required=False, default=".")
@click.option("--fd", type=click.INT, required=True)
@click.option("--working-dir", required=False, type=click.Path(), default=None)
@click.option("--bac... | [
"noreply@github.com"
] | yubozhao.noreply@github.com |
d7ad5a84b638fc0540e7f580dc4f50df4fde635c | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/lib/surface/iam/service_accounts/sign_blob.py | e33878bf514e44c4212e0e1d81cd6185617a051e | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 2,830 | py | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"toork@uw.edu"
] | toork@uw.edu |
66cc401c0e1112684bdbcf769d7b8f85b3ad00b6 | 916480ae24345193efa95df013f637e0a115653b | /web/transiq/driver/migrations/0022_driver_pan.py | ee0c60713f9da7066133b323920f9e578f38b391 | [
"Apache-2.0"
] | permissive | manibhushan05/tms | 50e289c670e1615a067c61a051c498cdc54958df | 763fafb271ce07d13ac8ce575f2fee653cf39343 | refs/heads/master | 2022-12-11T07:59:30.297259 | 2021-09-08T03:24:59 | 2021-09-08T03:24:59 | 210,017,184 | 0 | 0 | Apache-2.0 | 2022-12-08T02:35:01 | 2019-09-21T16:23:57 | Python | UTF-8 | Python | false | false | 403 | py | # Generated by Django 2.0.5 on 2018-08-28 16:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('driver', '0021_auto_20180702_1554'),
]
operations = [
migrations.AddField(
model_name='driver',
name='pan',
... | [
"mani@myhost.local"
] | mani@myhost.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.