blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eb66983747fd37d5bad2b03c62aa2cb5b9820300 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /A_Primer_on_Scientific_Programming_with_Python/input/c2f_cml_v3.py | 9d13a354db2390ff9b57049d4ab8c67135d83538 | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 217 | py | import sys
try:
C = float(sys.argv[1])
except:
print 'You failed to provide Celsius degrees as input '\
'on the command line!'
sys.exit(1) # abort
F = 9.0*C/5 + 32
print '%gC is %.1fF' % (C, F)
| [
"bb@b.om"
] | bb@b.om |
e06e1100601a1bacb795bb1f1efe4a2e96a3d781 | 221d5405763d1a6ab3c6755583e557c14b9f3742 | /gusregon/gus.py | ca34d58334fd1bd2383ff69dfbb77899f224cc07 | [
"BSD-2-Clause"
] | permissive | tpro/django-gusregon | 4bd7253be9d43345376e36312d763d4653d0bbcd | 75d4f291ae805bd986e1b4cb03b3b94e52a48076 | refs/heads/master | 2021-01-18T18:11:50.746453 | 2015-04-19T11:00:49 | 2015-04-19T11:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,656 | py | import requests
import json
GUS_API_URL = 'https://wyszukiwarkaregon.stat.gov.pl/wsBIR/UslugaBIRzewnPubl.svc/ajaxEndpoint/'
LOGIN_ENDPOINT = 'Zaloguj'
CAPTCHA_ENDPOINT = 'PobierzCaptcha'
CHECK_CAPTCHA_ENDPOINT = 'SprawdzCaptcha'
SEARCH_ENDPOINT = 'daneSzukaj'
COMPANY_DETAILS_ENDPOINT = 'DanePobierzPelnyRaport'
cla... | [
"adam@bogdal.pl"
] | adam@bogdal.pl |
2d46fb8bfbd693468cd059acdc41ca93221da9c6 | c90b3ac3e5ad11cb93d4e6b76b9b9c4a19d0f512 | /.history/copytest_20200502124009.py | 413d6f42f34cf44c8b5ee71050cdd80e9dccb60d | [] | no_license | rbafna6507/passwordstorageproject | 6465585e36c81075856af8d565fe83e358b4a40a | 480c30e358f7902ac0ef5c4e8d9556cb1d6d33f4 | refs/heads/master | 2022-11-25T12:05:02.625968 | 2020-07-27T21:33:38 | 2020-07-27T21:33:38 | 283,021,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | import pickle
import cryptography
from cryptography.fernet import Fernet
def encrypt(message: bytes, key: bytes) -> bytes:
return Fernet(key).encrypt(message)
def decrypt(token: bytes, key: bytes) -> bytes:
return Fernet(key).decrypt(token)
infile = open('jeff.pkl','rb')
z = pickle.load(infile)
key = Fernet... | [
"35872545+rbafna6507@users.noreply.github.com"
] | 35872545+rbafna6507@users.noreply.github.com |
a19137e2bc295d4d4e9c77c15d61e3a9e4d708f9 | ff20661ef00b2db927c78f95a08cd6c40f950ee0 | /inputmorethanone.py | 81994128fa875ec38b52ef7cf8ec19866fc7810f | [] | no_license | Techsrijan/mppython2021 | 57ca26e1acdf5adad2afa692dd5ae23336273603 | 583a991f85e2414c6b8ffe0405f727f3f5d38eee | refs/heads/main | 2023-06-18T22:05:44.602220 | 2021-07-16T00:42:26 | 2021-07-16T00:42:26 | 374,290,977 | 0 | 9 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | '''f=int(input("Enter the first number"))
s=int(input("Enter the Second number"))
'''
f,s=input("Enter two number").split(',')
print("F=",f,"S=",s)
j,k=input("Enter two number").split(' ')
print("j=",j,"k=",k)
print("add=",j+k) | [
"aswanibtech@gmail.com"
] | aswanibtech@gmail.com |
ba3177e820dd8a4793158eb218326d48229866ef | bb372428bb90fa80f2e87820b3c8c5ba305dcd4c | /python/bot/eups.py | 0e4812155219126d211b7dcd779287ab6d1ce9ec | [] | no_license | TallJimbo/lsst-bot | 7eb9b7a71a87a1ed416397c193931c80639bd746 | 0843afb2fdd5cc9ba62cf424a7dd73672b10e28f | refs/heads/master | 2021-01-19T05:43:55.451321 | 2016-06-04T00:07:25 | 2016-06-04T00:07:25 | 60,484,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,534 | py | #!/usr/bin/env python
from __future__ import absolute_import
import eups.table
import os
import logging
__all__ = "get_dependencies"
def get_dependencies(config, path, pkg, recursive=False):
"""Return immediate dependencies from inspecting a table file.
NOTE: recursive=True has not been tested.
"""
e... | [
"jbosch@astro.princeton.edu"
] | jbosch@astro.princeton.edu |
31a96cf391d906b0d3d59fcd37437e16f21f474b | fd326562890d4f1987c384fc7c60374938231222 | /OOP/ExamPrep/Exam10April21/project/decoration/ornament.py | 90d7980c034613da08f4ee857bf726562ac89427 | [] | no_license | miro-lp/SoftUni | cc3b0ff742218c9ceaf93f05c319ccfeed5bc8a4 | 283d9328537919de49f7f6a301e58593bae9ca2a | refs/heads/main | 2023-08-23T21:22:07.856226 | 2021-08-25T15:10:18 | 2021-08-25T15:10:18 | 318,134,101 | 2 | 1 | null | 2021-08-10T12:51:54 | 2020-12-03T09:03:08 | Python | UTF-8 | Python | false | false | 151 | py | from project.decoration.base_decoration import BaseDecoration
class Ornament(BaseDecoration):
def __init__(self):
super().__init__(1, 5)
| [
"miro_lp@abv.bg"
] | miro_lp@abv.bg |
588948095f2db1f4d431c649e77a76b72ecf54b8 | 68f57fd1dd274be72af6d85762b67bbf8d2ef6d6 | /tests/test_cosine.py | 3ac719652f889a7529befb8bcbf87a328c003cfa | [] | no_license | afcarl/simplecosine | 287cbf40ef8aa2251ea538b7b3c2d28c5b6f2488 | 1ba869198ab3211dd4b0412e80e670308007f687 | refs/heads/master | 2020-03-17T23:56:28.854494 | 2017-06-15T21:33:36 | 2017-06-15T21:33:36 | 134,069,251 | 1 | 0 | null | 2018-05-19T14:29:05 | 2018-05-19T14:29:05 | null | UTF-8 | Python | false | false | 2,909 | py | import unittest
from simplecosine.cosine import CosineSetSimilarity, CosineTextSimilarity
import numpy
import pickle
class TestSetCosineClass(unittest.TestCase):
def setUp(self):
self.ilist = [('a', 'b', 'c'),
['b', 'c', 'd k'],
('d k', 'e', 'f')
... | [
"fgregg@uchicago.edu"
] | fgregg@uchicago.edu |
93e2cb9162dfaedfe3a58c9892ccb9936f9405c9 | 9e7d7b4d029554eed0f760a027cd94558b919ae2 | /CHAPTER15/overlaying.py | e320bf396d4410f1a0cc189810fc886ac93deca0 | [] | no_license | pooja1506/AutomateTheBoringStuff_2e | 8247b68a195d5e1976c6474f0e97d947906ffd35 | 5bab9ccdcdb22ee10fe1272c91042be40fd67c17 | refs/heads/master | 2022-04-10T19:21:44.402829 | 2020-04-05T12:10:32 | 2020-04-05T12:10:32 | 249,620,282 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | import PyPDF2
minutesFile = open('meetingminutes.pdf', 'rb')
pdfReader = PyPDF2.PdfFileReader(minutesFile)
minutesFirstPage = pdfReader.getPage(0)
pdfWatermarkReader = PyPDF2.PdfFileReader(open('watermark.pdf', 'rb'))
minutesFirstPage.mergePage(pdfWatermarkReader.getPage(0))
pdfWriter = PyPDF2.PdfFileWriter()
pdfWriter... | [
"pooja.dmehta15@gmail.com"
] | pooja.dmehta15@gmail.com |
da4d9970097abb9879bdaf10f8d859c5287053b0 | 5b8fcb1bf82a7c1ef5b6c2a939b1d1597bc7a24b | /create_json_for_airtable_operator.py | e00238b2f39eae43c6d55eae4974dcf2d194d262 | [] | no_license | katerinekhh/airflow_custom_stuff | 2420c3ee95dab01e5eeeb8248500e253126e5b48 | 43ba78d96770a575ba7ab11a691b101e6d6604af | refs/heads/master | 2022-10-12T13:55:01.916266 | 2020-06-12T13:17:06 | 2020-06-12T13:17:06 | 271,645,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,245 | py | from datetime import datetime
import json
from airflow.utils.decorators import apply_defaults
from airflow.models.baseoperator import BaseOperator
from airflow.hooks.http_hook import HttpHook
class CreateJsonForAirtableOperator(BaseOperator):
@apply_defaults
def __init__(
self,
endpoi... | [
"you@example.com"
] | you@example.com |
ef2911b4133217bc48dbf92e02a62bd1d9b5d171 | e168a16fdd43d3023d16d8a643ccca318a44c327 | /evm/logic/call.py | 42acedd0f1791f1cebd63438077524bdee541b46 | [] | no_license | DavidKnott/py-evm | c589c88af55c121ea375bfdb0a53ecc6a4836119 | 66c47f58a62e995b5ce89e47007c8b03796c80b9 | refs/heads/master | 2021-01-01T04:08:39.921768 | 2017-07-18T13:03:45 | 2017-07-18T13:03:45 | 97,128,228 | 1 | 0 | null | 2017-07-13T13:54:57 | 2017-07-13T13:54:56 | null | UTF-8 | Python | false | false | 7,349 | py | from evm import constants
from evm.opcode import (
Opcode,
)
from evm.utils.address import (
force_bytes_to_address,
)
class BaseCall(Opcode):
def compute_msg_gas(self, computation, gas, to, value):
raise NotImplementedError("Must be implemented by subclasses")
def get_call_params(self, com... | [
"pipermerriam@gmail.com"
] | pipermerriam@gmail.com |
2bff7ce472c638cc2952ee313e844673778ab37c | 5faecec9b20d262150e48ac9f31c396f840b1f2f | /migrations/0010_auto_20200804_0913.py | f175b678b5857527caa863cd6db136e7bc3d803b | [] | no_license | binkesi/blogsgn | fb767b0d22e3eb1c32ea7ee8fd0796766e3a8600 | 579b374f802a5651d20c3b3f85d8ff6a22476bdd | refs/heads/master | 2022-11-27T23:24:45.574601 | 2020-08-04T10:06:28 | 2020-08-04T10:06:28 | 283,161,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | # Generated by Django 3.0.6 on 2020-08-04 01:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blogsgn', '0009_auto_20200804_0653'),
]
operations = [
migrations.AlterField(
model_name='author',
name='nation',
... | [
"sjtusgn@163.com"
] | sjtusgn@163.com |
0b583e86f97c1a537be2b27d6980f3a3dd93df1a | 528c811306faa4a34bf51fca7955b7a24ac2e30c | /Python/Valid Anagram.py | 263508830b33b30fd769bcad02fa5dbf91901f61 | [] | no_license | ganjingcatherine/LeetCode-1 | 1addbd7e4d9254a146601f9d5e28b8becb8235a6 | 488782d3f1e759da2d32b4e82dbf55b96c431244 | refs/heads/master | 2021-05-11T03:15:16.810035 | 2016-02-06T06:19:18 | 2016-02-06T06:19:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | """
Given two strings s and t, write a function to determine if t is an anagram of s.
For example,
s = "anagram", t = "nagaram", return true.
s = "rat", t = "car", return false.
Note:
You may assume the string contains only lowercase alphabets.
"""
class Solution(object):
def isAnagram(self, s, t):
"""
... | [
"anthonyjin0619@gmail.com"
] | anthonyjin0619@gmail.com |
7713fd10c64850e9770370122883e5b6ea01086f | e2ae96b74289a04a2386294bf51bacad92e2a830 | /city_scrapers_core/spiders/legistar.py | 29c3176db02b4b0851fd939f9f79845a629163c5 | [
"MIT"
] | permissive | will-snavely/city-scrapers-core | 6afa9d78fb1c325420baaae030633b01111f11bb | cb865069e49d09ab251b7f99247df5e13c5d0241 | refs/heads/main | 2022-12-11T21:39:03.307347 | 2020-09-09T13:29:53 | 2020-09-09T13:29:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,265 | py | from datetime import datetime
from typing import Iterable, List, Mapping, Optional, Tuple
from urllib.parse import urlparse
import scrapy
from legistar.events import LegistarEventsScraper
from ..items import Meeting
from .spider import CityScrapersSpider
LINK_TYPES = ["Agenda", "Minutes", "Video", "Summary", "Captio... | [
"pjsier@gmail.com"
] | pjsier@gmail.com |
848257d62f49ecdcc747c38384d79aa0afb7700b | 8db1ab4f9a2e47f7e8d69a685837d7e747bf9442 | /cocos2d-x-tool/py_tool/syncResToProject.py | 0773ceebfd0313dd7ab2c0df0f04cec7b688b661 | [] | no_license | tanzuoliang/python | 051d6e46cebd7fdb74a0173aca0ca7a2b3ef5986 | 70f782cf3c72d2b7043727910509eb2d2f2fe065 | refs/heads/master | 2021-10-20T05:36:03.732738 | 2019-02-26T02:37:18 | 2019-02-26T02:37:18 | 111,288,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,595 | py | #!/usr/bin/python
#encoding=utf-8
from myutil.utils import syncDir,checkSVNStatus
import os
fromRoot = '/Users/tanzuoliang/art_resource'
toRoot = "../res/new_ui"
toLanguage = "../res"
ll = [
('天天坦克/UI\ 效果图+输出\ 20170214\ 优化版/00\ icon','天天坦克/UI 效果图+输出 20170214 优化版/00 icon','icon'),
('天天坦克/UI\ 效果图+输出\ 20170214\ 优化版/0... | [
"ysjwdaypm@163.com"
] | ysjwdaypm@163.com |
87a0d04e73c54c1e0daef6dcf0e338c6af43be21 | ef187d259d33e97c7b9ed07dfbf065cec3e41f59 | /work/atcoder/abc/abc024/B/answers/111654_Gale.py | b31d17de7f8e5d4c0d019d4cbf95c0c6f7e11513 | [] | no_license | kjnh10/pcw | 847f7295ea3174490485ffe14ce4cdea0931c032 | 8f677701bce15517fb9362cc5b596644da62dca8 | refs/heads/master | 2020-03-18T09:54:23.442772 | 2018-07-19T00:26:09 | 2018-07-19T00:26:09 | 134,586,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | n, t = map(int, input().split())
a = [int(input()) for i in range(n)]
ans = t
for i in range(1, n):
ans += t
if a[i] <= a[i - 1] + t:
ans = ans - (a[i - 1] + t - a[i])
print(ans)
| [
"kojinho10@gmail.com"
] | kojinho10@gmail.com |
626be54fe2c402a3a685abc6d8479c10ea8a75aa | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /CalibMuon/RPCCalibration/python/l1MuonOutputModule_cfi.py | 6dbdc357f06e53ed7641a5fc49576123b5f1a25e | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 419 | py | import FWCore.ParameterSet.Config as cms
from CalibMuon.RPCCalibration.l1Muon_EventContent_cff import *
L1MuonEventContent = cms.OutputModule("PoolOutputModule",
l1Muon_EventContent,
l1MuonEventSelection,
datasets = cms.untracked.PSet(
filterName = cms.untracked.string('l1Muon_Filter'),
dat... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
3230d5448ef48ac2a50e98f9791b15a0ed770f9f | 0147677b611e40ac695ba07f914264b3470a7401 | /src/mac_address_info.py | 4ad9f15c04cbbf5909df457315f089a8c5f1a0cb | [] | no_license | mblomdahl/sniffer | a2aed3ee37bb9a39d3c13ad8455ce7c7a2fc58c7 | 9101c59f958bb94fe1443fd90e95d333a02b785f | refs/heads/master | 2021-01-24T00:23:30.318623 | 2015-08-14T12:56:33 | 2015-08-14T12:56:33 | 41,627,533 | 0 | 0 | null | 2015-08-30T12:11:01 | 2015-08-30T12:11:01 | null | UTF-8 | Python | false | false | 5,190 | py | import json
import urllib2
import os
class MacAddressInfo:
def __init__(self):
self.mac_address = ""
self.company = ""
self.address1 = ""
self.address2 = ""
self.address3 = ""
self.country = ""
class MacAddressStorage:
def __init__(self):
self.data = [] ... | [
"="
] | = |
b54fd0bc290b3f5a82c4cad6ff829f7b399573f4 | ded81a7568fe04f3227562cc5f67ffc675617cc0 | /cheer_app/migrations/0002_comment.py | a7803e53c60185ed5d941b24bfcce9f91293cac8 | [] | no_license | shin04/cheer | 3e220afc1fb0a4329ff7c16bd4823da1c09ee0a9 | da39bbc584350c0ac89c23dbbfaf1c96ab9148fd | refs/heads/master | 2020-07-02T16:07:44.280390 | 2020-05-20T11:13:03 | 2020-05-20T11:13:03 | 183,242,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | # Generated by Django 2.2 on 2019-08-05 04:29
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('cheer_app', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"daikon0413@gmail.com"
] | daikon0413@gmail.com |
4d6647ad50459cf616a4eaaa782651b3b18edf2d | 1af1f89eb9a178b95d1ba023b209b7538fb151f0 | /Algorithms/146. LRU Cache.py | 09989dad11e2256fc8b9ce1d4d8a754a15563be9 | [] | no_license | 0xtinyuk/LeetCode | 77d690161cc52738e63a4c4b6595a6012fa5c21e | 08bc96a0fc2b672282cda348c833c02218c356f1 | refs/heads/master | 2023-02-21T16:58:39.881908 | 2021-01-25T08:00:13 | 2021-01-25T08:00:13 | 292,037,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | from collections import OrderedDict
class LRUCache():
def __init__(self, capacity):
self.memory = OrderedDict()
self.capacity = capacity
def get(self, key):
if key not in self.memory:
return - 1
self.memory.move_to_end(key)
return self.memory[key]
def pu... | [
"xliu301@uottawa.ca"
] | xliu301@uottawa.ca |
215d0564daeceb18cdbfe7df3305df4cf9aaddc4 | ddea930392ac5360b21e9043b620e703a9ccb31c | /tfx/components/example_gen/csv_example_gen/component.py | e98fab352364bc59a5a175075c9b90dce53af5c7 | [
"Apache-2.0"
] | permissive | Ark-kun/tfx | 9c82b688776c80b2435bbb6154476526e8525ec8 | f685f0387bd145316f43ceb484e64f893e749dcb | refs/heads/master | 2021-07-25T05:58:15.168607 | 2020-05-22T01:07:44 | 2020-05-22T01:08:18 | 180,868,735 | 0 | 0 | Apache-2.0 | 2019-04-11T20:01:57 | 2019-04-11T20:01:57 | null | UTF-8 | Python | false | false | 3,690 | py | # Lint as: python2, python3
# Copyright 2019 Google LLC. 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 req... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
5e8efd9eb59f40d86c42c63a6d9310545e0a1134 | 51f2492a5c207e3664de8f6b2d54bb93e313ca63 | /atcoder/abc102/b.py | 4be8dec8f9d480d7b0af81ef662a21f1f1ef5c4f | [
"WTFPL",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | abeaumont/competitive-programming | 23c5aabd587d7bb15a61efd3428838cb934233dd | a24c9b89941a59d344b51dc1010de66522b1a0dd | refs/heads/master | 2023-09-01T09:50:58.267361 | 2023-07-31T18:00:10 | 2023-07-31T18:00:10 | 117,589,708 | 618 | 262 | WTFPL | 2023-07-12T17:36:20 | 2018-01-15T20:00:56 | C++ | UTF-8 | Python | false | false | 158 | py | #!/usr/bin/env python3
# https://abc102.contest.atcoder.jp/tasks/abc102_b
n = int(input())
a = [int(x) for x in input().split()]
a.sort()
print(a[-1] - a[0])
| [
"alfredo.beaumont@gmail.com"
] | alfredo.beaumont@gmail.com |
d22f9e180410bcb47f4308eb442280a1d6958408 | b3197b795911a2ebdd3308f39d0e7be4b4626a44 | /homework.4/4.task1.py | a81fcfb717c8ca4018adb4ef5c82f3125501d029 | [] | no_license | VPetrashchu/python-course | 9e2af9582f1600201c6f28681ead7426501a82b6 | d188c3f42f7fd70aad1535e0141e7ff5fddd1d8f | refs/heads/master | 2023-02-23T09:41:56.079047 | 2021-01-31T20:12:08 | 2021-01-31T20:12:08 | 317,589,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | number = int(input('Enter number: '))
fact = 1
for i in range(1, number + 1):
fact = fact * i
print('Factorial is: {}'.format(fact))
# while ( number > 0):
# fact = fact * number
# number = number - 1
# print('Factorial is: {}'.format(fact))
| [
"="
] | = |
97d915750244d1397fea6975d202218d1ad853f4 | 29f4de72b9aadaba277b4adb5e5cee5d8dd71f1e | /projection_data/make_ai.py | 49ce8d7363987cb88c00c23533048229bdb00207 | [] | no_license | fgassert/aqueduct_atlas | 87be4e1fbe9686cf06ff9c65257deabc617344e9 | d00cd78ef3122aeda6eb563d0913baf73a9bb80e | refs/heads/master | 2021-01-21T21:48:26.821562 | 2016-04-21T22:02:58 | 2016-04-21T22:02:58 | 15,684,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,658 | py |
import arcpy as ap
AI_RES = 600
def render_fields(prefix, polygons, mxd_template, layer_template, map_fields, map_layer_labels, map_values, ai_res=AI_RES):
mxd = ap.mapping.MapDocument(mxd_template)
df = ap.mapping.ListDataFrames(mxd)[0]
if map_layer_labels is None:
map_layer_labels = m... | [
"cowbox314@gmail.com"
] | cowbox314@gmail.com |
a7c2ff64776197033f6935ebd084216784ca1b4f | 1521d32e3a2747054eea03df3195ca0fd52cfe71 | /src/python/zensols/garmdown/__init__.py | 1ed5dd6e2c05b14c7469f2b9a750d47327855ca1 | [
"MIT"
] | permissive | garmin-data/garmdown | 533c525512914b97cbf42a919d670feb59c3269a | 42509ddcc11bd7469e3a80d648fabd155657a074 | refs/heads/master | 2023-07-05T09:07:36.476348 | 2022-02-28T19:36:01 | 2022-02-28T19:36:01 | 191,933,069 | 15 | 6 | MIT | 2023-02-15T23:23:44 | 2019-06-14T11:37:45 | Python | UTF-8 | Python | false | false | 212 | py | from .domain import *
from .fetcher import *
from .persist import Persister
from .sheets import SheetUpdater
from .backup import *
from .reporter import *
from .mng import *
from .cli import *
from .app import *
| [
"landes@mailc.net"
] | landes@mailc.net |
4442d3be186c0780c78d903f7110f0e29096dfb6 | 8cbf335c5a39f2bbf1912b937ea4c3a31ab76f53 | /kakuro.py | 3869cab2399a04e10f9778aee78dd0fa41a9b26b | [] | no_license | louisabraham/kakuro.py | e72e5a0dd4d1fc8b43bb8b1004ce7b46e5bf88bf | 28ab8e5b066773a0f27f9eff6629391d21b167fc | refs/heads/master | 2023-08-13T12:28:18.538669 | 2021-10-14T21:28:19 | 2021-10-14T21:28:19 | 417,281,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,969 | py | from functools import lru_cache, partial
from collections import defaultdict
from set_cover import solve as solve_set_cover
def encode(pattern, cols, lines):
grid = [[c == "0" for c in line] for line in pattern.split()]
n = len(grid)
constraints = []
# build constraints on lines
vars = []
c... | [
"louis.abraham@yahoo.fr"
] | louis.abraham@yahoo.fr |
7788d6d2554c64b729e9701d0fe4596e17cccfe8 | 5f22ddbd3eeb99709e43e7b9a7958c9987c7efa4 | /__competitions/2014/11_03_w12/01.py | d50b3c914cc79f47bca1e6cd9529281c8b5f817c | [] | 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 | 360 | py | # https://www.hackerrank.com/contests/w12/challenges/priyanka-and-toys
# sort numbers and use greedy solution to find which one overlap
def toBuy(arr):
arr.sort()
num, maxPrice = 0, -1
for i in arr:
if i > maxPrice:
num += 1
maxPrice = i + 4
return num
input()
print toBu... | [
"dmytro@knowlabs.com"
] | dmytro@knowlabs.com |
8176f29c210a52c8544016e57564ace030a86875 | 155a25eb18213664da9978030e6743b04d570141 | /manage.py | 825bd789c5cf66c550320c139be766171af95606 | [] | no_license | powellc/timberwyck | 0d6fd6e46c2899f32dda37faa8030a8c7080bc97 | 583cbc2ee33cb56187db13c94d5d4af74f51c9bd | refs/heads/master | 2020-05-18T13:59:20.394609 | 2014-05-03T05:09:18 | 2014-05-03T05:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "timberwyck.settings")
os.environ.setdefault("DJANGO_CONFIGURATION", "Dev")
from configurations.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"colin.powell@gmail.com"
] | colin.powell@gmail.com |
c5001ecfa2716239bb437211c0ca5878f4942947 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_underscoring.py | b4a890d3243fc3207ae8047c40277eb6f93f3f90 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py |
from xai.brain.wordbase.verbs._underscore import _UNDERSCORE
#calss header
class _UNDERSCORING(_UNDERSCORE, ):
def __init__(self,):
_UNDERSCORE.__init__(self)
self.name = "UNDERSCORING"
self.specie = 'verbs'
self.basic = "underscore"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
065a7ba25278105449e7b3d0bc7e9d75e0141fe2 | b564a7d17f224e9512fec36bab4333353381e22c | /lib/exaproxy/html/humans.py | f15fdaa44f84ee1894da006b05dcba9b027d9279 | [
"BSD-2-Clause"
] | permissive | Exa-Networks/exaproxy | 464f9c72449b12d4f3960e9829a0f93fec8db0da | 8b7291b79c1cd6542213a5e7d8dda3cf5a676166 | refs/heads/master | 2023-09-03T16:10:56.656549 | 2022-06-28T16:52:48 | 2022-06-28T16:52:48 | 13,495,150 | 127 | 25 | NOASSERTION | 2022-06-28T16:52:49 | 2013-10-11T09:36:28 | Python | UTF-8 | Python | false | false | 1,384 | py | # encoding: utf-8
"""
humans.py
Created by Thomas Mangin on 2012-02-25.
Copyright (c) 2011-2013 Exa Networks. All rights reserved.
"""
from .images import thomas,david
class humans:
txt = """\
/* TEAM */
Slave Driver / Grand Visionary: Thomas Mangin
Google+: https://plus.google.com/104241996506596749840
Gith... | [
"thomas.mangin@exa-networks.co.uk"
] | thomas.mangin@exa-networks.co.uk |
6469709fcf868289b689c5a64db4c625a21116ff | 904b4b7cd6b1709e9aded92737766a3b5a978838 | /bissextile.py | d90e2359ddb92bf8a0938ca97e262464bbf19394 | [] | no_license | NicolasLagaillardie/Python | 3ec7aa6eb21ffa86fad33060bb53e42cb7957dc9 | a30037d688d8f11a195d7fa611347528c313d71b | refs/heads/master | 2020-03-30T13:48:27.038592 | 2018-10-02T16:54:42 | 2018-10-02T16:54:42 | 151,288,608 | 0 | 0 | null | null | null | null | ISO-8859-1 | Python | false | false | 382 | py | # -*- coding: cp1252 -*-
def bissextile(annee):
if annee%4!=0:
print annee,' n\'est pas une année bissextile'
else:
if annee%100==0:
if annee%400==0:
print annee,' est bissextile'
else:
print annee,' n\'est pas une année bissextile'
... | [
"lagaillardie.nicolas@live.fr"
] | lagaillardie.nicolas@live.fr |
a9eb757a2b0a176611cde9701778712b3dd565df | bec8abb5c3146377f1b3bc2f2b4eaa4d02502211 | /mediascraper/the_procrastinators/youtube_scraper.py | 7383cc710c70c57551b36229ef8259fb99726bbb | [
"MIT"
] | permissive | Kokitis/MediaScraper | 578f3d96f1ef731906e03e56db77e141823f8681 | 8bd7294942945d90838357f14e10558a0512e316 | refs/heads/master | 2020-03-26T11:51:34.460233 | 2018-08-16T00:45:37 | 2018-08-16T00:45:37 | 144,863,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | from pathlib import Path
import requests
import json
import yaml
from pprint import pprint
from typing import List, Tuple
import re
import datetime
from dataclasses import dataclass
from pytools.timetools import Duration
shownotes_regex = ""
@dataclass
class Shownote:
timestamp: Duration
title: str
link: str
def e... | [
"cld100@pitt.edu"
] | cld100@pitt.edu |
507b5e4a2cf5d1be59559b0252c23e4d162aace9 | 7762ca6feb98c8b1c95da09758801a6bc38922ff | /NinjaGold/settings.py | 00af97c3a4b37d82f68939050baa3b893c96e2ba | [] | no_license | SDBranka/NinjaGold | 211bd6ade5e9c6a216ffef89a0c791a8a2d15ad5 | db881812842f2188df1da20edc81469fcb56a50a | refs/heads/main | 2023-04-29T01:02:07.427340 | 2021-05-22T19:05:34 | 2021-05-22T19:05:34 | 369,070,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | """
Django settings for NinjaGold project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
#... | [
"sdbranka@me.com"
] | sdbranka@me.com |
91ef1503ce75661dbbe6b7d791eda966a31b1c1d | 81eabe15995a6426b285b2312b73c0bde7bb61bc | /paleomix/tools/zonkey/common.py | 81ad379b116d4e6692319c1a2c4afc9f055ff3ca | [] | no_license | fvangef/paleomix | 3a732d8cd99177809b25bd09dde6efd261b10cad | 826fb866ae9c26cb7b49fc6a96fb618a3daaffcc | refs/heads/master | 2020-04-15T22:05:02.249220 | 2018-11-05T19:56:49 | 2018-11-05T19:56:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,897 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2016 Mikkel Schubert <MikkelSch@gmail.com>
#
# 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 l... | [
"MikkelSch@gmail.com"
] | MikkelSch@gmail.com |
c35247face031fdcf18da283072975cf5773b968 | 64a80df5e23b195eaba7b15ce207743e2018b16c | /Downloads/adafruit-circuitpython-bundle-py-20201107/lib/adafruit_pybadger/pybadge.py | 6c341d8678773b63b175827e4b779cc10fcfcc22 | [] | no_license | aferlazzo/messageBoard | 8fb69aad3cd7816d4ed80da92eac8aa2e25572f5 | f9dd4dcc8663c9c658ec76b2060780e0da87533d | refs/heads/main | 2023-01-27T20:02:52.628508 | 2020-12-07T00:37:17 | 2020-12-07T00:37:17 | 318,548,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,899 | py | # The MIT License (MIT)
#
# Copyright (c) 2020 Kattni Rembor for Adafruit Industries
#
# 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 ... | [
"aferlazzo@gmail.com"
] | aferlazzo@gmail.com |
32ea31849e6bd4ef0acd560f4be8b565f98587d3 | f0b5238cf64ca46dafd8aab484278dd40feffa4d | /insta/migrations/0008_image_profile.py | 58a792198142bdfb3043e57e53faa92eb2d84078 | [
"MIT"
] | permissive | niklauspeter/instagram | 0e7ef612b4bd1301b8b1c146a281a645d5940f49 | 303e26f88d3cdcc9a7a8a05d41a6fa21bf91737e | refs/heads/master | 2021-09-09T14:44:48.293670 | 2019-05-23T15:56:49 | 2019-05-23T15:56:49 | 187,219,168 | 0 | 0 | null | 2021-09-08T01:00:34 | 2019-05-17T13:14:56 | Python | UTF-8 | Python | false | false | 548 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-05-23 06:56
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('insta', '0007_remove_image_profile_photo'),
]
operat... | [
"oriokiklaus@gmail.com"
] | oriokiklaus@gmail.com |
d3d1ba274df3c9e32d65b77b40f7b3b416ade480 | ebcc3f199a4dc7763bb4984fc8a910d015b0c5d0 | /dht_temperature.py | 9e9f4a9f3703f52d6e30aab16700eaefb40ef65a | [
"MIT"
] | permissive | BurntTech/homie4 | 31aba5be338cee46ce2dad6483821cd837aa6704 | 577bdb413778865d3be03e0149e1773b5d312d51 | refs/heads/master | 2021-07-13T12:12:48.528194 | 2021-02-03T19:02:41 | 2021-02-03T19:02:41 | 233,911,796 | 1 | 0 | MIT | 2020-01-14T18:48:18 | 2020-01-14T18:48:17 | null | UTF-8 | Python | false | false | 634 | py | # Raspberry PI
import Adafruit_DHT
import time
from homie.device_temperature import Device_Temperature
mqtt_settings = {
'MQTT_BROKER' : 'OpenHAB',
'MQTT_PORT' : 1883,
}
try:
temperature_device = Device_Temperature(device_id="temperature-sensor-1",name = "Temperature_Sensor 1",mqtt_settings=mqtt_setti... | [
"mike@4831.com"
] | mike@4831.com |
73d12c61155fbb679cf6f632c756bc0889002274 | c2f92d75d235ff5ed7b213c02c4a0657545ba02f | /newchama_web/2/newchama/tools/test_mq1.py | dd2c58bbbefb696a43f1e8523ee83b7da1bbcca3 | [] | no_license | cash2one/tstpthon | fab6112691eb15a8a26bd168af3f179913e0c4e0 | fc5c42c024065c7b42bea2b9de1e3874a794a30d | refs/heads/master | 2021-01-20T01:52:06.519021 | 2017-04-14T09:50:55 | 2017-04-14T09:50:55 | 89,338,193 | 0 | 1 | null | 2017-04-25T08:46:06 | 2017-04-25T08:46:06 | null | UTF-8 | Python | false | false | 847 | py | #encoding:utf-8
import os,sys
sys.path.append(os.path.abspath('../'))
sys.path.append(os.path.abspath('/var/www/newchama'))
import newchama.settings
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "newchama.settings")
import pika
import pickle
from django.template import loader, Context
connection = pika.BlockingConn... | [
"yxlz_0910@163.com"
] | yxlz_0910@163.com |
40e044e81e637b03ed8ab1ee0a0bc10e3b4661f4 | bc167f434158921bcf2c678155c5cdfec1c9b0c9 | /PI_code/simulator/behaviourGeneration/firstGenScripts_preyHunter/behav372.py | 4181e4a1f1456cec22542057f7e400034e38635a | [] | no_license | s0217391/DifferentProjects | 6450efc89c64ecd21b86c705737e89e5c69433a6 | 7f4da153660817b6cbf72d2e823aa29c0c2f95a9 | refs/heads/master | 2021-01-17T02:58:46.219240 | 2015-05-26T22:45:46 | 2015-05-26T22:45:46 | 34,995,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | #!/usr/bin/python
import sys
def compute(prey):
temp0 = min(prey[1], prey[0])
temp1 = -1 * prey[0]
if temp0 != 0:
temp1 = prey[0] / temp0
else:
temp1 = temp0
temp0 = temp0 - prey[1]
if temp1 > temp0:
if prey[0] > prey[1]:
if prey[1] != 0:
temp0 = temp0 % prey[1]
else:
temp0 = prey[1]
else:
... | [
"i7674211@bournemouth.ac.uk"
] | i7674211@bournemouth.ac.uk |
b9533ae22c6a70939b28441379420cc7a1b533ae | e98e7b45d85273797cf9f15e92fbe685a05bde18 | /词条导出/zhidao_cron.py | 19c1cf5746d7e05af4e57c436af8f87088d3a9f0 | [] | no_license | wangdexinpython/test | 8d29d30e099f64f831b51265db7092d520df253c | a047148409e31b8a8140f2c13b959aa54ec14d0d | refs/heads/master | 2020-09-11T05:10:49.041795 | 2019-12-31T07:47:41 | 2019-12-31T07:47:41 | 221,948,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,004 | py | #coding=utf-8
import pymongo,time,requests,json
import urllib.parse
import redis,pexpect,os
class zhidao(object):
def __init__():
mongo=mongodb()
mon_app=app_mongo()
def mongodb():
mongo = pymongo.MongoClient(
"mongodb://xhql:" + urllib.parse.quote_plus("xhql_190228_snv738J7... | [
"wangdexin@haxitag.com"
] | wangdexin@haxitag.com |
c69c64d15e9879c0c3e8bb12dc4086d660d80025 | 601443d21d3c9f9121e6aec76e2ad012ec4a7817 | /arekit/contrib/utils/pipelines/text_opinion/filters/distance_based.py | ba536accb1dcf557dfb01ce0bdd5f75bd5db3952 | [
"MIT"
] | permissive | nicolay-r/AREkit | 27421472ca296671a6da69a94c1070a0b5a33451 | 1e1d354654f4f0a72090504663cc6d218f6aaf4a | refs/heads/master | 2023-08-29T13:30:26.511617 | 2023-08-13T20:11:43 | 2023-08-13T20:11:43 | 225,708,027 | 54 | 4 | MIT | 2023-01-18T13:17:01 | 2019-12-03T20:20:46 | Python | UTF-8 | Python | false | false | 650 | py | from arekit.common.data.input.sample import InputSampleBase
from arekit.contrib.utils.pipelines.text_opinion.filters.base import TextOpinionFilter
class DistanceLimitedTextOpinionFilter(TextOpinionFilter):
def __init__(self, terms_per_context):
super(DistanceLimitedTextOpinionFilter, self).__init__()
... | [
"kolyarus@yandex.ru"
] | kolyarus@yandex.ru |
81d2d43d971b207b2dd0bcc44c97e8f6c0f921da | 7f04fbc897ff52e4d27cc2f27ae6dfbabe43dfe0 | /cellml/pmr2/tests/base.py | 9100a7a3ffe800da9cdfd74b377716fd6c6545ab | [] | no_license | metatoaster/cellml.pmr2 | daae69721af04f7a28eae496dcbeb13b98e2d4d0 | cbfe212effe325350b1e7087e6172952483b981f | refs/heads/master | 2021-06-21T20:56:30.267128 | 2016-03-08T05:45:53 | 2016-03-08T05:45:53 | 2,396,487 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,105 | py | import unittest
import doctest
from zope.component import testing
from Testing import ZopeTestCase as ztc
from Products.PloneTestCase import PloneTestCase as ptc
from Products.PloneTestCase.layer import onsetup
from Products.PloneTestCase.layer import onteardown
from Products.Five import fiveconfigure
from Zope2.App ... | [
"tommy.yu@auckland.ac.nz"
] | tommy.yu@auckland.ac.nz |
33ca2cbec3283c60f3f48ff39bcc8624ecb5d8f8 | a86bd96433a98e2311447a1923a400470d231f7e | /almanac/style/highlight.py | 93bc92ffea0c08e9b9383963588506d9d14bda0a | [
"MIT",
"BSD-3-Clause"
] | permissive | welchbj/almanac | 3e0d1e8282ec00ad17854536526cf253b331a201 | 7ba473ef07173e0f017dd151e7ca425ba149b8fe | refs/heads/main | 2022-12-18T12:51:53.039850 | 2022-07-06T01:25:03 | 2022-07-06T01:25:03 | 193,141,053 | 5 | 2 | MIT | 2022-12-08T14:28:58 | 2019-06-21T18:07:22 | Python | UTF-8 | Python | false | false | 1,025 | py | from typing import Optional, Type
from pygments import highlight
from pygments.formatter import Formatter
from pygments.formatters import TerminalFormatter
from pygments.lexers import get_lexer_for_mimetype
from pygments.util import ClassNotFound
def highlight_for_mimetype(
text: str,
mimetype: str,
*,
... | [
"welch18@vt.edu"
] | welch18@vt.edu |
58d1f9cf803febc2a58fb26e573063434eae588c | caaf9046de59559bb92641c46bb8ab00f731cb46 | /Configuration/Generator/python/JpsiMM_Pt_20_inf_8TeV_TuneCUETP8M1_cfi.py | 3d826f915126679c530acffd43c4e184f6851393 | [] | no_license | neumeist/cmssw | 7e26ad4a8f96c907c7373291eb8df205055f47f0 | a7061201efe9bc5fa3a69069db037d572eb3f235 | refs/heads/CMSSW_7_4_X | 2020-05-01T06:10:08.692078 | 2015-01-11T22:57:32 | 2015-01-11T22:57:32 | 29,109,257 | 1 | 1 | null | 2015-01-11T22:56:51 | 2015-01-11T22:56:49 | null | UTF-8 | Python | false | false | 2,939 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
source = cms.Source("EmptySource")
generator = cms.EDFilter("Pythia8GeneratorFilter",
pythiaPylistVerbosity = cms.untracked.i... | [
"you@somedomain.com"
] | you@somedomain.com |
614afacb7d88abe1697191ba3dc5fea6cdce83ef | a520eb3a99c0e17760cb185b61da2c5e8ae36bed | /apps/users/tests.py | 0e48b5040d17cd508e8ea78902476af196085d14 | [] | no_license | zhuoxiaojian/yishengAnalyze | 9cd4b984a4c90d23d6e2d324def187b88d5b737b | 18d2afad78f8cf3a734d41d835e7caf7635fca47 | refs/heads/master | 2022-12-10T21:30:25.176482 | 2019-01-19T08:55:46 | 2019-01-19T08:55:46 | 153,866,303 | 1 | 1 | null | 2022-12-09T05:32:09 | 2018-10-20T03:32:46 | JavaScript | UTF-8 | Python | false | false | 133 | py | from django.test import TestCase
# Create your tests here.
from users.tasks import test
if __name__ == '__main__':
test.delay()
| [
"1933860854@qq.com"
] | 1933860854@qq.com |
3a19c9c5be00b701cdd309ad99d37a8fd77a6021 | cd257631f442d24d2e4902cfb60d05095e7c49ad | /week-02/day-01/average_of_input.py | d18279b22f7452cd634a2164b12f176064e3c4ef | [] | no_license | green-fox-academy/Chiflado | 62e6fc1244f4b4f2169555af625b6bfdda41a975 | 008893c63a97f4c28ff63cab269b4895ed9b8cf1 | refs/heads/master | 2021-09-04T03:25:25.656921 | 2018-01-15T09:02:47 | 2018-01-15T09:02:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | # Write a program that asks for 5 integers in a row,
# then it should print the sum and the average of these numbers like:
#
# Sum: 22, Average: 4.4
number = 0
for i in range(0, 5):
number += int(input('Give me a number: '))
print('Sum: ' + str(number) + ' Average: ' + str(number/(i + 1))) | [
"prjevarabalazs@gmail.com"
] | prjevarabalazs@gmail.com |
1210e7360134b655175e57ae56324fe180e8c0be | c6320735f140944d2c282729c008a7cf7cf1e98f | /docs/samples/explanation/income/train.py | 1f390f64d00d252386861f2eb8e6c0452dd63fec | [
"Apache-2.0"
] | permissive | gipster/kfserving | 66d2dffd8917ba9029ca2e96f199e1f56df6e41b | bbd3da47a708403fb2a203e28955d5454bc2a1d5 | refs/heads/master | 2020-06-10T18:43:57.148347 | 2019-08-19T00:24:03 | 2019-08-19T00:24:03 | 193,709,786 | 0 | 0 | Apache-2.0 | 2019-06-25T13:08:50 | 2019-06-25T13:08:49 | null | UTF-8 | Python | false | false | 2,400 | py | import numpy as np
from sklearn.ensemble import RandomForestClassifier
from sklearn.compose import ColumnTransformer
from sklearn.impute import SimpleImputer
from sklearn.preprocessing import StandardScaler, OneHotEncoder
from alibi.datasets import adult
import joblib
import dill
from sklearn.pipeline import Pipeline
i... | [
"k8s-ci-robot@users.noreply.github.com"
] | k8s-ci-robot@users.noreply.github.com |
c56f4e4fb4ccc6672145c456c1c1d50ffbfd1d54 | eb91c2d2560a3e4ce35ebc2d6550f001579c03c5 | /codeforces/1353/B.py | 9f295a1f5fb9c4df31d57960b9fb7930b9a23708 | [] | no_license | kamojiro/codeforces | 0a3a40c8cab96a0257bb9d6ed53de217192cbabb | 9e66297fa3025ba6731111ab855096d579e86c67 | refs/heads/master | 2021-07-07T11:47:42.373189 | 2020-08-15T14:45:36 | 2020-08-15T14:45:36 | 176,296,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | #import sys
#input = sys.stdin.readline
def main():
N = int( input())
for _ in range(N):
n, k = map( int, input().split())
A = list( map( int, input().split()))
B = list( map( int, input().split()))
A.sort()
B.sort(reverse=True)
ans = 0
for i in range(n):
... | [
"tamagoma002@yahoo.co.jp"
] | tamagoma002@yahoo.co.jp |
d8d125160792a97e1c2c5c39a0c928f1655589b2 | 250124d214f6834230314dfee4a5dd03713953a2 | /part-2/2-iterators/9-Iterating_callables.py | 0dcb235c2e78a05bf787172829de56522d7aafc5 | [
"MIT"
] | permissive | boconlonton/python-deep-dive | 3b26b913d1f6f2fdf451a8bc4f24a24d1bb85a64 | c01591a4943c7b77d4d2cd90a8b23423280367a3 | refs/heads/master | 2023-08-30T21:20:12.240813 | 2021-09-29T22:21:26 | 2021-09-29T22:21:26 | 365,419,435 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | """Iterating callables"""
import random
def counter():
i = 0
def inc():
nonlocal i
i += 1
return i
return inc
class CallableIterator:
def __init__(self, callable_, sentinel):
self.callable = callable_
self.sentinel = sentinel
self.is_consumed = False
... | [
"tan.truong@go2joy.vn"
] | tan.truong@go2joy.vn |
2b612f6eea0c6ac37a27d2d8fb6083285ff16073 | 19bc4d44dc7303e23a6949b1bc7b98b65bcf80e9 | /python/Linear Regression in Python/Simple Linear Regression/Linear Regression at Codecademy/script.py | 661d035628a95c8b252a74e85e4a4024c02fe7a9 | [] | no_license | henry1034/Challenge-Project-of-CodeCademy | c66190ff3a318e22f263fcf78344632773065c24 | 61ebe84696cec120393acca62b4fce4bdea0fb30 | refs/heads/master | 2023-07-04T01:04:16.978374 | 2021-07-29T17:27:56 | 2021-07-29T17:27:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,583 | py | # Load libraries
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import statsmodels.api as sm
import codecademylib3
# Read in the data
codecademy = pd.read_csv('codecademy.csv')
# Print the first five rows
print(codecademy.head())
# Create a scatter plot of score vs compl... | [
"noreply@github.com"
] | henry1034.noreply@github.com |
950e9fce4dcbd3c0bc732cdc70d82b7bb4f0e7c3 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayIserviceIsresourceTenantquerybytntidQueryModel.py | bf348d94e07635b10d4f588191dab57c1660c589 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,400 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayIserviceIsresourceTenantquerybytntidQueryModel(object):
def __init__(self):
self._tnt_inst_id = None
self._ur_id = None
@property
def tnt_inst_id(self):
ret... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
74ca68420b60222f058228f98a1a446f42d5311d | 0e3f14722cd87767d29f794530dc1eabc4678a14 | /projects/migrations/0001_initial.py | bf6df9a575080f5727e6d0d3115ebfc864eafca8 | [] | no_license | Mostaquim/mycampaign | e807386b5bc034c0bf8689f29da07bae752ef971 | 4343ff08cb7d86de3efcc3e81b49ca93d01e7ae9 | refs/heads/master | 2020-05-09T23:51:06.345794 | 2019-05-09T10:24:22 | 2019-05-09T10:24:22 | 181,513,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,738 | py | # Generated by Django 2.1 on 2019-05-06 18:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('accounts', '0001_initial'),
migrations.swappable_dependency(setti... | [
"princemostaquim@gmail.com"
] | princemostaquim@gmail.com |
f9757cd5f5931e24e90a9be34c09ca15d7bdbedd | f0adca7cac7fb12cdb89e7e821559fe2603bf4bc | /src/234/recipe_234_02.py | 029ab82d6382993f4d8564ed733634fc696da9c6 | [] | no_license | eriamavro/python-recipe-src | dccfa06bc56fcc713f8da9e466f04d07c1f961f0 | d14f3e4cd885515e9a9a7b8e3f064609c8e50fad | refs/heads/master | 2023-02-13T02:08:44.531621 | 2021-01-14T12:03:05 | 2021-01-14T12:03:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | import requests
import json
payload = {'key1': 'value1', 'key2': 'value2'}
url = "http://httpbin.org/post"
r = requests.post(url, json=json.dumps(payload))
print(r.text)
| [
"kurozumi.ta@gmail.com"
] | kurozumi.ta@gmail.com |
94a836f98274030034fc1d71f9ea205e92cb8242 | 9c8c8ae3842ec9a6f36730234c02f93f71ebda20 | /vndk/tools/sourcedr/ninja/list_installed_module_under_source.py | 3643e9d57df15529f03701ae39cfbbabc54bc9a2 | [
"Apache-2.0"
] | permissive | batyrf/platform_development | 437bc6560a062d0ce7b27bab17b78109a72b1773 | d4f7efc0c58598e3fc02a1e4fe8e751bd4ae8f0a | refs/heads/master | 2020-12-26T18:37:29.529464 | 2020-02-01T04:54:27 | 2020-02-01T04:54:27 | 237,598,759 | 3 | 0 | null | 2020-02-01T10:35:07 | 2020-02-01T10:35:06 | null | UTF-8 | Python | false | false | 2,232 | py | #!/usr/bin/env python3
import argparse
import itertools
import json
import posixpath
import re
def match_any(regex, iterable):
"""Check whether any element in iterable matches regex."""
return any(regex.match(elem) for elem in iterable)
class ModuleInfo(object):
def __init__(self, module_info_path):
... | [
"loganchien@google.com"
] | loganchien@google.com |
7be77a226991e8e5cd0cfa304d5c6e570a73c828 | 75eac06d5714843f1f4a1ead6d8a3164adcb9a61 | /csqa/models/bert_sep.py | 2f14af9e1c38b1fd04d1c54e957139e86b27b5be | [] | no_license | Shuailong/csqa | 0b3b8de0fc139d84c4841a948fff69a3d0855326 | bc03dfbb1abe8fd37feee2870210f4209ad1d6af | refs/heads/master | 2022-01-04T17:52:53.909954 | 2020-03-28T04:59:45 | 2020-03-28T04:59:45 | 181,131,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,157 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Author: Shuailong
# @Email: liangshuailong@gmail.com
# @Date: 2019-05-18 23:07:29
# @Last Modified by: Shuailong
# @Last Modified time: 2019-05-18 23:07:39
import logging
from typing import Any, Dict, List, Optional
from overrides import overrides
import torch
from al... | [
"liangshuailong@gmail.com"
] | liangshuailong@gmail.com |
85297224463e89bbcee3a6b86337b908c5929cb2 | 8a0e14299d8b915c0a909cf9fa9a86589dc63d76 | /python/ray/tune/automl/__init__.py | cab4c4de4dab106306090e7cdc11ee1396f99abd | [
"Apache-2.0",
"MIT"
] | permissive | natashamjaques/ray | 795e4271c3c5f3e261327afea40b81ffe6f362ac | aca9dd5ee7a8fef508a5383fdd26ad8ccdcb16e4 | refs/heads/master | 2020-04-12T05:58:15.680359 | 2019-03-06T22:08:10 | 2019-03-06T22:08:10 | 162,337,948 | 3 | 2 | Apache-2.0 | 2018-12-18T19:47:02 | 2018-12-18T19:47:01 | null | UTF-8 | Python | false | false | 464 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from ray.tune.automl.genetic_searcher import GeneticSearch
from ray.tune.automl.search_policy import GridSearch, RandomSearch
from ray.tune.automl.search_space import SearchSpace, \
ContinuousSpace, Discret... | [
"rliaw@berkeley.edu"
] | rliaw@berkeley.edu |
0ceaa149f62c4d0ac1618af38585c3570814e82d | 6aa7e203f278b9d1fd01244e740d5c944cc7c3d3 | /airflow/providers/apache/kylin/hooks/kylin.py | 59f6ce94ff23200923bd0942ba05a73279150f5b | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"Python-2.0"
] | permissive | laserpedro/airflow | 83fc991d91749550b151c81876d9e7864bff3946 | a28afa8172489e41ecf7c381674a0cb91de850ff | refs/heads/master | 2023-01-02T04:55:34.030935 | 2020-10-24T15:55:11 | 2020-10-24T15:55:11 | 285,867,990 | 1 | 0 | Apache-2.0 | 2020-08-07T15:56:49 | 2020-08-07T15:56:49 | null | UTF-8 | Python | false | false | 2,795 | 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... | [
"noreply@github.com"
] | laserpedro.noreply@github.com |
c618f3a535441e5c8587f2f8d2c91d6c2a046dd8 | 113f8ae533a75e9f2fdc1728661af0f19c8460a6 | /books_app/books_app/settings.py | 8f53b3a945f604d8a773d85e73cdd69c268b132c | [] | no_license | PeterM358/Python-web-2021 | cf08beaa3330495afc53e640f4a2aaf0429049e9 | a3b7e1d1be0cc85675aaff646917d4f5b7f97b00 | refs/heads/master | 2023-07-09T15:09:08.868548 | 2021-07-24T13:49:22 | 2021-07-24T13:49:22 | 382,328,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,403 | py | """
Django settings for books_app project.
Generated by 'django-admin startproject' using Django 3.2.4.
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 pathl... | [
"estestveno"
] | estestveno |
d010fb79c796f34db9c3ccef04a23dd8ba9fc29a | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/8-loops_20200406005828.py | 5e027ff5acfe70abba31bc7f2389a11006536d94 | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | # A for loop is used for iterating over a sequence (that is either a list, a tuple, a dictionary, a set, or a string).
# Simple Loop
# people = ['John', 'Mary', 'Anna', 'Margaret', 'Sylvia']
# for person in people:
# print('Current person is: ', person)
# Break
# people1 = ['John', 'Mary', 'Anna', 'Margaret',... | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
f694103ad29e76cd74411c21fb687a6e63fcbdbf | 6bda8a6e44d09397ada6ed222800e16f071674bf | /src/numdifftools/profiletools.py | 4e6374add0e9bed8d01cf6a6f24116263cc71f59 | [
"BSD-3-Clause"
] | permissive | pbrod/numdifftools | 557af2ee288339737a9e005fb0485542c13e8891 | 4f62e51d4776cc6acbdfb6268482635a487b860c | refs/heads/master | 2023-07-20T19:26:53.241589 | 2022-11-14T13:39:42 | 2022-11-14T13:39:42 | 17,676,169 | 237 | 52 | BSD-3-Clause | 2023-07-05T15:21:37 | 2014-03-12T17:31:06 | Python | UTF-8 | Python | false | false | 5,763 | py | """
This module is based on: https://zapier.com/engineering/profiling-python-boss/
See also:
https://www.pythoncentral.io/measure-time-in-python-time-time-vs-time-clock/
"""
from __future__ import absolute_import, print_function
import inspect
import cProfile
from functools import wraps
from timeit import default_tim... | [
"per.andreas.brodtkorb@gmail.com"
] | per.andreas.brodtkorb@gmail.com |
14c7f9577956db004b7db590687e30e8fdba3192 | ad0e853db635edc578d58891b90f8e45a72a724f | /rllib/examples/inference_and_serving/policy_inference_after_training.py | 17f033847ec1c046e9d6f405d8517c6f099104ee | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | ericl/ray | 8c93fc713af3b753215d4fe6221278700936e2db | e9a1c6d814fb1a81033809f56695030d651388f5 | refs/heads/master | 2023-08-31T11:53:23.584855 | 2023-06-07T21:04:28 | 2023-06-07T21:04:28 | 91,077,004 | 2 | 4 | Apache-2.0 | 2023-01-11T17:19:10 | 2017-05-12T09:51:04 | Python | UTF-8 | Python | false | false | 3,804 | py | """
Example showing how you can use your trained policy for inference
(computing actions) in an environment.
Includes options for LSTM-based models (--use-lstm), attention-net models
(--use-attention), and plain (non-recurrent) models.
"""
import argparse
import gymnasium as gym
import os
import ray
from ray import a... | [
"noreply@github.com"
] | ericl.noreply@github.com |
1ea7ec9cd6f0f33042d9eac704a7f47a193c0f13 | 8bcf973008b1d7549f59501a1667909848ea87dd | /Day0617/staff_info/bin/start.py | ff176549a916a65c76e64836aa50c52a7c6e5635 | [] | no_license | simplesmall/Python-FullStack | 74ffeb2119eecb7fcb21a136d01aaaf2bcc2c24c | 210844ef6443a5543d49a20dbec2db9a9b960230 | refs/heads/master | 2022-12-17T00:56:40.515335 | 2019-11-15T02:07:57 | 2019-11-15T02:07:57 | 221,816,447 | 0 | 1 | null | 2022-12-13T19:22:26 | 2019-11-15T01:10:55 | Python | UTF-8 | Python | false | false | 327 | py | import sys
import os
# print(sys.path)
#获取start.py的路径
#当前文件往上翻两层 staff_info
project_path = os.path.dirname(os.path.dirname(__file__))
sys.path.append(project_path) #把staff_info添加到sys.path中
print(project_path)
from core import main
if __name__ == '__main__':
main.home()
| [
"simplesmall@outlook.com"
] | simplesmall@outlook.com |
e3ae23e183adf64fde585cc7af4664706cfcceab | eed9b3d099facd98b8a139681808997d60b4e19c | /decorator_opt_arg/decorators.py | 4442035bdc787580a9d4d98b7258dade8ef37179 | [] | no_license | pybites/blog_code | 1240a3393a3672681d97c369711be6c7415d8c10 | 902ebb87e5f7a407714d0e399833f0331a1b915d | refs/heads/master | 2022-12-10T19:50:57.718119 | 2020-08-08T17:13:15 | 2020-08-08T17:13:15 | 76,716,190 | 49 | 47 | null | 2022-11-22T01:54:20 | 2016-12-17T09:51:12 | HTML | UTF-8 | Python | false | false | 514 | py | from functools import wraps
import time
def sleep(seconds=None):
def real_decorator(func):
@wraps(func)
def wrapper(*args, **kwargs):
print('Sleeping for {} seconds'.format(seconds))
time.sleep(seconds if seconds else 1)
return func(*args, **kwargs)
retur... | [
"pybites@projects.bobbelderbos.com"
] | pybites@projects.bobbelderbos.com |
71ba4ee7dbdb38f9f5e41c9b92d886fda6729209 | 91c7de67e656fec2b9c32b64e1b6ae88083a0283 | /functional_tests/test_simple_list_creation.py | f5aee3c61fd7a18d274cbbaf40fa57f4feb504f4 | [] | no_license | pohily/TDD | e0a85c60c5ee2e7388323ffb00b7fe81372431c1 | 60d2a0f9debfcc22be54d85e981aee23f8113563 | refs/heads/master | 2022-05-04T20:07:46.296627 | 2019-07-24T11:57:19 | 2019-07-24T11:57:19 | 189,567,223 | 0 | 0 | null | 2022-04-22T21:23:44 | 2019-05-31T09:28:16 | JavaScript | UTF-8 | Python | false | false | 3,307 | py | from .base import FunctionalTest
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
class NewVisitorTest(FunctionalTest):
def test_can_start_a_list_for_one_user(self):
# Edith has heard about a cool new online to-do app. She goes
# to check out its homepage
sel... | [
"mpohily@gmail.com"
] | mpohily@gmail.com |
713275915abef8843f8041d6f606da3ed88339b9 | f77593e9e9a112e85acd3c73c056a7466d76e15e | /request_delivery_installation/request_delivery_installation/urls.py | d15cc80688686b4ea06f1692684c43314ce8d0e5 | [] | no_license | geethusuresh/reqest_installation | bf47c915aee1e1f7730ea858c000a6dd434a79fb | d047fa9f303273915651d0cbe03b7795f157f31c | refs/heads/master | 2021-01-25T04:09:10.282831 | 2014-09-28T06:40:10 | 2014-09-28T06:40:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,498 | py | from django.conf.urls import patterns, include, url
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.contrib import admin
admin.autodiscover()
from web.views import *
urlpatterns = patterns('',
url(r'^$', login_required(Home.as_view()), name='home'),
... | [
"geethu@technomicssolutions.com"
] | geethu@technomicssolutions.com |
42e5956217bb73d7bf84ce47a3cd84c808b6c11f | 2130aa6efd199c612b03b0cd949375dd828dd218 | /acoustid/data/submission.py | b3897ac10f2f83bd8c45d4bea70e680730d28066 | [
"MIT"
] | permissive | bazo/acoustid-server | 4774965b8a16555100c972c09582bb09ea10df3f | 56b11f1bbd093e23970d9baae2a2655ecea34aee | refs/heads/master | 2020-05-27T21:08:29.078822 | 2017-01-02T20:19:42 | 2017-01-02T20:19:42 | 83,599,159 | 1 | 0 | null | 2017-03-01T20:36:20 | 2017-03-01T20:36:20 | null | UTF-8 | Python | false | false | 6,283 | py | # Copyright (C) 2011 Lukas Lalinsky
# Distributed under the MIT license, see the LICENSE file for details.
import logging
from sqlalchemy import sql
from acoustid import tables as schema, const
from acoustid.data.fingerprint import lookup_fingerprint, insert_fingerprint, inc_fingerprint_submission_count, FingerprintSe... | [
"lalinsky@gmail.com"
] | lalinsky@gmail.com |
4ad97214cab242cab7be5cd4232d8eca3d8ff676 | 89d920e8de469466f45172948082284b24ee8ca6 | /sdt/bin/sdpostpipelineutils.py | 4ea778b4bbc53e16782ee12c4bdf0fc87ea83537 | [] | no_license | cedadev/synda | fb22cce909e8b4fb8e51e7ab506c337d6ec5d9d2 | 9b9fa5b9b13719e1307f093d208256e359e501af | refs/heads/master | 2021-09-24T03:56:21.545769 | 2020-09-16T10:34:44 | 2020-09-16T10:34:44 | 187,797,897 | 1 | 0 | null | 2020-01-28T12:56:15 | 2019-05-21T08:45:47 | Python | UTF-8 | Python | false | false | 1,918 | py | #!/usr/bin/env python
# -*- coding: ISO-8859-1 -*-
##################################
# @program synda
# @description climate models data transfer program
# @copyright Copyright “(c)2009 Centre National de la Recherche Scientifique CNRS.
# All Rights Reserved”
# @license ... | [
"jerome@TOSH001.home"
] | jerome@TOSH001.home |
25ef6c97fd596d1d2354d836019a500f2ecc8459 | a1508558da875f6ea3c55840b44df74dfd8e5f54 | /trade_free/portfolio/simple_portfolio.py | 94769841a1f4946dcd4018c81dafdf1cb40da449 | [
"Apache-2.0"
] | permissive | NewLanded/TradeFree | 49cea6a17b5f3b4661d1c98a81e031123f02b3e6 | f65122f5ed01cc1272fd2f03121ff3805a1967cb | refs/heads/master | 2020-07-19T21:13:01.976587 | 2020-01-09T14:02:29 | 2020-01-09T14:02:29 | 206,515,265 | 2 | 2 | Apache-2.0 | 2020-01-09T14:02:31 | 2019-09-05T08:36:58 | Python | UTF-8 | Python | false | false | 6,922 | py | import datetime
import math
import numpy as np
from utils.constant_util import BUY, SELL
from .abs_portfolio import AbsPortfolio
from ..event import OrderEvent
class SimplePortfolio(AbsPortfolio):
"""
测试Portfolio, 向brokerage对象发送固定的交易数量, 不考虑风控或头寸
"""
def __init__(self, start_date, event_queue, bars,... | [
"l1141041@163.com"
] | l1141041@163.com |
45149d5320d27687d7ff31975d14835cd619efa7 | 5d77833445b1ef95b5ca7b9a886f98cb38a16286 | /code/9-12 TacotronDecoderwrapper.py | 28ddda9aacb18edb2af96dfac848ac5941305610 | [] | no_license | wangbin0227/TensorFlow_Engineering_Implementation | bbafa4933c3244b65f0d3a2625fd58a9f8726c34 | cb787e359da9ac5a08d00cd2458fecb4cb5a3a31 | refs/heads/master | 2023-03-18T10:58:58.916184 | 2021-03-16T15:03:49 | 2021-03-16T15:03:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,362 | py | """
@author: 代码医生工作室
@公众号:xiangyuejiqiren (内有更多优秀文章及学习资料)
@来源: <深度学习之TensorFlow工程化项目实战>配套代码 (700+页)
@配套代码技术支持:bbs.aianaconda.com (有问必答)
"""
import tensorflow as tf
from tensorflow.python.framework import ops, tensor_shape
from tensorflow.python.ops import array_ops, check_ops, rnn_cell_impl, tensor_array_ops
fr... | [
"aianaconda@qq.com"
] | aianaconda@qq.com |
ba257c7a32b2ec4aa2b22fc7c7b92e305f9f957d | 5b3caf64b77161748d0929d244798a8fb914d9c5 | /Python Excel Examples/GeneralApiDemo/convertInRequest.py | b196e1d1ec4e23d1a9d95f987f3a2b8969ea75af | [] | no_license | EiceblueCloud/Spire.Cloud.Excel | 0d56864991eaf8d44c38f21af70db614b1d804b7 | d9845d5cefd15a3ab408b2c9f80828a4767e2b82 | refs/heads/master | 2021-07-20T23:44:39.068568 | 2021-07-15T03:04:49 | 2021-07-15T03:04:49 | 230,225,396 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | import spirecloudexcel
from spirecloudexcel.configuration import Configuration as ExcelConfiguration
from spirecloudexcel.api.general_api import GeneralApi
appId = "your id"
appKey = "your key"
baseUrl = "https://api.e-iceblue.cn"
configuration = ExcelConfiguration(appId, appKey,baseUrl)
api = spirecloudexcel.... | [
"noreply@github.com"
] | EiceblueCloud.noreply@github.com |
d634e31486f5044b31ab168805511a33ded6ef6a | eacfc1c0b2acd991ec2cc7021664d8e79c9e58f6 | /ccpnmr2.4/python/ccp/format/marvin/generalIO.py | 21409931818e74a5fd154a4652c790008a1b86d2 | [] | no_license | edbrooksbank/ccpnmr2.4 | cfecb0896dcf8978d796e6327f7e05a3f233a921 | f279ca9bb2d972b1ce075dad5fcc16e6f4a9496c | refs/heads/master | 2021-06-30T22:29:44.043951 | 2019-03-20T15:01:09 | 2019-03-20T15:01:09 | 176,757,815 | 0 | 1 | null | 2020-07-24T14:40:26 | 2019-03-20T14:59:23 | HTML | UTF-8 | Python | false | false | 2,522 | py |
"""
======================COPYRIGHT/LICENSE START==========================
generalIO.py: General I/O information for marvin files
Copyright (C) 2007 Wim Vranken (European Bioinformatics Institute)
=======================================================================
This library is free software; you can redist... | [
"ejb66@le.ac.uk"
] | ejb66@le.ac.uk |
8429023f1b3c30a87447a7c557bf8a050b626b9e | f1cb02057956e12c352a8df4ad935d56cb2426d5 | /LeetCode/245. Shortest Word Distance III/Solution.py | fe576e1094fd4f1abf5f1fd442f98d9271e0048c | [] | no_license | nhatsmrt/AlgorithmPractice | 191a6d816d98342d723e2ab740e9a7ac7beac4ac | f27ba208b97ed2d92b4c059848cc60f6b90ce75e | refs/heads/master | 2023-06-10T18:28:45.876046 | 2023-05-26T07:46:42 | 2023-05-26T07:47:10 | 147,932,664 | 15 | 2 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | class Solution:
def shortestWordDistance(self, words: List[str], word1: str, word2: str) -> int:
index = {}
for i, word in enumerate(words):
if word not in index:
index[word] = []
index[word].append(i)
ret = 10000000000
if word1 == word2:
... | [
"nphamcs@gmail.com"
] | nphamcs@gmail.com |
8d9d0e317790133f034bcece449e9d1801f40422 | f124cb2443577778d8708993c984eafbd1ae3ec3 | /saleor/plugins/openid_connect/dataclasses.py | df281787eae5485c4eed4cc9fa9dc62b63f84957 | [
"BSD-3-Clause"
] | permissive | quangtynu/saleor | ac467193a7779fed93c80251828ac85d92d71d83 | 5b0e5206c5fd30d81438b6489d0441df51038a85 | refs/heads/master | 2023-03-07T19:41:20.361624 | 2022-10-20T13:19:25 | 2022-10-20T13:19:25 | 245,860,106 | 1 | 0 | BSD-3-Clause | 2023-03-06T05:46:25 | 2020-03-08T17:44:18 | Python | UTF-8 | Python | false | false | 316 | py | from dataclasses import dataclass
@dataclass
class OpenIDConnectConfig:
client_id: str
client_secret: str
enable_refresh_token: bool
json_web_key_set_url: str
authorization_url: str
logout_url: str
token_url: str
user_info_url: str
audience: str
use_scope_permissions: bool
| [
"noreply@github.com"
] | quangtynu.noreply@github.com |
48b3d55b329489d00e4124a4623d217aa24253ca | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/incident_message_v2.py | 0bef2967a5076ff962fc33551f637afbe604a4a8 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,941 | py | # coding: utf-8
import re
import six
class IncidentMessageV2:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
8376f3ba760e0968095243d0a6947b384dd9d9c9 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /utils/ETF/Redemption_SA/YW_ETFSS_SZSH_019.py | 1b0fde97d8686e9b2f5c74c8d27dca8b23258a17 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,493 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
import time
sys.path.append("/home/yhl2/workspace/xtp_test/ETF")
from import_common import *
sys.path.append("/home/yhl2/workspace/xtp_test/ETF/etf_service")
from ETF_GetComponentShare import etf_get_all_component_stk
class YW_ETFSS_SZSH_019(xtp_test_case):
... | [
"418033945@qq.com"
] | 418033945@qq.com |
68a3e17117ffc29cf8def3bcc4810417498b7ef9 | 297c440536f04c5ff4be716b445ea28cf007c930 | /App/migrations/0007_auto_20200403_2201.py | 2c78246df112461b79785ba55ec3ca0a977b1975 | [] | no_license | Chukslord1/SchoolManagement | 446ab8c643035c57d7320f48905ef471ab3e0252 | 23fd179c0078d863675b376a02193d7c1f3c52e0 | refs/heads/master | 2023-02-03T09:14:24.036840 | 2020-12-14T11:06:43 | 2020-12-14T11:06:43 | 247,177,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # Generated by Django 3.0 on 2020-04-04 05:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('App', '0006_auto_20200403_1841'),
]
operations = [
migrations.AlterField(
model_name='userprofile',
name='secret_pin',... | [
"chukslord1@gmail.com"
] | chukslord1@gmail.com |
7c344fcf6b9f60cc30778e1ef5ef3f5afc6f3ea0 | ba22f289ad1c49fb286105aeaa9abd8548907dc5 | /tempest/tests/lib/test_tempest_lib.py | d70e53dee8a7a2d9d91a0a5a5f89d4b72c3be367 | [
"Apache-2.0"
] | permissive | ssameerr/tempest | cf3f41b3aa07124a1bac69c3c3f2e393b52e671c | e413f28661c2aab3f8da8d005db1fa5c59cc6b68 | refs/heads/master | 2023-08-08T05:00:45.998493 | 2016-06-08T13:13:48 | 2016-06-08T13:13:48 | 60,715,004 | 0 | 0 | Apache-2.0 | 2023-02-15T02:18:34 | 2016-06-08T17:02:15 | Python | UTF-8 | Python | false | false | 780 | py | # -*- coding: utf-8 -*-
# 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, softw... | [
"mtreinish@kortar.org"
] | mtreinish@kortar.org |
c49cb629b81dd8bab875ff2f9d3dbd0a5ce2d44e | fea2eff6ed6ff05879e071d52d978b1f2f322f31 | /TensorFlow深度学习应用实践_源代码/08/8-1.py | e433dd823a9c612a94b2b30fa227c819242e8df1 | [] | no_license | GetMyPower/mypython | 71ec8db85c82e33b893c5d53ac64a007951fd8f0 | 1846148e327e7d14ebb96c9fea4b47aa61762a69 | refs/heads/master | 2022-03-22T08:11:56.113905 | 2019-12-20T15:00:23 | 2019-12-20T15:00:23 | 198,230,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | import tensorflow as tf
input1 = tf.constant(1)
print(input1)
input2 = tf.Variable(2,tf.int32)
print(input2)
input2 = input1
sess = tf.Session()
print(sess.run(input2))
| [
"noreply@github.com"
] | GetMyPower.noreply@github.com |
8e0cd4727a216f881c84d55625a70efbdcadb46d | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_287/ch150_2020_04_13_20_45_30_391205.py | d44700ac9eb31e56af69bcc4d9db551fc97ab291 | [] | 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 | 234 | py | import math
def calcula_pi(n):
if n == 1:
p = (6**(1/2))
return p
p = 0
valores = list(range(n))
valores.remove(0)
for a in (valores):
p += (6/(a**2))
p = (p**(1/2))
return p | [
"you@example.com"
] | you@example.com |
d78a7f97e2bbf295b699f32b08fc0480aa10688a | 67ae1b00411ad63726e0abb07ba82ac5b75fc32a | /findmusician/wsgi.py | e3e754c495255bd2fa5792053e4e437c249d3059 | [] | no_license | SimonKorzonek/findmusician | e40429bf45115de0709ef6fe92ace3c5cd195660 | fc23e0d6b5da7d98423accef5eb82b9b6c5516bc | refs/heads/main | 2023-02-15T10:12:02.070458 | 2021-01-05T23:02:05 | 2021-01-05T23:02:05 | 327,074,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for findmusician project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"korzonek.szymon@gmail.com"
] | korzonek.szymon@gmail.com |
c4463b466523f98a0389beff01c3891c2fefadb3 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/LeetcodePythonProject_with_solution/leetcode_0751_0800/LeetCode792_NumberOfMatchingSubsequences.py | ce718c54dd28669b15ae5ae32138582fbd1dc330 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,018 | py | '''
Created on Apr 16, 2018
@author: tongq
'''
c_ Solution(o..
___ numMatchingSubseq S, words
"""
:type S: str
:type words: List[str]
:rtype: int
"""
hashmap # dict
___ i __ r..(26
c chr(o..('a')+i)
hashmap[c] # list
___... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
f8e7c4835096c2301aac6f202b1a28fee2bab730 | 4c984a318ccf26e765f902669399da66497e194d | /pollexe/urls.py | 5ed934d9e6f6c6c24682d62a19f5786bdf6c0416 | [] | no_license | sajalmia381/pollexe | 914af663bad6becb4308c738a16240028f37f99b | 3ead47fee43855aba1ee0f4c2b3f222cac6a9a68 | refs/heads/master | 2020-04-21T12:42:49.283843 | 2019-02-07T13:43:40 | 2019-02-07T13:43:40 | 169,572,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('', include('account.urls', namespace='account')),
path('', include('page.urls', namespace='page')),
path('', include('blog.urls', namespac... | [
"sajal_mia@ymail.com"
] | sajal_mia@ymail.com |
3ab3e27fb739a45761ef77b83f03b45a6dab15f9 | b00efc53bec9b05f91703db81387325fae0a771e | /MAI/olymp/17.02.05/a.py | 364918dd1e8451ebddaa61670614cbf7012cf250 | [] | no_license | 21zaber/MAI | ac88eb1dd4b8f6b9d184527a3b1824a05993a9e1 | 45f25bdd5996329fd05f3e0ec7eb1289443f17b5 | refs/heads/master | 2021-01-17T07:12:22.303754 | 2018-02-08T15:05:30 | 2018-02-08T15:05:30 | 54,101,933 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | n = int(input())
q = n+3
t = [[[[0 for i in range(q)] for i in range(q)] for i in range(q)] for i in range(n+1)]
# len vs max last
t[1][0][0][0] = 1
for l in range(1, n):
for vs in range(l+1):
for mx in range(l):
for lst in range(mx+1):
c = 0
if t[l][vs][mx][ls... | [
"zaber.eng@gmail.com"
] | zaber.eng@gmail.com |
1ecf217ac3f73bc4e4f65a2a705ed8b490973479 | 155b6c640dc427590737750fe39542a31eda2aa4 | /api-test/easyloan/testAction/loginAction.py | 1ffce9a91563013b011f796bed0bf0a925d88370 | [] | no_license | RomySaber/api-test | d4b3add00e7e5ed70a5c72bb38dc010f67bbd981 | 028c9f7fe0d321db2af7f1cb936c403194db850c | refs/heads/master | 2022-10-09T18:42:43.352325 | 2020-06-11T07:00:04 | 2020-06-11T07:00:04 | 271,468,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,582 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time :2019-04-23 下午 2:33
@Author : 罗林
@File : loginAction.py
@desc :
"""
import requests
import json
from common.myConfig import ConfigUtils as conf
from common.myCommon.Logger import getlog
from common.myConfig import MysqlConfig as ms
from c... | [
"romy@romypro.local"
] | romy@romypro.local |
4852b83b2264cd75b2dfc36bc578fc47b1f9e399 | cf5efed6bc1e9bd27f94663d2443c6bdd1cb472a | /1-pack_web_static.py | 1688b66bfe9161d9b0827db23d9332f8638567fd | [] | no_license | yulyzulu/AirBnB_clone_v2 | 593db702ede02ac17b6883b3e99b6e1eb36a33ee | 1a40aec60996dc98ad9ff45f5e1224816ff6735b | refs/heads/master | 2021-05-25T15:33:22.100621 | 2020-04-23T23:23:25 | 2020-04-23T23:23:25 | 253,810,650 | 0 | 0 | null | 2020-04-07T14:02:36 | 2020-04-07T14:02:35 | null | UTF-8 | Python | false | false | 682 | py | #!/usr/bin/python3
"""Module that execute functions"""
from fabric.api import local
from fabric.decorators import runs_once
from datetime import datetime
from os.path import getsize
@runs_once
def do_pack():
local("mkdir -p versions")
date_time = datetime.now().strftime("%Y%m%d%H%M%S")
command = local("ta... | [
"yulyzulu05@gmail.com"
] | yulyzulu05@gmail.com |
6f92dc3b1e46aec56a6ea497917e884f922966d1 | a23ec1e8470f87d1b3fa34b01506d6bdd63f6569 | /algorithms/967. Numbers With Same Consecutive Differences.py | 3750ace278b12334a762bdf37e95b48783d3f618 | [] | no_license | xiaohai0520/Algorithm | ae41d2137e085a30b2ac1034b8ea00e6c9de3ef1 | 96945ffadd893c1be60c3bde70e1f1cd51edd834 | refs/heads/master | 2023-04-14T17:41:21.918167 | 2021-04-20T13:57:09 | 2021-04-20T13:57:09 | 156,438,761 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | Dfs problem.
each time we add one digit, we make sure it satifiy the condition.
Code:
class Solution:
def numsSameConsecDiff(self, N, K):
"""
:type N: int
:type K: int
:rtype: List[int]
"""
if N == 1:
return [i for i in range(10)]
if K == 0:
... | [
"noreply@github.com"
] | xiaohai0520.noreply@github.com |
fd340134c630935c8dff1c7e83d8d2b1a4bd61dc | fcdfe976c9ed60b18def889692a17dc18a8dd6d7 | /python/qt/close_dialog.py | 732b8043635aa9a35802bd6867ad50d908c18473 | [] | no_license | akihikoy/ay_test | 4907470889c9bda11cdc84e8231ef3156fda8bd7 | a24dfb720960bfedb94be3b4d147e37616e7f39a | refs/heads/master | 2023-09-02T19:24:47.832392 | 2023-08-27T06:45:20 | 2023-08-27T06:45:20 | 181,903,332 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | #!/usr/bin/python
#\file close_dialog.py
#\brief certain python script
#\author Akihiko Yamaguchi, info@akihikoy.net
#\version 0.1
#\date Apr.01, 2017
# http://stackoverflow.com/questions/14834494/pyqt-clicking-x-doesnt-trigger-closeevent
import sys
from PyQt4 import QtGui, QtCore, uic
class MainWindow(QtGu... | [
"info@akihikoy.net"
] | info@akihikoy.net |
2e4c319c80a704585fbab79e4c5ae8329e38f201 | ddc7e22952de6298d14b9297e765db29f327cfcb | /BFS/medium/minKnightMoves.py | ec82adee4ecf9c80d54548712c8789fa3cbcdfdb | [
"MIT"
] | permissive | linminhtoo/algorithms | 154a557b4acada2618aac09a8868db9f3722204f | 884422a7c9f531e7ccaae03ba1ccbd6966b23dd3 | refs/heads/master | 2023-03-21T23:01:58.386497 | 2021-03-16T07:13:32 | 2021-03-16T07:13:32 | 296,247,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,461 | py | # leetcode is premium problem
# see https://www.geeksforgeeks.org/minimum-steps-reach-target-knight/
# https://www.hackerrank.com/challenges/knightl-on-chessboard/problem <-- slightly harder version of the same problem (SCROLL DOWN)
# BFS
class Cell: # don't have to use this, can just use a tuple also (x, y, dist)
... | [
"linmin001@e.ntu.edu.sg"
] | linmin001@e.ntu.edu.sg |
a9999691c3e277bd3c41bb28c97ea2216afad0fb | 508cd804441ce076b318df056153870d2fe52e1b | /sphere.py | e43689710948ecd61748515c08b01fe57e116aba | [] | no_license | archibate/taichi_works | ffe80e6df27b7bcb3ce1c4b24e23ceeb0ac4ff8a | 9aaae1de9fe53740030c6e24a0a57fc39d71dd71 | refs/heads/master | 2022-11-18T19:07:37.122093 | 2020-07-17T08:45:36 | 2020-07-17T08:45:36 | 276,714,718 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,284 | py | import taichi as ti
import taichi_glsl as tl
import random, math
ti.init()#kernel_profiler=True)
dt = 0.01
kMaxParticles = 1024
kResolution = 512
kKernelSize = 16 / 512
kKernelFactor = 0.5 / kKernelSize**2
kGravity = tl.vec(0.0, -0.0)
kUseImage = False
kBackgroundColor = 0x112f41
kParticleColor = 0x068587
kBoundaryCo... | [
"1931127624@qq.com"
] | 1931127624@qq.com |
50be32c063b21f51fb59e29080e17d63f03faeea | 77c2010bb9533ecbdfa46cd41c16ee5ae26e94fa | /library/migrations/0001_initial.py | d100e69ebfc03b3f1d153433b33548151de3b8ec | [] | no_license | dimansion/portfolio-django | b2cbb28dff97dd03cdf795f0bc661d39bcfae83d | 2dffe0e8579b2a426cb7aceb1ee085933b122d90 | refs/heads/master | 2020-05-23T08:15:38.205372 | 2017-03-05T14:44:14 | 2017-03-05T14:44:14 | 70,251,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,605 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-10-09 06:20
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations =... | [
"dimansional@gmail.com"
] | dimansional@gmail.com |
ee3747640d2d81beb67e38eb7bf9195041503fd6 | 51bdac517ec342a7a38a67e2b3c521f8bd53c5f2 | /numba/tests/pointers/test_null.py | fa46e26b67aa41253b5f4b2b6e874e710d7a3aaf | [
"BSD-2-Clause"
] | permissive | cu6yu4/numba | 66bc7ee751fdfaabab92b6f571dbff00cb4d7652 | f64aced5a7c94a434fd2d8c678d93ff8ac3ae1fb | refs/heads/master | 2020-12-25T13:45:44.629782 | 2013-01-25T20:28:12 | 2013-01-25T20:28:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | import ctypes
import numba
from numba import *
#intp = ctypes.POINTER(ctypes.c_int)
#voidp = ctypes.c_void_p
intp = int_.pointer()
voidp = void.pointer()
@autojit
def test_compare_null():
"""
>>> test_compare_null()
True
"""
return intp(Py_uintptr_t(0)) == NULL
@autojit
def test_compare_null_att... | [
"markflorisson88@gmail.com"
] | markflorisson88@gmail.com |
2cffed30653acf460e4754cf7749eaf6a5e2e45b | cc0cc5268223f9c80339d1bbc2e499edc828e904 | /wallets/thrifty_wallets/manage.py | e4a50db512daef9656866ea7fe7ac714993b463d | [] | no_license | deone/thrifty | 0ba2b0445e7e9fd4cc378350de158dc6c89838b4 | a0ee4af9447b2765f4139deb87a3c1464e7c7751 | refs/heads/master | 2021-01-10T12:00:00.618968 | 2015-11-01T23:36:36 | 2015-11-01T23:36:36 | 45,340,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "thrifty_wallets.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"alwaysdeone@gmail.com"
] | alwaysdeone@gmail.com |
1b340ebd2248f63c39e2921394126e7da83f5247 | 8a46f370477ea9fabd36249a4f6d70226917c24b | /blogdown/plugin.py | 8ad745eddeda8d95b2c65f40734315b3b18705c3 | [
"BSD-3-Clause"
] | permissive | blogdown/blogdown | af551991013d03e3b7b033cf45687f952eb41def | 4a463d341a1fe7547a3de33f03d356e74a89569e | refs/heads/master | 2022-06-09T11:53:03.728491 | 2022-05-17T19:26:54 | 2022-05-17T19:28:16 | 5,064,814 | 5 | 4 | null | 2016-03-14T02:44:58 | 2012-07-16T08:30:38 | Python | UTF-8 | Python | false | false | 2,147 | py | # -*- coding: utf-8 -*-
"""
blogdown.plugin
~~~~~~~~~~~~~~~
Utilities for a simple plugin system.
:copyright: (c) 2015 by Thomas Gläßle
:license: BSD, see LICENSE for more details.
"""
import os
from importlib import import_module
from pkg_resources import iter_entry_points
from runpy import run_p... | [
"t_glaessle@gmx.de"
] | t_glaessle@gmx.de |
c2b459c2282096b0821f5cafcca9b1d79861dd95 | 9619daf132259c31b31c9e23a15baa675ebc50c3 | /memphis.users/memphis/users/registration.py | 42d0886c2b83d4155d69ef9eca86b59d3b64b673 | [] | no_license | fafhrd91/memphis-dev | ade93c427c1efc374e0e1266382faed2f8e7cd89 | c82aac1ad3a180ff93370b429498dbb1c2e655b8 | refs/heads/master | 2016-09-05T19:32:35.109441 | 2011-08-22T06:30:43 | 2011-08-22T06:30:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from zope import interface
from memphis import controlpanel
from interfaces import _, ISiteRegistration
class SiteRegistration(object):
interface.implements(ISiteRegistration)
controlpanel.registerConfiglet(
'principals.registration', ISiteRegistration, SiteRegistration,
_("Site registration"), _("Sit... | [
"fafhrd91@gmail.com"
] | fafhrd91@gmail.com |
82d49a9ea24a6ef56776243ff4a21c12b816e9f6 | eab72229ae04d1160704cbf90a08a582802a739c | /put_zero_den.py | 34666a2ec393a250b458da9b91999832b8c281fe | [
"MIT"
] | permissive | megatazm/Crowd-Counting | 444d39b0e3d6e98995f53badf4c073829038b6b7 | 647a055baccee2c3b6b780f38930e2ffd14d1664 | refs/heads/master | 2022-04-01T04:49:16.409675 | 2020-01-31T21:24:02 | 2020-01-31T21:24:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | import cv2
import numpy as np
import os
import glob
from paint_den import paint
import params
path = params.input
dirs = [f for f in glob.glob(path + '/*/')]
images = []
for x in dirs:
images.append([f for f in glob.glob(x + '/*_pos.png')])
images.sort()
images = [item for sublist in images for item in sublist]
... | [
"gpsunicamp016@gmail.com"
] | gpsunicamp016@gmail.com |
5ef53c9e1394c1d2f92962a9f34217c5c9134413 | 11841e8fb1e44c69ae7e50c0b85b324c4d90abda | /chutu/exmapxx.py | 5a8c550eb45031c938a4fb4f4a1d660bcf2fed3d | [] | no_license | chenlong2019/python | 1d7bf6fb60229221c79538234ad2f1a91bb03c50 | fc9e239754c5715a67cb6d743109800b64d74dc8 | refs/heads/master | 2020-12-08T11:11:49.951752 | 2020-01-10T04:58:29 | 2020-01-10T04:59:50 | 232,968,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,386 | py | # coding=utf-8
import arcpy
import os,glob,time
res=200
# 模板mxd文档路径,生成mxd文档路径
def createMxd(modelpath,mxdpath,symbologyLayer,jpgpath,string,lyrfile):
mxd=arcpy.mapping.MapDocument(modelpath)
if(os.path.exists(mxdpath)):
mxd=arcpy.mapping.MapDocument(mxdpath)
print("location as "+mxdpath)
... | [
"1174650816@qq.com"
] | 1174650816@qq.com |
10c811755bbeff6b27cebbc77dbe356bb64edc11 | 15ed3ab4510677e6df9b11af8fd7a36fc6d826fc | /v1/og_mc_3/tau=0.01/eta=0.04/library/mc6.py | a573e2553235d58cd70aaa9530cdec9d32c14c5f | [] | no_license | pe-ge/Computational-analysis-of-memory-capacity-in-echo-state-networks | 929347575538de7015190d35a7c2f5f0606235f2 | 85873d8847fb2876cc8a6a2073c2d1779ea1b20b | refs/heads/master | 2020-04-02T08:08:38.595974 | 2018-01-17T08:12:26 | 2018-01-17T08:12:26 | 61,425,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,280 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
mc6.py
Created 21.3.2015
Based on mc5.py
Goal: Measuring Memory Capacity of reservoirs.
Changes:
- removed correlation coefficient correction MC <- MC - q / iterations_coef_measure
- added input-to-output connections
"""
from numpy import random, zeros, ta... | [
"gergelp@gmail.com"
] | gergelp@gmail.com |
16e0ae410ab9c5056f793ef00a29456e3926cbfc | 3b9bf497cd29cea9c24462e0411fa8adbfa6ba60 | /leetcode/Problems/116--Populating-Next-Right-Pointers-in-Each-Node-Medium.py | 2e8b81530cf65226d4d6de3352b0c75892188c4a | [] | no_license | niteesh2268/coding-prepation | 918823cb7f4965bec096ec476c639a06a9dd9692 | 19be0766f6b9c298fb32754f66416f79567843c1 | refs/heads/master | 2023-01-02T05:30:59.662890 | 2020-10-17T13:12:34 | 2020-10-17T13:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | """
# Definition for a Node.
class Node:
def __init__(self, val: int = 0, left: 'Node' = None, right: 'Node' = None, next: 'Node' = None):
self.val = val
self.left = left
self.right = right
self.next = next
"""
class Solution:
def connect(self, root: 'Node') -> 'Node':
i... | [
"akulajayaprakash@gmail.com"
] | akulajayaprakash@gmail.com |
fb3ec15864cfb1866c1711d0586b7d7b0fff7090 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/ms_data/particles/particles_ie013_xsd/__init__.py | e0ffd1abcba9a881fbd645379ab76771f0c5d955 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 169 | py | from output.models.ms_data.particles.particles_ie013_xsd.particles_ie013 import (
Base,
Doc,
Testing,
)
__all__ = [
"Base",
"Doc",
"Testing",
]
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
0cd0e4e8ac5f482d0c574c61b50f82a0ddd477af | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/f30589c91d8946586faff2c994e99395239bd50b-<main>-fix.py | 1d51b1b9cb0c17280c516c955697eab9c96e41df | [] | 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 | 935 | py |
def main():
argument_spec = purefa_argument_spec()
argument_spec.update(dict(name=dict(required=True), eradicate=dict(default='false', type='bool'), state=dict(default='present', choices=['present', 'absent']), size=dict()))
required_if = [('state', 'present', ['size'])]
module = AnsibleModule(argumen... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
25b0faff57a134389ac668ba40d1d3421f140816 | 08ee36e0bb1c250f7f2dfda12c1a73d1984cd2bc | /src/mnistk/networks/conv1dtanh_24.py | c8888a08e65cd985171dd5b7947bf12cd3c0dedf | [] | no_license | ahgamut/mnistk | 58dadffad204602d425b18549e9b3d245dbf5486 | 19a661185e6d82996624fc6fcc03de7ad9213eb0 | refs/heads/master | 2021-11-04T07:36:07.394100 | 2021-10-27T18:37:12 | 2021-10-27T18:37:12 | 227,103,881 | 2 | 1 | null | 2020-02-19T22:07:24 | 2019-12-10T11:33:09 | Python | UTF-8 | Python | false | false | 1,688 | py | # -*- coding: utf-8 -*-
"""
conv1dtanh_24.py
:copyright: (c) 2019 by Gautham Venkatasubramanian.
:license: MIT
"""
import torch
from torch import nn
class Conv1dTanh_24(nn.Module):
def __init__(self):
nn.Module.__init__(self)
self.f0 = nn.Conv1d(in_channels=16, out_channels=22, kernel_... | [
"41098605+ahgamut@users.noreply.github.com"
] | 41098605+ahgamut@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.