blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
03ee6fef65bbecbcfb72a1edbca2a4ffdc375464 | 6e95e9b6a1fc996ebcb46c44d4ef7678f762e4f7 | /others/taobao_spider/mall_spider/dao/stream_risk_dao.py | e17df8126a46bc1bddc641d35ae14a29a1e88304 | [
"Apache-2.0",
"Unlicense"
] | permissive | 625781186/lgd_spiders | 3a4d6917a01e446136e7aef4c92b9b7a1f8e498d | 1c8680115beb42f4daaf6be71bf3fb14fcc2c255 | refs/heads/master | 2020-08-29T13:21:12.116395 | 2019-10-21T14:28:00 | 2019-10-21T14:28:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | # coding: utf-8
from mall_spider.dao.abstract_dao import AbstractDao
from mall_spider.model.cmm_sys_stream_risk import CmmSysStreamRisk
class StreamRiskDao(AbstractDao):
def __init__(self, session):
super(StreamRiskDao, self).__init__(CmmSysStreamRisk, session)
def get_stream_risk_dao(session):
retu... | [
"lgdupup"
] | lgdupup |
6b6cdf44a91d1751f840441b39d2145aa1c179ac | 17e3234ab01fd93233cc453f1495d50424c3bd8f | /latte/model/document.py | 8419105d4b744bd76767d78278b973d54cda5eff | [
"MIT"
] | permissive | sunnyakaxd/latte | 8943dbf70ce934e04e51b147a54e6dd02dfe43db | de74065122a1f858bd75f8e1a36fca3b23981f4c | refs/heads/master | 2023-06-11T10:25:31.217047 | 2021-07-06T06:40:19 | 2021-07-06T06:40:19 | 383,363,137 | 0 | 0 | NOASSERTION | 2021-07-06T06:26:49 | 2021-07-06T06:26:49 | null | UTF-8 | Python | false | false | 1,117 | py | import frappe
from latte.utils.caching import cache_in_mem
from frappe.model.document import Document
from frappe.modules import get_module_app
core_doctypes_list = {'DocType', 'DocField', 'DocPerm', 'User', 'Role', 'Has Role',
'Page', 'Module Def', 'Print Format', 'Report', 'Customize Form',
'Customize Form Field',... | [
"himanshu.mishra@elastic.run"
] | himanshu.mishra@elastic.run |
61c630c46586944235dd0849ee23b9c1d6aaf0fa | 80fde3202f307907f47942ab634e687ba134f8f6 | /numDivisors.py | 5ebaa3eca2ca5a8b313df4352cc573234777d668 | [] | no_license | wuhao007/CS005 | f36e1db20c9ba6ffa6f9cad3f9c8a2d0d5e29d86 | 356fe7c765bb0320012fefcad6802d01034c8d6e | refs/heads/master | 2021-01-10T01:17:52.407826 | 2015-10-02T18:32:18 | 2015-10-02T18:32:18 | 43,552,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | def numDivisors(N):
cnt = 0
for i in range(1, N + 1):
if N % i == 0:
cnt += 1
return cnt
print numDivisors(42)
| [
"tohaowu@gmail.com"
] | tohaowu@gmail.com |
4e3679bb808d207156fbd15843185f01538c7e43 | d1ad7bfeb3f9e3724f91458277284f7d0fbe4b2d | /django/010-django-reset-password/reset_project/wsgi.py | 8297cf0f353e71fb8f4c7087b49ac0c83e415055 | [] | no_license | qu4ku/tutorials | 01d2d5a3e8740477d896476d02497d729a833a2b | ced479c5f81c8aff0c4c89d2a572227824445a38 | refs/heads/master | 2023-03-10T20:21:50.590017 | 2023-03-04T21:57:08 | 2023-03-04T21:57:08 | 94,262,493 | 0 | 0 | null | 2023-01-04T21:37:16 | 2017-06-13T22:07:54 | PHP | UTF-8 | Python | false | false | 403 | py | """
WSGI config for reset_project project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO... | [
"qu4ku@hotmail.com"
] | qu4ku@hotmail.com |
a4200c57dae36d5af30cee1b8c81e3c92d7571e0 | f4b8c90c1349c8740c1805f7b6b0e15eb5db7f41 | /starrez_client/models/transaction_link_item.py | 922c4f9ce7526c09ef8bf88113ddd2e06c2be328 | [] | no_license | CalPolyResDev/StarRezAPI | 012fb8351159f96a81352d6c7bfa36cd2d7df13c | b184e1863c37ff4fcf7a05509ad8ea8ba825b367 | refs/heads/master | 2021-01-25T10:29:37.966602 | 2018-03-15T01:01:35 | 2018-03-15T01:01:35 | 123,355,501 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,379 | py | # coding: utf-8
"""
StarRez API
This is a way to connect with the StarRez API. We are not the developers of the StarRez API, we are just an organization that uses it and wanted a better way to connect to it. # noqa: E501
OpenAPI spec version: 1.0.0
Contact: resdev@calpoly.edu
Generated by: https... | [
"fedorareis@gmail.com"
] | fedorareis@gmail.com |
4395fe834aa754dcda8bbe4e55a02a11bded8ecb | 0d6acb47bb8c210a2dacab8f4b75c453eab367fc | /windflow/web/__init__.py | a1d664d66a2a33baf05542209bc0c0a224cc29a9 | [
"Apache-2.0"
] | permissive | hartym/windflow | b4646e1f5c8cbb69572960b6d3ba3e38cd59c7b4 | 69a2aeb3ab9d5bdfcd1d2ce8d5c9af14876cba23 | refs/heads/master | 2022-12-10T07:07:35.200253 | 2018-04-24T06:34:20 | 2018-04-24T06:34:20 | 68,578,411 | 2 | 0 | Apache-2.0 | 2022-12-08T02:17:35 | 2016-09-19T07:04:13 | Python | UTF-8 | Python | false | false | 318 | py | from .application import ApplicationFactory
from .handler import ErrorHandler, FallbackHandler, RedirectHandler, RequestHandler, StaticFileHandler
from .package import PackageConfig
__all__ = [
ApplicationFactory, PackageConfig, ErrorHandler, FallbackHandler, RedirectHandler, RequestHandler, StaticFileHandler
]
| [
"romain@dorgueil.net"
] | romain@dorgueil.net |
fa66c369bb508c4712b185cfe27f55431ee02682 | 84d581219b8065cf8936070a7f1e1766000378df | /code/analysis/pooled_cutting_probability.py | 8bfc11fed5069c39bbf8c174ae14209e22bc7993 | [
"MIT",
"CC-BY-4.0"
] | permissive | RPGroup-PBoC/vdj_recombination | 939e72539a134a61cc5aa8386b3a31f6de954d26 | a59214f878968e5958915b56983b0f52a0a0483e | refs/heads/publication | 2023-07-18T22:52:07.149767 | 2020-05-19T18:12:11 | 2020-05-19T18:12:11 | 187,516,995 | 0 | 0 | MIT | 2023-07-06T21:42:29 | 2019-05-19T19:05:04 | HTML | UTF-8 | Python | false | false | 2,438 | py | # -*- coding: utf-8 -*-
#%%
import numpy as np
import pandas as pd
from scipy.special import gammaln, logsumexp
import vdj.io
# Define the posterior distribution
def log_posterior(N, n, p):
binom_coeff = gammaln(N + 2) - gammaln(n + 1) - gammaln(N - n + 1)
bernoulli = n * np.log(p) + (N - n) * np.log(1 - p)
... | [
"gchure@caltech.edu"
] | gchure@caltech.edu |
d79c8d41011aff3cb8f7555f1996b1140bae156e | 3dc7476dc7c77e2db6d6def77656fa7d9fbfd70b | /es_search_server/utils/response.py | 6ec5d60cdca47b546e4057f2bc1385aa1438367b | [] | no_license | PrimaryCY/es_search | df76608554acb7d3de664a6d696b737c84043df2 | 0f0f0095c6f8bcb70363a08859143788cde595ae | refs/heads/master | 2022-05-01T13:42:37.177546 | 2019-09-20T01:58:11 | 2019-09-20T01:58:11 | 206,211,180 | 2 | 0 | null | 2022-04-22T22:17:07 | 2019-09-04T02:13:49 | Python | UTF-8 | Python | false | false | 177 | py | # -*- coding: utf-8 -*-
# author:CY
# datetime:2019/9/2 14:38
from rest_framework.response import Response as rest_response
def Response(success):
return rest_response()
| [
"907031027@qq.com"
] | 907031027@qq.com |
bc90649f5ec543016a3d07ddbf7a015e6afdcbab | 64d8d80c9a292f1552190af17cf1fe984968d5dc | /python/8kyu/8kyu - Find the Integral.py | b1f0f30f7ff3dbe1ca3eb419b49842861579a738 | [] | no_license | zurgis/codewars | 3acc880e0f3a40fc77532bcac537452d419fc268 | 045d74d6a36f4bc8a69a76dd3f21fef22c338ca2 | refs/heads/master | 2021-04-20T22:47:45.833147 | 2020-05-19T14:01:55 | 2020-05-19T14:01:55 | 249,723,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # Create a function that finds the integral of the expression passed.
# In order to find the integral all you need to do is add one to the exponent (the second argument), and divide the coefficient (the first argument) by that new number.
# For example for 3x^2, the integral would be 1x^3: we added 1 to the exponent,... | [
"khdr437@gmail.com"
] | khdr437@gmail.com |
4ba9fe01657cd40cc9d5b981851b0865b33f009c | 7ae20e08e736e6df546cb5a80df2baf067686b52 | /tasks/sprint-7/I - Difficult Flower Field/difficult_flowers_field.py | eb6d20053b6ffcf096f0495be298410867927884 | [] | no_license | Grey2k/yandex.praktikum-alghoritms | faf466374c932733cc1c5049a2df719d8fd33ac7 | 97b1b4858265b44266a33b834e1e9a1349739048 | refs/heads/master | 2023-08-28T02:46:16.502298 | 2021-09-28T19:08:35 | 2021-09-28T19:08:35 | 334,646,281 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | def main():
m, n = map(int, input().strip().split())
field = [[0] * (n + 1) for _ in range(m + 1)]
for i in range(m):
field[i] = [0] + list(map(int, list(input())))
max_flowers = [[0] * (n + 1) for _ in range(m + 1)]
for i in range(m - 1, -1, -1):
for j in range(1, n + 1):
... | [
"grey2k@gmail.com"
] | grey2k@gmail.com |
2d978348ee4672b0963e7c7d9958a80a88450a58 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/contrib/cudnn_rnn/python/layers/__init__.py | d495612cfc615c2f763751db409c7c0b573545a1 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:62b2d744bbb662483493f43c82f3f51e92288172594a1856399233b206330aee
size 1977
| [
"github@cuba12345"
] | github@cuba12345 |
cdfb37ec62efdee948d97737c5a052752f994c33 | bb1c30864fc963f61bbab0a71d206fbe6447fd09 | /test_autolens/integration/tests/features/aggregator/meta_dataset.py | f30255e6da92ac4286275157b74a8dc88dc268bf | [
"MIT"
] | permissive | pranath-reddy/PyAutoLens | c39c1aa413985c0a280da1b95e6cb55537f769cc | bcfb2e7b447aa24508fc648d60b6fd9b4fd852e7 | refs/heads/master | 2022-05-28T15:41:26.881648 | 2020-05-04T20:02:45 | 2020-05-04T20:02:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | import autofit as af
import autolens as al
from test_autolens.integration.tests.imaging import runner
import os
test_type = "features"
test_name = "agg_meta_dataset"
data_type = "lens_light_dev_vaucouleurs"
data_resolution = "lsst"
def make_pipeline(name, phase_folders, non_linear_class=af.MultiNest):
phase1 = ... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
c075158d140a9be2b70d92ffc5bc259d8db9447c | 60d1a67f71d87db55feaa9424081ba74e5c4da0c | /third_party/spider/preprocess/get_tables.py | a8b36f0a61d57b01836cf0b64539c442769f80b6 | [
"MIT"
] | permissive | ashutoshbsathe/tensor2struct-public | 4313308398164f2f2576aec9d55b48c834c0325b | cfcafa94f10565bc25a72c172a9e58dfa4170fe7 | refs/heads/main | 2023-08-03T09:04:29.269648 | 2021-09-18T09:34:13 | 2021-09-18T09:34:13 | 407,810,567 | 0 | 0 | MIT | 2021-09-18T09:03:56 | 2021-09-18T09:03:55 | null | UTF-8 | Python | false | false | 5,440 | py | import os
import sys
import json
import sqlite3
from os import listdir, makedirs
from os.path import isfile, isdir, join, split, exists, splitext
from nltk import word_tokenize, tokenize
import traceback
EXIST = {"atis", "geo", "advising", "yelp", "restaurants", "imdb", "academic"}
def convert_fk_index(data):
fk_... | [
"bailin.wang28@gmail.com"
] | bailin.wang28@gmail.com |
7fdfb3db67ff04f4dce3756492f0cfb73cdcdfd3 | 4cd9f5714b8a1aab06150d176d81e37edb763ccc | /scale_den.py | 6ab138db8bcf9984f0bee400a3765a2433a776a9 | [] | no_license | SENSEI-insitu/IAMR_write_back | b53f9b3148bb09832df653cbba786f359a523bbd | 1d5f7dcb69451289e085f5f1dce43c58d61cf522 | refs/heads/master | 2022-10-09T07:07:10.824237 | 2020-06-11T20:17:01 | 2020-06-11T20:17:01 | 267,128,442 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,037 | py | import sys
import numpy as np
import vtk.util.numpy_support as vtknp
from vtk import vtkDataObject, vtkCompositeDataSet, vtkMultiBlockDataSet
# set default values of control parameters
# these can be modified by the XML
meshName = 'mesh'
arrayName = 'density'
arrayCen = vtkDataObject.CELL
threshold = 1.5
multiplier = ... | [
"bloring@lbl.gov"
] | bloring@lbl.gov |
94a274d233d7574dfc211a995137ab7684b7f732 | c9f1fc59cf8f41438fef7dcb0552b437c746b3a4 | /pulsar/scripts/_configure_galaxy_cvmfs.py | e732230a29fd60eeae90fd028ed724284be5b294 | [
"Apache-2.0"
] | permissive | galaxyproject/pulsar | dccaa6d66855fb27d3ef3abe32d65b801cab5b25 | 9b86949aebc17a86318c582e8d8a969d076cb83d | refs/heads/master | 2023-09-01T07:10:37.342797 | 2023-08-29T17:33:18 | 2023-08-29T17:33:18 | 21,017,585 | 35 | 42 | Apache-2.0 | 2023-09-14T17:43:55 | 2014-06-19T22:20:08 | Python | UTF-8 | Python | false | false | 514 | py | import shutil
import pkg_resources
def main():
config_path = pkg_resources.resource_filename('pulsar.scripts', 'cvmfs_data/default.local')
key_path = pkg_resources.resource_filename('pulsar.scripts', 'cvmfs_data/data.galaxyproject.org.pub')
domain_path = pkg_resources.resource_filename('pulsar.scripts', ... | [
"jmchilton@gmail.com"
] | jmchilton@gmail.com |
314ab1deef87c539704913e18425e02e198c27d7 | f71aecb0e91fe877af3ec652c7f6753a1e7b5ccd | /SortArrayByParityII_922.py | 6dfde1d2b3a07de5b4fa52241462c6b74295cb1d | [] | no_license | 953250587/leetcode-python | 036ad83154bf1fce130d41220cf2267856c7770d | 679a2b246b8b6bb7fc55ed1c8096d3047d6d4461 | refs/heads/master | 2020-04-29T12:01:47.084644 | 2019-03-29T15:50:45 | 2019-03-29T15:50:45 | 176,122,880 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | """
Given an array A of non-negative integers, half of the integers in A are odd, and half of the integers are even.
Sort the array so that whenever A[i] is odd, i is odd; and whenever A[i] is even, i is even.
You may return any answer array that satisfies this condition.
Example 1:
Input: [4,2,5,7]
Output: [4,5,... | [
"953250587@qq.com"
] | 953250587@qq.com |
52bcf7958afe08d44c4d2d9bbe17016058034612 | c0ec0437d945e792cb581c6fb47381394d1cf174 | /docs/conf.py | 4caf1b905cbc73aaff685e131a569165518dda4f | [
"MIT"
] | permissive | pombredanne/javaproperties | 6fee424034532a611dff34f4b94fe4e8cf171dc8 | aa1fe631299885a6b6843366ab070b2dc5742775 | refs/heads/master | 2022-06-23T03:32:28.658054 | 2022-05-28T09:58:46 | 2022-05-28T09:58:46 | 79,591,439 | 0 | 0 | MIT | 2021-06-01T11:47:27 | 2017-01-20T19:39:13 | Python | UTF-8 | Python | false | false | 1,147 | py | from javaproperties import __version__
project = "javaproperties"
author = "John T. Wodder II"
copyright = "2016-2021 John T. Wodder II"
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
"sphinx.ext.todo",
"sphinx.ext.viewcode",
"sphinx_copybutton",
]
autodoc_default_options = {
... | [
"git@varonathe.org"
] | git@varonathe.org |
06591b700aa4c660f8c204254c191920c75efd68 | 0ddcfcbfc3faa81c79e320c34c35a972dab86498 | /tests/test_best_time_to_buy_and_sell_stock_iii.py | 9af3ab0fea4b80bf848ad92cd641ccb035ff609b | [] | no_license | IvanWoo/coding-interview-questions | 3311da45895ac4f3c394b22530079c79a9215a1c | 1312305b199b65a11804a000432ebe28d1fba87e | refs/heads/master | 2023-08-09T19:46:28.278111 | 2023-06-21T01:47:07 | 2023-06-21T01:47:07 | 135,307,912 | 0 | 0 | null | 2023-07-20T12:14:38 | 2018-05-29T14:24:43 | Python | UTF-8 | Python | false | false | 347 | py | import pytest
from puzzles.best_time_to_buy_and_sell_stock_iii import max_profit
@pytest.mark.parametrize(
"prices, expected",
[
([1, 2, 3, 4, 5], 4),
([3, 3, 5, 0, 0, 3, 1, 4], 6),
([7, 6, 4, 3, 1], 0),
([1], 0),
],
)
def test_max_profit(prices, expected):
assert max_... | [
"tyivanwu@gmail.com"
] | tyivanwu@gmail.com |
cff93d17753f89ee43b452e3160f5515d579820e | f6bba50fccc6fb0dae2f046193434cfb4b9d32d5 | /abc112/a/main.py | 57ccabd3c6a116f586b862e9f7f29d99c8b06aa1 | [] | no_license | seven320/AtCoder | 4c26723d20004fe46ce118b882faabc05066841c | 45e301e330e817f1ace4be4088d3babe18588170 | refs/heads/master | 2021-11-22T22:57:32.290504 | 2021-10-24T09:15:12 | 2021-10-24T09:15:12 | 162,827,473 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | #!/usr/bin/env python3
# encoding:utf-8
import copy
import random
import bisect #bisect_left これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math
import sys
import collections
from decimal import Decimal # 10進数で考慮できる
mod = 10**9+7
sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000
d = collections.deque()
def LI()... | [
"yosyuaomenw@yahoo.co.jp"
] | yosyuaomenw@yahoo.co.jp |
26d1ef2d6854cced8beb7ef608d3ac0d91b118f0 | 79c7a0783c302c9fa7dc6dfdc4edd5f7af3d4687 | /app/models.py | de5f67bbcba912af0f1ae4b7f059f1983951a06f | [] | no_license | IngabireTina/News_App | 2de457bc612ccd71fd020fa0e211915aa3a154e7 | adfb3d3dcae74b7df455952b329e83f2d91c3f57 | refs/heads/master | 2023-04-08T18:17:27.747912 | 2021-03-22T13:46:05 | 2021-03-22T13:46:05 | 348,629,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | class News_Source:
#newssource class to define news objects
def __init__(self,id,name,url,category):
self.id = id
self.name = name
self.url = url
self.category = category
class News_Article:
#newsarticle class to define article objects
def __... | [
"ingabire067@gmail.com"
] | ingabire067@gmail.com |
d9685ab3f99c2413523afa55f11813bf925a10a1 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/refactoring/introduceVariable/rightSubstring.after.py | 13d798896fef27460072c45f962e2c61836ec1a3 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 40 | py | a = "world"
print("hello " + a + suffix) | [
"andrey.vlasovskikh@jetbrains.com"
] | andrey.vlasovskikh@jetbrains.com |
9ac62afd1ddf55385fd58953c891e442a22ebeb5 | bd185738ea6a74d1e76d9fc9d8cbc59f94990842 | /onadata/apps/restservice/signals.py | b6b9d932cb38e849be05661b005efd6b8d63d244 | [
"BSD-2-Clause"
] | permissive | aondiaye/myhelpline | c4ad9e812b3a13c6c3c8bc65028a3d3567fd6a98 | d72120ee31b6713cbaec79f299f5ee8bcb7ea429 | refs/heads/master | 2020-12-22T05:32:59.576519 | 2019-10-29T08:52:55 | 2019-10-29T08:52:55 | 236,683,448 | 1 | 0 | NOASSERTION | 2020-01-28T07:50:18 | 2020-01-28T07:50:17 | null | UTF-8 | Python | false | false | 779 | py | # -*- coding=utf-8 -*-
"""
RestService signals module
"""
import django.dispatch
from django.conf import settings
from onadata.apps.restservice.tasks import call_service_async
ASYNC_POST_SUBMISSION_PROCESSING_ENABLED = \
getattr(settings, 'ASYNC_POST_SUBMISSION_PROCESSING_ENABLED', False)
# pylint: disable=C0103... | [
"patrickmithamo@gmail.com"
] | patrickmithamo@gmail.com |
2330c64f52c0e3239b0ac0363079bd774f0f079c | e1be98f0427b07fac1bb852bdf34898c01f987ee | /2three_layer/forward_neural_network.py | c03d8daee4ea2f02dfcefc5a8097066903e46970 | [] | no_license | darr/neural_network | d73aef008a72bf57d9ab995e351958d7243d3886 | 94d5215af5b3c640015103a9209fd47c8059b4fe | refs/heads/master | 2020-04-14T04:33:06.901938 | 2019-01-12T08:02:13 | 2019-01-12T08:02:13 | 163,638,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,730 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#####################################
# File name : forward_neural_network.py
# Create date : 2018-12-25 20:04
# Modified date : 2019-01-12 15:20
# Author : DARREN
# Describe : not set
# Email : lzygzh@126.com
#####################################
from __future__ import divisio... | [
"lzygzh@126.com"
] | lzygzh@126.com |
a72f1917eccfcd2714906e76e0dd621c6a307a7b | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res/scripts/common/dossiers2/common/__init__.py | 1467e75c9d53270f4c39a510e7e20173da1fa15a | [] | no_license | webiumsk/WOT-0.9.15-CT | 3fa24ab37a6c91b7073034afb2f355efa5b7fe36 | fbd194fbaa6bdece51c7a68fc35bbb5257948341 | refs/heads/master | 2020-12-24T21:27:23.175774 | 2016-05-01T13:47:44 | 2016-05-01T13:47:44 | 57,600,180 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 341 | py | # 2016.05.01 15:26:21 Střední Evropa (letní čas)
# Embedded file name: scripts/common/dossiers2/common/__init__.py
pass
# okay decompyling c:\Users\PC\wotsources\files\originals\res\scripts\common\dossiers2\common\__init__.pyc
# decompiled 1 files: 1 okay, 0 failed, 0 verify failed
# 2016.05.01 15:26:21 Střední Evropa... | [
"info@webium.sk"
] | info@webium.sk |
96fe6ac6b4c92a2dffa4420cef11ff7fbd54124b | 35b6013c1943f37d1428afd2663c8aba0a02628d | /functions/pubsub/main.py | 1fb706fd3964de8fb235402016c3afa4ccd92ebc | [
"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 | 2,051 | py | # Copyright 2020 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, s... | [
"noreply@github.com"
] | GoogleCloudPlatform.noreply@github.com |
907abfa0dc525105f1d7f3e417a1697680588273 | f7b1e7ea069908eece4821a8fffc87f148940976 | /old_examples/sac_agent.py | eadcefbb637faf2cd5859392fa74d4287a31d33d | [] | no_license | benblack769/rlflow | 5451fbc53000c7ee2bd8ec571df876275209d9dd | 4d504b91556f23c522915f3d6390ea5a3a6169a7 | refs/heads/master | 2023-03-07T18:24:04.957426 | 2021-02-23T00:12:52 | 2021-02-23T00:12:52 | 271,938,665 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,317 | py | from torch.optim import Adam
from torch.optim.lr_scheduler import CosineAnnealingLR
from torch import nn
import torch
import torch as th
from torch.nn import functional as F
from stable_baselines3.common.utils import polyak_update
def mean(items):
return sum(items)*(1./len(items))
def convert_size(space):
ass... | [
"weepingwillowben@gmail.com"
] | weepingwillowben@gmail.com |
9e4ee3960754e904198526a8c805b4f7bbcf9a8e | 0fc4f615115fe2da514f17530cc46555dd0f14c3 | /flex/loading/schema/__init__.py | 38a2463fdde84789b376972f458e8b05f0ac9080 | [
"MIT"
] | permissive | ossdev07/flex | c63469e00412a070bea2acaa6b652792bf891280 | 7486c2295dee87ae0663a35820c749ce4cf42989 | refs/heads/master | 2020-11-27T01:51:16.238689 | 2019-12-05T05:40:53 | 2019-12-05T05:40:53 | 229,262,607 | 0 | 0 | MIT | 2019-12-20T12:39:54 | 2019-12-20T12:39:53 | null | UTF-8 | Python | false | false | 1,545 | py | from flex.constants import (
OBJECT,
)
from flex.datastructures import (
ValidationDict,
)
from flex.validation.common import (
generate_object_validator,
)
from flex.loading.common.mimetypes import (
mimetype_validator,
)
from .info import info_validator
from .swagger import swagger_version_validator
f... | [
"piper@simpleenergy.com"
] | piper@simpleenergy.com |
ff499a6600f7a986d6cccf34a2140ac352fc5ef0 | b3f6daa5d6c987eb8a61d5fe125bf2a98997e259 | /6kyu/One down/index.py | c3e10918994d01845e467447c7fe801c80ac4ade | [] | no_license | krnets/codewars-practice | 53a0a6c9d2d8c2b94d6799a12f48dd588179a5ce | 5f8e1cc1aebd900b9e5a276884419fc3e1ddef24 | refs/heads/master | 2022-12-20T19:33:43.337581 | 2022-12-16T05:32:39 | 2022-12-16T05:32:39 | 217,464,785 | 1 | 0 | null | 2020-07-20T08:36:31 | 2019-10-25T06:20:41 | JavaScript | UTF-8 | Python | false | false | 2,355 | py | # 6kyu - One down
""" A very passive-aggressive co-worker of yours was just fired.
While he was gathering his things, he quickly inserted a bug into your system which renamed everything to what looks like jibberish.
He left two notes on his desk, one reads: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
wh... | [
"cmantheo@gmail.com"
] | cmantheo@gmail.com |
e6d9b1b2a93749c5c254b4cc7b037622251cd055 | 26f6313772161851b3b28b32a4f8d255499b3974 | /Python/284_PeekingIterator.py | 2c99c4ed46b617564c046ccc21ffa25eebb08327 | [] | no_license | here0009/LeetCode | 693e634a3096d929e5c842c5c5b989fa388e0fcd | f96a2273c6831a8035e1adacfa452f73c599ae16 | refs/heads/master | 2023-06-30T19:07:23.645941 | 2021-07-31T03:38:51 | 2021-07-31T03:38:51 | 266,287,834 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,887 | py | """
Given an Iterator class interface with methods: next() and hasNext(), design and implement a PeekingIterator that support the peek() operation -- it essentially peek() at the element that will be returned by the next call to next().
Example:
Assume that the iterator is initialized to the beginning of the list: [1... | [
"here0009@163.com"
] | here0009@163.com |
d17b3489a5e89c45e95dafc37dc8cb6a4298b618 | 9431bba2d148f8aef9c0a8f3ca16fcf875890757 | /thread/daemon.py | 749bae2d93265f45296c531c43d2cfe6cbb318a2 | [
"MIT"
] | permissive | terasakisatoshi/pythonCodes | fba0b78414b2c85f4a738200354ea583f0516768 | 953210c06e9885a7c885bc01047715a77de08a1a | refs/heads/master | 2023-05-14T12:30:22.201711 | 2023-05-07T13:41:22 | 2023-05-07T13:41:22 | 197,893,702 | 2 | 1 | MIT | 2022-11-25T10:59:52 | 2019-07-20T07:09:12 | Jupyter Notebook | UTF-8 | Python | false | false | 496 | py | import threading
import time
import logging
logging.basicConfig(level=logging.DEBUG,format='(%(threadName)-10s) %(message)s',)
def daemon():
logging.debug('starging')
time.sleep(5)
logging.debug('exiting')
d=threading.Thread(name='daemon',target=daemon)
d.setDaemon(True)
def non_daemon():
logging.de... | [
"terasakisatoshi.math@gmail.com"
] | terasakisatoshi.math@gmail.com |
8b9281dd4f78054529ebc467617596a292e75853 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/84/usersdata/197/51696/submittedfiles/lista1.py | a922fb8e25e53c15dff2aead0f76ffbf600196b5 | [] | 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 | 210 | py | # -*- coding: utf-8 -*-
n=int(input('Digite o numero de elementos da lista:'))
lista=[]
for i in range (1,n+1,1):
valor=int(input('Digite um numero da lista:'))
lista.append(valor)
print(lista)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
18a04d0d8b9288db86cecb4db408ed1d72ea1926 | 8b5d68c9398186cae64dbcc5b293d62d69e1921d | /src/python/knowledge_base/serializers/pickle_serializer.py | b5683f4082540af8d6415a3b87105e7959ff5f04 | [
"Apache-2.0"
] | permissive | reynoldsm88/Hume | ec99df21e9b9651ec3cacfb8655a510ba567abc9 | 79a4ae3b116fbf7c9428e75a651753833e5bc137 | refs/heads/master | 2020-07-24T21:28:39.709145 | 2019-07-10T15:43:24 | 2019-07-10T15:43:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | from elements.kb_mention import KBMention
from elements.kb_value_mention import KBValueMention, KBTimeValueMention, KBMoneyValueMention
import pickle
import os
class KBPickleSerializer:
def __init__(self):
pass
def serialize(self, kb, output_pickle_file):
dir_path = os.path.dirname(os.path.re... | [
"hqiu@bbn.com"
] | hqiu@bbn.com |
7d5206d65882fcce824ddb0032aad8164d09a755 | 6b8c3974d3ce5f7841e51dcb406666c0c5d92155 | /heat/heat/engine/worker.py | 92ba58874d2e05799776e350a66eaef1323c4afe | [
"Apache-2.0"
] | permissive | swjang/cloudexchange | bbbf78a2e7444c1070a55378092c17e8ecb27059 | c06ed54f38daeff23166fb0940b27df74c70fc3e | refs/heads/master | 2020-12-29T03:18:43.076887 | 2015-09-21T07:13:22 | 2015-09-21T07:13:22 | 42,845,532 | 1 | 1 | null | 2015-09-21T07:13:22 | 2015-09-21T05:19:35 | C++ | UTF-8 | Python | false | false | 15,130 | py | # Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
#
# 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... | [
"kiku4@kinx.net"
] | kiku4@kinx.net |
1f14987ae764c6a1758407eb891b9934472bb315 | 3bbe4603431578dcd7f7598d5c73abf459ac51ca | /sessions/20181107/test-slide-example.py | f424913baf40c163419b4aafafc1979919edb355 | [] | no_license | MingfanChang/LabSessions | de2b9648462d23fcd4ed4662938115f91c13c13b | 74001568be21c9879e56d7647045d43ff1d835f4 | refs/heads/master | 2020-04-06T08:16:24.237495 | 2018-11-07T21:31:14 | 2018-11-07T21:31:14 | 157,300,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | import unittest
def fun(x):
return None if x is None else x + 1
class MyTest(unittest.TestCase):
# Tests are methods that start with "test", when you do unittest.main()
# these methods will run.
def test1(self):
self.assertEqual(fun(None), None)
def test2(self):
self.assertEqu... | [
"marc@cs.brandeis.edu"
] | marc@cs.brandeis.edu |
72d51c2da674073349724c6450061b43a5296998 | 9b151caf1555ef679b5eb8ff1545940869f00da8 | /tests/eth2/beacon/test_validator_status_helpers.py | bdb07c7332387713df665e9d5a15d3a23a9b1afa | [
"MIT"
] | permissive | NIC619/trinity | 48ecc9b5bc9995f66eae263cdf608cf0b39cbb68 | 8cedd0529020270cbe7eba1f67b62a7655562eca | refs/heads/master | 2020-04-17T13:34:11.399124 | 2019-01-18T19:51:51 | 2019-01-18T19:51:51 | 166,620,927 | 0 | 0 | null | 2019-01-20T03:56:33 | 2019-01-20T03:56:33 | null | UTF-8 | Python | false | false | 11,782 | py | import pytest
from eth_utils import (
ValidationError,
)
from eth2.beacon.constants import (
FAR_FUTURE_SLOT,
GWEI_PER_ETH,
)
from eth2.beacon.enums import (
ValidatorRegistryDeltaFlag,
ValidatorStatusFlags,
)
from eth2.beacon.helpers import (
get_beacon_proposer_index,
)
from eth2.beacon.type... | [
"hwwang156@gmail.com"
] | hwwang156@gmail.com |
194decae75c581bd45da73026fc8038f0bcd2f57 | 5f22ddbd3eeb99709e43e7b9a7958c9987c7efa4 | /interview_bits/level_3/03_stacks-and-queues/03_cleverstack/02_sliding-window-max.py | 7514d9bd5c24d5af96d9e1753985e0ad9204c1de | [] | no_license | salvador-dali/algorithms_general | 04950bd823fc354adc58a4f23b7d2f3d39664798 | aeee3356e2488c6fab08741b1ac26e8bd5e4ac0d | refs/heads/master | 2020-12-14T06:24:10.466601 | 2016-07-17T06:00:17 | 2016-07-17T06:00:17 | 47,397,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | # https://www.interviewbit.com/problems/sliding-window-max/
# http://stackoverflow.com/a/17249084/1090562
# http://stackoverflow.com/a/8499392/1090562
# http://stackoverflow.com/a/4802260/1090562
def maxSliding(arr, k):
if len(arr) == 0:
return []
if len(arr) <= k:
return [max(arr)]
maxL, ... | [
"dmytro@knowlabs.com"
] | dmytro@knowlabs.com |
386e0452fcbebcd88ed522f8d9fc6dfacd970181 | cfa3f958c8b4c7f8617731c6580c16e8daee6218 | /EitherForm/either/urls.py | 453ba86a982377168f59e3f667683fd2e9a39523 | [] | no_license | cdh3261/Django | dd01f9c07c8b501c95445748e5d590565ca68352 | 0003b617ae500cf191e4af5cc8ab5fd06f02f76e | refs/heads/master | 2022-12-22T23:12:41.271650 | 2019-11-04T07:57:46 | 2019-11-04T07:57:46 | 217,967,586 | 0 | 0 | null | 2022-11-22T04:46:53 | 2019-10-28T04:43:09 | Python | UTF-8 | Python | false | false | 947 | py | """either URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"cdh3261@naver.com"
] | cdh3261@naver.com |
2bce7f4a99540988406dba03d4e79509bc6bbd8c | 85b2f4b9b3d07088d5ffd5a633f20ffeb15773b8 | /python/emptygit/others/addwatermark.py | c62d038f940ba11a78bbab3569863cd2735a18b8 | [] | no_license | wujunke/pythons | 85344dff44a2ff8bb8e79344dd967f59b1a5b2b4 | eb9f181664f1e055170f53907994750cd721c771 | refs/heads/master | 2020-03-13T18:13:02.741642 | 2018-12-26T06:41:03 | 2018-12-26T06:41:03 | 131,231,712 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,539 | py | #coding=utf8
import os
from PyPDF2 import PdfFileReader
from PyPDF2 import PdfFileWriter
from datetime import datetime
from reportlab.pdfgen import canvas
from reportlab.pdfbase import pdfmetrics
from reportlab.pdfbase.ttfonts import TTFont
from reportlab.lib.units import cm
from reportlab.lib.pagesizes import A1,A0, ... | [
"wjk1397@sina.com"
] | wjk1397@sina.com |
969d7650f27bb39ac969fbf4f243b04a9a18164c | 16aadc44ba8a0f975476137e3b0993363c5463dc | /genice2/molecules/one.py | 13251ae0fd09cc1c937837ff6d2faf8f87ea4c81 | [] | no_license | rusl2019/GenIce | 072c4896c3501679a11c5fcd7f5d6c06c16b673b | 51df0c850dea20c7757c659ae089147aa674dfa7 | refs/heads/main | 2023-06-22T18:47:10.842424 | 2023-06-19T15:54:12 | 2023-06-19T15:54:12 | 404,446,797 | 0 | 0 | null | 2021-09-08T18:01:43 | 2021-09-08T18:01:42 | null | UTF-8 | Python | false | false | 507 | py | # coding: utf-8
import numpy as np
from logging import getLogger
import genice2.molecules
class Molecule(genice2.molecules.Molecule):
def __init__(self, **kwargs):
# placeholder for 12-hedral cage
self.sites_ = np.array([[0, 0, 0]])
self.labels_ = [
"X",
]
self.... | [
"vitroid@gmail.com"
] | vitroid@gmail.com |
692f5a70dfdf8a4a4f42b96fbf46910fb1050c07 | 51e77e985d9b6c6bb0972ccee14b867e289aae61 | /fundamentalsOfComputing/interactiveProgramming/notes_sets.py | 8edfbee8aa633c61280f92debedef3d7fd2999e4 | [] | no_license | ErhardMenker/MOOC_Stuff | 7c397059f62ba39f21a877c7fcf71a97751dda4b | 7cdd581e9f9dcdd0b0c27dbbb9216bc76df8fff5 | refs/heads/master | 2021-01-17T10:38:06.805197 | 2017-03-29T23:50:18 | 2017-03-29T23:50:18 | 84,018,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,102 | py | # A set is an unordered collection of data with no duplicates.
# Sets are faster to process than lists, which are ordered and allow duplicates.
# Sets are created by declaring set() and storing a list within the parenthesis.
# In Python 3, sets can also be created by open curly braces, {}, and inputting elements within... | [
"ejmenker@gmail.com"
] | ejmenker@gmail.com |
5cd92ef79c0763ea445fdc8a9e248ae308ea182e | 420d4cf595fc8f28be0415aec70a4087e157555c | /Fluent_Python/Day38/context_matters.py | 577f22724ed6ddbb4d0cdc24e11c27fb46c88780 | [] | no_license | davidbegin/python-in-the-morning | 8cf89e62e7e8a2df5b8f875aae3cc7815545ad61 | aa4a271d1df0ce0a82d776c0955c1f20deb50937 | refs/heads/master | 2020-09-28T09:55:50.723066 | 2020-08-06T01:17:24 | 2020-08-06T01:17:24 | 226,753,142 | 23 | 3 | null | 2020-03-04T06:36:30 | 2019-12-09T00:31:09 | Python | UTF-8 | Python | false | false | 508 | py | print("\033c")
# If we build a Twitch Chatbot
class CoolClass:
def another_method(self):
print("Im cool class")
class ContextMatters():
def another_method(self):
print("I can do more work!!")
def __enter__(self):
print("A long time ago")
return CoolClass()
def __exi... | [
"davidmichaelbe@gmail.com"
] | davidmichaelbe@gmail.com |
ec88275e5702dbed40e4679c84703d701557f9c2 | 9788205bae2aa16de61e301bd7ff6f34c7a6dbb0 | /diabetes/code/data_pre.py | 894c248931d1cf1297af7ccd57985fc7ce1a857a | [] | no_license | pkusp/TianChi | 03775b1087c6170f0a1546770cebb0ae6d77056c | 07014b7dba18333265c048f913c3af93db47375c | refs/heads/master | 2021-05-06T03:43:29.615421 | 2018-03-09T15:44:19 | 2018-03-09T15:44:19 | 114,882,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,664 | py | ########
#
# 20180105
#
########
import numpy as np
import pandas as pd
from sklearn.preprocessing import MinMaxScaler
from sklearn.preprocessing import RobustScaler #四分位缩放
from sklearn.preprocessing import Normalizer # Normalizer(norm='l2').fit_transform(data)
from pandas import DataFrame
def num_missing(x):
re... | [
"pkusp@outlook.com"
] | pkusp@outlook.com |
206debf75711702657e94e8b4ba10bb4522f6fbe | dbd3f562768ded628d5d8d7ee3e05a3e88970a8d | /sk/smart-panda/table.py | 07252a031c400c5b5470edbef4b2fd0c15e37a73 | [
"Apache-2.0"
] | permissive | East196/hello-py | ff51044494399c01d2c2c82ce6d753fb2258d944 | a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21 | refs/heads/master | 2021-07-23T23:28:26.096703 | 2021-06-11T13:30:13 | 2021-06-11T13:30:13 | 97,002,099 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
df = pd.read_csv("food.csv")
df["day"] = df["time"].apply(lambda time: time.split(" ")[0])
df2 = df[df.type == "milk"].groupby(by=["day"])["size"].agg({"size": np.sum}).reindex()
df2.plot()
plt.show()
... | [
"2901180515@qq.com"
] | 2901180515@qq.com |
39e0de3e29fcb9b964eec7d54e91a05ae25ffb75 | e71b6d14fbdbc57c7234ca45a47329d7d02fc6f7 | /flask_api/venv/lib/python3.7/site-packages/vsts/work_item_tracking/v4_0/models/work_item.py | a14fa5e64576576c8c5921bc3779f87674533e86 | [] | no_license | u-blavins/secret_sasquatch_society | c36993c738ab29a6a4879bfbeb78a5803f4f2a57 | 0214eadcdfa9b40254e331a6617c50b422212f4c | refs/heads/master | 2020-08-14T00:39:52.948272 | 2020-01-22T13:54:58 | 2020-01-22T13:54:58 | 215,058,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,740 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------------------... | [
"usama.blavins1@gmail.com"
] | usama.blavins1@gmail.com |
8109dad5bf50a5f150ca3743588bc129a161e30a | 37306d69ffe1ed607c963ad8b6bb14be45b5219f | /epp/exceptions.py | f17f788f173370fb95d8bc71c58db67d9959f304 | [] | no_license | PivotPointSecurity/Python-EPP | 73cbf77a2bc3472b9a0a802834980e4e2bfa8e4d | 77a88a747bd02647a01a6a49ed2860e1cbd1ee2a | refs/heads/master | 2020-07-24T10:32:49.993946 | 2015-10-14T20:44:39 | 2015-10-14T20:44:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | # -*- coding: utf-8 -*-
class CommandException(Exception):
pass
| [
"humrochagf@gmail.com"
] | humrochagf@gmail.com |
43faef0fe9b0eaf4288c83f5527617d83504cee6 | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/StopInstanceRequest.py | 56edd3a464a00c8ef1acdfe3cea0fbd6802831f3 | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 1,488 | 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 |
c85dc35ae573d90e112f4e85fee5c6f2ef6df51d | 2d5d13c4bdc64202a520f32e7d4a44bb75e2004f | /week-05/game.py | fe365ad33232ff983954cb29f5e10e8051570553 | [] | no_license | green-fox-academy/andrasnyarai | 43b32d5cc4ad3792ef8d621328f9593fc9623e0b | 19759a146ba2f63f1c3e4e51160e6111ca0ee9c3 | refs/heads/master | 2021-09-07T16:19:34.636119 | 2018-02-26T00:38:00 | 2018-02-26T00:38:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,372 | py | from render import *
def happenings():
t = Label(root, text="____\n" + box.name
+ "\n <lvl " + str(box.lvl)
+ ">\n\u2665 " + str(box.hp)
+ "/" + str(box.max_hp)
+ "\n\u26E8 " + str(box.dp)
+ "\n\u2694 " + str(box.sp),height=7)
t.grid(row=0,sticky=N,pady=95)
if box.... | [
"andrasnyarai@gmail.com"
] | andrasnyarai@gmail.com |
11d7d075b60e1875f78db6b25a656306d057229b | ccbfc7818c0b75929a1dfae41dc061d5e0b78519 | /aliyun-openapi-python-sdk-master/aliyun-python-sdk-cms/aliyunsdkcms/request/v20180308/DescribeTaskDetailRequest.py | 6cfa63866025b118939f98e8ee149da0895ebc02 | [
"Apache-2.0"
] | permissive | P79N6A/dysms_python | 44b634ffb2856b81d5f79f65889bfd5232a9b546 | f44877b35817e103eed469a637813efffa1be3e4 | refs/heads/master | 2020-04-28T15:25:00.368913 | 2019-03-13T07:52:34 | 2019-03-13T07:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | 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... | [
"1478458905@qq.com"
] | 1478458905@qq.com |
43596e733ee8f4c17d594715c0ecb639a769b434 | 2d54ab7a1e829f89b554d6abc27527fdb38539ff | /zhenguo/settings.py | 6b131b6464edaa28337532a7f80b90c557fc06ed | [] | no_license | zhtjtcz/Software-Backend | 1c3c73d8863d0d0df9cdfa08e4900f878127ed6c | ca865f1fe75493098050b236634f776f7b97d04d | refs/heads/main | 2023-06-07T06:28:05.345830 | 2021-06-17T16:30:47 | 2021-06-17T16:30:47 | 367,622,524 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,850 | py | """
Django settings for zhenguo project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib i... | [
"18377221@buaa.edu.cn"
] | 18377221@buaa.edu.cn |
2158c0d94b6861427b39a64775657f3bc2c2ecc9 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/HOps/operators/grease/gp_surfaceoffset.py | 1b8d54a8ebf5463e9aad54a8a980ebed9ecb6ce4 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | import bpy
from mathutils import Vector
from bpy.types import Operator
from bpy.props import FloatProperty
class HOPS_OT_GPCSurfaceOffset(Operator):
bl_idname = 'hops.surfaceoffset'
bl_label = 'GP Surface Offset'
bl_description = 'Sets Grease Pencil to offset from surface'
bl_options = {... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
454e793b36fc769c6e59e2d8e778bcb11e46d365 | 786de89be635eb21295070a6a3452f3a7fe6712c | /PyCSPadImage/tags/V00-00-24/src/CSPadImageProducer.py | 5cb6677b1e478883a3bf849f6c049bab2b021cdc | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,909 | py | #--------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# Module CSPadImageProducer...
#
#------------------------------------------------------------------------
"""This module provides access to the calibration parameters
This software wa... | [
"dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 |
f9bc2735774b8031f1e174d3a4fa317dc48e6e79 | 7f80554c5013ba7bc66a3ec98f804156d977c277 | /bin/imageio_download_bin | 3c9c30e9b7274d99c0dd207767423084c17a052f | [] | no_license | akrahdan/LearnAI | fa89c133dbe3b0c06bfdce720ea6dcb429d1dc57 | fbea836a7fc78c8ab92b313c2afa4bdeef59c362 | refs/heads/main | 2023-07-24T15:07:15.692045 | 2021-08-20T16:39:44 | 2021-08-20T16:39:44 | 376,688,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | #!/Users/akrah/Documents/dev/readux/bin/python3.9
# -*- coding: utf-8 -*-
import re
import sys
from imageio.__main__ import download_bin_main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(download_bin_main())
| [
"akrahdan@gmail.com"
] | akrahdan@gmail.com | |
43f11d1419a5f5787928c49a9085d4d2579738c8 | 099da16d748e89106b6abea62e49641afe68d04b | /migen/build/platforms/mystorm_blackice.py | d68345fc5bba868337f221a7a3280df694b66fa6 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | chipmuenk/migen | a191db2e0bbe8f6e1dfc87e54acf2ded13ce69a0 | a7eb394f46ac9d71f4598919294aa9efd1137bfe | refs/heads/master | 2020-05-18T23:29:09.950066 | 2019-11-01T18:56:14 | 2019-11-01T18:56:14 | 184,712,987 | 3 | 0 | NOASSERTION | 2019-05-03T07:08:37 | 2019-05-03T07:08:36 | null | UTF-8 | Python | false | false | 2,603 | py | from migen.build.generic_platform import Subsignal, Pins, IOStandard
from migen.build.lattice import LatticePlatform
from migen.build.lattice.programmer import MyStormProgrammer
_io = [
("sram", 0,
Subsignal("adr", Pins("137 138 139 141 142 42 43 44 73 74 75 76 115",
"116 117... | [
"sb@m-labs.hk"
] | sb@m-labs.hk |
52ea0dacf6b53a412b8a3094fa1603d6923edb49 | 9eb4da8fe0eb56a0b0e4c4d660f52f52838c91da | /bumblebee_status/modules/contrib/deezer.py | cca6d5a7b3ac3f17b322bc7effd4679a3a2fe7b5 | [
"MIT"
] | permissive | tobi-wan-kenobi/bumblebee-status | bf53b44341f4d84c4684675af3dcb8c675579f23 | d03e6307f5e8c0b1c0451636ac9b1e84f3529a73 | refs/heads/main | 2023-08-31T11:52:12.140284 | 2023-07-21T12:18:17 | 2023-07-21T12:18:17 | 72,353,166 | 1,345 | 361 | MIT | 2023-09-13T19:25:17 | 2016-10-30T14:07:20 | Python | UTF-8 | Python | false | false | 3,177 | py | # pylint: disable=C0111,R0903
"""Displays the current song being played
Requires the following library:
* python-dbus
Parameters:
* deezer.format: Format string (defaults to '{artist} - {title}')
Available values are: {album}, {title}, {artist}, {trackNumber}, {playbackStatus}
* deezer.previous: ... | [
"tobi-wan-kenobi@users.noreply.github.com"
] | tobi-wan-kenobi@users.noreply.github.com |
e19153ca539e6bdc1ce36d5e6ebc35e7cca821a9 | 6f6180fe215edad3a1842f61ba76e80906cb860a | /tricircle/tests/functional/api/controllers/test_root.py | db0715216f7876b5166a9f93f57968eca9f33b7a | [
"Apache-2.0"
] | permissive | OpenCloudNeXt/tricircle | 39a1b5fb2b2c162dab4b4141b4a550b28cebed2e | 4b5b0b7ce40bf8febf98c8066311adf2953d23ee | refs/heads/master | 2020-03-14T03:26:08.646754 | 2018-04-11T16:06:40 | 2018-04-11T16:06:40 | 131,419,803 | 1 | 0 | Apache-2.0 | 2018-04-28T15:08:40 | 2018-04-28T15:08:40 | null | UTF-8 | Python | false | false | 5,206 | py | # Copyright (c) 2015 Huawei Technologies Co., Ltd.
# 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
#
# ... | [
"joehuang@huawei.com"
] | joehuang@huawei.com |
22645955a6ff186b8600f08cabf3eb20e5c2b145 | 2316ce8a21d44a5d09284968ef42530633dc10d2 | /sample_code/ep050/rev04/t.py | 7a709323c0eb7a421cbf4c9a675c4f47e44c1611 | [] | no_license | AlexanderWinkelmeier/explains | 160de2c41fc5fc0156b482b41f89644dc585c4f3 | d47ec53e384e4303a2d8e71fab9073a1a8d2d6bc | refs/heads/master | 2023-07-30T04:55:31.234482 | 2021-09-15T02:59:42 | 2021-09-15T02:59:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | import sys
print('this goes to stdout')
sys.stdout.write('this also goes to stdout\n')
print('this goes to stderr', file=sys.stderr)
sys.stderr.write('this also goes to stderr\n')
| [
"int3l@users.noreply.github.com"
] | int3l@users.noreply.github.com |
1f71b5426bb148913264004ce0d9593214e199d6 | 0689ad04900b45e6ffb85756e65e96f30781558b | /python2/project/zidian/daan/tong.py | 27239d20a2ede586ba1b13618f6e02cbbe78987d | [] | no_license | lizhihui16/aaa | a5452b5d0de4c2ad6342fce1b8aef278d2d2943e | e8c38e012f6aa0bc05ac6481d6c3e2b4e9013b56 | refs/heads/master | 2020-04-24T01:05:19.266060 | 2019-02-20T01:43:51 | 2019-02-20T01:43:51 | 171,586,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,801 | py | #coding = utf8
from socket import *
import sys
import getpass
#网络连接
def main():
if len(sys.argv) < 3:
print('aaaaaa')
return
HOST = sys.argv[1]
PORT = int(sys.argv[2])
s = socket()
try:
s.connect((HOST,PORT))
except Exception as es:
print(e)
return
... | [
"tarena@tedu.cn"
] | tarena@tedu.cn |
f799f9df9e8c5f4e0c523868952b41400d396c2f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_103/ch4_2020_03_09_20_26_11_150473.py | 925a7311c9e4d6b141cc65f8933806e1326531e0 | [] | 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 | 166 | py | def classifica_idade(x):
if x<11:
return 'crianca'
elif 12<=x and x<=17:
return 'adolescente'
else:
return 'adulto'
| [
"you@example.com"
] | you@example.com |
67414a2db1f3c9c057be45cd255caaa2a9780cd6 | f58be9536d98003e7164a1d9ece69e022b7be7a3 | /ReStart/being2.py | 1312d3367b07ac8af7f13761d334c9a7367c6f0c | [] | no_license | cq146637/Practice | 628c36e6ed5e05e04d3ce39a45818c9b157325ab | f3e36256e8a2b310d3466fe371d50c512797d887 | refs/heads/master | 2021-09-01T01:29:06.664938 | 2017-12-24T05:12:41 | 2017-12-24T05:12:41 | 114,729,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | import select
import socket
service = select.select()
| [
"1016025625@qq.com"
] | 1016025625@qq.com |
cb95fe702e1b9104a1930bea23519f87f2d252b9 | 68720ce7e968133614b9345898780bd80dbb8595 | /code/UI/OpenAPI/python-flask-server/swagger_server/models/q_edge.py | 87cfea0b3c0e875e595d77ca03e61928abb53877 | [
"MIT",
"Apache-2.0"
] | permissive | RichardBruskiewich/RTX | 82a2ec6d129250ae0440eac8b91867fc8b044c1d | ce126fdc5df6b5b13cc3ac2857ffee23954a0a7f | refs/heads/master | 2022-12-27T05:00:28.901542 | 2020-09-08T19:06:32 | 2020-09-08T19:06:32 | 294,197,551 | 0 | 0 | MIT | 2020-09-09T18:34:06 | 2020-09-09T18:34:05 | null | UTF-8 | Python | false | false | 5,934 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from swagger_server.models.base_model_ import Model
from swagger_server.models.biolink_relation import BiolinkRelation # noqa: F401,E501
from swagger_server import uti... | [
"edeutsch@systemsbiology.org"
] | edeutsch@systemsbiology.org |
078e61c898d20f1b9c6eda632b47fdd4d44f4fd5 | b648a0ff402d23a6432643879b0b81ebe0bc9685 | /benchmark/esmrc/thrift/schema/ttypes.py | 98dc95fabd36c9c53dfaa02c6fc837f40a392b8b | [
"Apache-2.0"
] | permissive | jviotti/binary-json-size-benchmark | 4712faca2724d47d23efef241983ce875dc71cee | 165b577884ef366348bf48042fddf54aacfe647a | refs/heads/main | 2023-04-18T01:40:26.141995 | 2022-12-19T13:25:35 | 2022-12-19T13:25:35 | 337,583,132 | 21 | 1 | Apache-2.0 | 2022-12-17T21:53:56 | 2021-02-10T01:18:05 | C++ | UTF-8 | Python | false | true | 5,945 | py | #
# Autogenerated by Thrift Compiler (0.14.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
from thrift.protocol.TProtocol import TProtocolException
from thrift.TRecursive impo... | [
"jv@jviotti.com"
] | jv@jviotti.com |
cc25a37143f9f92a978ea93c56075b28ac0c5f6a | afa0d5a97925273f7fb0befef697d36020df5787 | /packages/google-cloud-alloydb/google/cloud/alloydb_v1/services/alloy_db_admin/client.py | 740b86a05cb4740c2c337c6d70770b2f3fa0b092 | [
"Apache-2.0"
] | permissive | scooter4j/google-cloud-python | dc7ae1ba6a33a62a40b617b806ec8ed723046b8b | 36b1cf08092d5c07c5971bb46edda7a9928166b1 | refs/heads/master | 2023-04-14T18:36:48.643436 | 2023-04-06T13:19:26 | 2023-04-06T13:19:26 | 188,338,673 | 0 | 0 | null | 2019-05-24T02:27:15 | 2019-05-24T02:27:14 | null | UTF-8 | Python | false | false | 134,825 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | scooter4j.noreply@github.com |
9b9b47d4bb6b671161de733e4809852702e1cfbf | 8636c0fba825b4b7c5ca30c202e2e09afaf05e95 | /practicing_apps/turtleRacePyGame/anotherMain.py | 472409d899f495a7e77f00761dbc1d63589096a2 | [] | no_license | manuetov/m02_boot_0 | 33fe5876ab0fbbcfcb08e2ccaee5144a57d71c57 | 04d3dceffda78b37a709cd08ef7a1dc1d31478b4 | refs/heads/master | 2021-10-12T02:45:55.161385 | 2019-01-31T20:27:14 | 2019-01-31T20:27:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | import pygame, sys
from pygame.locals import *
class App:
'''
Constructor
'''
def __init__(self, weight, height, title="pygame window"):
self._running = True
self.__screen = None
self.size = self.weight, self.height = weight, height
self.title = title
s... | [
"monterdi@gmail.com"
] | monterdi@gmail.com |
5d929c8882e42d31af7052c5127340cb828fed5f | 379ad926bb76a7732f5d43e15cc5b254ad608a8a | /runtime/translation/models/gnmt_large/gpus=16/stage8.py | 6299c8b8459fb6a392cbf7aede83046084021951 | [
"MIT"
] | permissive | msr-fiddle/pipedream | ed5ff9a823779ba63b64edc8955edc88b989e381 | 7db6a1c3e64996d5b319faec6ca38cb31bfea1c4 | refs/heads/pipedream | 2022-11-20T21:35:17.056988 | 2021-07-22T18:59:30 | 2021-07-22T18:59:30 | 203,689,837 | 356 | 125 | MIT | 2022-11-04T14:51:26 | 2019-08-22T01:18:23 | Python | UTF-8 | Python | false | false | 1,251 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import torch
class Stage8(torch.nn.Module):
def __init__(self):
super(Stage8, self).__init__()
self.layer5 = torch.nn.LSTM(2048, 1024)
self.layer8 = torch.nn.Dropout(p=0.2)
def forward(self, input1, input2, inpu... | [
"deepakn94@gmail.com"
] | deepakn94@gmail.com |
9f7917172ac5d9ea0f8b26ed9c3c259ba1cd1511 | ff91e5f5815b97317f952038e19af5208ef12d84 | /drawShape.py | fd482ceab712ef9b4193bd52b3c79af1b306c0ce | [] | no_license | BryanPachas-lpsr/class-samples | c119c7c1280ca2a86f24230d85f6c712f18d9be8 | a194201dce28299bd522295110814c045927ef5b | refs/heads/master | 2021-01-17T07:03:42.968452 | 2016-06-12T22:35:54 | 2016-06-12T22:35:54 | 48,007,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | import turtle
def drawSide(myTurtle):
count = 0
while count < 4:
drawVee(myTurtle)
myTurtle.left(180)
count = count + 1
def drawVee(myTurtle):
myTurtle.forward(10)
myTurtle.right(90)
myTurtle.forward(10)
myTurtle.left(90)
shawn = turtle.Turtle()
count = 0
while count < 4:
drawSide(shawn)
shawn.right(90... | [
"lps@lps-1011PX.(none)"
] | lps@lps-1011PX.(none) |
6103b2d65b454ecbcfba61c17966e794b04b7f1b | 5537eec7f43098d216d2b550678c8d10b2a26f09 | /venv/tower/lib/python2.7/site-packages/M2Crypto/PGP/RSA.py | 28c140911fe3dfa18cce4951004788a44ffa32ab | [] | no_license | wipro-sdx/Automation | f0ae1512b8d9d491d7bacec94c8906d06d696407 | a8c46217d0fbe51a71597b5db87cbe98ed19297a | refs/heads/master | 2021-07-08T11:09:05.314435 | 2018-05-02T07:18:54 | 2018-05-02T07:18:54 | 131,812,982 | 0 | 1 | null | 2020-07-23T23:22:33 | 2018-05-02T07:15:28 | Python | UTF-8 | Python | false | false | 906 | py | """M2Crypto PGP2 RSA.
Copyright (c) 1999-2003 Ng Pheng Siong. All rights reserved."""
from M2Crypto import m2, util
from M2Crypto.RSA import RSA, RSA_pub # noqa
if util.py27plus:
from typing import Tuple # noqa
def new_pub_key(e_n):
# type: (Tuple[int, int]) -> RSA_pub
"""
Factory function that in... | [
"admin@example.com"
] | admin@example.com |
6f6c7c40ce97726f1ab1b15cf11ab26241931a7a | 3e4d78628a66927e2a640ca4f328adcc31e156b9 | /deejay/__init__.py | f5cfa7bff1fd6fa557d609190e3e053e445308a8 | [] | no_license | nijotz/shitstream | 360d41a1411dc480dd220790f9513d202a18ee78 | 7d11171fb35aaf6d778d5bf23046d220939711be | refs/heads/master | 2021-01-01T16:19:22.224760 | 2014-10-16T22:48:17 | 2014-10-16T22:48:17 | 23,303,299 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | import imp
import os
import threading
def load_personality():
brain = os.path.dirname(os.path.realpath(__file__))
traits = os.listdir(brain)
for trait in traits:
trait_file = os.path.join(brain, trait)
trait_name = trait.replace('.py', '')
if not trait.startswith('__init__') and (t... | [
"nick@nijotz.com"
] | nick@nijotz.com |
b3174f23735ba644f5b618d056debd58073da2f6 | 957ce9c3908165c282d039429fb0a91c85f4b40c | /packaging/userspace/log_instrumentation.py | ec0ae6ba55a632b358bcba3b7a400b1363b51821 | [] | no_license | irods/irods_client_icommands | 21ff418bf0e0a7cb4830b60a0eca201c2d2e7e47 | 25df2a073f2bc64cc6e193886720c7a4291ea38a | refs/heads/main | 2023-09-05T01:55:54.603701 | 2023-08-16T19:02:40 | 2023-08-24T14:09:01 | 54,735,342 | 14 | 28 | null | 2023-08-24T16:55:18 | 2016-03-25T17:32:43 | C++ | UTF-8 | Python | false | false | 10,763 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys, errno # noqa: I201,I001; pylint: disable=C0410
if __name__ == '__main__':
print(__file__ + ': This module is not meant to be invoked directly.', # noqa: T001
file=sys.stderr)
sys.exit(errno.ELIBEXEC)
import os,... | [
"terrellrussell@gmail.com"
] | terrellrussell@gmail.com |
cfaa2aec5710d97d29424c033b2a1c3a03f8b7fd | e183893cd4338f3bb014374b3df7022e174dda2b | /importformatter/__init__.py | 4cfb8887a6130e62118171b0508867469faacf00 | [] | no_license | tkaemming/importformatter | 9dad1ba6c867bcf60d27435e25e3cd43e5244efd | 13fa69d3bc4e492327857021829970c39f149254 | refs/heads/master | 2021-01-02T09:27:03.852265 | 2015-02-02T21:25:41 | 2015-02-02T21:25:41 | 13,937,189 | 0 | 0 | null | 2022-03-07T10:03:48 | 2013-10-28T20:09:32 | Python | UTF-8 | Python | false | false | 2,936 | py | """
Groups, sorts, and prints formatted imports statements.
"""
import ast
import logging
import operator
import os
from collections import defaultdict
logger = logging.getLogger(__name__)
def format_alias(alias):
if alias.asname is not None:
return '%s as %s' % (alias.name, alias.asname)
else:
... | [
"ted@kaemming.com"
] | ted@kaemming.com |
0a748ac0be9119b31c603ca24dad052b1e48f65c | 49a167d942f19fc084da2da68fc3881d44cacdd7 | /kubernetes_asyncio/client/api/settings_api.py | b1ffea59ed6b24803bf18c3846aa390d9f570969 | [
"Apache-2.0"
] | permissive | olitheolix/kubernetes_asyncio | fdb61323dc7fc1bade5e26e907de0fe6e0e42396 | 344426793e4e4b653bcd8e4a29c6fa4766e1fff7 | refs/heads/master | 2020-03-19T12:52:27.025399 | 2018-06-24T23:34:03 | 2018-06-24T23:34:03 | 136,546,270 | 1 | 0 | Apache-2.0 | 2018-06-24T23:52:47 | 2018-06-08T00:39:52 | Python | UTF-8 | Python | false | false | 4,134 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.10.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import r... | [
"tomasz.prus@gmail.com"
] | tomasz.prus@gmail.com |
ed09071dc1e0ce6c49121cb9d65d2324ce0166fc | d9a22d4dcdfc0c28176c0e8afd784b30d275597e | /multi/__init__.py | 094e0e614edb63c025848959b921dd532c67f9cb | [] | no_license | jlec/relax | fda1b3ff77be0afc21c2e6cc52348ae7635cd07a | c317326ddeacd1a1c608128769676899daeae531 | refs/heads/master | 2016-09-08T00:27:57.256090 | 2015-02-10T12:24:55 | 2015-02-10T12:24:55 | 30,596,131 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,854 | py | ###############################################################################
# #
# Copyright (C) 2007 Gary S Thompson (https://gna.org/users/varioustoxins) #
# Copyright (C) 2011-2012 Edward d'Auvergne #
... | [
"bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5"
] | bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5 |
af30c2d0aa60d8427a04e91c3178825344d6bd71 | 08d0354d0e650991c5e1787d4fafddea79b4f2bb | /rocketgram/tools/escape.py | 507b7d28d8c9e4f3cc2d958856fedb1d0d5366e6 | [
"MIT"
] | permissive | beneja/rocketgram | 2a4644ccc040602e9b0f4efc79fe754e9876fae1 | bbe26cfd444352ae0c978151e4320bca3ff0e632 | refs/heads/master | 2022-10-15T11:01:19.597669 | 2022-10-02T18:14:58 | 2022-10-02T18:14:58 | 179,712,834 | 0 | 0 | null | 2019-04-05T15:58:12 | 2019-04-05T15:58:12 | null | UTF-8 | Python | false | false | 561 | py | # Copyright (C) 2015-2019 by Vd.
# This file is part of RocketGram, the modern Telegram bot framework.
# RocketGram is released under the MIT License (see LICENSE).
import re
def html(text):
"""Helper function to escape rocketgram html symbols"""
t = str(text)
t = t.replace(u'&', u'&')
t = t.re... | [
"vd@"
] | vd@ |
faf28749d023dacb158c26979b967129541dbd47 | 1b8a99a4ff80da51dc81dd8354bf9bf1cbd25a8b | /2021/number_of_music_playlists.py | cfe45e3b662537626935700ce2a370c875195c2b | [] | no_license | eronekogin/leetcode | ea639eebe0cd70af9eb4cba59bc68f636d7b3e0c | edb870f83f0c4568cce0cacec04ee70cf6b545bf | refs/heads/master | 2023-08-16T10:35:57.164176 | 2023-08-14T11:25:33 | 2023-08-14T11:25:33 | 163,679,450 | 0 | 0 | null | 2021-09-09T12:04:44 | 2018-12-31T15:33:06 | Python | UTF-8 | Python | false | false | 1,470 | py | """
https://leetcode.com/problems/number-of-music-playlists/
"""
class Solution:
def numMusicPlaylists(self, n: int, goal: int, k: int) -> int:
"""
1. Suppose dp[i][j] stands for the number of playlist of length i for
j unique songs, then consider the last song added to this playlist:
... | [
"mengyu.jiang@gmail.com"
] | mengyu.jiang@gmail.com |
af258410695540b4d0f66117527bad8804b1187d | 39a298196ba169b346b87903bc917ec426d8d275 | /Reset.py | 154e694ce59e758506543a1044444dfd583dc674 | [] | no_license | mcreddy91/python-network | d1dfe01b3562e4f9e10e547de3c6e00e46a71a49 | 922ce6314fffc0d5c7f06ddeb3fb7b37382421bb | refs/heads/master | 2020-12-28T19:58:06.156550 | 2013-02-11T20:14:13 | 2013-02-11T20:14:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,398 | py | class Reset():
def doReset(self, ob):
# HOSTs reset IPs#
for n in range(0,12):
ob.host[n].setIP('ip-not-found')
ob.host[n].setMascara('255.255.0.0')
ob.host[n].setLigado(False)
ob.nic_host[n].setLigado(False)
ob.nic_host[n].setTDad... | [
"moreno.pinheiro@gmail.com"
] | moreno.pinheiro@gmail.com |
9d9a089dd5a76f44f6f87ac17b906aa239eed43a | 1a2ca64839723ede3134a0781128b0dc0b5f6ab8 | /ExtractFeatures/Data/george/albrecht.py | a7db0f0a7ae664ea96b065e68ac4285cf345862e | [] | no_license | vivekaxl/LexisNexis | bc8ee0b92ae95a200c41bd077082212243ee248c | 5fa3a818c3d41bd9c3eb25122e1d376c8910269c | refs/heads/master | 2021-01-13T01:44:41.814348 | 2015-07-08T15:42:35 | 2015-07-08T15:42:35 | 29,705,371 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,089 | py | """
# https://code.google.com/p/promisedata/source/browse/#svn%2Ftrunk%2Feffort%2Falbrecht
Standard header:
"""
from __future__ import division,print_function
import sys
sys.dont_write_bytecode = True
from lib import *
"""
@attribute Input numeric
@attribute Output numeric
@attribute Inquiry numeric
@attribute File... | [
"vivekaxl@gmail.com"
] | vivekaxl@gmail.com |
699604f93c90a60fd8012f06e8ceb68d37ce9364 | 614e01d08c8bb5adbe4d263d9dba04688502a12f | /toggl_driver/commands/store_api_token.py | 151990f49ae5b4e253a95413c3946d80b01cccd3 | [
"MIT"
] | permissive | cloew/TogglDriver | 28b2b2ebd396d08000fc92e0013f15722975ae06 | 7b0528710e7686690a88a22cf5cca1f3ac55ebbf | refs/heads/master | 2021-01-10T13:05:58.759515 | 2015-10-01T03:43:52 | 2015-10-01T03:43:52 | 43,025,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | from ..config import GlobalConfig
from kao_command.args import Arg
class StoreApiToken:
""" Represents a command to store the global Api Token for connecting to Toggl """
description = "Store the Toggl API Token"
args = [Arg('token', action='store', help='Token to store')]
def run(self... | [
"cloew123@gmail.com"
] | cloew123@gmail.com |
4dde36f0509017521af9395ae8f6b4e61ecbeb2a | 2c926b4847a44c7f831d47ed0160751d3248e8f4 | /venv/lib/python3.8/site-packages/hubspot/automation/actions/models/input_field_definition.py | 74ba77e7a3afacd58629a99dcab74d2ec83fc1fb | [] | no_license | Women-in-Tech-Society/WITS_Site | c42cd2c9abe1b5515b80be82dc876a6c3842e42a | 5dbf22f5ee5a36358f6f279af4c13d86d31653c5 | refs/heads/main | 2023-05-11T02:34:05.531902 | 2021-06-01T01:05:12 | 2021-06-01T01:05:12 | 278,658,100 | 0 | 5 | null | 2022-11-22T18:41:35 | 2020-07-10T14:43:28 | Python | UTF-8 | Python | false | false | 7,588 | py | # coding: utf-8
"""
Custom Workflow Actions
Create custom workflow actions # noqa: E501
The version of the OpenAPI document: v4
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from hubspot.automation.actions.configuration import Configuration
c... | [
"mhuda@uwo.ca"
] | mhuda@uwo.ca |
60dbc77ae60ed5507b65c08ddb0cf56b6e9f2015 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /third_party/blink/tools/blinkpy/web_tests/port/browser_test.py | ea773718930c0755ea1ad84d8cea9e54f1eac4b8 | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 4,123 | py | # Copyright (C) 2014 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
9c02bb8d19e52c3e6e0104317dfac46d2da85b8b | d8a9b88f4087ebfe97b462e589071222e2261e47 | /392. Is Subsequence.py | 04b28ae9c9fbac6c94ad0e66a90c48cddb32c0dd | [] | no_license | rohitpatwa/leetcode | a7a4e8a109ace53a38d613b5f898dd81d4771b1b | f4826763e8f154cac9134d53b154b8299acd39a8 | refs/heads/master | 2021-07-07T12:40:30.424243 | 2021-03-31T00:21:30 | 2021-03-31T00:21:30 | 235,003,084 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # Use two pointers i,j. Increment both if same char else j+=1. If i reaches the end, return True.
def isSubsequence(self, s, t):
"""
:type s: str
:type t: str
:rtype: bool
"""
i, j = 0, 0
while i<len(s) and j<len(t):
if s[i]==t[j]:
i+=1
j+=1
else:
... | [
"rohitpatwa@gmail.com"
] | rohitpatwa@gmail.com |
d4e096256f14e51669136f7c7de774675dbf8770 | 697771f13ee0db0a392e326f1c1322836f9b023c | /chapter_6/ch_6_challenge_8.py | 47d6353a8360b24a1ab303b155c03918e877bf63 | [] | no_license | Rutrle/The-Self-Taught-Programmer-by-Althoff | 01ac1759fc590888cf39b59b4d095629bcf2d9bf | 101662ee75b2575a6601950dfd5707f5d98b066e | refs/heads/master | 2023-01-09T18:02:42.129897 | 2020-11-15T17:17:04 | 2020-11-15T17:17:04 | 299,418,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py |
given_string = "'Letice Earwig just makes shiny things for her would-be witches!' she stated."
print(given_string)
| [
"rutrle@seznam.cz"
] | rutrle@seznam.cz |
a35faa1d0cd6b13ecf256d722fb59ab728e835f5 | dcc70c6f2e82d017f671e79d8b2baffb8abca681 | /gimmemotifs/rocmetrics.py | e6c232b03db1f8f1fa56b17dde2252a6d2b45604 | [
"MIT"
] | permissive | georgeg9/gimmemotifs | d681624c77fe762c3f25a9638ebafaca0a88b7dd | 6a25b0774803502870229726f61ca8b86c2fed7b | refs/heads/master | 2021-01-12T22:36:12.747358 | 2015-09-29T16:22:32 | 2015-09-29T16:22:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,728 | py | # Copyright (c) 2009-2010 Simon van Heeringen <s.vanheeringen@ncmls.ru.nl>
#
# This module is free software. You can redistribute it and/or modify it under
# the terms of the MIT License, see the file COPYING included with this
# distribution.
""" Module to calculate ROC and MNCP scores """
# External imports
from... | [
"simon.vanheeringen@gmail.com"
] | simon.vanheeringen@gmail.com |
49cce9265826d3a7ece5ed4d464d571a9fac7a61 | b50903f9680b80ea600b0ea40ccd4e93679116a7 | /JetAnalysis/test/test_print.py | 332b394a0f2354642031cb4dda96a8b93ab19f63 | [] | no_license | Jelov/Jet_Production_channel | 15f7471121a5e8e8ca0203d407dae6d1d40e3acd | 05c0e8b8145d912dcaa590729d28d99f866c773e | refs/heads/master | 2016-08-12T20:28:47.253666 | 2016-03-16T19:15:49 | 2016-03-16T19:15:49 | 51,877,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,516 | py |
import FWCore.ParameterSet.Config as cms
process = cms.Process("test")
process.source = cms.Source("PoolSource",
duplicateCheckMode = cms.untracked.string("noDuplicateCheck"),
fileNames = cms.untracked.vstring(
# "root://cmsxrootd... | [
"jelov227@gmail.com"
] | jelov227@gmail.com |
9e2fe2784cf73350e4d6053d18ca61ad7893e6bb | 81835671049fd32f173d438ca85a8e81482bc76a | /src/restaurants/migrations/0034_photo_restaurant.py | d7f06b33a4db240ac522f376bbd893e6ef258bf6 | [] | no_license | laura8857/django_restaurant | acd344423bd71194f6763e899edaf94955bf06ce | f9882d3d2d8998c1e99a7ecb706be66fab8c4425 | refs/heads/master | 2021-09-09T07:42:25.636140 | 2017-12-31T07:03:36 | 2017-12-31T07:03:36 | 111,422,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-11-21 03:08
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('restaurants', '0033_auto_20171121_0259'),
]
operat... | [
"luara8857@gmail.com"
] | luara8857@gmail.com |
c39eb6354487260615333ec20f43384ffb62c5c5 | 4824e3e4833f3db236d44eaf3dea3e5e8e0bfca1 | /nur_post_training/pt_parsim.py~ | 9d5a604ab1383cd2a124ebe5faa27190bfd6a2c2 | [] | no_license | neuraghe/NEURAghe | 5c99b6340edd4d2d50ee3ec461df9f39fd6cb138 | dd6cfc808a163e4b4f8d0cb499f009bc977d7984 | refs/heads/master | 2020-08-07T11:59:58.699824 | 2019-10-16T13:55:10 | 2019-10-16T13:55:10 | 213,429,667 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 24,035 | #!/usr/bin/env python
# -*- coding: iso-8859-15 -*-
##########################################################################################################
# #
# EOLAB @ DIEE - Università degli studi... | [
"carreras.marco@gmail.com"
] | carreras.marco@gmail.com | |
e37ee3f7aaaff3c92742b75cf01d817e6e8efcd4 | 725abfa74e3800622837e60615dc15c6e91442c0 | /venv/Lib/site-packages/setuptools/lib2to3_ex.py | 4677c8816f2cea566c5cd294f269ea98af69624b | [] | no_license | Malak-Abdallah/TODOlist | 4840e2e0a27e6499ae6b37524bb3e58455d08bfb | fd35754e8eac9b262fae17ec16ad9fb510a12f5d | refs/heads/master | 2023-07-16T11:38:48.759232 | 2021-08-31T09:43:11 | 2021-08-31T09:43:11 | 401,600,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | py | """
Customized Mixin2to3 support:
- adds support for converting doctests
"""
import warnings
from distutils.util import Mixin2to3 as _Mixin2to3
from distutils import log
from lib2to3.refactor import RefactoringTool, get_fixers_from_package
import setuptools
from ._deprecation_warning import SetuptoolsDeprecationWar... | [
"malkobeidallah@gmail.com"
] | malkobeidallah@gmail.com |
5ad5f98cf9aae4bf29e2e5835c47d7e7f11fd99b | ac245e448cdf791f24ee71d2b89e5f13d5fb1fbb | /Betsy/attic/protocols/normalize_file.py | 35b88cbf61b3850dc69a92e9c12de40a3906cf6d | [
"MIT"
] | permissive | jefftc/changlab | 86420c8ce0f3e11a9b1b00d49f17c6af87439f32 | d9688709cd1ce5185996637c57f001a543b5bb1d | refs/heads/master | 2023-05-24T18:59:25.875112 | 2023-05-11T20:15:26 | 2023-05-11T20:15:26 | 67,619,148 | 11 | 4 | null | null | null | null | UTF-8 | Python | false | false | 14,708 | py | #normalize_file.py
from Betsy.protocol_utils import Parameter
PRETTY_NAME = "Normalize gene expression."
COMMON = 'Common Parameters'
NORMALIZE = 'Normalize Parameters'
OPTIONAL = 'Optional Parameters'
ILLUMINA = 'Illumina Normalize Parameters'
CLASS_NEIGHBORS = 'Class Neighbor Parameters'
RNA = 'RNA Sequence analysis... | [
"jeffrey.t.chang@uth.tmc.edu"
] | jeffrey.t.chang@uth.tmc.edu |
8cae32dd69083284cf7239af375d3e71994022cf | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/e93ecac0da87741d0bd6daed85af6962f8d5b4d6-<get_cpu_facts>-bug.py | fd738b4fa69056de13101f26effebad97b9aa0d4 | [] | 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 | 3,234 | py |
def get_cpu_facts(self, collected_facts=None):
cpu_facts = {
}
collected_facts = (collected_facts or {
})
i = 0
vendor_id_occurrence = 0
model_name_occurrence = 0
physid = 0
coreid = 0
sockets = {
}
cores = {
}
xen = False
... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
57acbac4ede816f0cec54d3c7e4ec00b7e7d679b | 9edd6cd0aac07bc3a433ec1a99b7922c4e8256ba | /MStore/migrations/0003_productimage_active.py | 5b12806646d815cc83b086a437bad999c4c7367d | [] | no_license | NahidAkhtar84/NShopping | 87935f3119c918baed8d1ea3348c48028b686dfe | e466414853348a30bcb5e3096b847cc89a6c0976 | refs/heads/master | 2023-03-14T15:18:20.560228 | 2021-03-02T20:59:39 | 2021-03-02T20:59:39 | 343,904,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # Generated by Django 3.1.5 on 2021-02-08 13:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('MStore', '0002_auto_20210208_1824'),
]
operations = [
migrations.AddField(
model_name='productimage',
name='active',... | [
"nahid.ibne.akhtar@gmail.com"
] | nahid.ibne.akhtar@gmail.com |
4b358471243ccd6c2588d09f6e96ef5eaf119e42 | e9233367116ace8aac3218abcb8480ac236ac42f | /src/final_script/single_test/7_7_data_2/dual_draw_animation.py | a5615e39155b633d505ab49b042533c8d72ca951 | [] | no_license | zhangzhongwd/optical_waveguide_calibration | 2c695592d792b26aa8a3218faa86adbff478cd3b | 431d7e0e74885030648c17030f197efa3909a48c | refs/heads/master | 2020-11-29T08:19:12.000041 | 2019-12-25T08:14:20 | 2019-12-25T08:14:20 | 230,065,827 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,075 | py | import math
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
force = []
loss1 = []
loss2 = []
def update(i):
plt.cla()
plt.xlim(-5, 20)
plt.ylim(-5, 20)
plt.plot(force[0],loss1[0],color='red',label='1st fiber original state')
# plt.plot(force[0], loss2[0],color='yell... | [
"zhangzhongwd@gmail.com"
] | zhangzhongwd@gmail.com |
f744900597d49ad035b1909b11c0dd8be7a032d7 | 0a7b77367cde1a64d95d1aab53b6a4f344056a9c | /mcod/lib/model_utils.py | 92852b9650115c7ebd7b324011d6b7c98524d757 | [] | no_license | kaglowka/danyzespolapi | 529c2c7fc5d35c630498c8438e59dbcc3c00c437 | 0b3c07c68cf61faa81756822af9eec7c497bba2f | refs/heads/master | 2023-01-13T19:11:40.247512 | 2018-10-28T12:36:47 | 2018-10-28T12:36:47 | 154,993,674 | 0 | 0 | null | 2022-12-26T20:44:19 | 2018-10-27T17:57:34 | CSS | UTF-8 | Python | false | false | 2,157 | py | from django.db import models
from django.utils.timezone import now
from django.utils.translation import gettext_lazy as _
from functools import wraps
from model_utils.fields import AutoCreatedField, AutoLastModifiedField
from mcod.lib.managers import SoftDeletableManager
class AutoLastModifiedField(AutoLastModifiedF... | [
"krz.glowka@gmail.com"
] | krz.glowka@gmail.com |
10cf8c11fde81d2b3a3b7a52cd4ec8370368933e | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnreveald.py | aa63e95d8cda2628ff5d41d52efab7808dbefbf9 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 138 | py | ii = [('BailJD2.py', 1), ('TalfTAC.py', 1), ('ClarGE.py', 1), ('LandWPA.py', 1), ('TalfTIT.py', 4), ('MedwTAI2.py', 1), ('BailJD3.py', 3)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
429101082967e8781edbdb3fbbf3271795072c11 | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/apimanagement/api_issue.py | 66dea984ce8f77e5ea912f2e413d0bbd97862d79 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,574 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
1467b1ee598854675143f692fa9d945b3eaa09ea | 4c7fc810eb442b386969bf345b4dc6ef3152c783 | /examples/pytorch/summarization/run_summarization_no_trainer.py | 89365b4de4e98c8eab269b1a856346d0563ea95c | [
"Apache-2.0"
] | permissive | newcodevelop/transformers | fbcef5d703b12febf6e76e84e3f0493769fb9d37 | e8d1bd7427021d2114ec159b2c90c6b1fcddeae7 | refs/heads/main | 2023-03-15T11:45:09.906184 | 2022-08-30T07:26:17 | 2022-08-30T07:26:17 | 254,360,734 | 0 | 1 | Apache-2.0 | 2020-04-09T12:07:09 | 2020-04-09T12:07:08 | null | UTF-8 | Python | false | false | 32,159 | py | #!/usr/bin/env python
# coding=utf-8
# Copyright The HuggingFace Team and The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.ap... | [
"noreply@github.com"
] | newcodevelop.noreply@github.com |
1f8e070c66da33ec4a155aad7a6c5e45b15d0133 | 302442c32bacca6cde69184d3f2d7529361e4f3c | /cidtrsend-all/stage2-model/tindexp_status2.py | 87e4c86e7e504010645de43055f5425eb9c58270 | [] | no_license | fucknoob/WebSemantic | 580b85563072b1c9cc1fc8755f4b09dda5a14b03 | f2b4584a994e00e76caccce167eb04ea61afa3e0 | refs/heads/master | 2021-01-19T09:41:59.135927 | 2015-02-07T02:11:23 | 2015-02-07T02:11:23 | 30,441,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | # coding: latin-1
import base64
import calendar
import os
import rfc822
import sys
import tempfile
import textwrap
import time
import urllib
import urllib2
import urlparse
import MySQLdb
import umisc
import Identify
def get_count_stt(usr):
Ar=False
conn= MySQLdb.connect(host='dbmy003... | [
"learnfuzzy@gmail.com"
] | learnfuzzy@gmail.com |
57f0eec682db0538954c758842f10d7ef4462a7c | 7c2702d19a975b5f431cf86adbe6a75d0b0aa6fa | /lcbtsv2vcf.py | ee6d6cde284e258cc324b6182bc4d3c81ae064ea | [
"MIT"
] | permissive | brendane/miscellaneous_bioinfo_scripts | 5b2e15a8a7e7eb2b3db17de9e871c41ecea68cb3 | 91ca3282823495299e4c68aa79bdc1c0225a6d7b | refs/heads/master | 2020-03-25T00:50:30.658106 | 2020-01-13T21:04:02 | 2020-01-13T21:04:02 | 143,208,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | #!/usr/bin/env python3
"""
Convert a tab-delimited table of LCB copy-number into a VCF file with
presence and absence.
lcbtsv2vcf.py [--keep <strains to keep>] <input tsv file>
"""
import argparse
import csv
import sys
parser = argparse.ArgumentParser(usage=__doc__)
parser.add_argument('--keep')
parser.a... | [
"epste051@umn.edu"
] | epste051@umn.edu |
5269a64eb14834e732c511e2e6111f7e4916bc7e | 368c66467b78adf62da04cb0b8cedd2ef37bb127 | /programmers/Python/프린터.py | b66205769153fda766965c6c01ce1b180c41664b | [] | no_license | DJHyun/Algorithm | c8786ddcd8b5693fc9b3b4721fdf1eeda21611c5 | fd6ae800886dac4ec5ff6cf2618bc2c839a76e7a | refs/heads/master | 2020-07-30T16:32:49.344329 | 2020-02-25T07:59:34 | 2020-02-25T07:59:34 | 210,289,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | # source = www.programmers.co.kr
from collections import deque
def solution(priorities, location):
answer = 1
dq = deque()
for i in range(len(priorities)):
dq.append([i, priorities[i]])
priorities.sort()
priorities.reverse()
max_ = priorities[answer - 1]
while True:
q = dq... | [
"djestiny4444@naver.com"
] | djestiny4444@naver.com |
2fe44c525791b4e78f92ad32446665c61f0e6d72 | e95aa33ab95c529c09ad8684891282927d8c012a | /achieve/tests/test_views.py | 39eaa4bb9ede3d73a67541da71acfb81c2ecb0ca | [
"BSD-2-Clause"
] | permissive | Kwpolska/achieve | ca25d4a34d55dcc837025d99e188c6e01c6354c0 | 3a28469467af1b6839b83ce59a97fdb081ad3bd2 | refs/heads/master | 2020-07-09T05:04:52.816285 | 2018-01-01T00:00:00 | 2017-12-31T14:30:22 | 66,780,895 | 2 | 1 | null | 2016-12-29T11:03:01 | 2016-08-28T17:19:18 | JavaScript | UTF-8 | Python | false | false | 3,584 | py | """Achieve view tests."""
import datetime
import json
import pytest
import pytz
from achieve.models import Task
from django.utils import timezone
@pytest.mark.django_db
def test_index_anonymous(client):
request = client.get("/")
assert request.status_code == 200
@pytest.mark.django_db
def test_index_admin(... | [
"kwpolska@gmail.com"
] | kwpolska@gmail.com |
f28b8e96e789c246c37632c4b7ee870470043708 | c537ce53f435f1c17d5fdbfe8f97405d0fb3f4f3 | /src/apps/messages/models.py | de3b7d0dfa5a02bf0a4b976fdf21086819c15585 | [] | no_license | HiPiH/life | dbe8892ceb9cc4aaaf6409ffb8391b4903be7fdc | 8b0cd5906bd5c508776831368896fc935c9e044b | refs/heads/master | 2021-01-10T21:33:17.478873 | 2011-12-21T05:13:55 | 2011-12-21T05:13:55 | 2,938,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,080 | py | #coding: utf-8
from django.utils.translation import ugettext_lazy as _
from django.db import models
from django.contrib.auth.models import User
from django.template.loader import render_to_string
import datetime
FolderDefault = 0
FolderFavorites = 1
FolderBlackLi... | [
"admin@nvk.su"
] | admin@nvk.su |
76e07629cd1706f4eb98fc25bbbee91dcf544242 | eb5645a5dcac52445cb8afe2d81e62ea5130180f | /_scrapers&cleaners/ds_big5/data_scrapers/faang/faang/spiders/links.py | fc6c4daf8d3cf94c83ba88307741b3caf633c218 | [
"MIT"
] | permissive | LukaszMalucha/Data-Labs-with-Python-Tableau | 17fd956397af7414d489276d2042e2f3c6f4bcc7 | d2b0a5ab9726aad78ec1cdf76006c66942a1b989 | refs/heads/master | 2023-03-07T11:06:33.572487 | 2022-02-19T12:30:38 | 2022-02-19T12:30:38 | 146,592,878 | 6 | 2 | MIT | 2023-03-01T02:52:02 | 2018-08-29T11:55:16 | Python | UTF-8 | Python | false | false | 2,156 | py | # -*- coding: utf-8 -*-
import selenium
from scrapy import Spider
from parsel import Selector
from selenium import webdriver
from scrapy.selector import Selector
from scrapy.http import Request
from scrapy.loader import ItemLoader
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.com... | [
"lucasmalucha@gmail.com"
] | lucasmalucha@gmail.com |
4f365fa53e9f8551e2e818cc51b0394cd837f020 | 84bcc9b226d168d63ec8997947d427443fe6a18f | /atomium/__init__.py | 03216745491a69ad5836340db4d2a65ad63b4e32 | [
"MIT"
] | permissive | heejongkim/atomium | 1bbbf164975833eb5dfffdb65408f48713c9bf87 | 96127d4aee6819333b572dc02e31d80e76fda0d8 | refs/heads/master | 2023-06-25T01:27:05.146997 | 2021-07-30T16:53:44 | 2021-07-30T16:53:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | from .utilities import open, fetch, fetch_over_ssh
from .structures import Atom, Residue, Ligand, Chain, Model
__author__ = "Sam Ireland"
__version__ = "1.0.10"
| [
"sam.ireland.uk@gmail.com"
] | sam.ireland.uk@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.