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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b4732a7f6c96f3017dae541e6ef9294eb8632c9c | 6982c3c54ee9199d93fb89c61cfdcba15b9b7012 | /python3_cookbook/chapter08/demo02.py | 85770265aaaf5341ddc89a3e76168dd08817c360 | [] | no_license | gzgdouru/python_study | a640e1097ebc27d12049ded53fb1af3ba9729bac | e24b39e82e39ee5a5e54566781457e18c90a122a | refs/heads/master | 2020-03-29T11:33:13.150869 | 2019-03-08T09:24:29 | 2019-03-08T09:24:29 | 149,858,658 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | '''
自定义字符串的格式化
'''
_formats = {
'ymd': '{d.year}-{d.month}-{d.day}',
'mdy': '{d.month}/{d.day}/{d.year}',
'dmy': '{d.day}/{d.month}/{d.year}'
}
class Date:
def __init__(self, year, month, day):
self.year = year
self.month = month
self.day = day
def __format__(self, format_s... | [
"18719091650@163.com"
] | 18719091650@163.com |
09925f31f19351fda75ef9c39ecb6ecb186a5c99 | 24f354c0a362c0a44fe0946f0a947930f0724f4d | /tests/unit/config/test_ini.py | d3608a6f540a216b4c83bd97783eb9170438e817 | [
"MIT"
] | permissive | pypa/virtualenv | 783cf226c806bcb44ee63fd87c37d76e90c121ce | 6d22da631fd289f89f921a4010047ad969b7bfa7 | refs/heads/main | 2023-09-04T06:50:16.410634 | 2023-08-30T14:32:38 | 2023-08-30T14:32:38 | 1,446,474 | 4,313 | 1,073 | MIT | 2023-09-12T14:54:09 | 2011-03-06T14:33:27 | Python | UTF-8 | Python | false | false | 842 | py | from __future__ import annotations
import sys
from textwrap import dedent
import pytest
from virtualenv.info import IS_PYPY, IS_WIN, fs_supports_symlink
from virtualenv.run import session_via_cli
@pytest.mark.skipif(not fs_supports_symlink(), reason="symlink is not supported")
@pytest.mark.xfail(IS_PYPY and IS_WIN... | [
"noreply@github.com"
] | pypa.noreply@github.com |
84a51f1c66522d2338158587e627aa28ee1c0298 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /pyDemMDspSSFdWsh4_2.py | b7cb001bbe31b50d1e5bc5559aa8530b83963619 | [] | 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 | 262 | py |
def digital_decipher(eMessage, key):
keyPos = 0
key = str(key)
decodeMessage = ''
for digit in eMessage:
decodeMessage += chr(int(digit) - int(key[keyPos])+96)
keyPos += 1
if (keyPos >= len(key)):
keyPos = 0
return decodeMessage
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
979fdb825b0a5335d0686544a45de62b21f44394 | 747f759311d404af31c0f80029e88098193f6269 | /addons/product_size/__terp__.py | 993d5bef698daa83448dd32d4d3643e51c4d6420 | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | /home/openerp/production/extra-addons/product_size/__terp__.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
d20971ac7d122528ac943d5a46e7e8f529aa93db | 19a4365d81507587ef09488edc7850c2227e7165 | /159.py | 1269b3a84de6cd5b5911a7d86d4ea7721918348b | [] | no_license | akauntotesuto888/Leetcode-Lintcode-Python | 80d8d9870b3d81da7be9c103199dad618ea8739a | e2fc7d183d4708061ab9b610b3b7b9e2c3dfae6d | refs/heads/master | 2023-08-07T12:53:43.966641 | 2021-09-17T19:51:09 | 2021-09-17T19:51:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | # Time: O(n)
# Space: O(1)
class Solution:
def lengthOfLongestSubstringTwoDistinct(self, s: str) -> int:
d = {}
count = 0
start, end = 0, 0
result = 0
while end < len(s):
c = s[end]
d[c] = d.get(c, 0) + 1
if d[c] == 1:
count... | [
"tiant@qualtrics.com"
] | tiant@qualtrics.com |
39dcc0a8cb19d050d40f63af8512633fbbddc8e7 | f17fe3c240aeda4205d934a34fc2fc407c6d9f8a | /backend/silent_lake_29099/wsgi.py | 25d60da238c4e278e073595fb4c11c76d1b79f0b | [] | no_license | crowdbotics-apps/silent-lake-29099 | d5baaa2272c8362af6cc2adacf738c99fa4bb770 | 6993bc68a87d0e835d5d3b4240e9e1412d851528 | refs/heads/master | 2023-06-22T22:49:18.030820 | 2021-07-23T23:51:23 | 2021-07-23T23:51:23 | 388,954,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for silent_lake_29099 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJ... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
a8a55c5ceaf4f047f4055dd69e03d9e78b0fb41b | e8c4392a4470abd770be6805e6032ef36cb50ea9 | /dev/prepare_jvm_release.py | 045adf5bd2e93b90499e8c464ec286e10128b43c | [
"Apache-2.0"
] | permissive | vishalbelsare/xgboost | 3f133a97c20654e1ada64af4d89da2493a0197f0 | b124a27f57c97123daf9629555aa07e90dc77aed | refs/heads/master | 2023-08-17T01:50:45.285904 | 2021-11-23T08:45:36 | 2021-11-23T08:45:36 | 129,266,376 | 0 | 0 | Apache-2.0 | 2021-11-23T18:35:32 | 2018-04-12T14:44:31 | C++ | UTF-8 | Python | false | false | 2,918 | py | import os
import sys
import errno
import subprocess
import glob
import shutil
from contextlib import contextmanager
def normpath(path):
"""Normalize UNIX path to a native path."""
normalized = os.path.join(*path.split("/"))
if os.path.isabs(path):
return os.path.abspath("/") + normalized
else:
... | [
"noreply@github.com"
] | vishalbelsare.noreply@github.com |
be23945603db0d48e9bf6c9b3d89f7c8c219bc1d | 7d85c42e99e8009f63eade5aa54979abbbe4c350 | /game/tools/build_tools/make.py | 2e55e59e68a8d04a495b61e0b90078d11af6cf1a | [] | no_license | ToontownServerArchive/Cog-Invasion-Online-Alpha | 19c0454da87e47f864c0a5cb8c6835bca6923f0e | 40498d115ed716f1dec12cf40144015c806cc21f | refs/heads/master | 2023-03-25T08:49:40.878384 | 2016-07-05T07:09:36 | 2016-07-05T07:09:36 | 348,172,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,312 | py | '''
Use this script to invoke Nirai builder and compile the game.
This process consists of 3 step:
1. Pack models into a models.mf.
2. Compile src/sample.cxx and generate sample.exe using NiraiCompiler.
3. Generate sample.nri, which contains the Python modules.
'''
import argparse
import sys
import os
from niraitool... | [
"brianlach72@gmail.com"
] | brianlach72@gmail.com |
baf9e01690d9b7617c973a0ffbeaf8dff30a2ba2 | 3712a929d1124f514ea7af1ac0d4a1de03bb6773 | /开班笔记/python网络爬虫部分/day02/lxmlTest.py | 5436f0ebe77b8b9ef01a6d55ce88f6ab04779c42 | [] | no_license | jiyabing/learning | abd82aa3fd37310b4a98b11ea802c5b0e37b7ad9 | 6059006b0f86aee9a74cfc116d2284eb44173f41 | refs/heads/master | 2020-04-02T20:47:33.025331 | 2018-10-26T05:46:10 | 2018-10-26T05:46:10 | 154,779,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 12 17:20:25 2018
@author: jyb
"""
from lxml import etree
lxmlStr = '''
<bookstore>
<book>
<title lang="en">Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
<book>
<title lang="zh">hello world</title>
<author>... | [
"yabing_ji@163.com"
] | yabing_ji@163.com |
89e2373d1870ea26db666a16121383000169882e | 8a081742c8a58c872a15f01d6d4d8c1028e4f7eb | /1404.py | b7f2fe45af35e2bd9b49f8c76ce20624ed64ad2c | [] | no_license | dibery/leetcode | 01b933772e317ccd4885b508de503b7873a4b65f | 096218b5d0b47ce38874c4b7141aca35e9d678c9 | refs/heads/master | 2022-05-20T03:50:45.525256 | 2022-05-17T00:57:48 | 2022-05-17T00:57:48 | 211,606,152 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | class Solution:
def numSteps(self, s: str) -> int:
s, ans = int(s, 2), 0
while s > 1:
ans += 1
s += 1 if s % 2 else s //= 2
return ans
| [
"bor810818@yahoo.com.tw"
] | bor810818@yahoo.com.tw |
1bccf0f17e21a5f80aa85d92e8131607b1f3fa1c | 9818262abff066b528a4c24333f40bdbe0ae9e21 | /Day 28/UtopianTree.py | 1bc5b897230286bb4173fdca69d29b1cdd03d6f9 | [
"MIT"
] | permissive | skdonepudi/100DaysOfCode | 749f62eef5826cb2ec2a9ab890fa23e784072703 | af4594fb6933e4281d298fa921311ccc07295a7c | refs/heads/master | 2023-02-01T08:51:33.074538 | 2020-12-20T14:02:36 | 2020-12-20T14:02:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | '''
The Utopian Tree goes through 2 cycles of growth every year. Each spring, it doubles in height. Each summer, its height increases by 1 meter.
A Utopian Tree sapling with a height of 1 meter is planted at the onset of spring. How tall will the tree be after growth cycles?
For example, if the number of growth cycles... | [
"sandeepiiitn@gmail.com"
] | sandeepiiitn@gmail.com |
d7ce82cd92dd0e5ae2c3e33a2bbb2f04c5a3d44b | 987697512ce9b8d7c29bfd2f18d5aec0261a6863 | /最长回文串.py | 8b40ab6ad9297a3c3ba8188befafb8af968ff812 | [] | no_license | Luckyaxah/leetcode-python | 65e7ff59d6f19312defdc4d4b4103c39193b198a | 2b9c78ba88e7bf74a46a287fb1914b4d6ba9af38 | refs/heads/master | 2023-06-05T12:15:31.618879 | 2021-06-22T13:05:30 | 2021-06-22T13:05:30 | 262,287,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | class Solution:
def longestPalindrome(self, s: str) -> int:
d = {}
for i in s:
if not i in d:
d[i] = 1
else:
d[i] += 1
ret = 0
m = 0
for i in d:
if d[i] % 2 ==0:
ret += d[i]
else:
... | [
"math_leqi@163.com"
] | math_leqi@163.com |
f37207209c196d663aa2e43026e64b1a2b9cd70e | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /great_year_and_same_woman/important_part/group/want_old_place.py | 611d05cfce1273ef655fed24e8b67caedddea3ff | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py |
#! /usr/bin/env python
def great_work(str_arg):
life(str_arg)
print('able_person')
def life(str_arg):
print(str_arg)
if __name__ == '__main__':
great_work('life_and_child')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
350aba3f5ae51a3e7b63b960204bddbeee38d131 | d01822ba7fa5522c89c83f20907003f5c4823dde | /CNN_GPU.py | 559d15521dd4810f15c81c1a9f11094f08a722f2 | [] | no_license | cp4011/Neural-Network | 853aab63c871d19aeb73911af56ccf9351ad1f3c | 93b33b6a14fed7010285da8fb3efc4a62152cef3 | refs/heads/master | 2020-05-02T07:22:18.778871 | 2019-04-15T10:49:40 | 2019-04-15T10:49:40 | 177,816,249 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,451 | py | import torch
import torch.nn as nn
import torch.utils.data as Data
import torchvision
# torch.manual_seed(1)
EPOCH = 1
BATCH_SIZE = 50
LR = 0.001
DOWNLOAD_MNIST = False
train_data = torchvision.datasets.MNIST(root='./mnist/', train=True, transform=torchvision.transforms.ToTensor(), download=DOWNLOAD_MNIST,)
train_lo... | [
"957628963@qq.com"
] | 957628963@qq.com |
a6f529f5c6d00ff3aba3df255dba713e85eac766 | 1c07579679f8a4c861777cff4faf30a8064862db | /social/__init__.py | e993f2fda050c964968927a8b09d383d28ce9fcc | [
"BSD-3-Clause",
"Python-2.0",
"BSD-2-Clause"
] | permissive | florelui001/python-social-auth | 86591a1c12dfc011a0d755a7b397691e54821400 | 81093d2135c3eafd6fc5dd763f31a7889a9f1ce4 | refs/heads/master | 2021-01-15T08:10:42.444979 | 2014-02-27T21:00:17 | 2014-02-27T21:00:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | """
python-social-auth application, allows OpenId or OAuth user
registration/authentication just adding a few configurations.
"""
version = (0, 1, 22)
extra = '-dev'
__version__ = '.'.join(map(str, version)) + extra
| [
"matiasaguirre@gmail.com"
] | matiasaguirre@gmail.com |
b04b9e636a59a5c6f889dd245dae7adbd868af09 | 8f6946286dfad1d61be7425dde737daed7027c3f | /ckstyle/command/args.py | 0c7551eafb4fb344689f8901ef20f989f68d82c1 | [
"BSD-3-Clause"
] | permissive | ljspace/CSSCheckStyle | e75d7616d8c9444b581b38a91a10aff7b4f731ad | c12be2181d6576349bf52c218d8fb1809c11da12 | refs/heads/master | 2021-01-16T20:29:55.157662 | 2013-04-16T03:58:36 | 2013-04-16T03:58:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | class CommandArgs():
def __init__(self):
self.operation = None
self.errorLevel = 2
self.recursive = False
self.printFlag = False
self.extension = '.ckstyle.txt'
self.include = 'all'
self.exclude = 'none'
self.standard = ''
self.exportJson = Fal... | [
"wangjeaf@gmail.com"
] | wangjeaf@gmail.com |
c2e3ddd4b12b41ff8990d4864171cbf2b80ae6d7 | 159d4ae61f4ca91d94e29e769697ff46d11ae4a4 | /venv/lib/python3.9/site-packages/pandas/tests/resample/test_resampler_grouper.py | 204efa0e5670fcd8e1e750dae7e7b34df513e81a | [
"MIT"
] | permissive | davidycliao/bisCrawler | 729db002afe10ae405306b9eed45b782e68eace8 | f42281f35b866b52e5860b6a062790ae8147a4a4 | refs/heads/main | 2023-05-24T00:41:50.224279 | 2023-01-22T23:17:51 | 2023-01-22T23:17:51 | 411,470,732 | 8 | 0 | MIT | 2023-02-09T16:28:24 | 2021-09-28T23:48:13 | Python | UTF-8 | Python | false | false | 14,411 | py | from textwrap import dedent
import numpy as np
import pytest
import pandas.util._test_decorators as td
from pandas.util._test_decorators import async_mark
import pandas as pd
from pandas import (
DataFrame,
Index,
Series,
TimedeltaIndex,
Timestamp,
)
import pandas._testing as tm
from pandas.core.... | [
"davidycliao@gmail.com"
] | davidycliao@gmail.com |
9615461a5293189ea9ccf409f475b6f55413cc97 | 7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0 | /1201-1300/1273-Delete Tree Nodes/1273-Delete Tree Nodes.py | 5aaf4cc9fdfc040b2b1d974afc0e5e5b2294eae5 | [
"MIT"
] | permissive | jiadaizhao/LeetCode | be31bd0db50cc6835d9c9eff8e0175747098afc6 | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | refs/heads/master | 2021-11-05T04:38:47.252590 | 2021-10-31T09:54:53 | 2021-10-31T09:54:53 | 99,655,604 | 52 | 28 | MIT | 2020-10-02T12:47:47 | 2017-08-08T05:57:26 | C++ | UTF-8 | Python | false | false | 545 | py | import collections
class Solution:
def deleteTreeNodes(self, nodes: int, parent: List[int], value: List[int]) -> int:
graph = collections.defaultdict(list)
for i in range(1, len(parent)):
graph[parent[i]].append(i)
def dfs(root):
total = value[root]
... | [
"jiadaizhao@gmail.com"
] | jiadaizhao@gmail.com |
b56cf17c850ee1b033aa5372bb53774fe8d95850 | dd221d1ab80a49190a0c93277e2471debaa2db95 | /hanlp/components/parsers/ud/ud_model.py | 729f49c1af9decf8c14572ed1691eed63ed91021 | [
"Apache-2.0",
"CC-BY-NC-SA-4.0"
] | permissive | hankcs/HanLP | 29a22d4e240617e4dc67929c2f9760a822402cf7 | be2f04905a12990a527417bd47b79b851874a201 | refs/heads/doc-zh | 2023-08-18T12:48:43.533453 | 2020-02-15T17:19:28 | 2023-03-14T02:46:03 | 24,976,755 | 32,454 | 9,770 | Apache-2.0 | 2023-08-13T03:11:39 | 2014-10-09T06:36:16 | Python | UTF-8 | Python | false | false | 5,198 | py | # -*- coding:utf-8 -*-
# Author: hankcs
# Date: 2020-12-15 14:21
from typing import Dict, Any
import torch
from hanlp.components.parsers.biaffine.biaffine_dep import BiaffineDependencyParser
from hanlp.components.parsers.biaffine.biaffine_model import BiaffineDecoder
from hanlp.components.parsers.ud.tag_decoder impo... | [
"jfservice@126.com"
] | jfservice@126.com |
34da4c02c5e9aef4bb76bf8ab68e179817b9db01 | 42a7b34bce1d2968079c6ea034d4e3f7bb5802ad | /ex3.py | da806348e797aa669ec5014ca90987dda6716f49 | [] | no_license | linpan/LPTHW | 45c9f11265b5e1ffe0387a56cec192fa12c6c4d5 | 227bfee3098e8ecb5f07ffc3a0b8e64a853106ce | refs/heads/master | 2021-04-26T13:42:56.859644 | 2014-12-18T15:21:14 | 2014-12-18T15:21:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | #! /usr/bin/env python
#coding:utf-8
print "I will now count my chieckens."
print "Hens", 25 + 30 / 6
print "Roosters", 100 - 25 * 3 % 4
print "Now I will count the eggs:"
print 3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 +6
print "Is it true that 3 + 2 < 5 -7 ?"
print 3 + 2 < 5 -7
print "What is 3 +2 ?", 3 + 2
print "W... | [
"shine_forever@yeah.net"
] | shine_forever@yeah.net |
753ebea727be64a72b3dfbff1b574f0a142ce574 | b2968e2b2092971f6fd72f9c72b50b5faf304985 | /zjazd_4/math_examples.py | e68d657f4a70ceb57b0ca23ad3216c6fa53cfe9c | [] | no_license | ArturoWest/pythonbootcamp | 815d0a3d6b29f12efdbd47fc7b7b7dfd18bff24f | fa7b20dfc71dcd80c201f28c72086294e482b075 | refs/heads/master | 2020-03-31T02:55:15.574065 | 2018-12-02T14:35:01 | 2018-12-02T14:35:01 | 151,844,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | import math
print(math.sin(math.pi/2))
print(dir(math))
"""
Stwórz klasę sfera
s = Sfera(10)
s.promien # 10
s.objetosc() # 4188.78...
s.pole_powierzchni() # 1256.63...
"""
class Kula:
def __init__(self, r):
self.promien = r
def objetosc(self):
return (4/3) * math.pi * math.pow(self.promien... | [
"you@example.com"
] | you@example.com |
6e06d589ab36e4ea0c4a28dbb5f19654f5117e41 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5636311922769920_0/Python/ricbit/fractiles.py | 92d6025f44c5533c922023d088ce4a84b348b55a | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | for case in xrange(input()):
k,c,s = map(int, raw_input().split())
print "Case #%d: %s" % (case + 1, ' '.join(str(1+i) for i in xrange(k)))
| [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
7373a853fc106496505b63aa97cb81a3b4c74a2d | 04740a66d98730afca496eb0cf5e7b5edea5f6e6 | /backend/dataset/strStr/strmatch_16.py | 9c00b55f82dfafeb143e4c6fb29fe88f22448f09 | [] | no_license | mehulthakral/logic_detector | 0c06fbd12d77a02c888d0bbe3e6776a18f2f46e3 | f7a07a6d229b250da9e02d3fac1a12fa51be97e8 | refs/heads/master | 2023-04-12T12:45:29.370502 | 2021-05-05T17:15:02 | 2021-05-05T17:15:02 | 323,953,099 | 2 | 0 | null | 2021-05-03T16:50:44 | 2020-12-23T16:39:28 | null | UTF-8 | Python | false | false | 250 | py | class Solution:
def strStr(self, haystack, needle):
n, h = len(needle), len(haystack)
hash_n = hash(needle)
for i in range(h-n+1):
if hash(haystack[i:i+n]) == hash_n:
return i
return -1
| [
"mehul.thakral@gmail.com"
] | mehul.thakral@gmail.com |
33d8103a2f341f6f29a3359b9fa3be7c61b5e3ca | caa7a39055c3451db43b39ffc5e70dc560749334 | /contactus/models.py | ca5c45307ce64df354bddb41c95112374e65bc33 | [] | no_license | OneStage-NITW/website | da2438e3857c03a0c38fa6db6a33619b330a3e0d | af86e38560f16f70a0b74bcf2aeab4d855fbdc74 | refs/heads/master | 2016-08-12T15:17:14.577895 | 2015-05-31T18:10:52 | 2015-05-31T18:10:52 | 36,546,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | from django.db import models
# Create your models here.
class Supporter(models.Model):
name=models.CharField(max_length=100)
| [
"vivekhtc25@gmail.com"
] | vivekhtc25@gmail.com |
954d4f04753e7d4fd2561471a3d7d2caf2b10d6c | 93c7eebb83b88cd4bfb06b6e5695ad785c84f1d6 | /tazebao/newsletter/migrations/0019_tracking_notes.py | 60750c49486164f1f0ac14d3f046001e45690468 | [] | no_license | otto-torino/tazebao | 960e31a576f4acc7cd4572e589424f54a8e9b166 | 12db8605b5aa9c8bf4f735a03af90d0989018105 | refs/heads/master | 2023-08-09T02:06:14.749976 | 2023-07-28T07:20:23 | 2023-07-28T07:20:23 | 68,196,585 | 5 | 0 | null | 2022-12-08T05:25:04 | 2016-09-14T10:21:21 | HTML | UTF-8 | Python | false | false | 493 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-27 12:06
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('newsletter', '0018_tracking_type'),
]
operations = [
migrations.AddField(
... | [
"abidibo@gmail.com"
] | abidibo@gmail.com |
ffa7006b45dc4d4246f63987a54c2535ec95a7de | 68ea05d0d276441cb2d1e39c620d5991e0211b94 | /2144.py | bb654c8a0b7125606aa402a02d74bd202336952f | [] | no_license | mcavalca/uri-python | 286bc43aa157d3a6880dc222e0136c80cf079565 | e22875d2609fe7e215f9f3ed3ca73a1bc2cf67be | refs/heads/master | 2021-11-23T08:35:17.614443 | 2021-10-05T13:26:03 | 2021-10-05T13:26:03 | 131,339,175 | 50 | 27 | null | 2021-11-22T12:21:59 | 2018-04-27T19:54:09 | Python | UTF-8 | Python | false | false | 618 | py | final = 0.0
total = 0
while True:
w1, w2, r = [int(x) for x in input().split()]
if w1 == w2 == r == 0:
break
media = float(((w1 * (1 + r/30))+(w2 * (1 + r/30))))/2.0
final += media
total += 1
if media < 13:
print('Nao vai da nao')
elif media < 14:
print('E 13')
el... | [
"m.cavalca@hotmail.com"
] | m.cavalca@hotmail.com |
34c124b3a7647f01806bfe8477086b68f63e78b5 | 4a7092876b5057867a1290114e29dfd9fb1c0820 | /fastccd_support_ioc/utils/python2-version/setFCRIC-Normal.py | 28cf771b07ad1017c253270d147325d411a39a06 | [
"BSD-3-Clause"
] | permissive | ihumphrey/fastccd_support_ioc | 2380a9c23037ccb552d00efdb0235b7116e6ea19 | 7cd844102f042bea2fa5a31217e15fd72731b523 | refs/heads/master | 2023-03-03T04:34:39.827326 | 2021-02-08T19:47:09 | 2021-02-08T19:47:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,696 | py | #! /usr/bin/python
# -*- coding: utf-8 -*-
import cin_constants
import cin_register_map
import cin_functions
# Mask Triggers & turn off Bias
# import setTriggerSW
# cin_functions.setCameraOff()
# Clamp Mode registers
# Write clampr
cin_functions.WriteReg("821D", "A000", 0)
cin_functions.WriteReg("821E", "0048", 0)
ci... | [
"ronpandolfi@gmail.com"
] | ronpandolfi@gmail.com |
afa1dd6b0f679aa6df6a0a0250b61aa5007a4a21 | 08f5dd97433ce84868dbd95020e49f795e8e3f42 | /website/migrations/0011_auto_20150726_2337.py | 1c3b5f116150b0b516139ab4f7af13d2afd1e2d9 | [] | no_license | katur/forthebirds | f76e9d78f8b71f5cb13f22f3c417e737f6048896 | 2118fabebd8780cd3151f5ddd88245de402590e9 | refs/heads/master | 2023-08-08T18:57:55.722516 | 2023-03-28T03:04:19 | 2023-03-28T03:04:19 | 22,771,365 | 2 | 1 | null | 2023-07-25T21:23:49 | 2014-08-08T20:56:20 | Python | UTF-8 | Python | false | false | 1,219 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('website', '0010_auto_20150104_1404'),
]
operations = [
migrations.AddField(
model_name='userprofile',
... | [
"katherine.erickson@gmail.com"
] | katherine.erickson@gmail.com |
ad5c1854793eb7ff7a06b89123406bd985a462ea | 3701467a06bc624c9520984bf6bfc71c95d648d6 | /NewModelNetworkKBP/dataElmoKBP.py | 6b2c34b1656164f046b3aa9ac6958b0a01eebfe6 | [] | no_license | llq20133100095/ANA_SL_ELMO | b54ecef3774f0db85a4940ff7a402c7ebc41b9ba | 46ce451e2841cff1978044110330c2218822644a | refs/heads/master | 2020-07-30T05:11:44.519440 | 2020-06-23T06:22:28 | 2020-06-23T06:22:28 | 210,097,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,298 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Thu May 16 10:47:09 2019
@author: llq
@function:
1.process the KBP dataset
2.concate the "glove embedding"
and "Elmo embedding" and "Pos embedding"
"""
import numpy as np
#from allennlp.commands.elmo import ElmoEmbedder
import re
import tim... | [
"1182953475@qq.com"
] | 1182953475@qq.com |
d3e761fd33793aa11b6438e8a85ee6b8d49d9f26 | bd02997a44218468b155eda45dd9dd592bb3d124 | /baekjoon_1149.py | 4e0e23db2a3600c59ccc9ab1de7704622b137d4c | [] | no_license | rheehot/ProblemSolving_Python | 88b1eb303ab97624ae6c97e05393352695038d14 | 4d6dc6aea628f0e6e96530646c66216bf489427f | refs/heads/master | 2023-02-13T03:30:07.039231 | 2021-01-04T06:04:11 | 2021-01-04T06:04:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | '''
Problem Solving Baekjoon 1149
Author: Injun Son
Date: September 23, 2020
'''
import sys
import copy
from itertools import combinations
from collections import deque
import math
N = int(input())
cost = []
for _ in range(N):
r, g, v = map(int, input().split())
cost.append([r, g, v])
'''
dp[i][0] = i번째 집을 r로... | [
"ison@sfu.ca"
] | ison@sfu.ca |
6298ae66b2659ba754329d0314f6849ce42e0261 | 0995f4b2a0db3fe88e68862c4e3125becfb5f8af | /scripts/generate_pairs2_cacd.py | dfa29e0f924d62d97e13bde82bb8b16490216b2b | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | phymhan/face-aging | db010df62b281befeb1149085ba865382637e3f8 | 2970793d85f2502929222ca7269fb427afee71c1 | refs/heads/master | 2020-03-22T00:33:19.686177 | 2018-09-18T13:17:48 | 2018-09-18T13:17:48 | 139,252,060 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,730 | py | # datafile: A B 0/1/2
# label: 0: A < B, 1: A == B, 2: A > B
import os
import random
import argparse
random.seed(0)
parser = argparse.ArgumentParser()
parser.add_argument('--mode', type=str, default='train')
parser.add_argument('--N', type=int, default=140000)
parser.add_argument('--margin', type=int, default=10)
op... | [
"hanligong@gmail.com"
] | hanligong@gmail.com |
fcf5cdd7421b4f2532a2e661e5f029b817329d95 | dd681dd7874c80c2804ca8d66cdbfdf2abec537e | /Python/venv/Lib/site-packages/tensorflow/keras/datasets/boston_housing/__init__.py | 53ffc7b9cca8e7eac1826d4cf34ba9db26f68fff | [] | no_license | khaled147/Koneked | cbbaec78cf3828575e835445f45b9dd72c39d808 | 98bdc701a3d126c742e076ee3ad34719a0ac5309 | refs/heads/main | 2023-04-03T11:37:07.941179 | 2021-04-14T02:09:35 | 2021-04-14T02:09:35 | 345,202,202 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Boston housing price regression dataset.
"""
from __future__ import print_function as _print_function
import sys as _sys
from tensorflow.python.keras.datasets.boston_housing import loa... | [
"elmalawanykhaled@gmail.com"
] | elmalawanykhaled@gmail.com |
8f53c74814241b9df893b923178de00b3e5b2f16 | ec0fb2acbe70d3d7f399aea42038221298c8268e | /part010/ch05_shapely/sec6_interop/test_3_geo_inter_x_x.py | 6d92bbb779c365957775521a98a907196adfb01c | [] | no_license | GAIMJKP/book_python_gis | fa09567337bfccd4ab968228d4890ec0538ada50 | cd09be08df4cf4d3e06cf7c43d0b80cc76976a7e | refs/heads/master | 2022-11-07T18:32:22.340481 | 2020-06-20T13:22:58 | 2020-06-20T13:22:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
###############################################################################
from shapely.geometry import asShape
d = {"type": "Point", "coordinates": (0.0, 0.0)}
shape = asShape(d)
shape.geom_type
tuple(shape.coords)
list(shape.coords)
#################################... | [
"bukun@osgeo.cn"
] | bukun@osgeo.cn |
0134f050e7db3b58bc21acea96931a03d5ce5775 | a26ae51a1d84249c31c58b90231b7ec23e1aa74d | /flask_app.py | e75e4e1d9083d00221068309ed9821d50809fb02 | [] | no_license | Yaomingqing/Image-Super-Resolution | b5e975f08d9cec0d1ba71ec3489e388c6ef69a2a | 631b2af81d012ff58c9d7a91f37e3e1d31377222 | refs/heads/master | 2021-08-10T13:05:44.662484 | 2017-11-12T15:58:48 | 2017-11-12T15:58:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,187 | py | from keras.models import load_model
from flask import Flask, request, render_template, flash, redirect, url_for
from werkzeug.utils import secure_filename
import models
import os
import tensorflow as tf
upload_folder = 'data/'
if not os.path.exists(upload_folder):
os.makedirs(upload_folder)
ALLOWED_EXTENSIONS = {... | [
"titu1994@gmail.com"
] | titu1994@gmail.com |
12654f11056f73cda0eb1e3ff7d062af58f8d11c | 90fb55320c81259cb199b9a8900e11b2ba63da4f | /232/gold.py | 2b2c82b71ecab0bffd80f1f0592f28ec519fc32d | [] | no_license | pogross/bitesofpy | f9bd8ada790d56952026a938b1a34c20562fdd38 | 801f878f997544382e0d8650fa6b6b1b09fa5b81 | refs/heads/master | 2020-05-19T07:31:44.556896 | 2020-01-26T12:48:28 | 2020-01-26T12:48:28 | 184,899,394 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,068 | py | from itertools import tee
from dataclasses import dataclass
# https://pkgstore.datahub.io/core/gold-prices/annual_csv/data/343f626dd4f7bae813cfaac23fccd1bc/annual_csv.csv
gold_prices = """
1950-12,34.720 1951-12,34.660 1952-12,34.790 1953-12,34.850 1954-12,35.040
1955-12,34.970 1956-12,34.900 1957-12,34.990 1958-12,35... | [
"p.gross@tu-bs.de"
] | p.gross@tu-bs.de |
157d1915be5de8fd962c5458f9608cfa50c53211 | 35b58dedc97622b1973456d907ede6ab86c0d966 | /Test/2020年6月20日/selenium爬取动态加载数据.py | 75b922d51f77c8fd0aec94d57a25352626e16274 | [] | no_license | GithubLucasSong/PythonProject | 7bb2bcc8af2de725b2ed9cc5bfedfd64a9a56635 | e3602b4cb8af9391c6dbeaebb845829ffb7ab15f | refs/heads/master | 2022-11-23T05:32:44.622532 | 2020-07-24T08:27:12 | 2020-07-24T08:27:12 | 282,165,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | from selenium import webdriver
from lxml import etree
from time import sleep
bro = webdriver.Chrome(executable_path='chromedriver')
# bro = webdriver.Edge(executable_path='./msedgedriver')
bro.get('http://125.35.6.84:81/xk/')
sleep(1)
# 获取页面源码内容
page_text = bro.page_source
all_page_text = [page_text]
for i in rang... | [
"1433880147@qq.com"
] | 1433880147@qq.com |
0e704a2a55c9e5385fe8629bf8951a4746839574 | 0129b016055daa1aaa1e9e0911f271fa7b38e27e | /programacao_estruturada/20192_166/volume_circunferencia.py | 7eeb20de3039fe9af93f2fd698bac1b55a04a7d5 | [] | no_license | rogeriosilva-ifpi/teaching-tds-course | 7c43ff17d6677aef7b42071929b3de8361748870 | 771ccdc4dc932d0ef5ce6ba61a02b5ee11920d4c | refs/heads/master | 2022-04-04T01:08:45.157185 | 2020-01-30T19:36:57 | 2020-01-30T19:36:57 | 206,439,119 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | # entrada
raio = int(input('Raio: '))
# processamento
pi = 3.14
volume = (4 * pi * raio) / 3
# saida
print('Volume:', volume) | [
"rogerio.silva@ifpi.edu.br"
] | rogerio.silva@ifpi.edu.br |
abfcd32e8c71bff43c8a98c626c2fe7d9afc2b6c | 8fc7635b84b42e61b7efb9eaf7215394b5b5790a | /aliennor-backend copy/aliennorDjangoBackend/aliennorDjangoBackend/settings.py | cb042666939a3793989e062b84e22ccf1baf9c76 | [] | no_license | phamcong/aliennor-platform | f1e8470aab7ed634859e071f6028931f576ddf3e | e1d71532426ac9414d2158d50ee34c32257618f0 | refs/heads/master | 2021-05-14T17:08:08.629564 | 2018-02-17T23:35:07 | 2018-02-17T23:35:07 | 116,038,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,851 | py | """
Django settings for aliennorDjangoBackend project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
... | [
"ccuong.ph@gmail.com"
] | ccuong.ph@gmail.com |
5b1f9fa94e913fb8469bb608f7aff55cd882ab1f | c227735e87fe9da845e81c994f5a0c4cc410abf9 | /Python/ReverseString.py | 378dd1708951b66f59c8040961793d275e8f5106 | [
"MIT"
] | permissive | ani03sha/potd | 816d5a25c9658eb38dda46352d7518d999a807f2 | 05ca25039c5462b68dae9d83e856dd4c66e7ab63 | refs/heads/main | 2023-02-02T18:14:43.273677 | 2020-12-18T15:31:06 | 2020-12-18T15:31:06 | 315,034,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | """
Given a string, reverse all of its characters and return the resulting string.
"""
from typing import List
class ReverseString:
def reverseString(self, s: List[str]) -> List:
# Reversed string
reversedString = ""
# Loop for all characters in the string
for i in s:
r... | [
"anirudh03sharma@gmail.com"
] | anirudh03sharma@gmail.com |
f374671883af08c4b50ac4f41ea90214c848b1a7 | c380976b7c59dadaccabacf6b541124c967d2b5a | /.history/src/data/data_20191018141356.py | 20f7b6d5858a6e20347e611529877edb27123cb8 | [
"MIT"
] | permissive | bkraft4257/kaggle_titanic | b83603563b4a3c995b631e8142fe72e1730a0e2e | f29ea1773773109a867278c001dbd21a9f7b21dd | refs/heads/master | 2020-08-17T12:45:28.653402 | 2019-11-15T16:20:04 | 2019-11-15T16:20:04 | 215,667,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,042 | py | import pandas as pd
from typing import Union
from pathlib import Path
from nameparser import HumanName
class ExtractData:
title_translator = {
"Mlle.": "Mrs.",
"Mme.": "Mrs.",
"Sir.": "Mr.",
"Ms.": "Mrs.",
"": "Mr.",
"Col.": "Mr.",
"Capt.": "Mr.",
"... | [
"bob.kraft@infiniteleap.net"
] | bob.kraft@infiniteleap.net |
75201fde37f7cebb6c0b276f4e6f89c588af812a | 238e46a903cf7fac4f83fa8681094bf3c417d22d | /VTK/vtk_7.1.1_x64_Debug/lib/python2.7/site-packages/twisted/cred/portal.py | 23e48739cfb924a7a71886e884eb010098d27305 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | baojunli/FastCAE | da1277f90e584084d461590a3699b941d8c4030b | a3f99f6402da564df87fcef30674ce5f44379962 | refs/heads/master | 2023-02-25T20:25:31.815729 | 2021-02-01T03:17:33 | 2021-02-01T03:17:33 | 268,390,180 | 1 | 0 | BSD-3-Clause | 2020-06-01T00:39:31 | 2020-06-01T00:39:31 | null | UTF-8 | Python | false | false | 5,460 | py | # -*- test-case-name: twisted.test.test_newcred -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
The point of integration of application and authentication.
"""
from twisted.internet import defer
from twisted.internet.defer import maybeDeferred
from twisted.python import f... | [
"l”ibaojunqd@foxmail.com“"
] | l”ibaojunqd@foxmail.com“ |
9050b0975c3054ac27ea2a22854e52f9441d1b2b | 5a16e8cec8cc3900096dd9d6914482f63e81b01f | /conf/settings.py | add336da760b26daeb00f9e74195126b40bd040f | [] | no_license | chenrun666/FR- | 8c3f8181781274e2b895c21c95c9ee731dd3f5ce | 5614c2ca469f2ac9529d83b902ce3411416f13c3 | refs/heads/master | 2020-04-22T19:58:36.785285 | 2019-02-14T02:58:36 | 2019-02-14T02:58:36 | 170,626,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | # 测试环境
TEST = True
CHOOSESITE = False
# 回填结果
result = {
"accountPassword":"",
"accountType":"",
"accountUsername":"",
"cardName": "",
"cardNumber": "",
"checkStatus": True,
"clientType": "",# 跑单的客户端码
"createTaskStatus": True,
"linkEmail": "",
"linkEmailPassword": "",
"linkP... | [
"17610780919@163.com"
] | 17610780919@163.com |
5b94d7cb3c951405797f09f7785cf0ac70ee2123 | 07c75f8717683b9c84864c446a460681150fb6a9 | /back_cursor/S-scrapy/zhilianspider2/zhilianspider2/settings.py | 76979aa5a98fe2c2624dddecb681be245fbf0fda | [] | no_license | laomu/py_1709 | 987d9307d9025001bd4386381899eb3778f9ccd6 | 80630e6ac3ed348a2a6445e90754bb6198cfe65a | refs/heads/master | 2021-05-11T09:56:45.382526 | 2018-01-19T07:08:00 | 2018-01-19T07:08:00 | 118,088,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,160 | py | # -*- coding: utf-8 -*-
# Scrapy settings for zhilianspider2 project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/lates... | [
"1007821300@qq.com"
] | 1007821300@qq.com |
4d74b892e84c8743de61cae4f7390681d20d20af | 496b6f92d62999ee88a8a1ff6dfe64285ec3fc56 | /ayush_crowdbotics_211/urls.py | 21b8756b708b4532e4e76355dd3f3bcf448d6d08 | [] | no_license | payush/ayush-crowdbotics-211 | cab04122c6c605d1fa6993630cd81dd39a81e1f5 | 72ddd9b7d506faa430215575913fb09834051a63 | refs/heads/master | 2020-03-23T10:19:23.756211 | 2018-07-18T13:16:00 | 2018-07-18T13:16:00 | 141,437,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | """ayush_crowdbotics_211 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='h... | [
"ayushpuroheet@gmail.com"
] | ayushpuroheet@gmail.com |
307f587d31cc07e174370678eb26c5487377e342 | 157cf9d7327499d86162eb0170684f4b02a9804a | /scrapylib/proxy.py | 8f19e099c4210fe2780818d83ace596d2a39f9ed | [] | no_license | alepharchives/scrapylib | 8f59f6f1abe075adb49fbd28a6f575851cab3099 | 9d84cca95952a19d85c3229df7105502649d99e0 | refs/heads/master | 2021-01-24T01:58:45.568968 | 2012-11-07T20:13:38 | 2012-11-07T20:13:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | import base64
from urllib import unquote
from urllib2 import _parse_proxy
from urlparse import urlunparse
from scrapy.conf import settings
class SelectiveProxyMiddleware(object):
"""A middleware to enable http proxy to selected spiders only.
Settings:
HTTP_PROXY -- proxy uri. e.g.: http://user:pass@... | [
"pablo@pablohoffman.com"
] | pablo@pablohoffman.com |
3baf8e9914792b2d398347aa85e55b038c491263 | 89fea7d230e282b3bd3cf2d7db1b003e572e6fa8 | /genconf/views.py | 34042b1fcf0916e223d81ec77069c612f784a390 | [] | no_license | madron/genconf | 45abaf66010944e2df9ca1bdaa32328267c62584 | 99c7d82d55b5075299940adfeaff903b0c70bc8b | refs/heads/master | 2020-12-04T11:51:16.029577 | 2016-01-15T09:35:01 | 2016-01-15T09:35:01 | 231,754,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from django.views.generic import DetailView
from . import models
class ConfigurationView(DetailView):
http_method_names = ['get']
model = models.Router
template_name = 'genconf/configuration/configuration.txt'
| [
"massimiliano.ravelli@gmail.com"
] | massimiliano.ravelli@gmail.com |
78f02da277f4298af340f876baf26f6f0f8ce38a | 9b2255e0a474555d8a4d90f586e280d40224a181 | /apps/common/urls.py | b60c575f1aeced024158b7e6f3fbde0719d8e8eb | [] | no_license | rogeriofalcone/redirector | 85f496f7c3a3c755b2d9f86f90d25ace783842e4 | 8255be80ce4e3245317864dcc580a1ef68a7c244 | refs/heads/master | 2020-04-08T07:03:19.053680 | 2012-08-12T19:13:35 | 2012-08-12T19:13:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,259 | py | from django.conf.urls.defaults import patterns, url
from django.views.generic.simple import direct_to_template
from django.conf import settings
urlpatterns = patterns('common.views',
url(r'^about/$', direct_to_template, {'template': 'about.html'}, 'about_view'),
url(r'^changelog/$', 'changelog_view', (), 'chan... | [
"Roberto.Rosario.Gonzalez@gmail.com"
] | Roberto.Rosario.Gonzalez@gmail.com |
0b66f6ab3a183691b0308c29dabfc36e889109a5 | 997c82f5d9684945fb2f5d5481dc4d251a93755f | /famapy/core/operations/products.py | 70f4b1107b28b43b64401baecdbb3814a6c47f11 | [] | no_license | jmhorcas/famapy-aafms | a6e45b5fff2c820037daf95151df5bc6895b1611 | bcc80f7061bed4d6bfd536f9d53cf195bffa01e6 | refs/heads/main | 2023-08-24T05:51:47.337325 | 2021-10-15T10:18:20 | 2021-10-15T10:18:20 | 389,559,981 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | from abc import abstractmethod
from typing import Any
from famapy.core.operations import Operation
class Products(Operation):
@abstractmethod
def __init__(self) -> None:
pass
@abstractmethod
def get_products(self) -> list[Any]:
pass
| [
"jhorcas@us.es"
] | jhorcas@us.es |
8fd4193624ed4b3ec5193cdc4ac863af4ddabfdf | 50b77b527b95659c6ac8484a1091a70b4ad25d73 | /2019/19/aoc19.py | fdfbb0fd8a49953dc81279bd988da641306ef860 | [] | no_license | cjuub/advent-of-code | d3a4569dd0b7bf7e10dc6a76a1ffe569df4e93a2 | bb92d8ae96cde8c3e57abed26019e692fa6e168f | refs/heads/master | 2023-01-10T00:32:56.847184 | 2023-01-02T20:46:57 | 2023-01-02T20:46:57 | 160,243,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,337 | py | #!/usr/bin/env python3
from typing import List
class IntCodeComputer:
OP_ADD = 1
OP_MUL = 2
OP_LOAD = 3
OP_STORE = 4
OP_JUMP_IF_TRUE = 5
OP_JUMP_IF_FALSE = 6
OP_LESS_THAN = 7
OP_EQUALS = 8
OP_REL_BASE = 9
OP_HALT = 99
class HaltException(Exception):
pass
def ... | [
"cjuuub@gmail.com"
] | cjuuub@gmail.com |
990e2217fe711cd73fd1d06d8903d92f9d4bb47a | 7d2f933ed3c54e128ecaec3a771817c4260a8458 | /venv/Lib/site-packages/sklearn/tests/test_random_projection.py | 4a928196200e0a3c341825db400be0947b1e67b0 | [] | no_license | danielmoreira12/BAProject | c61dfb1d0521eb5a28eef9531a00e744bfb0e26a | 859f588305d826a35cc8f7d64c432f54a0a2e031 | refs/heads/master | 2021-01-02T07:17:39.267278 | 2020-02-25T22:27:43 | 2020-02-25T22:27:43 | 239,541,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,126 | py |
import functools
import numpy as np
import pytest
import scipy.sparse as sp
from sklearn.exceptions import DataDimensionalityWarning
from sklearn.metrics import euclidean_distances
from sklearn.random_projection import GaussianRandomProjection
from sklearn.random_projection import SparseRandomProjection
from sklearn.r... | [
"danielmoreira12@github.com"
] | danielmoreira12@github.com |
7f6bd6db1950bb212336a9d800d41cf1c6515222 | 27556d221db5669fd74dd57344ded4cf2942c0ae | /contact/views.py | b49b69a35b79e8d1d331c3b66fb8e75ee39ac4b8 | [] | no_license | edzen12/sendEmail | 60a9dce424ec80c41b68b1092a55259154c4e080 | eb2a8feb609d9034695674a94308ed70ea600bcd | refs/heads/master | 2023-08-25T03:36:38.538297 | 2021-10-12T08:45:11 | 2021-10-12T08:45:11 | 416,253,922 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | from rest_framework import viewsets, mixins
from contact.models import Person
from contact.serializers import PersonSerializer
class PersonViewSet(mixins.CreateModelMixin, viewsets.GenericViewSet):
queryset = Person.objects.all()
serializer_class = PersonSerializer
| [
"oichiev.edzen@gmail.com"
] | oichiev.edzen@gmail.com |
7a05fadb04f7095039de7c80f514ced4dad3eeb8 | 8033688716c7b120d8105fb98152467c515d7d03 | /makeScalingFunctionPlot.py | edde28e4600681d9c21512f107d64dfddf7b3b24 | [] | no_license | jonathon-langford/EFT-Fitter | 68214a8f46e9817dc7add99d16e3260ae5d1617d | 1cebdef80497bb66ac2d262e2347c4d8100f94b8 | refs/heads/master | 2023-05-20T06:51:21.341971 | 2021-02-12T19:35:12 | 2021-02-12T19:35:12 | 338,414,103 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,914 | py | import os, sys
import json
import re
from optparse import OptionParser
from collections import OrderedDict as od
from importlib import import_module
import pickle
import ROOT
import numpy as np
def get_options():
parser = OptionParser()
parser.add_option('--pois', dest='pois', default='params.HEL', help="Name of j... | [
"jl2117@ic.ac.uk"
] | jl2117@ic.ac.uk |
e12d6762e76b184388535c634d9a135c76ad728f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02400/s312694229.py | 0e3f00ee5086355e387498233f562d240a9c9fa5 | [] | 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 | 168 | py | import sys
import math
def main():
r = float(sys.stdin.readline())
print(math.pi * r**2, 2 * math.pi * r)
return
if __name__ == '__main__':
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a950c831386ddc3bd2049db23e626695c198bb3a | 6b5572557c4a0785c4b727ee024790ec066ad6f2 | /Baekjoon/동적계획법 1/1, 2, 3 더하기.py | c018911cffa41fdf3bdb10a60894fd54e9209e12 | [] | no_license | easternpillar/AlgorithmTraining | 5be38998dc062d1d02933f61eaca3265e1b73981 | c8f05eda86161a7dbacab99154be1af292e7db8a | refs/heads/master | 2023-04-29T11:13:34.984005 | 2023-04-08T07:12:29 | 2023-04-08T07:12:29 | 231,875,419 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | # Problem:
# Reference: https://www.acmicpc.net/problem/9095
# My Solution:
import sys
dp = [0 for _ in range(11)]
dp[0] = 1
for i in range(1, 4, 1):
for j in range(1,11):
tot = 0
for k in range(j - i, j, 1):
if k >= 0:
tot += dp[k]
dp[j] = tot
for _ in range(in... | [
"roh941129@gmail.com"
] | roh941129@gmail.com |
3fae578b5162e7f5acb831c405be63172c98b6df | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/cache/300a07a56fa3435d495e1ce8762b25d84931bfae7c2899c2825326bcc799b818/typing/re.py | 2336d186762e5e40248962573d6c349ef6e6ffaa | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | # encoding: utf-8
# module typing.re
# from C:\Users\Doly\Anaconda3\lib\site-packages\statsmodels\tsa\statespace\_representation.cp37-win_amd64.pyd
# by generator 1.147
""" Wrapper namespace for re type aliases. """
# no imports
# functions
def Match(*args, **kwargs): # real signature unknown
"""
The central ... | [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
167439e261d55b4a6013812c4b86be943e29dd30 | 16e8129f7a12239ed49aabfa04549d90419bb12e | /old_explore.py | 1b2cf18e07a1f4df23eb6398cb62957b72fd8c45 | [] | no_license | Seanny123/hrl_analysis | 0a5a4ff8b672d05760e39ec5558557220d71459d | 7ccf2beea6090c1493c4dce95630ef251f9c6548 | refs/heads/master | 2020-05-18T20:59:29.098987 | 2015-01-07T23:18:56 | 2015-01-07T23:18:56 | 28,878,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | not_equal = []
count = 0
for i,j in zip(file_list[0], file_list[1]):
if(i != j ):
not_equal.append(1)
count += 1
else:
not_equal.append(0) | [
"saubin@uwaterloo.ca"
] | saubin@uwaterloo.ca |
48d4b9fe1ff3432fc5ef22a33a9d4014933c5d2c | 53983c1dbd4e27d918237d22287f1838ae42cc92 | /tools/txtIO.py | 03e55b006916f7db35cb202eb15e7466473f3329 | [] | no_license | xshii/MDAOXS | da5060ea6b6ac600b3b85dddbb7460f62ab4a684 | d4c54b79d7c84740bf01d8e8573e54522de2e6d0 | refs/heads/master | 2021-09-24T10:35:31.295574 | 2018-10-08T10:54:44 | 2018-10-08T10:54:44 | 108,884,304 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | import numpy as np
def stlTxtToNpArray(path):
path = r"/Users/gakki/Downloads/SU2_mesh_point_clouds/Optimale_orig_points.txt"
mesh = np.empty([1,3])
with open(path) as fp:
for line in fp:
if line.__len__()<5:
continue
line = line.strip().split(';')
... | [
"xshi@kth.se"
] | xshi@kth.se |
66c824ae5c6b6b235b3bb178b980a4953d6ba68e | b615aa786c2a57809196713920e784187b1c1cd6 | /53_finetune_crf_loss_new_mask_LOC_max_seq_128_batch_32_lr5e5_lr5e5/CRF2.py | cee3a4b4c1166c0eead2b032679d7c877b88dd3f | [] | no_license | hoon4233/KoElectra-CRF | 5ae14d883271e78fcd344b169dddf49a34789af1 | 0adf89715d1369de097160cb821f931386f2ebb0 | refs/heads/master | 2023-07-16T19:19:25.229933 | 2021-09-04T03:13:48 | 2021-09-04T03:13:48 | 402,653,513 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,310 | py | from typing import List, Optional
import torch
import torch.nn as nn
class CRF(nn.Module):
"""Conditional random field.
This module implements a conditional random field [LMP01]_. The forward computation
of this class computes the log likelihood of the given sequence of tags and
emission score tenso... | [
"wogns3141@gmail.com"
] | wogns3141@gmail.com |
1a37d2f7a618537fb84f62c141d88105e25238a2 | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v4/services/ad_group_service_client_config.py | 1931ef3dfd64f9494a515ac86c2f1db21526b546 | [
"Apache-2.0"
] | permissive | fiboknacky/google-ads-python | e989464a85f28baca1f28d133994c73759e8b4d6 | a5b6cede64f4d9912ae6ad26927a54e40448c9fe | refs/heads/master | 2021-08-07T20:18:48.618563 | 2020-12-11T09:21:29 | 2020-12-11T09:21:29 | 229,712,514 | 0 | 0 | Apache-2.0 | 2019-12-23T08:44:49 | 2019-12-23T08:44:49 | null | UTF-8 | Python | false | false | 964 | py | config = {
"interfaces": {
"google.ads.googleads.v4.services.AdGroupService": {
"retry_codes": {
"idempotent": [
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": []
},
"retry_params": {
"default": {
"initial_retry_delay_millis"... | [
"noreply@github.com"
] | fiboknacky.noreply@github.com |
8e95de029333c6c144fe7923a72ce823d922cfcf | c2102a9f17a9e08988f367cf785eb3f5d7925854 | /backend/home/migrations/0002_load_initial_data.py | 03d33413376a79c8d6e8efbc30a313757e5182c9 | [] | no_license | crowdbotics-apps/frego-24047 | 44d1569e12748ac327867ac08cfee416ae6eef45 | b30631f14473f965604b937458aea3c7739fd170 | refs/heads/master | 2023-02-19T10:00:37.381026 | 2021-01-25T11:07:44 | 2021-01-25T11:07:44 | 332,718,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "Frego"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
hom... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d6ea747b5957732d583916c70b4f80bc1cdb39b4 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17s_1_02/brocade_mpls_rpc/show_mpls_ldp_fec_prefix_prefix/input/__init__.py | 414039c71bac5dac5968fee3843019053441ab0c | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,492 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
ebddad0a10200abb12d5766947407ad330b1c73e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03773/s930206485.py | 73718780627fbe486462c2c936d41e242d1de545 | [] | 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 | 83 | py | import sys
input = sys.stdin.readline
a,b=map(int,input().split())
print((a+b)%24)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5f4d4cbae4be77f5c897b06ef5e96f1d6c45ff12 | 4f875744ccae8fa9225318ce16fc483b7bf2735e | /amazon/missingNumber.py | 51bc4b88b741139e123462001c9eba084a29d249 | [] | no_license | nguyenngochuy91/companyQuestions | 62c0821174bb3cb33c7af2c5a1e83a60e4a29977 | c937fe19be665ba7ac345e1729ff531f370f30e8 | refs/heads/master | 2020-07-27T05:58:36.794033 | 2020-04-10T20:57:15 | 2020-04-10T20:57:15 | 208,893,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 1 23:59:19 2020
@author: huyn
"""
#Missing Number
#Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array.
from typing import List
class Solution:
def missingNumber(self, nums: List[int]) -> int:
... | [
"huyn@cvm6h4zv52.cvm.iastate.edu"
] | huyn@cvm6h4zv52.cvm.iastate.edu |
e7ccb286539047d1d436e032546a3938ddce7bf1 | 0b86600e0288c0fefc081a0f428277a68b14882e | /binaire/binaire_II.py | b861b63f8209d81b2dbc50518fcc23ce46f0cebc | [] | no_license | Byliguel/python1-exo7 | 9ede37a8d2b8f384d1ebe3d612e8c25bbe47a350 | fbf6b08f4c1e94dd9f170875eee871a84849399e | refs/heads/master | 2020-09-22T10:16:34.044141 | 2019-12-01T11:52:51 | 2019-12-01T11:52:51 | 225,152,986 | 1 | 0 | null | 2019-12-01T11:51:37 | 2019-12-01T11:51:36 | null | UTF-8 | Python | false | false | 5,199 | py |
##############################
# Binaire - partie II
##############################
from binaire_I import *
##############################
# Activité 1 - Palindrome en binaire
##############################
## Question 1 ##
def est_palindrome_1(liste):
p = len(liste)
drapeau = True
for i in range(p):... | [
"arnaud.bodin@math.univ-lille1.fr"
] | arnaud.bodin@math.univ-lille1.fr |
5f7da7fa319f1cc207012d4a7c768df8dbb81213 | b096dbccb31d3bd181259e930816964c71034ff4 | /tests/test_asynchronous/test_task.py | 73017b8eafee20bb87f1953d01201f1490e7e409 | [] | no_license | cosphere-org/lily | b68f95720381a69ce0caa5f47fca461b3f5242a9 | f6a8281e10eedcccb86fcf3a26aaf282d91f70f4 | refs/heads/master | 2023-02-18T13:49:03.568989 | 2022-06-30T09:58:23 | 2022-06-30T09:58:23 | 175,789,374 | 6 | 0 | null | 2023-02-15T18:49:10 | 2019-03-15T09:28:05 | Python | UTF-8 | Python | false | false | 369 | py |
from unittest import TestCase
from lily.asynchronous import AsyncTask
class AsyncTaskTestCase(TestCase):
def test_init(self):
def fn():
pass
task = AsyncTask(callback=fn, args=[9, 1])
assert task.callback == fn
assert task.args == [9, 1]
assert task.succes... | [
"maciej@cosphere.org"
] | maciej@cosphere.org |
3ba8f7fac04d4e7b45bfe7128eff82a0fb4248dc | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/ipu/test_gelu_op_ipu.py | 5877341afb1264b0ffe18dd0fbecc822be5d9904 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 2,151 | py | # Copyright (c) 2021 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
cd11f4c013bbbf9e2770dc15bde51f95098d6eac | a43cf3cacf518096737dd39833fd39624f8cf543 | /tests/test_csv_adapters.py | 071ac85a5c6f6098d645e145a468f026e11bcd6a | [
"Apache-2.0"
] | permissive | Mickey1964/antevents-python | f6ad4f9b056550055a223f7d4a7d34bc030c1dfb | 5b9226813583141986014fc83f6f74342a5f271e | refs/heads/master | 2021-06-15T11:23:56.253643 | 2017-03-31T05:25:59 | 2017-03-31T05:25:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,236 | py | # Copyright 2016 by MPI-SWS and Data-Ken Research.
# Licensed under the Apache 2.0 License.
"""Verify the csv reader/writer through a round trip
"""
import unittest
import time
from tempfile import NamedTemporaryFile
import os
import asyncio
import datetime
from antevents.base import Scheduler, IterableAsPublisher, S... | [
"jeff@data-ken.org"
] | jeff@data-ken.org |
8c9c6f86415414eac65099b6ad036d598482a6ef | cc88beafd7a59a832fecff45f436490f805ba000 | /demos/json_schema.py | 72f3cf8eec40655d6dac240792698b62d8a3ff2c | [
"BSD-3-Clause"
] | permissive | RobSpectre/structures | 6ead59bf37ef02e3c3d2181dc941a2e60f98becb | 5345fb63658eecdc59e08882372294f13b0df889 | refs/heads/master | 2020-12-25T04:29:11.389945 | 2012-08-25T17:45:15 | 2012-08-25T17:45:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | #!/usr/bin/env python
"""{'type': 'object', 'properties': {'personal_thoughts': {'type': 'string', 'id': 'personal_thoughts', 'maxLength': 255}, 'title': {'type': 'string', 'id': 'title', 'maxLength': 40}, 'id': {'type': 'string'}, 'year': {'minimum': 1950, 'type': 'integer', 'id': 'year', 'maximum': 2011}}}
"""
im... | [
"jd@j2labs.net"
] | jd@j2labs.net |
449c3c5e309070e99dc56af5ec86f50dc0f73458 | 5292b03998384c0d2bb5858058892d7e45c5365b | /Hack.lu/2020/right-spot/run.py | 8c7042ab7fb76f17d7a1c5a6d887097b60883e2d | [
"MIT"
] | permissive | TheusZer0/ctf-archives | 430ef80d367b44fd81449bcb108e367842cb8e39 | 033ccf8dab0abdbdbbaa4f0092ab589288ddb4bd | refs/heads/main | 2023-09-04T17:56:24.416820 | 2021-11-21T06:51:27 | 2021-11-21T06:51:27 | 430,603,430 | 1 | 0 | MIT | 2021-11-22T07:24:08 | 2021-11-22T07:24:07 | null | UTF-8 | Python | false | false | 2,998 | py | #!/usr/bin/env python3
import zlib
import sys
import os
import subprocess
import io
import bz2
import sys
from flag import flag
COMPRESSED_LIMIT = 2**20 # 1 MB compressed
DECOMPRESSED_LIMIT = 30*2**20 # 30 MB uncompressed
EXPECTED_STRING = b"pwned!\n"
NUM_TESTS = 4
def compress(data):
if len(data) > DE... | [
"sajjadium@google.com"
] | sajjadium@google.com |
4ffb855b13fd38f3ff0bf76db89c7a878afc1c77 | e210c28eeed9d38eb78c14b3a6388eca1e0e85d8 | /examples/advanced/sklearn-svm/jobs/sklearn_svm_base/app/custom/svm_learner.py | 070ceb832d5e6448975001a4a6fd155dcae0fea3 | [
"Apache-2.0"
] | permissive | NVIDIA/NVFlare | 5a2d2e4c85a3fd0948e25f1ba510449727529a15 | 1433290c203bd23f34c29e11795ce592bc067888 | refs/heads/main | 2023-08-03T09:21:32.779763 | 2023-07-05T21:17:16 | 2023-07-05T21:17:16 | 388,876,833 | 442 | 140 | Apache-2.0 | 2023-09-14T19:12:35 | 2021-07-23T17:26:12 | Python | UTF-8 | Python | false | false | 3,884 | py | # Copyright (c) 2023, NVIDIA CORPORATION. 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 appli... | [
"noreply@github.com"
] | NVIDIA.noreply@github.com |
5097b846d08047afa9caae82e49275ea9f3c46fa | af8f42e890126aa9af0535991e7c7109db1cedf7 | /hw1/reports/sec2plot.py | b3a31adb9c253b6768e3e192addbcc8116a3fcb0 | [
"MIT"
] | permissive | mwhittaker/homework | 1c482a346a85c0eb9364185cb90ab5efdc67d632 | 2faa90662ea0b256625bd07d0d26de39b4e9a455 | refs/heads/master | 2021-01-22T07:39:51.446384 | 2017-10-18T17:31:05 | 2017-10-18T17:31:05 | 102,309,475 | 4 | 0 | null | 2017-09-04T02:16:25 | 2017-09-04T02:16:25 | null | UTF-8 | Python | false | false | 378 | py | import matplotlib.pyplot as plt
import numpy as np
def main():
X = np.genfromtxt("sec2.txt", delimiter=" ")
steps = X[:,0]
loss = X[:,1]
plt.figure()
plt.semilogy(steps, loss)
plt.grid()
plt.xlabel("Training iteration")
plt.ylabel("Training loss (average mean squared error)")
plt.s... | [
"mjwhittaker@berkeley.edu"
] | mjwhittaker@berkeley.edu |
8ed04321cc923a0b0cf6b320d0b25f6205625691 | b50c44ad44f95035332f371517808406e4a756d0 | /cbvSerializers/cbvApp/migrations/0001_initial.py | 3af20fe7c5f546e1c79919b7d44819cc546f7478 | [] | no_license | anandkumar-design/api1 | d970e336f15b46dceb07ef480aa57fd544a3bd93 | ae767463828138b97f4cf5ef6f7ac2ae4ac33afa | refs/heads/main | 2023-04-25T00:18:13.406364 | 2021-05-13T12:43:35 | 2021-05-13T12:43:35 | 367,045,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # Generated by Django 3.2 on 2021-05-04 08:16
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
('id', models.IntegerField... | [
"you@example.com"
] | you@example.com |
22e6134ec7f1f2c305fd830471c62ba2d52f78ba | e3a97b316fdf07b170341da206163a865f9e812c | /python/kwiver/vital/tests/test_category_hierarchy.py | c9497979ff437d836cb13a371ab1157285bb6372 | [
"BSD-3-Clause"
] | permissive | Kitware/kwiver | 09133ede9d05c33212839cc29d396aa8ca21baaf | a422409b83f78f31cda486e448e8009513e75427 | refs/heads/master | 2023-08-28T10:41:58.077148 | 2023-07-28T21:18:52 | 2023-07-28T21:18:52 | 23,229,909 | 191 | 92 | NOASSERTION | 2023-06-26T17:18:20 | 2014-08-22T15:22:20 | C++ | UTF-8 | Python | false | false | 16,958 | py | """
ckwg +31
Copyright 2020 by Kitware, 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 ... | [
"john.parent@kitware.com"
] | john.parent@kitware.com |
68ea1dea2939203e6f537230def02ae234372113 | e13c98f36c362717fdf22468b300321802346ef5 | /documents/migrations/0002_auto_20161206_1643.py | a5421c43dfb9d72c97c9d451bbe268874e6e6229 | [] | no_license | alexmon1989/libraries_portal | 2415cc49de33459266a9f18ed8bb34ac99d3eb7c | 277081e09f6347c175775337bffba074a35f3b92 | refs/heads/master | 2021-01-23T07:25:53.884795 | 2018-12-25T14:29:29 | 2018-12-25T14:29:29 | 80,501,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,158 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-12-06 14:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('documents', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(... | [
"alex.mon1989@gmail.com"
] | alex.mon1989@gmail.com |
0135a94e64c60142d8c29bfdaba4788908690526 | 376150fe6b4dd5d8c3caa65714aa47bc35e31784 | /nintendo/games.py | dd8c5a5db2e8ac06d7e378a4ab5f9226ca8181f6 | [
"MIT"
] | permissive | tenda-gumi/NintendoClients | 977d5de576a0216a2e6c894bfa5de1658f8ef5de | 67f2600f68e441980187932e8521d6dcc69dcc24 | refs/heads/master | 2020-06-17T14:33:52.314419 | 2019-07-10T04:19:38 | 2019-07-10T04:19:38 | 195,951,685 | 0 | 0 | null | 2019-07-09T07:03:23 | 2019-07-09T07:03:23 | null | UTF-8 | Python | false | false | 1,320 | py |
#===== Wii U Games =====#
class Friends:
TITLE_ID_EUR = 0x10001C00
TITLE_ID_USA = 0x10001C00
TITLE_ID_JAP = 0x10001C00
LATEST_VERSION = 0
GAME_SERVER_ID = 0x3200
ACCESS_KEY = "ridfebb9"
NEX_VERSION = 20000
class DKCTF:
TITLE_ID_EUR = 0x0005000010138300
TITLE_ID_USA = 0x0005000010137F00
TITLE_ID_JAP = 0x0... | [
"ymarchand@me.com"
] | ymarchand@me.com |
4b27e8803d48b26d90c568aa778d7eec4c44dc85 | 2210a763aa4679283b8d3b59e862caf691d4d5af | /projects/migrations/0003_userprofile.py | b8d9373aa4b9f3d471c16018d1fdfdf8b3e7faea | [
"BSD-2-Clause"
] | permissive | dymaxionlabs/analytics-backend | 21c7dd4579188b20214c7c8ac92db26ca04348f8 | fb801b184e4e510d54e8addb283fd202c9dfe7b1 | refs/heads/master | 2022-05-10T23:30:35.958044 | 2022-04-24T13:58:59 | 2022-04-24T13:58:59 | 192,096,995 | 0 | 0 | BSD-3-Clause | 2022-04-24T13:59:11 | 2019-06-15T15:55:28 | Python | UTF-8 | Python | false | false | 863 | py | # Generated by Django 2.1.5 on 2019-01-21 03:23
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('projects', '0002_auto_20... | [
"munshkr@gmail.com"
] | munshkr@gmail.com |
eef8ad3df7f2867949338d395c89c8fdc5d64834 | 1058984cbca36552120092af1f849cea27662c50 | /rebench/tests/interop/time_adapter_test.py | a73f964d66ac61d2533d516993e656b4d65258f5 | [
"MIT"
] | permissive | smarr/ReBench | 21437c7a348a1821f8c5e5016539211376439447 | fd8fa6beeac13c87e848ea76efb1243d1e6ee3ae | refs/heads/master | 2023-08-28T00:38:18.378579 | 2023-08-06T15:11:50 | 2023-08-06T15:11:50 | 1,263,079 | 71 | 19 | MIT | 2023-08-06T15:11:52 | 2011-01-17T10:43:28 | Python | UTF-8 | Python | false | false | 2,355 | py | # Copyright (c) 2016 Stefan Marr <http://www.stefan-marr.de/>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, mo... | [
"git@stefan-marr.de"
] | git@stefan-marr.de |
fb3ae55ef32a7d7e54a07342319d8f0569c814a0 | 6364bb727b623f06f6998941299c49e7fcb1d437 | /msgraph-cli-extensions/src/education/azext_education/vendored_sdks/education/operations/_education_class_assignment_submission_operations.py | 40c6e974d3dfc0da75b45fd0d3fe60b3bdfb72ea | [
"MIT"
] | permissive | kanakanaidu/msgraph-cli | 1d6cd640f4e10f4bdf476d44d12a7c48987b1a97 | b3b87f40148fb691a4c331f523ca91f8a5cc9224 | refs/heads/main | 2022-12-25T08:08:26.716914 | 2020-09-23T14:29:13 | 2020-09-23T14:29:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85,715 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
aca386663ee2b7bb52e07fbc3da653ace55ccb39 | fa3e527114cd5799dddb0a25067da4923eae354e | /FastSim/JUNO/reco/reco_test_v1.py | 44cb6f1977fa86490d524b1432e2d1ebb9f8a52f | [] | no_license | wenxingfang/FastSim_ML | e64c6b56ce2afd703d1ddda0ada2de6f65fde049 | d2f1abbb2f6879313d5f4f137b64c4d8bf10fe83 | refs/heads/master | 2022-11-28T01:35:39.727895 | 2020-08-03T15:47:37 | 2020-08-03T15:47:37 | 284,734,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,898 | py | import math
import yaml
import h5py
import json
import argparse
import numpy as np
from keras.models import model_from_json
from keras.models import model_from_yaml
from keras.models import load_model
from sklearn.utils import shuffle
def get_parser():
parser = argparse.ArgumentParser(
description='Run Cal... | [
"1473717798@qq.com"
] | 1473717798@qq.com |
958e66963b687952abe54f34a00c7cef057ef540 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/Lambda-Resource-Static-Assets/2-resources/_External-learning-resources/02-pyth/Python-master/ciphers/hill_cipher.py | bc8f5b41b624ca389e5279c713516e329ed4da0f | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 7,549 | py | """
Hill Cipher:
The 'HillCipher' class below implements the Hill Cipher algorithm which uses
modern linear algebra techniques to encode and decode text using an encryption
key matrix.
Algorithm:
Let the order of the encryption key be N (as it is a square matrix).
Your text is divided into batches of length N and con... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
4e6831c00eea402266ff39cd2de8df9a3ff7de0f | a72cb4d00528fb3d2d47f99a1ccca1b8b9b41ff7 | /scripts/addons_extern/space_view3d_rotview.py | e9abc14ef5ebc45a9695ad927f5db3e218dce9c0 | [] | no_license | talocan/blenderpython | b05204881183ff901ec189916a3bcc1d3e9d3e20 | 056ac37e76a1b410696c9efe4fe0ea09fdc68c0e | refs/heads/master | 2021-01-18T05:16:47.221786 | 2014-07-11T17:01:53 | 2014-07-11T17:01:53 | 21,749,332 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,151 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"super3dblender@yahoo.com"
] | super3dblender@yahoo.com |
4f6b1dc211e4bc1cc3ec122d5bc8cba70661d87d | f11600b9a256bf6a2b584d127faddc27a0f0b474 | /normal/1401.py | 52bff56683cf923937222e17b79a7c0999757b14 | [] | no_license | longhao54/leetcode | 9c1f0ce4ca505ec33640dd9b334bae906acd2db5 | d156c6a13c89727f80ed6244cae40574395ecf34 | refs/heads/master | 2022-10-24T07:40:47.242861 | 2022-10-20T08:50:52 | 2022-10-20T08:50:52 | 196,952,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | class Solution:
def checkOverlap(self, radius: int, x_center: int, y_center: int, x1: int, y1: int, x2: int, y2: int) -> bool:
# 条件 1:首先判断圆心是否在矩形内
if x1 <= x_center <= x2 and y1 <= y_center <= y2:
return True
# 条件 2:圆心位于矩形的上下左右四个区域
elif x_center > x2 and y1 <= y_center <=... | [
"jinlha@jiedaibao.com"
] | jinlha@jiedaibao.com |
af24b9455252c6b9b58c9672b4c0a8a22e0657eb | 334fafa9d87fdd13cc549a662a0cf35c47f2d5e3 | /backend/data/bahn/bahnscript/bahn2.py | 9738bfe0b9f26768f010e9a577d6262182208138 | [] | no_license | Jugendhackt/apartmapp | 27cd7c17e808a6948f017043e61ebd5480e87c89 | 0fded8e1da75a021547b53d68e88e9db524b088e | refs/heads/master | 2021-01-15T14:31:43.959035 | 2014-06-08T12:10:04 | 2014-06-08T12:10:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | import json, psycopg2
filename = "plankgeo_data.json"
def trains(filename):
con = psycopg2.connect(database='appartmapp', user='postgres')
cur = con.cursor()
with open(filename, "r") as data:
json_encoded = json.loads(data.read())
data.close()
# print to screen
print json_encoded[0]['lat']
for entry in j... | [
"me@me.com"
] | me@me.com |
9a7032fb4a6c3a4c73af2c3f8c631ba5100585c7 | 638b207f3c7706cb0cb9dd1d6cf112ab91f69837 | /0x11-python-network_1/5-hbtn_header.py | c0286a8b9aaaf86889e63216152a5918919ad69c | [] | no_license | NasserAbuchaibe/holbertonschool-higher_level_programming | c30a066dfd4525e936b4121f930c3a63e6d911d6 | 5b0c11423e11bd9201cc057775c099eb0259f305 | refs/heads/master | 2022-12-16T17:15:57.775143 | 2020-09-25T03:00:56 | 2020-09-25T03:00:56 | 259,379,453 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | #!/usr/bin/python3
""" Response header value
"""
import requests
from sys import argv
if __name__ == "__main__":
"""ok
"""
r = requests.get(argv[1])
print(r.headers.get('X-Request-Id'))
| [
"nasser_abuchaibe@hotmail.com"
] | nasser_abuchaibe@hotmail.com |
d5da6927dd31fe7ad45d93dbfc11c2071edde7dc | 14bca3c05f5d8de455c16ec19ac7782653da97b2 | /lib/kubernetes/client/models/v1_container_status.py | 1a90953d9050f84b6e1a3a816893dd05898df8f7 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hovu96/splunk_as_a_service_app | 167f50012c8993879afbeb88a1f2ba962cdf12ea | 9da46cd4f45603c5c4f63ddce5b607fa25ca89de | refs/heads/master | 2020-06-19T08:35:21.103208 | 2020-06-16T19:07:00 | 2020-06-16T19:07:00 | 196,641,210 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,938 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteri... | [
"robert.fujara@gmail.com"
] | robert.fujara@gmail.com |
684bb9b634cf46ead79b715049cf84129c8f2ed3 | 4bc25aaf986e481a533e22a7d74e963a18499593 | /Chapitre_5/visionneuse_1.py | 84b18735cbfc634e5f5e849a5feb1d38c636cf5d | [] | no_license | EditionsENI/python-raspberrypi-3e-edition | c5dd3be2cbc7e52793361f2a601b100011ea535d | f189aefc5ea0b265fd664c8a47dcde6cd110a8b0 | refs/heads/master | 2023-04-10T18:59:35.922958 | 2021-04-19T21:47:29 | 2021-04-19T21:47:29 | 317,060,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,780 | py | #!/usr/bin/env python3
import glob
import sys
import os
from tkinter import PhotoImage
from tkinter import Message
from tkinter import Button
from tkinter import Frame
from tkinter import Label
from tkinter import Tk
from tkinter import BOTTOM
from tkinter import LEFT
from tkinter import BOTH
from tkinter import YES
... | [
"monsieurp@gentoo.org"
] | monsieurp@gentoo.org |
45b917165828401e96c1a8c3a7cfa1b5fae52fd8 | 4f7d2beed58fd3f484b1930ca3adeac406576d66 | /config/settings/mlsettings/pyTorchClassificationParams.py | 0f57469851642d8c24fec13f9b798fbbfeec8d2d | [] | no_license | Srinidhi-SA/mAdvisorStgAPIUI | 55515997fff1e30fe22f6a88cc222dcd51816031 | 75653e9f2eef51be771991edd6473f470b344110 | refs/heads/main | 2023-08-24T15:53:27.585277 | 2021-10-08T06:27:49 | 2021-10-08T06:27:49 | 343,185,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76,760 | py | PT_ACTIVATION_ELU_PARAMS = [
{
"name": "alpha",
"displayName": "alpha",
"description": "the alpha value for the ELU formulation.",
"defaultValue": 1.0,
"paramType": "number",
"uiElemType": "textBox",
"display": True,
"hyperpatameterTuningCandidate": Tr... | [
"Srinidhi.Anantharamu@gmail.com"
] | Srinidhi.Anantharamu@gmail.com |
a29bbe7d2c8cb74beba2552e92cb4abc19df3926 | b773ff8595421fb743e55f7bc0190791f2ece7a2 | /backend/home/migrations/0002_load_initial_data.py | eb446cfe1a0a9a986553ca35b2a5b469e122a3f3 | [] | no_license | crowdbotics-apps/msm-tc208-fzjohztpg-12768 | d68746372f604aa5ec805c7c4c480eb451d2b96d | 016bfac5d6497dbd88b49eddc4b8f74788161c83 | refs/heads/master | 2022-12-28T04:01:12.567205 | 2020-10-06T05:28:05 | 2020-10-06T05:28:05 | 301,622,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "MSM-TC208-fzjohztpgt"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "Hom... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
144f59685bb10c3354166f6418c4dafff8ef54e3 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/ospf/actxpol.py | eb68c9228b8ae67d290caf769569822d2309626a | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 10,769 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
8f10397edc7ab65ffd5da0b053bac750e2a65976 | 552556631580799b16d0fb31e8f10850383ef3b2 | /ex3/outputs/hmmer/hmmer.DW_32-WS_384.out/info.py | ac221e133c77455ceb86e9ee7263f6d24f0a78b6 | [] | no_license | gregth/NTUA-advcomparch | f19ee414f8b77f749a09f263feb980350f88880d | bc501f427ddf1423f851ce1a052dc335183c5103 | refs/heads/master | 2022-11-14T20:11:49.035503 | 2020-06-27T09:17:43 | 2020-06-27T09:17:43 | 262,262,423 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 18,779 | py | power = {'BUSES': {'Area': 6.71959,
'Bus/Area': 6.71959,
'Bus/Gate Leakage': 0.0180267,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.187981,
'Bus/Subthreshold Leakage with power gating': 0.070493,
'Gate Le... | [
"gregthanasoulas@gmail.com"
] | gregthanasoulas@gmail.com |
efa2c847437a4664e7fb5a130f7dc6e093b737e4 | c115ba8fc9acc9bd2fd886a9507247e02e0c1035 | /_core/config/base.py | 772cce5b3eb76dbf2a447f35d3df4b365b7390fc | [] | no_license | ingafter60/completedjangoblog | bf368740f1171819689f231edd0e3ae4a61083de | df0f84630976d43e74d916dbf4a8cb4444176f7f | refs/heads/master | 2021-04-03T19:04:06.463307 | 2020-03-20T00:40:55 | 2020-03-20T00:40:55 | 248,388,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,909 | py | """
Django settings for _core project.
Generated by 'django-admin startproject' using Django 3.0.2.
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 os
# B... | [
"inyoman_gurnitha@yahoo.com"
] | inyoman_gurnitha@yahoo.com |
7d5d3566f8081503f4981349ffda1b3bdbd985ce | 469456a0bf4c7c040a8136b111195a82de17cc6b | /rgb_module.py | 40e20d6431581e0f70174a91bfb45c03869c9133 | [] | no_license | 6reg/function_fun | d2e73387e78396618d074c97a2b0088647693b4e | 64bf2d6211f9bdcc030922a7f5292c37a31eddd9 | refs/heads/main | 2023-07-07T23:42:46.426225 | 2021-08-07T22:10:47 | 2021-08-07T22:10:47 | 370,854,414 | 0 | 1 | null | 2021-07-07T02:20:18 | 2021-05-25T23:39:07 | Python | UTF-8 | Python | false | false | 666 | py | DATA_FILE = "./rgb_values.txt"
def load_data():
data = {}
file = open(DATA_FILE)
n_colors = 0
for line in file:
line = line.strip()
add_color(data, line)
n_colors += 1
print(len(data), n_colors)
file.close()
return data
def add_color(data, line):
parts = line.sp... | [
"mathiasgreg@gmail.com"
] | mathiasgreg@gmail.com |
fe75aa03e43019e1066a7e638a69ca2612f323d6 | 91ca2b4215b74c3b3f2517baab9205997c9bcf62 | /maps/migrations/0009_auto_20180205_1945.py | 319e4b341f7faee495ba53495621ba57b938524c | [
"Apache-2.0"
] | permissive | swiftlabUAS/SwiftUTM | ae0ca347058563a040c24b740a5760187e507879 | caf40195b017ab980323cf88bf95e671e38a2676 | refs/heads/master | 2022-12-16T00:02:01.766221 | 2020-09-22T14:27:12 | 2020-09-22T14:27:12 | 297,254,220 | 0 | 1 | MIT | 2020-09-22T14:27:14 | 2020-09-21T06:55:30 | null | UTF-8 | Python | false | false | 487 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-02-05 16:45
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('maps', '0008_locationpoints_shortcode'),
]
operations = [
migrations.AlterF... | [
"geoffreynyagak@gmail.com"
] | geoffreynyagak@gmail.com |
83a06f4dcd736336f0501d6bd4aa3a13a87113b8 | 7024d0fab7adee2937ddab28a2b69481ef76f9a8 | /llvm-archive/hlvm/build/bytecode.py | e21978e91a6f32943d5ac37306068592af7b29a3 | [] | no_license | WeilerWebServices/LLVM | 5b7927da69676a7c89fc612cfe54009852675450 | 1f138562730a55380ea3185c7aae565d7bc97a55 | refs/heads/master | 2022-12-22T09:05:27.803365 | 2020-09-24T02:50:38 | 2020-09-24T02:50:38 | 297,533,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,843 | py | from SCons.Environment import Environment as Environment
import re,fileinput,os
from string import join as sjoin
from os.path import join as pjoin
def AsmFromBytecodeMessage(target,source,env):
return "Generating Native Assembly From LLVM Bytecode" + source[0].path
def AsmFromBytecodeAction(target,source,env):
th... | [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
56f7c3b75781176c8c211e3d1a86345e6544e8be | ae74e9e03e9b8ba1d407bd5907d3fe197ce47a44 | /ggplot/04-graphs.py | 8d7d9c715bd502c503e9f71fb44de994503d773c | [] | no_license | dylanjorgensen/modules | 3f937298df6b1da0851cfbc4cbf6f046b81b303c | 9296284d3acdb0f899ad19f013fff4d73d0fcc0b | refs/heads/master | 2021-01-11T03:23:11.591989 | 2016-10-22T01:21:53 | 2016-10-22T01:21:53 | 71,014,891 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | from ggplot import *
import pandas as pd
import numpy as np
# Generate data
df = pd.read_csv("baseball-pitches-clean.csv")
df = df[['pitch_time', 'inning', 'pitcher_name', 'hitter_name', 'pitch_type',
'px', 'pz', 'pitch_name', 'start_speed', 'end_speed', 'type_confidence']]
print df.head()
# print df.dtype... | [
"dylan@dylanjorgensen.com"
] | dylan@dylanjorgensen.com |
6de8a8e58c7239a48d420c9f23e548175002d66e | 44eb40bf7bbd006f441b22d149dbb06eebe97506 | /src/chap05/gradient_check.py | f9819365dec71b653a1702cc28bc95aa3ac59923 | [] | no_license | hoonest/Deep_Learning | 56939f983c81e75b79d5474c11649dd57bf7107b | dd94f46ff886f20a47b09a54593e5fd2d53f0ed4 | refs/heads/master | 2020-04-19T22:52:03.640247 | 2019-02-19T03:34:16 | 2019-02-19T03:34:16 | 168,481,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | # coding: utf-8
import sys, os
sys.path.append(os.pardir) # 부모 디렉터리의 파일을 가져올 수 있도록 설정
import numpy as np
from src.dataset.mnist import load_mnist
from src.chap05.two_layer_net import TwoLayerNet
# 데이터 읽기
(x_train, t_train), (x_test, t_test) = load_mnist(normalize=True, one_hot_label=True)
network = TwoLayerNet(input... | [
"hoonest01@gmail.com"
] | hoonest01@gmail.com |
beda1750d055f278c7feba99c51342ec22251e02 | 2d4e020e6ab48c46e0a19cb69048d9e8d26e46a6 | /Job_Portal/job_portal/main/migrations/0005_auto_20210202_0143.py | 94b50b03f39910c2733310db1be8d839c9c1ae73 | [] | no_license | IsmailTitas1815/Learning | a92476fcf7bcd28a7dc1ab2f4eb3a5c27034728f | 207eaf4101a6d161c1044310f4b3cc54e9c514eb | refs/heads/master | 2023-07-04T20:13:07.263331 | 2021-08-07T20:07:39 | 2021-08-07T20:07:39 | 293,100,950 | 0 | 0 | null | 2021-05-07T16:55:29 | 2020-09-05T15:18:46 | Python | UTF-8 | Python | false | false | 577 | py | # Generated by Django 3.1.5 on 2021-02-01 19:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('main', '0004_auto_20210202_0138'),
]
operations = [
migrations.RemoveField(
model_name='candida... | [
"titas.sarker1234@gmail.com"
] | titas.sarker1234@gmail.com |
cf08ddf5aa4fd4f0d5bbd4c4f17f8720aa26e1c0 | bb0f5ec6ee0ed99afb09087ff0ea9bfe32b7ea49 | /utills/amount.py | 87463e68aad88f653aba56ac9ab975e44a5ea3b3 | [] | no_license | persontianshuang/lottery_admin | 49f3386d75671d0b2c43dfea3987e7fa8df84c9b | d8ebc7cf778cac24055a709886fbaa3b03325a69 | refs/heads/master | 2021-09-03T10:04:40.151502 | 2018-01-08T08:09:50 | 2018-01-08T08:09:50 | 111,886,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | import random,time
from datetime import datetime
class AmountCommon():
def __init__(self,db):
self.db = db
def sum_amount(self, db):
return sum([x.amount for x in db])
def all(self):
return str(self.sum_amount(self.db))
def today(self):
t = time.localtime(time.time()... | [
"mengyouhan@gmail.com"
] | mengyouhan@gmail.com |
0d399b3c2d49ebf9b122a374ffd30ba15918ed1c | daeebdbbce15b25975f2fdca5ed43cde36be9e05 | /src/pipelinex/hatch_dict/hatch_dict.py | 410fe9aa5745baafc8af14b107003ae9a29384dd | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | permissive | shibuiwilliam/pipelinex | 4b3e7340c027dffba310785cb900c2c503877841 | 5bc4911c6b253cf29f9b6153d11be42a7d82dd48 | refs/heads/master | 2021-05-16T19:03:32.125740 | 2021-04-28T01:19:52 | 2021-04-28T01:19:52 | 363,591,360 | 1 | 0 | NOASSERTION | 2021-05-02T07:22:06 | 2021-05-02T07:22:06 | null | UTF-8 | Python | false | false | 9,894 | py | import importlib
from typing import Any, Union, List, Iterable # NOQA
from logging import getLogger
log = getLogger(__name__)
class HatchDict:
def __init__(
self,
egg, # type: Union[dict, List]
lookup={}, # type: dict
support_nested_keys=True, # type: bool
self_lookup_... | [
"yusuke.minami86@gmail.com"
] | yusuke.minami86@gmail.com |
d0cca4222c8b6367b193a93bbb16784b03bdbf6d | 0bd3e809967ce2e02353a1c5559725bf3c9b6a7e | /update_bind_conf_gw.py | dc4273fb723c2b745ee9c0d667b3be3768301f8e | [] | no_license | ka-ba/backend-scripts | 79ea992852d4afaf24c1cd60146be1e3df06aa20 | 87ddce68d224a13f7062d8ec3825a46fb98fa343 | refs/heads/master | 2021-01-20T03:01:53.095776 | 2015-04-21T13:13:27 | 2015-04-21T13:13:27 | 27,978,828 | 0 | 0 | null | 2015-04-21T12:49:20 | 2014-12-14T00:50:09 | Python | UTF-8 | Python | false | false | 1,114 | py | #!/usr/bin/env python3
def update_bind_conf():
from photon.util.files import read_file
from common import pinit
photon, settings = pinit('update_bind_conf', verbose=True)
for repo in ['scripts', 'meta']:
photon.git_handler(
settings['icvpn']['icdns'][repo]['local'],
re... | [
"frieder.griesshammer@der-beweis.de"
] | frieder.griesshammer@der-beweis.de |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.