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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ab9be6590aa380def959b4559f589e13c5bde100 | 58f1cb1761d4e7114bbe0cc54195fc3bf72ccc4d | /python_solution/301_310/RemoveInvalidParentheses.py | c82c942d4bec2ad4c2189d486fec5a3868a3b8e1 | [] | no_license | CescWang1991/LeetCode-Python | 4e2e9b1872ef92d128c681c1ed07db19938b1ef5 | 0584b86642dff667f5bf6b7acfbbce86a41a55b6 | refs/heads/master | 2020-03-31T02:37:12.065854 | 2019-04-24T02:33:15 | 2019-04-24T02:33:15 | 151,832,885 | 1 | 1 | null | 2019-04-15T06:34:41 | 2018-10-06T11:22:49 | Python | UTF-8 | Python | false | false | 2,185 | py | # 301. Remove Invalid Parentheses
class Solution:
# 递归解法,首先统计了多余的半括号的数量,然后遍历字符串,逐个删去多余的半括号,运用深度优先遍历,当多余的括号均删去
# 时,判断剩余的字符串是否有效
def removeInvalidParentheses(self, s):
"""
:type s: str
:rtype: list[str]
"""
# 我们分别记录需要删除的左括号和右括号的数目
right = 0
stack = []
... | [
"cescwang1991@gmail.com"
] | cescwang1991@gmail.com |
6b7e6a720113491f5ac26c4f0926a0a9d61607f3 | 4ae178e2f872acba3acdcb06cb145b82e48908f8 | /trial_test_ws/build/iiwa_hw/catkin_generated/pkg.installspace.context.pc.py | 949ec279bb76f064bf54d64182ab6876d794e7b9 | [] | no_license | ZhikaiZhang1/ros-lbr-repo | 51279a0c1e00f1e1d5f0f3be2e3feb2dc04600df | 8fce59c6145481a0ec58d345cb3caa641c59f78e | refs/heads/master | 2023-06-04T15:55:18.769023 | 2021-06-22T12:34:00 | 2021-06-22T12:34:00 | 380,094,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else []
PROJECT_CATKIN_DEPENDS = "iiwa_ros;iiwa_msgs;pluginlib;controller_interface;controller_manager;hardware_interface;control_toolbox".rep... | [
"zhikaizhangHULK@gmail.com"
] | zhikaizhangHULK@gmail.com |
2ea952b80df8b60ff89f67b5241918f8c5f4897e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03745/s993598442.py | 7ab832b8c29c3103718a8da3ea5169b67688def5 | [] | 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 | 432 | py | n = int(input())
a = list(map(int, input().split()))
state = None
cnt = 1
for i in range(1, n):
if state == None:
if a[i] > a[i-1]:
state = 'up'
elif a[i] < a[i-1]:
state = 'down'
else:
continue
elif state == 'up' and a[i] < a[i-1]:
cnt += 1
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5eba23b59be7cb948d58c56e2d6cf0fea531ab96 | 0604602b54581ee29c15dfb440843fecdef9baaf | /manage.py | 1b4d2d7a82b2f0862d770e476753517fbcf4abe6 | [] | no_license | VirginiaNdungu1/watchlist | efbccf6f3bc9bf720dc20fe1e81a058b20aebcd0 | 840cbbee8c85ac1febc06a99fa8b72253900f957 | refs/heads/master | 2021-07-14T12:12:32.456787 | 2017-10-19T12:03:39 | 2017-10-19T12:03:39 | 107,099,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | from app import create_app
from flask_script import Manager, Server
app = create_app('development')
'''
Create app instance
How?
Call the create_app function
pass in the onfiguration_options key - 'development'
'''
manager = Manager(app)
'''
Instantiate the Manager Class
How?
Pass in the app instance
'''
manager.ad... | [
"ndungu.wairimu22@gmail.com"
] | ndungu.wairimu22@gmail.com |
fc21779d27a71f555b352dc441b4136ec792dbad | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/46/usersdata/125/19401/submittedfiles/funcoes1.py | 7ce00720df93d18b211087e3cf892525e1713099 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | # -*- coding: utf-8 -*-
from __future__ import division
def crescente (lista):
cont=0
for i in range(0,len(lista)-1,1):
if lista[i]<lista[i+1]:
cont=cont+1
if cont!=0:
return False
else:
return True
def decrescente (lista):
cont=0
fo... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
da6149217634e42d50560e1fe5807192edf13344 | 747febe786dd6b7fd6c63cfe73dbe3023354daa8 | /src/tt_impacts/tt_impacts/handlers.py | 65645df622bd34f61fb4d72f19d0fa1a7aa693d5 | [
"BSD-3-Clause"
] | permissive | the-tale/the-tale | 4e4b8d91dc873a5fb935fe58e9721a877baa6d3f | e8450bd2332344da805b1851e728da5a3e5bf0ef | refs/heads/develop | 2023-08-01T13:53:46.835667 | 2022-12-25T18:04:56 | 2022-12-25T18:04:56 | 1,949,167 | 98 | 52 | BSD-3-Clause | 2023-02-15T18:57:33 | 2011-06-24T18:49:48 | Python | UTF-8 | Python | false | false | 3,766 | py |
from tt_web import handlers
from tt_protocol.protocol import impacts_pb2
from . import protobuf
from . import operations
@handlers.protobuf_api(impacts_pb2.AddImpactsRequest)
async def add_impacts(message, config, **kwargs):
impacts = [protobuf.to_impact(impact) for impact in message.impacts]
await operat... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
9ab19df506f2d84bf103f3c3dd8846201be7cbd8 | c146744b6a1eba53d4691fc0fdddedbd1c6a4f7a | /lictor/fake.py | f0c230cc36ded9b6334d5dde1ada430eddc19c96 | [] | no_license | adw0rd/django-lictor | 509590a5431eb86d69bba21d376d05a3197f552f | ed07fdb02ba7596c259908b66b4c917f95665d62 | refs/heads/master | 2021-01-11T10:24:22.194217 | 2012-08-19T23:56:12 | 2012-08-19T23:56:12 | 76,251,649 | 1 | 0 | null | 2016-12-12T11:47:05 | 2016-12-12T11:47:04 | null | UTF-8 | Python | false | false | 1,148 | py | import hashlib
import simplejson
from django.conf import settings
from lictor.models import Trace
def md5(s):
return hashlib.md5(s).hexdigest()
def make_fake(request):
session = request.COOKIES.get(settings.LICTOR_SESSION_COOKIE_NAME)
dump = [
{"i": md5("test_project.films.urls:12"), "t": "Url... | [
"x11org@gmail.com"
] | x11org@gmail.com |
b622ce5c2241a8e7493f504171e3abae1dcdda25 | aaa762ce46fa0347cdff67464f56678ea932066d | /AppServer/lib/django-1.5/tests/regressiontests/aggregation_regress/models.py | dd4ff50aec093526827fe15867c543b7a25b54d3 | [
"Apache-2.0",
"BSD-3-Clause",
"LGPL-2.1-or-later",
"MIT",
"GPL-2.0-or-later",
"MPL-1.1"
] | permissive | obino/appscale | 3c8a9d8b45a6c889f7f44ef307a627c9a79794f8 | be17e5f658d7b42b5aa7eeb7a5ddd4962f3ea82f | refs/heads/master | 2022-10-01T05:23:00.836840 | 2019-10-15T18:19:38 | 2019-10-15T18:19:38 | 16,622,826 | 1 | 0 | Apache-2.0 | 2022-09-23T22:56:17 | 2014-02-07T18:04:12 | Python | UTF-8 | Python | false | false | 1,965 | py | # coding: utf-8
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class Author(models.Model):
name = models.CharField(max_length=100)
age = models.IntegerField()
friends = models.ManyToManyField('self', blank=True)
def __str__(self... | [
"root@lucid64.hsd1.ca.comcast.net"
] | root@lucid64.hsd1.ca.comcast.net |
0a96785256165015b3ea2915a7a984ab4931056a | ade0524b00e48325f00ffa61a5dd3f724f421f31 | /test/rules/functions/test_find_in_map_keys.py | fd9cd88480a3f7e9a3fe108faf3c0813719b55c2 | [
"MIT-0"
] | permissive | jlongtine/cfn-python-lint | 14247dc62ed07934802570534c5b7012bff9126a | 3f5324cfd000e14d9324a242bb7fad528b22a7df | refs/heads/master | 2020-07-19T03:46:30.741522 | 2019-09-04T19:35:34 | 2019-09-04T19:35:34 | 206,368,016 | 1 | 0 | NOASSERTION | 2019-09-04T16:50:06 | 2019-09-04T16:50:06 | null | UTF-8 | Python | false | false | 1,693 | py | """
Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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 ... | [
"kddejong@amazon.com"
] | kddejong@amazon.com |
21bc287dfd69591caf52e2875859d6647a1cd3cd | e2f0806ca1cdd887ea40d050a19fa2710427bd38 | /기본 문제/04주차_그리디/11047_동전 0/yeonwoo_11047.py | 8ef51f58a33cd340bf384386b9045c25e98bd3f3 | [] | no_license | JY-Dev/AlgorithmStudy-1 | 001f94d80097c850c79eeb2bc86971a01aa5bd5d | 2ad1df0fd65c72a6f6d1feeba09f889000ff8c15 | refs/heads/main | 2023-08-21T18:38:18.235994 | 2021-09-28T07:07:11 | 2021-09-28T07:07:11 | 406,208,087 | 1 | 0 | null | 2021-09-14T03:14:32 | 2021-09-14T03:14:31 | null | UTF-8 | Python | false | false | 396 | py | import sys
N, K = map(int ,input().split())
coin = []
for i in range(N):
coin.append(int(sys.stdin.readline().rstrip()))
count_coin = 0
for i in range(N-1, -1, -1): # coin리스트 역순으로 받아와줌
count_coin = count_coin + (K // coin[i]) # 나머지값 받아옴
# print(count_coin)
K = K % coin[i] # 몫값 가져와줌
# p... | [
"noreply@github.com"
] | JY-Dev.noreply@github.com |
e6e60d494fdd99e137d47cf846a1c54beac9548c | 7a0144da5a567d8497551b09875298ea224bb5bd | /test/two five.py | ccc96ab3ac487d676b1c4ac6afe2aad91b13d4fb | [] | no_license | SLT-DJH/algorithm | dba34614bb0fbbad0ecf5d85b02cb541ab047c5a | e33c843be4efdfc6c6a7300ab4e53b9a7c4b2e67 | refs/heads/master | 2023-03-08T08:27:01.476793 | 2021-02-25T15:06:42 | 2021-02-25T15:06:42 | 297,017,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | a = int(input())
get = a
twocount = 0
fivecount = 0
while get != 1 :
tempget = get
while True :
if tempget % 2 == 0 :
twocount += 1
tempget = tempget // 2
else :
if tempget % 5 == 0 :
fivecount += 1
tempget = tempget // ... | [
"jydwww@naver.com"
] | jydwww@naver.com |
2ab19d5e36b7eff67501d509d4c02705a7805ce7 | 2940f5416082dadd9c646cd9a46d2d0a99883efb | /venv/Lib/site-packages/pandas/tests/indexes/base_class/test_formats.py | f07b06acbfbdbc7ab38c9b4ff65b22a07e5b217d | [
"MIT"
] | permissive | tpike3/SugarScape | 4813e4fefbfb0a701f5913d74f045fd0eaed1942 | 39efe4007fba2b12b75c72f7795827a1f74d640b | refs/heads/main | 2021-06-20T03:55:46.288721 | 2021-01-20T17:06:35 | 2021-01-20T17:06:35 | 168,583,530 | 11 | 3 | MIT | 2021-01-20T17:19:53 | 2019-01-31T19:29:40 | Jupyter Notebook | UTF-8 | Python | false | false | 5,155 | py | import numpy as np
import pytest
import pandas._config.config as cf
from pandas import Index
class TestIndexRendering:
@pytest.mark.parametrize(
"index,expected",
[
# ASCII
# short
(
Index(["a", "bb", "ccc"]),
"""Index(['a', 'bb... | [
"tpike3@gmu.edu"
] | tpike3@gmu.edu |
1d833bc8cf167e0f94fff7c8988a86ae745c6943 | 404728244681a773f55be7f7b0c4933f439f3106 | /tests/web/suite/client.py | ef125df6d7ee968bfda8eaafe73e63085cbca8e9 | [] | no_license | limingjin10/walis | c4e22db27d964cefa068883edf979cabfedd74d6 | 198a4e94992c1790b7a9f2cd34b1686fefc87845 | refs/heads/master | 2021-05-29T04:50:34.091849 | 2015-06-15T14:19:23 | 2015-06-15T14:19:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | # coding=utf8
from __future__ import absolute_import, division, print_function
import pytest
from walis.server import app
# TODO 在每个模块conftest中使用权限检查
# web_client.set_cookie('eleme.test', 'god_token', 'true')
# web_client.set_cookie('eleme.test', 'god_uid', '485388')
# web_client.set_cookie('eleme.test', 'user_id', ... | [
"shaofeirong2006@126.com"
] | shaofeirong2006@126.com |
2afe1add9070b59bf76e664827eaba73908b8798 | 4010495de5381f5c7084ee8968aafd311167e6e0 | /brainiac_libs/brainiac_cores/conf_colors.py | 3a4dc97a0101be76e1226725d307e6d29f950c78 | [
"MIT"
] | permissive | marioaugustorama/brainiac_pwn | 4920131051e9de17f50c06ba2a2b36a4c827ceab | daf2abefe54800682e84177762ec6869398f3090 | refs/heads/master | 2020-03-08T10:04:15.422637 | 2018-04-04T14:55:20 | 2018-04-04T14:55:20 | 128,062,869 | 2 | 0 | MIT | 2018-04-04T13:02:05 | 2018-04-04T13:02:05 | null | UTF-8 | Python | false | false | 637 | py | arry_cores = {
"vermelho" :'\033[31m',
"verde" : '\033[32m',
"azul" :'\033[34m',
"ciano" : '\033[36m',
"magenta" : '\033[35m',
"amarelo" : '\033[33m',
"preto " : '\033[30m',
"branco" : '\033[37m',
"normal" : '\033[0;0m',
"negrito"... | [
"darkcode357@gmail.com"
] | darkcode357@gmail.com |
ac63cf07f7fa28aa40b6d176ed686d15b8b7b345 | 7465148de5d656ebfe68b588a2f271a11384ed6a | /litepipeline/litepipeline/manager/utils/litedfs.py | 97177e15c398e93168fde3f58e61711e161513ad | [] | no_license | fiefdx/LitePipeline | 1462dacdd1a0f2c67972b6014b428c2c45d46949 | 09608f8c5f248d2ba10e5840bf00d69e76ed6291 | refs/heads/master | 2023-04-14T11:45:18.929249 | 2023-04-02T06:48:30 | 2023-04-02T06:48:30 | 226,355,739 | 2 | 0 | null | 2023-04-01T17:49:14 | 2019-12-06T15:17:33 | Python | UTF-8 | Python | false | false | 394 | py | # -*- coding: utf-8 -*-
import os
import time
import json
import hashlib
import logging
from tornado import ioloop
from tornado import gen
from litedfs_client.client import LiteDFSClient
from litepipeline.manager.config import CONFIG
LOG = logging.getLogger(__name__)
LDFS = None
class LiteDFS(object):
def __... | [
"fiefdx@163.com"
] | fiefdx@163.com |
e15b04c7931d37f5633a4cf349ba6d4c044639d0 | 32cb0be487895629ad1184ea25e0076a43abba0a | /LifePictorial/top/api/rest/FuwuScoresGetRequest.py | 5f9681e9ab9bb4e5931bb956f6bd0e3218c9b4f2 | [] | no_license | poorevil/LifePictorial | 6814e447ec93ee6c4d5b0f1737335601899a6a56 | b3cac4aa7bb5166608f4c56e5564b33249f5abef | refs/heads/master | 2021-01-25T08:48:21.918663 | 2014-03-19T08:55:47 | 2014-03-19T08:55:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | '''
Created by auto_sdk on 2014-02-10 16:59:30
'''
from top.api.base import RestApi
class FuwuScoresGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.current_page = None
self.date = None
self.page_size = None
def getapiname(self):
... | [
"poorevil@gmail.com"
] | poorevil@gmail.com |
10f532670bd79d4f62ef5ccbf956de943ba37d7d | e7188f29592fcfebce8b2ac86336534e1b15a505 | /network-program/thread_learn/simple_thread_2.py | 23eb5f5fdbcaf74653b14bc6383d30210a436c67 | [] | no_license | liuxingrichu/python-learn-log | 6f924172ae4d66aabd5740a2f161d7d653cf4af1 | 4556ba50388310e0c17010c0f999f54db5eef755 | refs/heads/master | 2021-01-19T17:16:42.413655 | 2017-03-23T15:12:20 | 2017-03-23T15:12:20 | 82,430,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
类方式创建线程
"""
import threading
class MyThread(threading.Thread):
def __init__(self, n):
super(MyThread, self).__init__()
self.n = n
def run(self):
print('task', self.n)
t1 = MyThread('t1')
t2 = MyThread('t2')
t1.start()
t2.start(... | [
"liuxingrichu@163.com"
] | liuxingrichu@163.com |
865a4b2b3225f7c2378ed05a01be12a13dd5d5e0 | 3f182e860f4485e304bc9195d1c1eaa8b2de70aa | /estee/generators/simple.py | 5da78603b17e110a8fd9cb4c17c5d41708f2a23b | [
"MIT"
] | permissive | spirali/estee | 0feda169af35edc51bd4ac9cab2d36377561a576 | 55c0834db3d7da407b7c37d46fa41b5b563e2bbe | refs/heads/master | 2020-03-28T02:22:22.218292 | 2019-04-05T13:55:16 | 2019-04-05T13:55:16 | 147,566,052 | 9 | 4 | MIT | 2019-04-05T12:32:29 | 2018-09-05T19:01:33 | Python | UTF-8 | Python | false | false | 1,243 | py | import random
def random_dependencies(count: int, edge_density: float, task_fn):
"""
Creates a complete graph with the given edge density.
"""
nodes = [task_fn() for i in range(count)]
for n1 in nodes:
for n2 in nodes:
if (n1 == n2 or random.random() > edge_density
... | [
"stanislav.bohm@vsb.cz"
] | stanislav.bohm@vsb.cz |
2b46dce55e29ad70824f427037c67831606c0bed | d1ae7f66513c622e71d23ecf5f19cd7a56a4c409 | /apigentools/commands/list_config.py | 7979cf7093b4b7fb5bae06d1332834ae41056d95 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | DataDog/apigentools | 5471ccd145631f0a3ccd65bdb2b26710e59cf270 | 8176b85e4fe9cdb47b58c1f2ccc4b9901e1baf57 | refs/heads/master | 2023-08-17T00:31:39.982410 | 2023-07-03T15:37:49 | 2023-07-03T15:37:49 | 194,347,428 | 33 | 13 | BSD-3-Clause | 2023-07-03T15:37:50 | 2019-06-29T00:26:52 | Python | UTF-8 | Python | false | false | 4,020 | py | # Unless explicitly stated otherwise all files in this repository are licensed
# under the 3-clause BSD style license (see LICENSE).
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2020-Present Datadog, Inc.
import json
import logging
import click
import jsonpath_ng
fro... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
71bd652762d3bc860af54b0a0a640abb435e9056 | 5b7c2feb27a71837edf526315d413706a6bf82ff | /tests/trainers/lightning/test_logging.py | 5b28d53b6bbd5331da9bfd575b4bbbef67e30191 | [
"BSD-3-Clause"
] | permissive | facebookresearch/mmf | df675223566dc8fb2359aa3e1a2d49db5e3c2b9a | 63f76fbcfe2d056b88734fc41a983251d20e6c61 | refs/heads/main | 2023-08-23T23:40:46.827046 | 2023-07-11T06:18:50 | 2023-07-11T06:18:50 | 138,831,170 | 2,432 | 592 | NOASSERTION | 2023-08-11T20:26:11 | 2018-06-27T04:52:40 | Python | UTF-8 | Python | false | false | 4,666 | py | # Copyright (c) Facebook, Inc. and its affiliates.
import unittest
from unittest.mock import MagicMock, patch
from mmf.trainers.callbacks.logistics import LogisticsCallback
from mmf.trainers.lightning_core.loop_callback import LightningLoopCallback
from mmf.utils.timer import Timer
from tests.test_utils import skip_i... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
2df994f504e9aeb22890f567378afa42539ae9c3 | 9f5dd76fe21a66f90700f83840f2491dd34b17f9 | /tensorflow/python/ops/linalg/linear_operator_full_matrix.py | 8fe6891925099510389e5a7714124a14b97cf287 | [
"Apache-2.0"
] | permissive | thuanvh/tensorflow | b328964da68744bbd77799b13729835dcf4dbf79 | a599e0e2fc5a0e7964ad25c2f5c7e6ed5b679dc6 | refs/heads/master | 2021-07-20T13:55:40.451003 | 2019-12-03T06:34:09 | 2019-12-03T06:34:09 | 119,012,773 | 3 | 1 | Apache-2.0 | 2019-12-03T06:42:38 | 2018-01-26T06:05:36 | C++ | UTF-8 | Python | false | false | 6,660 | py | # Copyright 2016 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 |
30f417b36b012ac709085c69683beb06c6c8d0ea | bc368e94d950af97b71e0b0c2a3d2b86c6a9d173 | /learn-theano/snn/membrane_cnn-master/membrane_cnn-master/membrane_examples.py | fee74d6761f1d20bec9c7b46ab8b2b655883ebc1 | [
"BSD-3-Clause"
] | permissive | ChenLiangbo/Learning-python | 6100c6ff74330fb1710622cdb22bde5a1d52e40b | 868cc4d71d1b9bd362b9fac8a39f295037d20b4c | refs/heads/master | 2020-06-11T07:42:04.434182 | 2018-05-08T05:06:14 | 2018-05-08T05:06:14 | 75,731,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,149 | py | import mahotas
import scipy.ndimage
import scipy.misc
import gzip
import cPickle
imgrad = 47
imgd = 2 * imgrad + 1
zrad = 0
zd = 2 * zrad + 1
#test mode
#nimages = 10
#display_output = True
#ntrain = 5
#nvalid = 2
#ntest = 2
#live mode
nimages = 75
display_output = False
ntrain = 5000
nvalid = 1000
ntest = 1000
tr... | [
"chenlb@polarwin.cn"
] | chenlb@polarwin.cn |
5f99c906f9825caa252f0cca18c5639428ae94c1 | 6e615744c7065f39abee294bc0d1579c67de3151 | /custom_fields_app/migrations/0003_developer.py | b54089e118ae106a34213d2b8da2f68f7a803809 | [] | no_license | idelfrides/POC_Django_custom_fields | 1b9b6d92df7e09e0d52d27d85de3651d075b23b1 | 9fbc5af266454f3b01af73d15b081f83f776ef23 | refs/heads/master | 2020-08-15T16:37:19.712152 | 2019-12-03T21:05:12 | 2019-12-03T21:05:12 | 215,372,253 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | # Generated by Django 2.2.6 on 2019-10-14 23:04
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('custom_fields_app', '0002_delete_developer'),
]
operations = [
migrations.CreateModel(
name='Developer',
... | [
"idelfridesjorgepapai@gmail.com"
] | idelfridesjorgepapai@gmail.com |
7f3da276e490e57aa84557f62d5dc1e52cd4b8f3 | a4843f673692e4c703d09b4a625ecf14d0c238ec | /bin/assembly/phyluce_assembly_get_bed_for_genome_enabled_taxon | c94c4043b1f252e60b9d992f993d35fa095e5420 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | carloliveros/phyluce | db0fd5f04b6eb1f362ce7a95ca9dde5514301ff8 | 1b227a51b655820154ecca4e9e52ac7722d7a71e | refs/heads/master | 2020-04-25T13:02:32.637099 | 2019-05-10T18:34:24 | 2019-05-10T18:34:24 | 136,492,179 | 0 | 0 | NOASSERTION | 2019-02-26T21:03:20 | 2018-06-07T14:52:12 | Python | UTF-8 | Python | false | false | 4,894 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
(c) 2015 Brant Faircloth || http://faircloth-lab.org/
All rights reserved.
This code is distributed under a 3-clause BSD license. Please see
LICENSE.txt for more information.
Created on 22 May 2015 08:39 CDT (-0500)
"""
import os
import re
import sqlite3
import arg... | [
"brant@faircloth-lab.org"
] | brant@faircloth-lab.org | |
9fd96a9913457074ce2f27981629d2f1cb9b2fec | df1482f251a2d801e7b77bbd1d5c9a408e71e7ef | /05_visualization/plot_blastm7.py | 19343ab1300daf72018d878749a86f77091a2fb6 | [] | no_license | silvewheat/bioNotes | a34e1aa79df42799d83b5c4f3e1b2a583360fc1a | d96c4710c1f620c18fdf92fe21f38d73671b9580 | refs/heads/master | 2021-12-30T01:52:40.925861 | 2021-12-27T14:11:30 | 2021-12-27T14:11:30 | 113,825,423 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,232 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 8 01:32:47 2018
@author: YudongCai
@Email: yudongcai216@gmail.com
"""
import click
import pandas as pd
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from matplotlib.patches import Polygon
from matplotlib.collections import P... | [
"silverwheat@163.com"
] | silverwheat@163.com |
2accf3a6530ef8af910cb9a427c3290c0476a0d0 | fe3265b72e691c6df8ecd936c25b6d48ac33b59a | /homeassistant/components/enphase_envoy/const.py | cd3235f1be5c745c1a510fe8bb3bdd5f646f07de | [
"Apache-2.0"
] | permissive | bdraco/home-assistant | dcaf76c0967783a08eec30ce704e5e9603a2f0ca | bfa315be51371a1b63e04342a0b275a57ae148bd | refs/heads/dev | 2023-08-16T10:39:15.479821 | 2023-02-21T22:38:50 | 2023-02-21T22:38:50 | 218,684,806 | 13 | 7 | Apache-2.0 | 2023-02-21T23:40:57 | 2019-10-31T04:33:09 | Python | UTF-8 | Python | false | false | 2,491 | py | """The enphase_envoy component."""
from homeassistant.components.sensor import (
SensorDeviceClass,
SensorEntityDescription,
SensorStateClass,
)
from homeassistant.const import Platform, UnitOfEnergy, UnitOfPower
DOMAIN = "enphase_envoy"
PLATFORMS = [Platform.SENSOR]
COORDINATOR = "coordinator"
NAME = "... | [
"noreply@github.com"
] | bdraco.noreply@github.com |
d7e1e5991c2847b04917d61442775dfb53cb4335 | 6719aa2e0598ec5bb9bb6bfd47390583b91dd015 | /90/93.py | 59df648a2df79bb202f7c276369e211e24946444 | [] | no_license | huangyuzhen/let | 2f8ed6f41792a4bedf1b808d6b1c21e99f406da9 | 653d8a5aee803d2b414d0135f791a8f9d83bb272 | refs/heads/master | 2020-09-05T05:22:50.220859 | 2020-02-16T12:15:39 | 2020-02-16T12:15:39 | 219,995,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | class Solution(object):
def backtrack(self, s, r, t = 0):
if t == 4:
if s == '':
self.result.add('.'.join(r))
return
if s == '': return
if t == 3 and int(s) > 255: return
if s[0] == '0':
r.append('0')
self.backtrack(s[... | [
"huangyuzhen@earch"
] | huangyuzhen@earch |
1ebab44da97346e9f56af6d43430ba7a99a1bcb2 | 545e73186a7c95182957d77a4958c9832180ef46 | /wikigeolinks/config/routing.py | 222d0165d8c3117fe7c7baa91458b47481f69c29 | [] | no_license | kailIII/wikigeolinks | 038368e3e9c493698d6acef0bc7edfa415f9b958 | 3fd45edcbda62ce3b5b5fe12d5ac8c687614d1bf | refs/heads/master | 2021-01-22T21:46:03.150845 | 2012-03-07T22:41:20 | 2012-03-07T22:41:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | """Routes configuration
The more specific and detailed routes should be defined first so they
may take precedent over the more generic routes. For more information
refer to the routes manual at http://routes.groovie.org/docs/
"""
from routes import Mapper
def make_map(config):
"""Create, configure and return the ... | [
"amercadero@gmail.com"
] | amercadero@gmail.com |
8c594d903b2a9af9128b6bd101fce9ee33ab90f4 | c9fde4576216a22e8d5711bbe97adda1aafa2f08 | /model-optimizer/extensions/ops/correlation.py | b61ed48d1a2c4d6615dee1f37325667b54aaa720 | [
"Apache-2.0"
] | permissive | dliang0406/dldt | c703d6a837de3f996528fc8a9543f9530b23342c | d9b10abcebafe8b10ba81e09e433de7a366c072c | refs/heads/2018 | 2020-04-03T08:24:47.723353 | 2018-10-29T07:58:05 | 2018-10-29T07:58:05 | 155,132,108 | 3 | 1 | Apache-2.0 | 2019-10-10T08:39:46 | 2018-10-29T01:03:54 | C++ | UTF-8 | Python | false | false | 2,397 | py | """
Copyright (c) 2017-2018 Intel Corporation
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 i... | [
"openvino_pushbot@intel.com"
] | openvino_pushbot@intel.com |
09eb40d2c0197a245f5b0fb3750928ff087087f0 | abc72a2f2072ab7a5a338e41d81c354324943b09 | /MC 102 (Exemplos de aula)/testando.py | ad0d47f312098fea5134485a04aa4a2969c68d7b | [] | no_license | gigennari/mc102 | a3d39fd9a942c97ef477a9b59d7955f4269b202a | fce680d5188a8dfb0bc1832d6f430cbcaf68ef55 | refs/heads/master | 2023-04-05T01:40:58.839889 | 2020-07-27T20:33:56 | 2020-07-27T20:33:56 | 354,130,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | """if i % 2 == 1:
lista_conceitos.append(dado)
print(lista_conceitos)
"""
lista = ['tarefa0', 'A', 'tarefa1', 'C', 'tarefa2', 'C', 'faltou']
lista_conceitos = []
for i, dado in enumerate(lista):
while dado != 'presente':
print('não é presente')
| [
"g198010@dac.unicamp.br"
] | g198010@dac.unicamp.br |
9381ae1c0554ac84fff0a3d537df28f32ff61d4c | ab2f1f18f64d9f2d49a4eea5c6a78ee1275662de | /trex_client/external_libs/scapy-2.3.1/python3/scapy/as_resolvers.py | f04322b8a23330e645c906b21f13d9105e7dfda5 | [
"MIT"
] | permissive | alwye/trex-http-proxy | d09d7fabe60add4a445e5ceb71f5f2a6d209e0a0 | e30f5af03aaaad518b5def6e1804c3741dd5d0c6 | refs/heads/master | 2021-08-16T22:32:56.643253 | 2021-06-08T19:52:35 | 2021-06-08T19:52:35 | 60,734,923 | 4 | 3 | MIT | 2021-06-08T19:39:18 | 2016-06-08T22:27:35 | Python | UTF-8 | Python | false | false | 3,423 | py | ## This file is part of Scapy
## See http://www.secdev.org/projects/scapy for more informations
## Copyright (C) Philippe Biondi <phil@secdev.org>
## This program is published under a GPLv2 license
"""
Resolve Autonomous Systems (AS).
"""
import socket
from .config import conf
class AS_resolver:
server = None
... | [
"alzverev@cisco.com"
] | alzverev@cisco.com |
2117661416d13323b3deec9077547e0aeea00cae | d9a4121ac2872bbe3f76564caebe6818dc5888a7 | /mythx_models/base.py | 02d39eb23e0658afe2292faada3728d3be159fec | [
"MIT"
] | permissive | s0b0lev/mythx-models | ecb07abada43eb9c26929bfd6cd76dca9105207f | 0fc14fef9e41a68a7d97e0bb170fd0eca5693d9a | refs/heads/master | 2020-08-20T19:22:14.320454 | 2019-10-11T08:32:04 | 2019-10-11T08:32:04 | 216,057,981 | 0 | 0 | MIT | 2019-10-18T15:47:10 | 2019-10-18T15:47:09 | null | UTF-8 | Python | false | false | 2,797 | py | """This module contains the base domain model."""
import abc
import json
import logging
import jsonschema
from mythx_models.exceptions import ValidationError
LOGGER = logging.getLogger(__name__)
class JSONSerializable(abc.ABC):
"""An abstract base class defining an interface for a JSON serializable class."""
... | [
"dmuhs@protonmail.ch"
] | dmuhs@protonmail.ch |
898b43374ea9ea4fde31ca60ec3d23fe0f2f9d83 | fa0bd730981a4a7333e7858c03e2a16c75e9cf5c | /Chapter 4/cifar10.py | 5cc85429f23def0681e8baf01a41efc95eff3ca4 | [
"MIT"
] | permissive | PacktPublishing/Deep-Learning-with-TensorFlow-2-and-Keras | 4cb5f7249dcd1efe6ea5a5263fb862240ce303bb | e23d2b4a4292386b70977473805acb2f93ef16ca | refs/heads/master | 2023-02-13T04:04:57.531730 | 2023-02-07T19:23:47 | 2023-02-07T19:23:47 | 228,759,428 | 311 | 214 | MIT | 2021-06-01T14:06:06 | 2019-12-18T04:42:07 | Jupyter Notebook | UTF-8 | Python | false | false | 1,797 | py | import tensorflow as tf
from tensorflow.keras import datasets, layers, models, optimizers
# CIFAR_10 is a set of 60K images 32x32 pixels on 3 channels
IMG_CHANNELS = 3
IMG_ROWS = 32
IMG_COLS = 32
#constant
BATCH_SIZE = 128
EPOCHS = 20
CLASSES = 10
VERBOSE = 1
VALIDATION_SPLIT = 0.2
OPTIM = tf.keras.optimizers.RMSprop... | [
"noreply@github.com"
] | PacktPublishing.noreply@github.com |
9898760709ef15969b84d5e10bcbbaeed17caaf9 | 38c004d5d25687abbcbf8219f1b6c47380ef9f28 | /tests/circrequests/steps/validate_job_preconditions_step_test.py | 0a2d496fa731ddd355f4120f819a3344a8b96183 | [
"Apache-2.0"
] | permissive | umd-lib/caia | 25ff8276eaf0b13fd5244a753216496c40a4fa4d | b6fc6b7ceb1987e67d593d2a19d64f16645f6f7b | refs/heads/develop | 2023-07-16T02:35:39.145431 | 2021-08-12T17:27:25 | 2021-08-12T17:27:25 | 263,131,105 | 0 | 1 | Apache-2.0 | 2021-03-26T13:48:33 | 2020-05-11T18:58:06 | Python | UTF-8 | Python | false | false | 1,811 | py | from caia.circrequests.circrequests_job_config import CircrequestsJobConfig
from caia.circrequests.steps.validate_job_preconditions import ValidateJobPreconditions
def test_validate_preconditions_returns_true_if_all_preconditions_are_met():
config = {
'caiasoft_api_key': 'SECRET_CAIASOFT_API_KEY',
... | [
"dsteelma@umd.edu"
] | dsteelma@umd.edu |
1ba7fb48e0a08d6dcf87b5d1d7e13f5f5d205d3c | d8d1daed8162cc70a989d696adece741fad39632 | /amplify/agent/__init__.py | 105155c78d8eee608cd86fed8c377ab6b4ff792b | [
"BSD-2-Clause"
] | permissive | sakomws/nginx-amplify-agent | 16085a236f5c3eaf0e4b53cbb935c4fab3ce079b | e33eb8724a7fc06cc44137a23653da11c8c07e82 | refs/heads/master | 2020-04-03T08:10:14.812192 | 2018-09-26T13:49:52 | 2018-09-26T13:49:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | # -*- coding: utf-8 -*-
from collections import defaultdict
__author__ = "Mike Belov"
__copyright__ = "Copyright (C) Nginx, Inc. All rights reserved."
__license__ = ""
__maintainer__ = "Mike Belov"
__email__ = "dedm@nginx.com"
class Singleton(object):
_instance = None
def __new__(cls, **kwargs):
if ... | [
"dedm@nginx.com"
] | dedm@nginx.com |
1f9ade535812ace2203a94e4d09a4869f2213aea | f57bba82fed27b74dca1319f41ed3cf9047fcc55 | /0x08-python-more_classes/7-rectangle.py | 73a746567f04c48f85dc87db0b1a4f54611d2cf3 | [] | no_license | ibeckermayer/holbertonschool-higher_level_programming | cb76d64d698e7b2c8e60d8498c25ba31dc7e337f | 3cb19fb206a77cccbf12a2c2e06067fa1be303f1 | refs/heads/master | 2020-03-09T13:36:27.959941 | 2018-09-06T00:57:53 | 2018-09-06T00:57:53 | 128,815,447 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,416 | py | #!/usr/bin/python3
class Rectangle:
"""A Rectangle
Attributes:
number_of_instances (int): total number of instances
print_symbol (str): the symbol the rectangle will be printed with
"""
number_of_instances = 0
print_symbol = "#"
def __init__(self, width=0, height=0):
... | [
"ibeckermayer@gmail.com"
] | ibeckermayer@gmail.com |
a7f6bcdf25adf4797b3f71fe4ecf622b71e2f412 | 8087165de8ffd9a2e1b09782dc3118a4e95b3cc3 | /setup.py | e3542be91757072a7c8bb2af990e898bee643c20 | [
"MIT"
] | permissive | hamogu/atpy | c29a1779dcf2039a3fb2abae76075d7892dff534 | c6f32e87df891762b253bbebe839f420f6486035 | refs/heads/master | 2021-01-16T20:46:21.538047 | 2011-02-07T00:56:05 | 2011-02-07T00:56:05 | 1,336,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | #!/usr/bin/env python
from distutils.core import setup
try: # Python 3.x
from distutils.command.build_py import build_py_2to3 as build_py
except ImportError: # Python 2.x
from distutils.command.build_py import build_py
setup(name='ATpy',
version='0.9.4',
description='Astronomical Tables in Pytho... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
674789986c4c54706811c0d60fb5332b13032365 | f97e256cd8eab010767c86df8c8efe76b0695acc | /pyfb2/isbn.py | a6de0fce0d0252888d8c4827ec091061b1b53ac1 | [] | no_license | gil9red/pyfb2 | 2afcc2827e274de86c81a420083cd8474eb99f9f | 623a32b1e1b5622fc99521d4e4790b11526a3bb1 | refs/heads/master | 2020-05-01T01:25:11.425010 | 2018-11-02T14:51:55 | 2018-11-02T14:51:55 | 26,398,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | __author__ = 'ipetrash'
""""""
class Isbn:
""""""
# Описание
# ISBN оригинальной (бумажной) книги.
#
# Атрибуты
# xml:lang (опционально) - язык.
#
# Подчиненные элементы
# Нет подчиненных элементов, содержит текстовую строку ? собственно ISBN книги.
#
# Подчинен
# Мож... | [
"gil9red@gmail.com"
] | gil9red@gmail.com |
95cf171d9f3d9732f66c214ab0a8ff210939af53 | e0370fc68acc7eba333c17d379fa2182f114488a | /libs/detection_oprations/proposal_opr_.py | d0cbf540f3adb52139570f93ce8ec1b123e39a30 | [
"MIT"
] | permissive | wolfworld6/CSL_RetinaNet_Tensorflow | 5056cbaa3957b38999a3a440c4b18044d3302430 | ecc5ae71db108ccecb0004855512ff258e006b9b | refs/heads/master | 2022-11-26T22:26:33.768840 | 2020-08-04T09:06:31 | 2020-08-04T09:06:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,114 | py | # encoding: utf-8
from libs.configs import cfgs
from libs.box_utils import bbox_transform
from libs.box_utils import nms_rotate
import tensorflow as tf
import numpy as np
from libs.box_utils.coordinate_convert import coordinate_present_convert, coords_regular
def postprocess_detctions(rpn_bbox_pred, rpn_cls_prob, rp... | [
"yangxue0827@126.com"
] | yangxue0827@126.com |
5566277f3355ee903609ea25f79493d77e545c5c | 57e1d15553d407e869a2479c248c13ef4d8c615a | /photutils/utils/__init__.py | 3f9447e5025dade97438aab8190ff1e72ae9c7ee | [] | no_license | ccd-utexas/photutils | 02a722f075ac0e537ad19dc9848b8e9f847d644a | 63c282b5833a4db6a71709a5aeff51d3dd6517d1 | refs/heads/master | 2021-01-18T02:35:51.208333 | 2014-09-14T19:06:10 | 2014-09-14T19:06:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This subpackage contains developer-oriented utilities.
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from .check_random_state import *
| [
"larry.bradley@gmail.com"
] | larry.bradley@gmail.com |
f6246d92aed5850c1ff9fb557cbf76d2f726df92 | 7f6c0d160fd8ea94e7d9523c8129e4a52eb07e0e | /MultiplicationTable.py | be358a867acf3e314136a7cc1fcd6cb726447e4d | [] | no_license | GeekJamesO/Python_MultiplicationTable | dbfbe84e5110f20a5054ac401fc019ee51f65ea0 | 0392e8a039daa1b2216ca2a96b72bed3a84f458a | refs/heads/master | 2021-01-02T08:38:44.958455 | 2017-09-06T05:14:16 | 2017-09-06T05:14:16 | 99,040,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | """
Create a program that prints a multiplication table in your console.
Your table should look like the following example:
x 1 2 3 4 5 6 7 8 9 10 11 12
1 1 2 3 4 5 6 7 8 9 10 11 12
2 2 4 6 8 10 12 14 16 18 20 22 24
3 3 6 9 12 15 18 21 24 27 30 33 36
4 4 8 12 16 20 24 2... | [
"geekjamesorourkejr@icloud.com"
] | geekjamesorourkejr@icloud.com |
5b2920c821ed8556581055b7062bb9643e9f2645 | 9f30f7d18a90dc2a195c7e7343ad22b20e20a787 | /accommodation/accommodation/notifications.py | 28f572074f843b2b4b08350849425591a2a9a663 | [
"MIT"
] | permissive | ashish-greycube/accommodation | 9c6620220abf69eaf3edef5535457e7827eeaef5 | 4c4d68111c2a89d94e7604849367347129b5a2b9 | refs/heads/master | 2020-12-20T06:25:40.194387 | 2020-01-24T11:14:54 | 2020-01-24T11:14:54 | 235,987,454 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,025 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, DBF and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _
from frappe.utils import cint
from six import string_types, iteritems
import json
import erpnext
from frappe.utils import date_... | [
"mr.ashish.shah@gmail.com"
] | mr.ashish.shah@gmail.com |
d602f0c7e4d1f05bd1f974f2465a76beb734905f | 528def9844f2ce13e6a358938b0b560945ab2248 | /main/migrations/0056_userprofile_heatmap.py | b09258ed7d3fad4da912a64531ec71400bcb6d4b | [
"BSD-3-Clause"
] | permissive | skripkar/noc | 055afbd42ab4c447d05d2cde0a822916f9e0844e | df193b99e478fe39157c8d27ff4098262d9cb734 | refs/heads/master | 2020-04-10T12:53:09.602779 | 2018-12-08T07:50:30 | 2018-12-08T07:50:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | # -*- coding: utf-8 -*-
from south.db import db
from django.db import models
class Migration:
def forwards(self):
db.add_column(
"main_userprofile",
"heatmap_lon",
models.FloatField("Longitude", blank=True, null=True))
db.add_column(
"main_userprofi... | [
"dv@nocproject.org"
] | dv@nocproject.org |
1a2d52c49149c7a1f52bb7f4d4c899b1fad43330 | 35b6013c1943f37d1428afd2663c8aba0a02628d | /profiler/appengine/flexible/noxfile_config.py | 840f3ba70660706276350faa5616c9a5296c8700 | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/python-docs-samples | d2a251805fbeab15d76ed995cf200727f63f887d | 44e819e713c3885e38c99c16dc73b7d7478acfe8 | refs/heads/main | 2023-08-28T12:52:01.712293 | 2023-08-28T11:18:28 | 2023-08-28T11:18:28 | 35,065,876 | 7,035 | 7,593 | Apache-2.0 | 2023-09-14T20:20:56 | 2015-05-04T23:26:13 | Jupyter Notebook | UTF-8 | Python | false | false | 1,849 | py | # Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | GoogleCloudPlatform.noreply@github.com |
3748009d16efeafdb2601245743c7b00792fe3aa | bb82aa054ae80a09925d86b192922d55eb85e657 | /sfa.py | 3a3086b42bba0f541e7adb64f1c5ec2fd000e379 | [
"MIT"
] | permissive | lagrassa/baselines | d1705bbbd7d0a9c6a6366bc4211402e891dedc7b | 843ab36182add5ca259aa2edcb9a9113d6008135 | refs/heads/master | 2020-04-16T15:49:10.579240 | 2019-08-08T20:32:40 | 2019-08-08T20:32:40 | 165,715,526 | 0 | 0 | null | 2019-01-14T18:46:25 | 2019-01-14T18:46:25 | null | UTF-8 | Python | false | false | 1,945 | py | import numpy as np
from skimage.transform import resize
from PIL import Image
import matplotlib.pyplot as plt
plt.rcParams["font.size"] = 19
import mdp
'''
@param signal_list n x m array with n points in time that are m dimensional
'''
lookback = 3
def train_sfa(signal_list, degree=2, lookback=3):
#put into forma... | [
"lagrassa@mit.edu"
] | lagrassa@mit.edu |
43cdf68da99e057b0b815a7520bf33399cf76600 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/LQ/LQToCMu_M_250_TuneCUETP8M1_13TeV_pythia8_cff.py | d7cc1bed05ec637dc94f99d30d949bdaf3d965e4 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 1,147 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
maxeventsToPrint = cms.untracked.int32(1),
pythiaPylistVerbosity = cms.untracked.int32(1)... | [
"dnash@cern.ch"
] | dnash@cern.ch |
d7408f2e3038befa47ffef0498d21527645fe960 | 04f4558aa0dc904b8d7c0ab79b80ec11c34f8ccf | /swagger_client/models/inline_response_200_35.py | ff4cb64e50ad1461786655d82dcde305187d053c | [
"Apache-2.0"
] | permissive | scubawhere/scubawhere-api-python-client | 0fc23ffb97446b0bb0825c93528f954e7d642cf4 | 9f8578e251492c7667f785df7b7c9d66e71f5c8e | refs/heads/master | 2020-12-24T11:10:34.880348 | 2016-11-08T12:20:45 | 2016-11-08T12:20:45 | 73,180,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,676 | py | # coding: utf-8
"""
Scubawhere API Documentation
This is the documentation for scubawhere's RMS API. This API is only to be used by authorized parties with valid auth tokens. [Learn about scubawhere](http://www.scubawhere.com) to become an authorized consumer of our API
OpenAPI spec version: 1.0.0
... | [
"bryan@iqwebcreations.com"
] | bryan@iqwebcreations.com |
8daec3220944fafce80738c0e80789c0273bcbbc | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_will945945945_codejam1.py | 3ab66a1fd67b3fe2f6a756ed21c188023f10f055 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 450 | py | def f(n):
n = int(n)
S = set(list(str(n)))
i = 0
k = 0
while len(S) != 10:
k += n
T = set(list(str(k)))
S = S.union(T)
i += 1
if i >= 10**5:
return 'INSOMNIA'
return k
F = open('A-large.in')
A = F.read()
A = A.split('\n')[1:-1]
Ans = map(f,A)
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
98f554fa63163672e296e3c2df632125022ebfd4 | a33497a0a8250d06f146230746335e8b84f90394 | /configure/main.py | 99078324289b72fc09a4b3eaee101637edb4b673 | [
"MIT"
] | permissive | gibbs-lab-us/usxp_08_16 | e099c68fd5112a1df4d5390a674bd79d6d01e186 | 06c60525a043486209c7e2c17072e56478d113e5 | refs/heads/master | 2022-11-07T17:31:47.870927 | 2020-06-24T04:17:39 | 2020-06-24T04:17:39 | 274,553,685 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,061 | py | '''
Author: Matt Bougie (mbougie@wisc.edu)
Date: June 21, 2020
Purpose: Central script to call all other scripts for processing data.
Usage: Need to set up connections to directories of scripts and to geodatabases where the output is saved.
Parameters: Parameters for all scripts are stored in the json file and referen... | [
"mbougie@wisc.edu"
] | mbougie@wisc.edu |
938e45d7658d1b188094e5d5f989f91da0257c82 | be791583545a1f66a7650085d920171d0df040da | /nni/algorithms/compression/v2/pytorch/pruning/tools/metrics_calculator.py | 2628751adc8649304099ce184c967bc2e36a330d | [
"MIT"
] | permissive | Lijiaoa/nni | de4f598585d346c17aae1030774eab8346ba6b5e | 7bcf1ebd47caf144032825aa078c8d9a51833320 | refs/heads/master | 2023-06-08T08:00:44.947829 | 2022-09-14T08:37:09 | 2022-09-14T08:37:09 | 242,638,482 | 1 | 0 | MIT | 2020-07-16T08:24:42 | 2020-02-24T03:30:45 | Python | UTF-8 | Python | false | false | 6,289 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from __future__ import annotations
from typing import Dict, List
import torch
from torch import Tensor
from .base import MetricsCalculator
from ...utils import Scaling
__all__ = ['NormMetricsCalculator', 'HookDataNormMetricsCalculator', 'Dist... | [
"noreply@github.com"
] | Lijiaoa.noreply@github.com |
074f348734d23aa58b3c21900e08312d205392e5 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_032/ch18_2020_03_08_21_48_35_100424.py | d5d6a13b5f497d97e06155ea19823128df29554b | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | def verifica_idade(idade):
if idade>=21:
return "Liberado EUA e BRASIL"
elif idade>= 18:
return "Liberado BRASIL"
else:
return "Não está liberado" | [
"you@example.com"
] | you@example.com |
1c327427f69011e83e4e3db08d9f67da61680805 | 3c7150c5ee763ba965be678af00e488a0810fa6c | /test/tstpkg/packtest/packa.py | 6d4aedb460a38efbd88563cc740f75f67e3849ee | [] | no_license | jeppeter/pylib | 3dffb188f2736f4dba730fa142102962ccadd95e | fad29d7efb90782254e766467a8a3bc50bd07312 | refs/heads/master | 2023-08-16T03:50:05.387168 | 2021-12-14T03:43:58 | 2021-12-14T03:43:58 | 58,593,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | #!/usr/bin/python
class PackBase:
def __init__(self):
print ('init packbase')
return
def call_a_new():
return PackBase() | [
"jeppeter@gmail.com"
] | jeppeter@gmail.com |
83c2ed80a7b142d6129f75e8dc3c02d54f29d899 | 242086b8c6a39cbc7af3bd7f2fd9b78a66567024 | /python/PP4E-Examples-1.4/Examples/PP4E/Gui/Tour/demo-radio-multi.py | 518610e67784054e5fd5bd69e93729aa96d8fdc8 | [] | no_license | chuzui/algorithm | 7537d0aa051ac4cbe9f6a7ca9a3037204803a650 | c3006b24c4896c1242d3ceab43ace995c94f10c8 | refs/heads/master | 2021-01-10T13:05:30.902020 | 2015-09-27T14:39:02 | 2015-09-27T14:39:02 | 8,404,397 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | # see what happens when some buttons have same value
from tkinter import *
root = Tk()
var = StringVar()
for i in range(10):
rad = Radiobutton(root, text=str(i), variable=var, value=str(i % 3))
rad.pack(side=LEFT)
var.set(' ') # deselect all initially
root.mainloop()
| [
"zui"
] | zui |
ee5c2e68c1e14440944550d0b6e44adadfbd9b03 | 9cdbc9190def43f30b3357c7fccd92bcb0bef6a9 | /pyspark/day_calci.py | 7d8b70407f8e11ac7b4bd0c408aa4c20d861b9ca | [] | no_license | sidaker/dq | 2ff8fac0fc4a79d67909fb968f0a7ec8e976630a | fd41d60b6ca658d5f024701ce4a4729d41a24d30 | refs/heads/master | 2023-05-27T01:31:18.274913 | 2023-05-10T22:20:16 | 2023-05-10T22:20:16 | 225,405,776 | 0 | 0 | null | 2023-05-01T20:38:00 | 2019-12-02T15:19:30 | Jupyter Notebook | UTF-8 | Python | false | false | 1,591 | py | # step 1: ask user for calculation to be performed
operation = input("Would you like to add/subtract/multiply/divide? ").lower( )
print( "You chose {}.".format(operation) ) # for testing purposes
# step 2: ask for numbers, alert order matters for subtracting and dividing
if operation == "subtract" or operation == "divi... | [
"siddartha.bommireddy@digital.homeoffice.gov.uk"
] | siddartha.bommireddy@digital.homeoffice.gov.uk |
e1612a00002719da9c77fc0035d86f29b67bf644 | 1e5c6f4b08d9470fce248cf39e6dccce40e90a41 | /codes/19/change_ifs_format.py | fc3a3020f4ad3bf752d5699bfb8d8619ede9f382 | [] | no_license | misaiya99/scipybook2 | 1529cfb7f800df2ef7ce024a86281af16e343a37 | 734ba177b4705cc25da695d42a8cbada7cd22bd9 | refs/heads/master | 2020-03-10T21:26:23.595494 | 2017-08-25T09:48:07 | 2017-08-25T09:48:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | # -*- coding: utf-8 -*-
import pickle
import numpy as np
f = file("IFS.data", "rb")
names = pickle.load(f)
data = []
for i in range(len(names)):
data.append( np.load(f).tolist())
f2 = file("ifs2.data", "wb")
pickle.dump(list(zip(names, data)), f2)
| [
"qytang326@gmail.com"
] | qytang326@gmail.com |
55b949d206aa1d21674acd41c27d4e095218cfdd | 98cc042117f1545d95e240a3a6e9afef0a2fedd7 | /datalad/metadata/parsers/base.py | 8789afee080fbdd5fcbaaece9854a589f409c1e6 | [
"MIT",
"BSD-3-Clause"
] | permissive | taylols/datalad | 23fb6a5a03591e25756d0dfa241413b1d03d19d1 | 8d1788b384fa9d998d4c6150c31def7f670c4f49 | refs/heads/master | 2022-02-19T17:55:20.450846 | 2018-01-05T17:15:17 | 2018-01-05T17:15:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | # emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
# ex: set sts=4 ts=4 sw=4 noet:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the datalad package for the
# copyright and license terms.
#
# ## ### ##... | [
"michael.hanke@gmail.com"
] | michael.hanke@gmail.com |
23c9ba644d6c01a7f88742c512bbbd0c427aaf93 | 9206e405e9be5f80a08e78b59d1cb79c519ae515 | /algorithms/10.7_missing_int.py | 02819c453c90cb2ea2f865c3ac0d0e4d5f768d27 | [] | no_license | mfbx9da4/mfbx9da4.github.io | ac4e34f0e269fb285e4fc4e727b8564b5db1ce3b | 0ea1a0d56a649de3ca7fde2d81b626aee0595b2c | refs/heads/master | 2023-04-13T22:15:19.426967 | 2023-04-12T12:14:40 | 2023-04-12T12:14:40 | 16,823,428 | 2 | 0 | null | 2022-12-12T04:36:08 | 2014-02-14T01:30:20 | SCSS | UTF-8 | Python | false | false | 3,180 | py | # An input file with four billion non-negative integers
# Generate an integer not contained by the file with 1GB of mem
# Follow up: what if all numbers are unique and you only
# have 10MB of memory
# p416
import random
import sys
max_64 = sys.maxsize
max_32 = 2**32 - 1
large_filename = 'large_number_of_ints.txt'
sm... | [
"dalberto.adler@gmail.com"
] | dalberto.adler@gmail.com |
c72fb5b1508d9c0e47997158cfac1eb710f45a26 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /XAMKeMw7imaB3zo67_13.py | b883127d748c08c5e3d1811aac0c0d4b8fb120fd | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py |
def trace_word_path(word, grid):
def test(w,a,b,ll):
if a<0 or b<0 or a>=len(grid) or b>=len(grid[0]) or (a,b) in ll: return []
if grid[a][b]!=w[0]: return []
if len(w)<2: return [(a,b)]
for i in range(4):
if i==0:
tmp=test(w[1:],a-1,b,ll+[(a,b)])
elif i==1:
t... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
d7df2514ee4f2af55e937be7c2202065dd427d44 | 29a4c1e436bc90deaaf7711e468154597fc379b7 | /modules/arithmetic/doc/sqr.py | c1896061ad4da0d5088b8c53e5f81a11c5ec3df2 | [
"BSL-1.0"
] | permissive | brycelelbach/nt2 | 31bdde2338ebcaa24bb76f542bd0778a620f8e7c | 73d7e8dd390fa4c8d251c6451acdae65def70e0b | refs/heads/master | 2021-01-17T12:41:35.021457 | 2011-04-03T17:37:15 | 2011-04-03T17:37:15 | 1,263,345 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,035 | py | [ ## this file was manually modified by jt
{
'functor' : {
'arity' : '1',
'call_types' : [],
'ret_arity' : '0',
'rturn' : {
'default' : 'typename boost::result_of<nt2::meta::arithmetic(T,T)>::type',
},
'simd_types' : ['real_'],
'typ... | [
"jtlapreste@gmail.com"
] | jtlapreste@gmail.com |
ee43c1ceeaaeb16ed860776f5d19480513714718 | 047e467917cc2614a63f48515d11bfa5647ad358 | /bpnet/plot/heatmaps.py | 04c3d94e5749059f5ac880bee020a786f5453012 | [
"MIT"
] | permissive | Scottmakie72/bpnet | e8052c77feb8c2f757ba581814b9ad6cb27d3721 | 0cba2515c15589f8439876c3028ce177544ee9cb | refs/heads/master | 2022-02-23T18:31:46.302341 | 2019-09-02T16:15:15 | 2019-09-02T16:15:15 | 250,239,695 | 1 | 0 | MIT | 2020-03-26T11:27:49 | 2020-03-26T11:27:48 | null | UTF-8 | Python | false | false | 6,733 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib as mpl
from mpl_toolkits.axes_grid1.axes_divider import make_axes_locatable
from mpl_toolkits.axes_grid1.colorbar import colorbar
from matplotlib import colors
from bpnet.plot.utils import MidpointNormalize
class QuantileTruncate... | [
"zigaavsec@gmail.com"
] | zigaavsec@gmail.com |
5abe4e81b57cf4a719ec1b46db196a11ad7279e1 | 6571b77f6e6f37d6df91a9cf0c34297a2bee1eb9 | /site-packages/django_filters/widgets.py | 71273067cebeced8bf0a13d9ab157326406e0fa5 | [
"Apache-2.0"
] | permissive | suntao789/Aclsm | ec02a04bb3ba14a1ea6a6c82a325da59d192d0f7 | 2202201c8279391386a4569e69f93d90eca5b96a | refs/heads/master | 2020-04-01T22:39:02.140836 | 2018-10-19T03:49:14 | 2018-10-19T03:49:14 | 153,719,890 | 0 | 0 | Apache-2.0 | 2018-10-19T03:11:46 | 2018-10-19T03:11:46 | null | UTF-8 | Python | false | false | 5,735 | py | from __future__ import absolute_import
from __future__ import unicode_literals
from collections import Iterable
from itertools import chain
try:
from urllib.parse import urlencode
except:
from urllib import urlencode # noqa
from django import forms
from django.db.models.fields import BLANK_CHOICE_DASH
from d... | [
"suntao789@huawei.com"
] | suntao789@huawei.com |
a7a264147c541b0bd26d2ec61751e182506f86d9 | 941c912f44beff33a072e086c1f561f6cdd64626 | /LeetCode/codes/Random/380.py | edddb84beba6a0dc20b0c03ff7747787b25659cb | [] | no_license | adreena/MyStudyCorner | 3a13a743769ed144965b767f547c16df4d0fa0dd | 355c0dbd32ad201800901f1bcc110550696bc96d | refs/heads/master | 2023-02-20T07:39:32.391421 | 2021-01-25T01:46:21 | 2021-01-25T01:46:21 | 255,104,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,416 | py | # time : O(1)
# space: O(N)
import random
class RandomizedSet:
def __init__(self):
"""
Initialize your data structure here.
"""
self.data = []
self.data_idx = defaultdict(lambda:-1)
def insert(self, val: int) -> bool:
"""
Inserts a value to the set. Ret... | [
"kim.hszd@gmail.com"
] | kim.hszd@gmail.com |
1795de05ea7fffb09adc945433f45f9ccf7a70e5 | 1bd14e051251d08393731c03ccfb37a324227e1c | /tests/canned/iam/test_canned_iam_for_ec2.py | 6ef63de5bd692eb58c1cdf704dcc5f0437b222c8 | [
"MIT"
] | permissive | tsuttsu305/troposphere_mate-project | f04bb6a3d137be3e265652c626008edfbb670b55 | 15ee94cc913efb32bc991979efcad943c992074c | refs/heads/master | 2023-06-07T15:07:47.041944 | 2021-07-05T02:02:00 | 2021-07-05T02:02:00 | 285,152,616 | 0 | 0 | MIT | 2020-08-05T02:08:01 | 2020-08-05T02:08:00 | null | UTF-8 | Python | false | false | 502 | py | # -*- coding: utf-8 -*-
import pytest
from troposphere_mate.canned.iam import CannedCommonEc2IamRole
def test():
can = CannedCommonEc2IamRole(
PROJECT_NAME="my_project",
STAGE="dev",
)
tpl = can.create_template()
assert can.iam_role_ec2_s3_full_access is not None
assert can.iam_i... | [
"husanhe@gmail.com"
] | husanhe@gmail.com |
6d0c7b923cd03dc1ebd00d71e3aff652e8fe40fe | 6aa8fd438e12e4e285d9b89be15e211e607821e0 | /.metadata/.plugins/org.eclipse.core.resources/.history/37/00bbfa0851aa00141441885f3a9b55b3 | c8408093efc3ba0346a327c9cdb03e9b5b77b39e | [] | no_license | phoenixproject/python | 2aa251c9fe9a3a665043d5f3d29d48c0f95b9273 | f8171d31d1d33a269d29374e7605a8f5bce6b5d6 | refs/heads/master | 2021-03-12T19:15:01.611936 | 2015-02-04T08:25:27 | 2015-02-04T08:25:27 | 30,287,884 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | #!/usr/bin/python3
def main():
funcao(5)
funcao(3)
funcao2(4)
funcao2()
def funcao(inicio):
for i in range(inicio,10):
print(i, end = ' ')
print()
def funcao2(inicio = 6):
for i in range(inicio,10):
print(i, end = ' ')
print()
if __name__ == "__main__" :... | [
"phoenixproject.erp@gmail.com"
] | phoenixproject.erp@gmail.com | |
329ea89cee88744fd323d5dcbb08aadd70796f68 | cefd6c17774b5c94240d57adccef57d9bba4a2e9 | /WebKit/Tools/Scripts/webkitpy/style/checkers/common_unittest.py | 8449b989ba3d42b8a46f20b8b30723adffd8dda0 | [
"BSL-1.0"
] | permissive | adzhou/oragle | 9c054c25b24ff0a65cb9639bafd02aac2bcdce8b | 5442d418b87d0da161429ffa5cb83777e9b38e4d | refs/heads/master | 2022-11-01T05:04:59.368831 | 2014-03-12T15:50:08 | 2014-03-12T15:50:08 | 17,238,063 | 0 | 1 | BSL-1.0 | 2022-10-18T04:23:53 | 2014-02-27T05:39:44 | C++ | UTF-8 | Python | false | false | 5,220 | py | # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org)
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and... | [
"adzhou@hp.com"
] | adzhou@hp.com |
024c549f319392d611692ce42b6b7f4c97d7b21c | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/73da2663a3d0129f1b329995fe72d2e1c74c4aae-<get_host_info_dict_from_instance>-fix.py | 428eeea9b87eb087cb4f0cabe245d3e0b822a208 | [] | 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,024 | py | def get_host_info_dict_from_instance(self, instance):
instance_vars = {
}
for key in vars(instance):
value = getattr(instance, key)
key = self.to_safe(('ec2_' + key))
if (key == 'ec2__state'):
instance_vars['ec2_state'] = (instance.state or '')
instan... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
036df0aa746ad7fecfa5b6e2cc6a5c8838772084 | 3b863f7e7efea09f5a120eb8c323e5a3742b82b3 | /DNA_Construction/DNA_ConstructionMed/DNA_ConstructionMed.pyde | 6eb99e012823392d7ca02dcfead15b85d3f66ccc | [] | no_license | TriceG/DNA_Project | b6096fbc91c35621b659dd5154a1972a9674d881 | 469df295120fbfe32070fd973c55f36b2af99341 | refs/heads/master | 2021-01-19T21:32:24.914550 | 2017-06-20T14:15:27 | 2017-06-20T14:15:27 | 88,661,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | pyde | from Shape_Classes import*
#phosphate group
phosphate = Circle(200, 400, 10)
#Sugar molecule
sugar = Pentagon(375, 400)
#amino acid
amino = Rectangle(530, 400, 28, 13)
minutes = 0
start = True
def setup():
size (800, 500)
ellipseMode(CENTER)
rectMode(CENTER)
#create a polygon with s... | [
"none@none"
] | none@none |
a92dd447f189a511b8441dbf4801e14097fe467c | c91eac635507950941003dd79a494a95cd39dc77 | /src/exceptions/exceptions.py | 7f87689399976acf0c1a600242b25e9669cc4a68 | [] | no_license | GabrielPenaU3F/confiabilidad-software | 29b064cc9f866c06833cf6afc0bc424fd20619c6 | c57572ec3f9fba01331718d892d94d720cc5d04d | refs/heads/master | 2023-03-19T01:47:40.939503 | 2021-03-17T02:03:39 | 2021-03-17T02:03:39 | 193,144,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | class ExceptionWithMessage(Exception):
def __init__(self, arg):
self.strerror = str(arg)
self.args = tuple(arg)
super().__init__()
class NotAdmittedFormatException(ExceptionWithMessage):
pass
class InvalidArgumentException(ExceptionWithMessage):
pass
class InvalidFitExceptio... | [
"gpena@untref.edu.ar"
] | gpena@untref.edu.ar |
f9da48dddbc1aefcaba92b272f261c45279c3946 | 67d8173a716da10a7350213d98938aae9f2115ce | /ProgrammingCourses/CS61A/week04/exam_prep_02.py | ba6e859cb03136814c34b20a47501001049ff505 | [] | no_license | jxie0755/Learning_Python | 94490d41bdf93acf8396f843328e38b6da310b0f | 143422321cbc3715ca08f6c3af8f960a55887ced | refs/heads/master | 2021-11-02T22:47:35.790239 | 2021-09-26T04:26:23 | 2021-09-26T04:26:23 | 101,445,132 | 0 | 2 | null | 2019-02-19T15:48:44 | 2017-08-25T22:00:16 | Python | UTF-8 | Python | false | false | 3,275 | py | """CS61A Exam Prep 02: Recursion & Lamda Functions"""
# Express yourself
def kbonacci(n, k):
"""Return element N of a K-bonacci sequence.
>>> kbonacci(3, 4)
1
>>> kbonacci(9, 4)
29
>>> kbonacci(4, 2)
3
>>> kbonacci(8, 2)
21
"""
if n < k - 1:
return 0
elif n == k ... | [
"30805062+jxie0755@users.noreply.github.com"
] | 30805062+jxie0755@users.noreply.github.com |
fdb2ab950b373515c3e9ecdc1eb3d8c1f1318b75 | 363f7c43dbbf36cec32c83a8d95d410d5715b39b | /7-kyu/sushi-go.py | 819544c231dc73139fab1fd80cbe10ac538ca89d | [] | no_license | artbohr/codewars-algorithms-in-python | cffc7c24d141c8ca1f313405486835cb74616009 | 1cb87c5b74076556ce649eb615dd2a3d3c51b437 | refs/heads/master | 2021-06-17T10:11:18.872347 | 2019-10-29T16:21:32 | 2019-10-29T16:21:32 | 104,100,778 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | def total_bill(s):
num = s.count('r')
return num * 2 if num <5 else (num - num // 5) * 2
'''
Sam has opened a new sushi train restaurant - a restaurant where sushi is served
on plates that travel around the bar on a conveyor belt and customers take the plate that they like.
Sam is using Glamazon's new visual ... | [
"bohrcs@gmail.com"
] | bohrcs@gmail.com |
265c489b63e1e6848a68187bb1975bcb6766fd95 | efd5d2e831bb9a22a4358f7db3d684f8e0e1e889 | /bitwise_and_of_numbers_range_201.py | 03062d07d95b581d5b2f29c8d5da146408ba68fe | [
"Apache-2.0"
] | permissive | danielsunzhongyuan/my_leetcode_in_python | b8112bac812fa0ea06121dec2c6c86d0a3d49e84 | 34d34280170c991ea7a28d74a3f2338753844917 | refs/heads/master | 2020-12-24T19:46:47.813091 | 2018-12-05T15:51:22 | 2018-12-05T15:51:22 | 56,480,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | """
Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all numbers in this range, inclusive.
Example 1:
Input: [5,7]
Output: 4
Example 2:
Input: [0,1]
Output: 0
"""
class Solution(object):
def rangeBitwiseAnd(self, m, n):
"""
:type m: int
:type n: int
... | [
"sunzhongyuan@lvwan.com"
] | sunzhongyuan@lvwan.com |
b5c6c510d1192fdfef21a15a7128b8ea522efbf6 | 8f080c90a6536ce9a66351dbdba7c6c839e31f4e | /server/conf/mssp.py | 8606a4a50f29a638a68c280cde78a67221e66605 | [
"MIT"
] | permissive | Reilena/arxcode | 358e9b21467c187e36cb47cd143d58842a5a6241 | e1a2006ee728f76ee0f1a7056d99d2fdfa8e4706 | refs/heads/stable_orphan | 2022-11-25T09:19:52.324389 | 2019-06-10T05:25:24 | 2019-06-14T13:22:06 | 148,411,502 | 5 | 7 | MIT | 2022-11-04T19:24:39 | 2018-09-12T02:47:55 | Python | UTF-8 | Python | false | false | 4,777 | py | """
MSSP (Mud Server Status Protocol) meta information
MUD website listings (that you have registered with) can use this
information to keep up-to-date with your game stats as you change
them. Also number of currently active players and uptime will
automatically be reported. You don't have to fill in everything
(and ... | [
"surly.mime@gmail.com"
] | surly.mime@gmail.com |
3e48c6dfc2e95ac82c49b0f7df885f1d83ff0582 | 849a174efea976d4daed419b85668c2ba05fd2b9 | /datastructures/linkedlist/singly/sum_last_n_nodes.py | 0e861631e4082ce98d56e2d459a94e2fbabaf10a | [] | no_license | samyuktahegde/Python | 61e6fedbdd2a94b29e4475621afa6d5e98bf49b8 | b02fa6e908661a918e0024f508df0192d5553411 | refs/heads/master | 2018-09-18T20:27:55.980689 | 2018-08-09T05:49:33 | 2018-08-09T05:49:33 | 116,491,078 | 0 | 0 | null | 2018-02-05T05:33:53 | 2018-01-06T14:52:16 | null | UTF-8 | Python | false | false | 910 | py | class Node:
def __init__(self, data):
self.data = data
self.next = None
class LinkedList:
def __init__(self):
self.head = None
def print_list(self):
temp = self.head
while(temp):
print(temp.data)
temp = temp.next
def push... | [
"noreply@github.com"
] | samyuktahegde.noreply@github.com |
2741cbf9e67792ce19740948ddc9cc46389b7ba9 | e0c56b4d18fa29e181af7751d2bea539a32ae738 | /aligulac/teamranks.py | 73ba72d12bb306991eeaa2309956544f634ccca1 | [] | no_license | Arzar/aligulac | 24a8beacd2d80b730633e6e7a15987d5c4c9a09d | 12dd057b723c87cb94554c859411c463852ab3e0 | refs/heads/master | 2021-01-15T18:36:06.783352 | 2013-07-01T19:59:07 | 2013-07-01T19:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,644 | py | #!/usr/bin/python
'''
This script recomputes the team rankings, all-kill or proleague.
./teamranks.py [ak|pl]
'''
# This is required to make Django imports work properly.
import os, sys
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "aligulac.settings")
from itertools import combinations
from random import shuffle... | [
"evfonn@gmail.com"
] | evfonn@gmail.com |
a89ab82f48b155c45a67446e90ebee541ce84bae | 0049d7959ff872e2ddf6ea3ce83b6c26512425a6 | /multiAppProject/multiAppProject/wsgi.py | bb30b29af872e357937d2958a77cf99afa956bd4 | [] | no_license | srazor09/Django_projects | 9806ab25d966af780cdabe652a1792220c7806a8 | 8d664ba4c9478bd93c8e5bcbcaf594e8ffe6ce93 | refs/heads/master | 2023-04-18T02:13:15.993393 | 2021-05-04T20:34:05 | 2021-05-04T20:34:05 | 364,379,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for multiAppProject 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJAN... | [
"sourabhaws09@gmail.com"
] | sourabhaws09@gmail.com |
b18b2790001d74354419da074d2886b2e2ca2ae8 | 18b977dccd70e9e5a1b553b28ab0413fb3f54f4b | /SoftUni/Python Developmen/Python-Advanced/lists_as_stacks_and_queues/5_hot_potato.py | 4f0020b2adc98b71d47aaefadc69ab4336a89bc6 | [] | no_license | stevalang/Coding-Lessons | 7203e3a18b20e33e8d596e3dfb58d26c50b74530 | 2d0060c2268ad966efdcae4e6e994ac15e57243a | refs/heads/master | 2023-06-05T08:28:33.290530 | 2021-06-16T19:37:29 | 2021-06-16T19:37:29 | 284,852,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | from collections import deque
def solve(people, n):
players = deque(people)
while len(players) > 1:
players.rotate(-n)
print(f"Removed {players.pop()}")
winner = players.pop()
print(f'Last is {winner}')
solve(input().split(' '), int(input())) | [
"rbeecommerce@gmail.com"
] | rbeecommerce@gmail.com |
320011f1755ad3e78df560279a7ee599f455ae8e | 4702d2b5aac63b8179b47d946837965664824406 | /configs/paa/paa_r101_fpn_1x_minicoco.py | c0a6ea8e0e0e6d0d2766c44700f8daa191b61dbf | [
"Apache-2.0"
] | permissive | ruiningTang/mmdetection | 551bf276ee581667703cbe89c2872dc8e7f43bb8 | 100b0b5e0edddc45af0812b9f1474493c61671ef | refs/heads/master | 2021-12-02T05:58:03.301831 | 2021-11-20T10:58:35 | 2021-11-20T10:58:35 | 387,680,731 | 0 | 0 | Apache-2.0 | 2021-07-20T05:20:10 | 2021-07-20T05:20:09 | null | UTF-8 | Python | false | false | 2,201 | py | _base_ = [
'../_base_/datasets/minicoco_detection.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
model = dict(
type='PAA',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_c... | [
"tangruining@zju.edu.cn"
] | tangruining@zju.edu.cn |
0cbdb4892a93179fc09b69b38c129ce95e1329df | 707bd0e873ae25146f1341b40d8efbf5134025af | /ln2xevents/filtermodels.py | 7784221527e92664a752719aaabbffe2e2644276 | [] | no_license | yosmangel/djangoLn2x | 76acd748adfddb5b21ad3e0342e3d7eb19b81bc9 | 24d068458e8271aacfa98d762c0dc117e65d41cf | refs/heads/master | 2021-04-27T07:55:36.488176 | 2017-06-01T17:48:26 | 2017-06-01T17:48:26 | 122,641,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,359 | py | from mezzanine.core.models import CONTENT_STATUS_PUBLISHED
from django.utils.translation import ugettext_lazy as _
from django import forms
from django.conf import settings
from django_filters import rest_framework as filters
from ln2xevents.models import EventPage, CoursePage, PageContent, \
LEVELS, REGIONFILTER
... | [
"yosmangel_yk@hotmail.com"
] | yosmangel_yk@hotmail.com |
396b0fa47098f767cbd5d682614362f84969b99f | d05b260a9f81e708298d907b94610550a39bced2 | /Source_Code/DeIdentify.py | d109b7613081512c4a9fad691b980cd4ce1f4621 | [
"MIT-0"
] | permissive | aws-samples/serverless-stream-processing-at-scale | 4608b08a8304028c19d4d3efde28665e2c27831f | 80720f8bfcd4c1f49a90311c421ec5785181a181 | refs/heads/master | 2020-08-27T12:07:26.999867 | 2019-12-03T23:17:16 | 2019-12-03T23:17:16 | 217,362,247 | 8 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | import json
import boto3
import os
from decimal import Decimal
print('Loading function')
dynamodb = boto3.resource('dynamodb', region_name='us-west-2')
firehose = boto3.client('firehose')
def lambda_handler(event, context):
# print IoT message
iot_msg = json.dumps(event)
print('Received event: ',iot_... | [
"noreply@github.com"
] | aws-samples.noreply@github.com |
f41f71f436f3abb5d5aa16f4c5eab45a7a96ac20 | 3d7f92b6de3a5dfab7cf4bc14783481124a00233 | /sandbox/team_members/pudumula/ros/ros_serial/build/rosserial/rosserial_msgs/catkin_generated/pkg.develspace.context.pc.py | 238d518d15808230a7a74c7379a1064549febd88 | [
"Apache-2.0"
] | permissive | Project-Heisenberg/quantum | ec24a262df8d39c56432a38c0a32aca5a3d8ee87 | f3ad8f4693007e45e80a88f928273adcfdc8529d | refs/heads/master | 2021-05-04T10:38:43.692806 | 2017-05-01T07:09:24 | 2017-05-01T07:09:24 | 54,696,027 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/neo/ros/ros_serial/devel/include".split(';') if "/home/neo/ros/ros_serial/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFI... | [
"you@example.com"
] | you@example.com |
7f717bdf86af9d795766de8d2aad2f239ca63c9e | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-compute/azure/mgmt/compute/v2018_10_01/models/storage_profile_py3.py | e3b5222965bb916597c0e97b3ab715b046672d8a | [
"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 | 2,421 | 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 |
e95f0ae0f274cc543657a96ce3d4226adfc38387 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=3.5_rd=1_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=91/params.py | 49c91e254bad8a2701700e2f8791e841eb918bdc | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.583905',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '1',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'GSN-EDF',
'trial': 91,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
dddd32db56f39b48919d8dcbc8ccb6a515bf949b | 714b3afd9089063c88c23c003807af825576c9e6 | /tests/test_factories.py | e13dd12e13a18b4642cceda694754ccd813fff12 | [
"MIT"
] | permissive | sdementen/piecash | db944267c1b0502ceb3ceda51688d4a75d89f747 | ec30cf469198cccf35f7ba968f889d360cfe1824 | refs/heads/master | 2022-12-30T05:57:06.631198 | 2021-10-19T08:42:33 | 2021-10-19T08:42:33 | 26,486,077 | 283 | 93 | NOASSERTION | 2023-02-28T17:15:03 | 2014-11-11T13:27:51 | Python | UTF-8 | Python | false | false | 5,752 | py | # coding=utf-8
from __future__ import unicode_literals
from datetime import datetime
from decimal import Decimal
import pytest
import pytz
import tzlocal
from piecash import GnucashException, Commodity
from piecash.core import factories
from test_helper import (
db_sqlite_uri,
db_sqlite,
new_book,
ne... | [
"sdementen@gmail.com"
] | sdementen@gmail.com |
ca234ceb876a8bdcce7b154ef0997cb9c4ea66bd | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_interdicting.py | 9fa3e465e94cb3647c1f7842c7f360caf13d9762 | [
"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 | 238 | py |
#calss header
class _INTERDICTING():
def __init__(self,):
self.name = "INTERDICTING"
self.definitions = interdict
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['interdict']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
78c0edf508be8ffa63e6a3b89a60f342f0e3aeac | 165753d576a230400ba4ae4cc3a4767748b3b5bf | /thespomat/__init__.py | a121004a7664007450088fe6ef5c6b3681b1bc30 | [] | no_license | snare/thespomat | 3ac792223044ac6fd8f853a254de7fd646c7068a | c9a85bf6e7ff971c8e1fa6f5a99e38d1e92bf60d | refs/heads/master | 2020-04-14T07:56:28.103980 | 2016-09-13T11:19:36 | 2016-09-13T11:19:36 | 68,084,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | import logging
import logging.config
import os
from scruffy import ConfigFile, File, PackageDirectory
from .main import main
config = ConfigFile('~/.thespomat.conf', defaults=File('config/default.cfg', parent=PackageDirectory()), apply_env=True)
config.load()
| [
"snare@ho.ax"
] | snare@ho.ax |
818c5776da2ee141af5c96bc55cbd41b4d926b3c | 3d589d1c56b55fbd2b45b03564b8a9442ebf142b | /lib/tests/unit/message/test_serializer.py | 314beeee5bd13e975a6baf3206dc336e4edf8240 | [
"Apache-2.0"
] | permissive | spotify/klio | 1aff27412e92c9d699259e5ab1eaeb39dc3e9571 | e625565708ed846201d2e05f782c0ce585554346 | refs/heads/develop | 2023-05-25T14:33:28.348335 | 2022-03-23T20:34:09 | 2022-03-23T20:34:09 | 285,928,366 | 815 | 57 | Apache-2.0 | 2023-05-24T21:07:09 | 2020-08-07T22:02:58 | Python | UTF-8 | Python | false | false | 5,385 | py | # Copyright 2019-2020 Spotify AB
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | [
"lynn@spotify.com"
] | lynn@spotify.com |
699d3d044d8b9ee067fbeb56484064f83c02587f | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_Cae_Montenegro_countingSheep.py | 082d7af0f162c0f60776ad35b29a6ae4820407eb | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 926 | py | def getDigitsFromNum(myinteger):
digits = []
number_string = str(myinteger)
for ch in number_string:
digits.append(ch)
return digits
def resolveProblem(problem):
digitsKnown = []
lastNumber = -1
multiplier = 1
while len(digitsKnown)<10 and problem*multiplier != lastNumber:
lastNumber=problem*multiplier
#... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
6e508dfee3027b172cba0f14e92d415d305ff62c | 1e9ad304868c2bda918c19eba3d7b122bac3923b | /kubernetes/client/models/v1beta1_scale.py | 57f00ac181efdcc94b04cc03c85e1ab9c7dc9856 | [
"Apache-2.0"
] | permissive | pineking/client-python | c77e5bd3d476ac852e6dffa96056008baa0f597f | 74a64d7325518f4298600d4bb300f92843c29347 | refs/heads/master | 2021-01-22T22:16:27.368406 | 2017-03-15T08:21:21 | 2017-03-15T08:21:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,000 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.5.1-660c2a2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
im... | [
"mehdy@google.com"
] | mehdy@google.com |
afa7787fd570a8f3ee66fce0febfc15478524917 | 72b5ed231d50ad31859ddd77e2f0ada8b1cdb6c4 | /code_new_start_2021/Mar/predictive_text.py | e545fddd7ade0146db8c246798ac56cdffd24d55 | [
"Apache-2.0"
] | permissive | dylanlee101/leetcode | bd0f284f5fec5e7a6f528afdd7608990b470cfaa | b059afdadb83d504e62afd1227107de0b59557af | refs/heads/master | 2023-04-14T01:55:05.547873 | 2021-04-21T00:41:16 | 2021-04-21T00:41:16 | 259,027,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | t9 = "22233344455566677778889999"
def letter_digit(x):
assert 'a' <= x and x <= 'z'
return t9[ord(x) - ord('a')]
def word_code(words):
return ''.join(map(letter_digit,words))
def predictive_text(dico):
freq = {}
for words,weights in dico:
prefix = ""
for x in words:
p... | [
"liwenyi@songguo7.com"
] | liwenyi@songguo7.com |
02fb1e4db028f9e3a0b4ca1d02fe75ac3d592dcb | 43ee54fd20e802c7c4189a2b5c6fde21bcb80115 | /kivy example app/service/main.py | d951f85c8d3eca3b4a32b30be901dd2ec88dc11e | [] | no_license | KeyWeeUsr/android-notification-buttons | 000fd514639f9a9e21cc96c7b2606e7fc40b0205 | 8a8491055842dbc03821925aa95253587fbf327c | refs/heads/master | 2023-08-26T01:06:28.922620 | 2016-07-31T14:34:26 | 2016-07-31T14:34:26 | 64,793,704 | 0 | 1 | null | 2016-08-02T21:27:46 | 2016-08-02T21:27:45 | null | UTF-8 | Python | false | false | 3,657 | py | from time import sleep
from kivy.utils import platform
from kivy.core.audio import SoundLoader
from kivy.lib import osc
from noti_builder.noti_builder import Notification_Builder
try:
from jnius import autoclass
except: pass
class M_Player:
def intent_callback(self,intent,*arg):
## BroadcastReceiver ca... | [
"atiskr@gmail.com"
] | atiskr@gmail.com |
38bd3342a88d766a08f9c382a7e4e0c45c1f49fe | 77d6f3a8d4935ca3fff581e0bb3f3f14b7db2e47 | /workbench/audit/migrations/0004_auto_20201017_1016.py | ff382a4b1a04d729044d3dac1eaa311b4b1d0f30 | [
"MIT"
] | permissive | jayvdb/workbench | 192705cf03eaaf96627b1bedde6c7eea6cf54ca7 | a591c8a8aa8266e31095fea23f3d541cee68a7f3 | refs/heads/main | 2023-02-21T16:05:01.855731 | 2021-01-24T16:44:00 | 2021-01-24T16:44:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # Generated by Django 3.1.2 on 2020-10-17 08:16
import io
import os
from django.conf import settings
from django.db import migrations
with io.open(os.path.join(settings.BASE_DIR, "stuff", "audit.sql")) as f:
AUDIT_SQL = f.read()
class Migration(migrations.Migration):
dependencies = [
("audit", "0... | [
"mk@feinheit.ch"
] | mk@feinheit.ch |
c2b6bfcb9bdadb5fe6c8e444ad793b0fe3c08e26 | a824114fcf7c64667aaaa023b52abac598eb419d | /src/CNN/other_files/conv1_plot.py | b94d16265d40e9ec0c850b212a57dc003f778217 | [] | no_license | satti007/FASHION_MNIST | d9195115b18146c284ce04e7f84da7c49500d32a | d71b67a0cafc0b451761f05bf3b818ae83bf0c5c | refs/heads/master | 2020-04-08T09:26:50.670371 | 2018-11-26T19:57:15 | 2018-11-26T19:57:15 | 159,224,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,992 | py | import os
import sys
import time
import random
import numpy as np
import tensorflow as tf
from data_prep import *
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
def load_weights1(save_dir,epoch):
f = np.load(save_dir+"/weights_"+str(epoch)+".npz")
initial_weights = [f[p] for p in sorted(f.fil... | [
"gsatishkumaryadav@gmail.com"
] | gsatishkumaryadav@gmail.com |
b4d2122b58af506ff68a3cbdd4b2aebf7a93ae9e | f819fe72c5b18b42a25a71dc2900c7fa80e17811 | /pandas/tests/extension/test_floating.py | ff0ff7399e3e67ab0fc2ca82e4dbe03d66ee563f | [
"BSD-3-Clause"
] | permissive | JMBurley/pandas | 34d101425acb0ac35a53bcf29fbd47c2d4c88fda | b74dc5c077971301c5b9ff577fa362943f3c3a17 | refs/heads/master | 2022-11-06T00:48:41.465865 | 2022-06-13T19:30:11 | 2022-06-13T19:30:11 | 229,853,377 | 1 | 0 | BSD-3-Clause | 2019-12-24T02:11:54 | 2019-12-24T02:11:53 | null | UTF-8 | Python | false | false | 5,332 | py | """
This file contains a minimal set of tests for compliance with the extension
array interface test suite, and should contain no other tests.
The test suite for the full functionality of the array is located in
`pandas/tests/arrays/`.
The tests in this file are inherited from the BaseExtensionTests, and only
minimal ... | [
"noreply@github.com"
] | JMBurley.noreply@github.com |
61eb7003ebd0696d8bdf54da27e8399d1642f45b | 3f0032fe2eccee8fbe0374d7334fe42b7e592b90 | /services/blueprints/summarizer/views.py | fbf8ed13bb7a932552f3d5b17e97a612c1423b7e | [
"MIT"
] | permissive | OpenKnowledgeMaps/headstart-ifs | 1264000cc996eda2d86d3d48168aefa8f81ffb84 | 95c3e7f7384d66c5b13d02ac26a00b30fbed3cb1 | refs/heads/master | 2021-06-15T07:11:16.867809 | 2019-02-03T12:52:56 | 2019-02-03T12:52:56 | 160,365,546 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,534 | py | import time
import uuid
import json
from flask import Blueprint, request, jsonify
from itertools import chain
import redis
import numpy as np
import igraph as ig
import pandas as pd
from sklearn.metrics.pairwise import cosine_similarity
from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer
from ... | [
"web@christopherkittel.eu"
] | web@christopherkittel.eu |
81030fc7c53544f0a3448941c05bf3cd34e2c314 | 5a8214b3a452c574e6c883bf5d90ba58ba87c461 | /leetcode/114.py | 7979268339f980ff3693f990a01e0ff2ef33e655 | [] | no_license | phlalx/algorithms | 69a3c8519687816e3c6333ec12b40659d3e3167f | f4da5a5dbda640b9bcbe14cb60a72c422b5d6240 | refs/heads/master | 2023-02-03T10:30:30.181735 | 2020-12-26T09:47:38 | 2020-12-26T09:47:38 | 129,254,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | #TAGS tree, linked list
# cool, TODO think simpler + iterative
class Solution:
def flatten(self, root: TreeNode) -> None:
"""
Do not return anything, modify root in-place instead.
"""
if root is None:
return
def f(root):
old_right = root.right
... | [
"phlalx@users.noreply.github.com"
] | phlalx@users.noreply.github.com |
da362e1a2ccac6d975e65a115a74bac478977887 | a52de6c29280c8c9932f2098acaf7d3c36218801 | /calendarApp/calendarApp/settings.py | 0bf69257bb8d524ffd9dd21384386a0113280f5e | [] | no_license | Chungking-express/LOTTE_Calendar | dd27ac377d073960a4f8407a492eec1208060281 | 005485309c3867866306c7196f3d01790953a0d3 | refs/heads/main | 2022-12-31T18:50:22.271213 | 2020-10-24T07:22:46 | 2020-10-24T07:22:46 | 304,044,664 | 0 | 0 | null | 2020-10-14T14:42:06 | 2020-10-14T14:42:05 | null | UTF-8 | Python | false | false | 3,207 | py | """
Django settings for calendarApp project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import o... | [
"jrimit@gmail.com"
] | jrimit@gmail.com |
adf79d1b8b14cf47cdcef7a181cc0a4fe8b30661 | 2110f7f13c20e20a2467ed09e87f86d2ee439cc3 | /doc/SConscript | cf0bcbbf989539e6c038d6df1811d3bc4aafe15a | [
"ISC",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain"
] | permissive | GeekGalaxy/imgcat | 8a148312b1bdca8410a3f065b1c72bd4fd1fdb7f | 794d2b1ff5bde9d94dad643e101d68409526a736 | refs/heads/master | 2021-01-18T04:56:11.109633 | 2014-12-20T13:22:28 | 2014-12-20T13:22:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | import os
manpage_builder = Builder(action='pandoc -sw man '
'''-Vdate="$$(date +'%B %d, %Y')" '''
'$SOURCE -o $TARGET')
env = Environment(BUILDERS={'Manpage': manpage_builder})
# Build from pandoc only if it exists.
if os.system('which pandoc') == 0:
... | [
"easantos@ualberta.ca"
] | easantos@ualberta.ca | |
684d7f7de6d6fc3a5859e040a6d55f949ffe919b | 7d5e694aba546c166004cab8e592a000fb7283ef | /PyQt5_Udemy/03_Advanced_Widgets/18_Paint_Event.py | 0396a45c6c4fc951279142c3cba7afe03a3ff489 | [] | no_license | OnurKaraguler/PyQt5 | 45ffe320911f25f2ad0e318de2c7e3851db7be0c | 909546b53c0f80c1eae27c660f47cd5ded3ff1a6 | refs/heads/master | 2022-12-21T09:06:24.063816 | 2020-09-24T14:54:11 | 2020-09-24T14:54:11 | 298,299,258 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | import sys, os
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import Qt
from PIL import Image
class Main(QMainWindow):
count = 0
def __init__(self,parent=None):
super(Main, self).__init__(parent)
self.setWindowTitle('Draw demo')
self.setGeometry(500,150,400,4... | [
"onurkaraguler@hotmail.com"
] | onurkaraguler@hotmail.com |
974b1e84271f21fdbfc78a9d309b654c2e6ca236 | 9a14ca300591f15133a1d3aade19bacd89ae5544 | /ToCluster_Optimize/OptimalProtocolGenerator_Full_105_15.py | 2a00ee055454520f2f3ceec198c538e6eb41d6ed | [] | no_license | StevenLarge/DiscreteControl_PythonCode | 68114fff5ec0b9263b9c9b65ab9589dd17e488f7 | 235bbc107ad313bb60f5355a112a7736e2e85a5c | refs/heads/master | 2020-03-16T19:58:26.983188 | 2018-05-18T19:33:57 | 2018-05-18T19:33:57 | 132,936,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,819 | py | #This python script generates the Fully-Optimal protocols Discrete nonequilibrium control simulations
#
#Steven Large
#March 5th 2018
import numpy as np
import scipy.optimize
import os
import OptimizeFull as FullOpt
import WriteData
WritePathBase = "Protocols_"
NumberCPVals = [5,6,7,8,9,10,11,12,13,14,15,16,17,18,... | [
"stevelarge7@gmail.com"
] | stevelarge7@gmail.com |
fbd4b941754e32c2a8e4a5685408aff84e66fa37 | cc65020ac0a4b42d7cb0b73616c0d1329be0a21a | /questionnaire/management/commands/slugify_questions.py | 72e53357003907bdebaf7322c6c891b342ab8a19 | [] | no_license | Sashkow/ukrainian-party-policy-constructor | e8c7ed118b6d2ef3ac23326ab8285978e0464c33 | 8ef7eaae81275681dc1a5547ca9fbca642ae08c8 | refs/heads/master | 2021-06-12T01:37:44.818950 | 2019-08-01T12:59:45 | 2019-08-01T12:59:45 | 162,290,445 | 0 | 1 | null | 2021-06-10T21:04:09 | 2018-12-18T13:12:41 | JavaScript | UTF-8 | Python | false | false | 523 | py | from django.core.management.base import BaseCommand, CommandError
from questionnaire.models import QuestionAnswer
from slugify import slugify
class Command(BaseCommand):
help = 'Closes the specified poll for voting'
# def add_arguments(self, parser):
# parser.add_argument('poll_id', nargs='+', type=i... | [
"lykhenko.olexandr@gmail.com"
] | lykhenko.olexandr@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.