blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3bbb8f647835caa7abd05694219d8a97f81cc0f3 | f0937439e0310248d72b85506ebf1ffcc0fd5d3c | /ejercicio8.py | e87349a733675551a79523269f22b65586a6ae7c | [] | no_license | EfrenGaxiola/proyecto1 | dac86fdefd64b9702d92bbe5f46fa641b8530f2b | e607a4746386fec16b90e749c40727e5b5c56d4d | refs/heads/main | 2023-07-19T01:21:27.550370 | 2021-09-06T00:09:31 | 2021-09-06T00:09:31 | 401,918,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | def convertInputString():
rawInput = input("\nIntroduzca una palabra para saber su es un palindromo: ")
rawString = rawInput.lower()
rawList = list(rawString)
return rawList
def stripAnalphabetics(dirtyList):
analphabeticList = [" ", "-", ".", ",", ":", ";", "!", "?", "'", "\""]
fo... | [
"noreply@github.com"
] | noreply@github.com |
836dc051ae842d3fb098afe67dd219518fdf722b | 2aa47f47fb81798afdf41437844cbbea8e9de66c | /02pythonBase/day12/day11_exercise/factorial_sum.py | d9c669a1112be4d4c20c74aede6742f36eab15e2 | [] | no_license | nykh2010/python_note | 83f2eb8979f2fb25b4845faa313dbd6b90b36f40 | 5e7877c9f7bf29969072f05b98277ef3ba090969 | refs/heads/master | 2020-04-27T23:10:16.578094 | 2019-03-23T02:43:14 | 2019-03-23T02:43:14 | 174,765,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | # 3. 写程序算出 1 ~ 20 的阶乘的和
# 1! + 2! + 3! + 4! + ..... + 20!
# 方法1
# def myfac(n):
# if n == 1:
# return 1
# return n * myfac(n - 1)
# s = 0
# for x in range(1, 21):
# s += myfac(x)
# print(s)
import math
print(sum(map(math.factorial, range(1, 21))))
| [
"xulingfeng@boe.com.cn"
] | xulingfeng@boe.com.cn |
2d3850df0c094eeb7f706d70aa509e5e2011f721 | 772b0df2635b95644ea3eb370103174804024167 | /scripts/process_file.py | cfce2bb5b07aee825c3a76f0632392eb3a6e3579 | [
"MIT"
] | permissive | 4dn-dcic/clodius | ec909bda90a9df13fa1b85472951f6cf149213a5 | aa31b3d90a5a9fec883c20cab31ad4d347cd52cd | refs/heads/develop | 2020-04-17T23:31:32.114043 | 2019-04-02T14:01:46 | 2019-04-02T14:01:46 | 167,038,915 | 0 | 0 | MIT | 2019-03-28T20:10:46 | 2019-01-22T17:43:32 | Python | UTF-8 | Python | false | false | 2,597 | py | from __future__ import print_function
import argparse
import os.path as op
import subprocess as sp
import sys
import tempfile as tf
def main():
usage = """
python make_tiles.py input_file
Create tiles for all of the entries in the JSON file.
"""
parser = argparse.ArgumentParser()
parser.add_... | [
"pkerpedjiev@gmail.com"
] | pkerpedjiev@gmail.com |
abd71775ca585639eb34289d76fb518db732a0e3 | fb1bb3923107f803c4c70784806f32c839d8c69b | /moniker/agent/api.py | 9cd026dc955e89f78a83a6e86a1678860708b6b5 | [] | no_license | devcamcar/moniker | 8c8fe2d81b2c85d06037e3e5ad1b3b3f7a251f14 | b68a898a8735b8bdbd0c952c1bd1ebe8f97a76b2 | refs/heads/master | 2020-05-18T12:42:08.322328 | 2012-11-05T00:26:54 | 2012-11-05T00:26:54 | 6,540,260 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,189 | py | # Copyright 2012 Managed I.T.
#
# Author: Kiall Mac Innes <kiall@managedit.ie>
#
# 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 r... | [
"kiall@managedit.ie"
] | kiall@managedit.ie |
1f3e82b1570f82ea3bdfef2515882a87a08ed13e | 8efe9a6c9489d798b5f5b610eb531d86924a1548 | /src/products/migrations/0030_auto_20180305_0204.py | 5a7d07b9df8306b0e3108784bcba1e778c6e7200 | [] | no_license | MarekBiczysko/naklisze_public | e8e6f7e61cdb83b74ea68862b40c061c0253767b | e53c0e8fefffbcfc3a8859976eb7b81cf6270847 | refs/heads/master | 2022-12-12T02:27:09.824803 | 2019-07-23T10:54:47 | 2019-07-23T10:54:47 | 198,410,666 | 0 | 0 | null | 2022-12-08T01:03:08 | 2019-07-23T10:46:57 | Python | UTF-8 | Python | false | false | 1,518 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-03-05 01:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0029_auto_20180305_0150'),
]
operations = [
migrations.AlterField... | [
"marek.biczysko@stxnext.pl"
] | marek.biczysko@stxnext.pl |
8ed0d19c11c0701afb22128c61b54d707c8f7479 | ff2cc457ee4d2a884e9774812a978b1870748b96 | /venv/bin/csv2ods | c664dcec03a2e2f8ab55fa6420f2da037006ccdf | [] | no_license | emamex98/HackMX | 8156e652a7c5a35659e965ede967b225bf485a31 | e1770b2356227b192f158538ba4062c51a122e76 | refs/heads/master | 2020-05-17T16:42:30.904266 | 2019-04-28T15:42:55 | 2019-04-28T15:42:55 | 183,826,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,085 | #!/Users/emamex98/Desktop/HackMX/venv/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2008 Agustin Henze -> agustinhenze at gmail.com
#
# This is free software. You may redistribute it under the terms
# of the Apache license and the GNU General Public License Version
# 2 or at your option any later version.
#
# Thi... | [
"emamex98@gmail.com"
] | emamex98@gmail.com | |
07aa165d6def3909678956db7fe5868f5a01c86c | 7201148b2e8c636b9235527ed268809a9e26b04a | /server/customClient.py | b2a2e21aeae045817f3a554ba148829e6ff54c5c | [] | no_license | Shreyasdbz/messenger-stock-analysis-bot-python | fc5656eda9a1d0d859ed42b76e3281686f57151d | d14cd0277d511a1e3340ea2b2217f98283474a25 | refs/heads/main | 2023-01-29T12:49:48.942477 | 2020-12-15T22:17:38 | 2020-12-15T22:17:38 | 321,802,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | import os
import json
from dotenv import load_dotenv
from fbchat import *
load_dotenv()
thread_shreyas = os.getenv('CHAT_SHREYAS_SANE')
group_moves = os.getenv('CHAT_MOVES')
class CustomClient(Client):
def onMessage(self, mid, author_id, message_object, thread_id, thread_type, ts, metadata, msg, **kwargs):
... | [
"shreyasdbz@gmail.com"
] | shreyasdbz@gmail.com |
61e410d33ff2987a9e60b5772efee86fa626f9eb | f1997dad0baf36f61e4f9d8f0bbd53a478be2e0e | /Assignments/day7_assign47_encryptmesg.py | 90a0bb480159569257e6fe93d44ba81ad0966b66 | [] | no_license | SaiSrinivas-10/INFytq | 92c1c908ece09141126ef43a184210dab6ea1abb | 69c93752ccf99d15f64e15ce823f066e567631bf | refs/heads/main | 2023-02-22T23:38:15.324709 | 2021-01-30T14:08:08 | 2021-01-30T14:08:08 | 334,414,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | '''Write a python function, encrypt_sentence() which accepts a message and encrypts it based on rules given below and returns the encrypted message.
Words at odd position -> Reverse It
Words at even position -> Rearrange the characters so that all consonants appear before the vowels and their order should not change... | [
"noreply@github.com"
] | noreply@github.com |
512c1fce60003522e98e0f5f3d8278c65001a88e | 437428a48278b4e9bc04e1b8acbb33199f409376 | /modules/exploit/unix/dvr/camera_credentials_disclosure.py | 563adb10d9ee37945d96f06681ce86ece688b976 | [
"MIT"
] | permissive | happylaodu/HatSploit | 06d18ba2590456241ba61273d9f3d662a8bb26ec | 9d53f3db85ce38483c6e7d16570ac233c5dd93cf | refs/heads/main | 2023-04-30T20:18:37.090185 | 2021-06-02T20:23:08 | 2021-06-02T20:23:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,120 | py | #!/usr/bin/env python3
#
# MIT License
#
# Copyright (c) 2020-2021 EntySec
#
# 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... | [
"enty8080@gmail.com"
] | enty8080@gmail.com |
a5a961b4574b5fc6b719622ce006914b1dfe62d2 | ebcfeafc38b1fea0dbd1a6f32de4a0ce685135d6 | /week-4/lecture-pgms/merge.py | 47b4ec2a3f63ea140b71904549d1b41837306608 | [] | no_license | aravinds-arv/dsa-algs-py | 1aa2bc43993c7bd130f658c8b319ae24971e65c7 | d3ab62ee82525fcd856fde92cb039ff6cc6beb6c | refs/heads/main | 2023-07-17T20:58:08.523057 | 2021-09-03T10:00:33 | 2021-09-03T10:00:33 | 398,820,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | def merge(A, B):
C, m, n = [], len(A),len(B)
i, j = 0, 0
while i + j < m + n:
if i == m:
C.append(B[j])
j += 1
elif j == n:
C.append(A[i])
i += 1
elif A[i] <= B[j]:
C.append(A[i])
i += 1
elif A[... | [
"aravinds.arv@gmail.com"
] | aravinds.arv@gmail.com |
5afe09e31c7ddd461bd0ca9ead432738d103c647 | 148072ce210ca4754ea4a37d83057e2cf2fdc5a1 | /src/core/w3af/w3af/plugins/attack/db/sqlmap/waf/netscaler.py | 04b6d4eca5614726a9e6be0a151109dfc48cf07b | [] | no_license | ycc1746582381/webfuzzer | 8d42fceb55c8682d6c18416b8e7b23f5e430c45f | 0d9aa35c3218dc58f81c429cae0196e4c8b7d51b | refs/heads/master | 2021-06-14T18:46:59.470232 | 2017-03-14T08:49:27 | 2017-03-14T08:49:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | #!/usr/bin/env python
"""
Copyright (c) 2006-2015 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import re
from lib.core.enums import HTTP_HEADER
from lib.core.settings import WAF_ATTACK_VECTORS
__product__ = "NetScaler (Citrix Systems)"
def detect(get_page):
retv... | [
"everping@outlook.com"
] | everping@outlook.com |
f4dda8f842cc6addeae7701cf37e693f145626ad | e87a479e499c2b71677be89e416dbdb3e85d8d70 | /HackerRank/coins.py | b4601f2e1419275a1e2c6f9d35bccdd3bbd01b20 | [] | no_license | agankur21/Algorithm | d19d85b3a4c5568b6708fe50e2a8f130f242ee4d | 8ee70c35adbed108db1471bec51032c6049d400b | refs/heads/master | 2020-06-07T12:34:36.495507 | 2017-06-15T01:33:29 | 2017-06-15T01:33:29 | 35,210,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | import sys
def update_out_matrix(coins, n, min_coin_value, out_matrix):
# Base cases
if min_coin_value == n:
out_matrix[n][min_coin_value] = (n in coins) * 1
return
else:
if min_coin_value == 0 and n == 1:
out_matrix[1][0] = 1 * (1 in coins)
return
e... | [
"agankur21@gmail.com"
] | agankur21@gmail.com |
d4f3f7a792c89097abdc05e3d07cf82fc072fb1f | a26a72098b1ab6764005239b5b7dbd6d0cfd15a6 | /goco_sqt/migrations/0005_remove_customer_lease.py | 2d96de5bcf702b7b486a07dfa5be199fc8baa41a | [] | no_license | hjandu01/goco_sqt | 29a2559dc664add5f0c94cbf341cbfd0dcd179f5 | 05ab74fd2f3abfbf0c8bbab1edc62023fbf41d30 | refs/heads/master | 2022-11-21T12:33:58.719366 | 2020-07-22T02:59:15 | 2020-07-22T02:59:15 | 274,212,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | # Generated by Django 3.0.7 on 2020-07-13 02:23
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('goco_sqt', '0004_auto_20200515_0134'),
]
operations = [
migrations.RemoveField(
model_name='customer',
name='lease',
... | [
"h.jandu@gmail.com"
] | h.jandu@gmail.com |
ed1ab366b7ca3992733217b863a06555a80a4447 | c9dfc9ad4278f032c3c1639b6ba028f51816109c | /logo.py | cd8bf09f9fa6c9dea809856ed15dad1ca1d4622c | [] | no_license | matin-1879/Termux | f6ada8f920569204324c3b21c82cf6a21ffa67ff | fa9c5cb7c9d17223709fb57a7ab0ad89c7396366 | refs/heads/main | 2023-06-20T07:25:23.992844 | 2021-07-18T11:03:44 | 2021-07-18T11:03:44 | 387,152,495 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | #!/usr/bin/python
# -*- coding: utf-8
import os,sys,time,random
print("")
print("")
color = ["\033[1;31m","\033[1;32m"]
m = random.choice(color)+"WELCOME CODEBAZ \n"
for msg in m:
sys.stdout.write(msg)
sys.stdout.flush()
time.sleep(0.06)
print("")
| [
"noreply@github.com"
] | noreply@github.com |
c62bf5e407c19bc1d3059d7e8ee9abbaba6d7100 | eb74806869a4340a6d8a2623bbe72bd4e64dcde8 | /apps/rss_feeds/migrations/0006_feed_fs_size_bytes.py | cebc86363ae3a0e11564538d0d6f2f78ab934930 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | sictiru/NewsBlur | a0874a1044926d2268ba07a928e62fce5c9a8310 | 1ab88e4cc34775d00a1ac90ee08bc2498577e773 | refs/heads/sictiru | 2023-08-19T20:24:20.638019 | 2023-08-15T03:52:09 | 2023-08-15T03:52:09 | 250,445,213 | 1 | 0 | MIT | 2023-03-06T15:34:38 | 2020-03-27T05:05:44 | Objective-C | UTF-8 | Python | false | false | 409 | py | # Generated by Django 3.1.10 on 2022-05-11 17:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rss_feeds', '0005_feed_archive_subscribers'),
]
operations = [
migrations.AddField(
model_name='feed',
name='fs_siz... | [
"samuel@ofbrooklyn.com"
] | samuel@ofbrooklyn.com |
f75dd186dd80198d652fad077eede9b2f4cbcbf6 | 797147214dffefe16d2f9a594dd11d0f245c3b54 | /cue/urls.py | cb798cffd4447e47f964861678d1bf1ef388f3ec | [] | no_license | markdawson/cue | f6664e73890bd26160edb0c7116a670b9c27a0fd | cc316f74ea43600c3ae12236e7d7551f8cf39097 | refs/heads/master | 2021-07-03T02:29:53.742310 | 2017-09-24T13:11:04 | 2017-09-24T13:11:04 | 104,598,230 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | from django.conf.urls import url, include
from django.contrib import admin
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^$', include("dashboard.urls", namespace="dashboard")),
url(r'^api/', include("bot_api.urls", namespace="bot_api"))
] | [
"mark@markdawson.xyz"
] | mark@markdawson.xyz |
457239b9315689af8e0152aee7b6b3ed69148548 | 4bbd528e4659da4175acf5211035f1da0e5d0b6c | /connect.py | 7f65fb54096e5f9ae3573142f5d9394ba43e96f1 | [] | no_license | krishh-naidu/project3_visualization | 1ea337b12af04291fda700c837b8c96200e56560 | b1d87a34816ca1b81b8242c39ba91f9790732a45 | refs/heads/main | 2023-03-26T06:33:03.429877 | 2021-03-24T22:36:25 | 2021-03-24T22:36:25 | 334,191,206 | 0 | 2 | null | 2021-01-30T20:31:47 | 2021-01-29T15:52:17 | Jupyter Notebook | UTF-8 | Python | false | false | 973 | py | import psycopg2
from config import config
import sys
def connect():
conn = None
try:
params = config()
# connect to the PostgreSQL server
print('Connecting to the PostgreSQL database...')
conn = psycopg2.connect(**params)
'''
# create a cursor
cur = conn.... | [
"krishh.naidu@gmail.com"
] | krishh.naidu@gmail.com |
32cda09e891769fc9285f0251995a37b2ccb9aca | 56a010c0cec944f9006236be4fc236f04fd40d58 | /kd_express_crawler/middlewares.py | acf1973f342f0f9b5308a22700f08a2b2b8ecc4a | [] | no_license | wuming-hero/kd_express_crawler | 09989b994e990ee0cd9dee9177009445a2c7ff83 | 9317d61884908c4933425622fb3539fadf3138da | refs/heads/master | 2021-01-20T04:57:42.722730 | 2017-09-21T06:37:19 | 2017-09-21T06:37:19 | 101,400,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,889 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class ExpressTemplateSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# ... | [
"952532573@qq.com"
] | 952532573@qq.com |
ee60a7fde32dc5883f11743bb08ade31c6afcc50 | 9cb01bf1b6d001933957a827c7007abafe0cc981 | /t3.py | 5a2fb8af92a73ec3c939d40ed155cb33ade0bc4c | [] | no_license | VarunAravinth/selenium-project-adperfect | 325547232d7e50728dac7c8bc005ac8e86b3f980 | 916fc741cb2efeb286f96dd01f658a58c6257b32 | refs/heads/master | 2021-04-28T08:30:57.770029 | 2018-11-27T08:24:35 | 2018-11-27T08:24:35 | 122,249,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | from Tkinter import *
import Tkinter as ttk
from ttk import *
import Tkinter as tk
import random
from tkMessageBox import askokcancel
fields = 'Title', 'Description', 'Residential','Licene', 'Websit', 'Price','Phone number','Email','Address', 'City', 'Postal Code', 'Online Title', 'Online Ad Copy','Date'
d... | [
"varunaravinth28@gmail.com"
] | varunaravinth28@gmail.com |
aacde178b5ebec22c950035958a4fb64a6f73cf1 | 99e15ef6892148f0c73bb810f490ea47e2007428 | /old_scratch_not_used/tanVsK.py | ec9c895bae0e97e408e3862cb156ddca54ce200d | [] | no_license | lperri/track-reco | 879cf0861a07a669def5e042120ca9a91c8fd030 | 5cb1d1e87c81ab3fe9302679d3a4a2334ff37137 | refs/heads/master | 2020-04-15T08:06:27.505707 | 2019-04-09T19:13:21 | 2019-04-09T19:13:21 | 164,517,502 | 1 | 0 | null | 2019-03-26T20:51:47 | 2019-01-08T00:04:36 | Python | UTF-8 | Python | false | false | 9,580 | py | import ROOT
import itertools
import math
from DataFormats.FWLite import Events, Handle
from array import array
import numpy
def median(lst):
return numpy.median(numpy.array(lst))
def fetchDTSegmentsPhi(event,ontime=True,twinMux=True):
phiSeg = Handle ('L1MuDTChambPhContainer')
if twinMux:
... | [
"leahmperri@physics.ucla.edu"
] | leahmperri@physics.ucla.edu |
d1774ad51874a5675a3520841566cae2f5f090ea | ad5d38fce4785037c108186f17eb1c64380355ef | /sddsd/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/billingbudgets/v1/billingbudgets_v1_messages.py | 8a611f89deb6f766bb26aafda35e58789808ab8b | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | saranraju90/multik8s | 75864b605a139ddb7947ed4de4ae8466bdd49acb | 428576dedef7bb9cd6516e2c1ab2714581e1137c | refs/heads/master | 2023-03-03T21:56:14.383571 | 2021-02-20T14:56:42 | 2021-02-20T14:56:42 | 339,665,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,575 | py | """Generated message classes for billingbudgets version v1.
The Cloud Billing Budget API stores Cloud Billing budgets, which define a
budget plan and the rules to execute as spend is tracked against that plan.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from __future__ import absolute_imp... | [
"saranraju90@gmail.com"
] | saranraju90@gmail.com |
edb41ced91b448c477e1ff798421c4a836d02c1c | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_None/trend_Lag1Trend/cycle_5/ar_/test_artificial_128_None_Lag1Trend_5__0.py | a2712b0471685b35c3361d00197c36c4f8dea080 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 258 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 5, transform = "None", sigma = 0.0, exog_count = 0, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
2b595d35645373f0f49725584e2c455cf3ad4529 | 6a370e279b93a3ad5c48ac6d86a617d1c8775150 | /Panels/srp05FinalePane.py | 628d378a6a354ba72bca4d3d8f2024e45db2eda7 | [] | no_license | LucioSilingardi/Python-SRP | 6130b406453bd3c22caad7521002ec298805efe3 | d7d95c25e3826e80ec4d8b2170120eedef67e15e | refs/heads/master | 2022-05-27T11:47:43.607801 | 2020-05-02T09:18:56 | 2020-05-02T09:18:56 | 257,364,720 | 0 | 1 | null | 2020-05-07T16:13:31 | 2020-04-20T18:06:29 | Python | UTF-8 | Python | false | false | 1,759 | py | # python srp05FinalePane.py
from PyQt5.QtCore import pyqtSlot
from PyQt5.QtGui import QFont
from PyQt5.QtWidgets import QWidget, QHBoxLayout, QVBoxLayout
from PyQt5.QtWidgets import QLabel, QPushButton
class FinalePanel(QWidget):
def __init__(self, parent):
QWidget.__init__(self)
... | [
"noreply@github.com"
] | noreply@github.com |
e4e04452423509046271cbd5de89da20f7e3b97c | 979d0facb53532a5ebd4e8077ea0a8fd8a97cf45 | /src/PlatypusParsingFunctions.py | 3252338a24c56db5e8da28192d416ebe0877e60d | [] | no_license | hackseq/2016_project_6 | aadc123b918e825979f1f0b010ade1c505b4767d | 4a006f78bf015edbddd55718f826439378c4e689 | refs/heads/master | 2021-05-15T01:01:37.233109 | 2016-10-17T22:50:37 | 2016-10-17T22:50:37 | 67,079,321 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,095 | py | # Necessary imports
import sys, os
from matplotlib import pyplot as plt
#This function will take in a Platypus VCF, and a quality cutoff for variants, and return three arrays:
#1. Position of variants
#2. Quality of variants
#3. Read Balance of variants
def ParseVCF(filename,qualCutoff):
infile = open("%s"%fi... | [
"noreply@github.com"
] | noreply@github.com |
8261febe86d08207fffb746dc4ea9b8bb4edf2f7 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/128/usersdata/195/33234/submittedfiles/al6.py | a43d19a9835509d9bcff514428b8a373c0912704 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | # -*- coding: utf-8 -*-
n=int(input('digite n:'))
contador=0
i=2
while i<=n:
if n%i==0:
contador=contador+1
print(i)
i=i+1
if contador==0:
print('PRIMO')
else:
print('NÃO PRIMO') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
a7331b3ee43605f606716e225b6f3a8427eb2df6 | 4ae7cdc9292009398a292bdf6bee61428559fdfd | /SourceCodeTools/mltools/torch/__init__.py | 3cf41a14372e44768224cab38988ebb371ea39dc | [] | no_license | VitalyRomanov/method-embedding | 52a4e6e7bf726b4db0872902a0eaf1d8cb82b4a8 | 1c8f0fc04eb1f495555272d9747fd2fea68525e1 | refs/heads/master | 2023-08-31T17:39:04.051912 | 2023-01-08T05:02:52 | 2023-01-08T05:02:52 | 219,153,628 | 5 | 7 | null | 2023-07-22T20:27:20 | 2019-11-02T12:54:12 | Python | UTF-8 | Python | false | false | 308 | py | import torch
def compute_accuracy(pred_, true_):
return torch.sum(pred_ == true_).item() / len(true_)
def to_numpy(tensor):
return tensor.cpu().detach().numpy()
def get_length_mask(target, lens):
mask = torch.arange(target.size(1)).to(target.device)[None, :] < lens[:, None]
return mask | [
"mortiv16@gmail.com"
] | mortiv16@gmail.com |
7a7d085f3ce12e7bc849972407be6e4fbe9c2c7c | e2070f4560dfde562926cf6e6ee46b20d04e28f7 | /utils/views.py | fb7a17b96aad51895dc4e3c42a0f26c2f6998d24 | [] | no_license | hazaka/platelet | 58166abec47444f3fd2bf528b3cc5bbf47d7ec2c | 345a72caf9c87775460c681cedc7ac683d13be52 | refs/heads/master | 2020-03-22T16:18:37.585768 | 2018-07-09T20:21:54 | 2018-07-09T20:21:54 | 140,313,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | from rest_framework import generics
from utils.models import Language, Name
from utils.serializers import LanguageSerializer, NameSerializer
class LanguageList(generics.ListCreateAPIView):
queryset = Language.objects.all()
serializer_class = LanguageSerializer
class LanguageDetail(generics.RetrieveUpdateDe... | [
"hazaka2717@naver.com"
] | hazaka2717@naver.com |
3b30a770bc9971f15e4f4a4cd43afbcdce5c6da2 | cc9cf69b1534dc0d9530b4ff485084162a404e34 | /leetcode/pass/leetcode_90.py | 74fc6a05142615a6ecb6b64f80b6893234b2b510 | [] | no_license | NASA2333/study | 99a58b2c9979201e9a4fae0c797391a538de6f45 | ba63bc18f3c788090e43406315497329b00ec0a5 | refs/heads/master | 2021-05-03T22:26:52.541760 | 2018-02-07T02:24:55 | 2018-02-07T02:24:55 | 104,988,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | '''
Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set).
Note: The solution set must not contain duplicate subsets.
For example,
If nums = [1,2,2], a solution is:
[
[2],
[1],
[1,2,2],
[2,2],
[1,2],
[]
]
'''
from itertools import permutations
l... | [
"422282539@qq.com"
] | 422282539@qq.com |
2756cc43964f964550e8e55fa17e53c9aee96288 | fdfe8a4a5aa987b08ca938c7febd08b3c06eb7d2 | /polls/admin.py | ff6a44d610fa07e3877b4bb07ede3064dd35d6dd | [] | no_license | jadutorial/mysite | 38b059e66885f081415a16a80b441ecf162adbca | 3875e46d8b061e3ddb2fcffc4e11390a43f4bfc2 | refs/heads/master | 2016-08-04T16:17:21.838988 | 2015-05-05T15:43:33 | 2015-05-05T15:43:33 | 34,909,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | from django.contrib import admin
from .models import Question, Choice
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
class QuestionAdmin(admin.ModelAdmin):
fieldsets = [
(None, {'fields': ['question_text']}),
('Date information', {'fields': ['pub_date'], '... | [
"jaddyranee@gmail.com"
] | jaddyranee@gmail.com |
64f761f802a5becf9b6cced60817945b0cba70ac | 8d41ced1299dc2837353c80af3668a74875a4366 | /RealSwadeshiMart/wsgi.py | 3d1d4af201cdfa2281d0f94d4869be3b1d10bc2b | [] | no_license | Sudhbhos/realswadeshimart | fa678bbd7f3e0e5843c30e51ef6b8e6b910d8317 | 8b44dcb69cb9b73e40aafa7f5a36875ddc948b54 | refs/heads/master | 2023-07-14T09:09:06.570483 | 2021-08-19T10:43:54 | 2021-08-19T10:43:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for RealSwadeshiMart 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('DJA... | [
"68770481+suraj7007@users.noreply.github.com"
] | 68770481+suraj7007@users.noreply.github.com |
ebb9f9511f2d4e1e0a7f35c8931621f26e4379bb | 4bd2768f5d02f958d05df4be05d41494a374ed28 | /emailslicer.py | 4ef24455972bd03c67bddea7233a733d0425d907 | [] | no_license | garima0106/Python-basics | 4519a5381185b230ee20008c0c39fff5495c7ae6 | 4d7090fd4b207bd2dd1086849bffc4760bacb2ef | refs/heads/master | 2022-11-15T01:02:06.363226 | 2020-07-10T23:13:44 | 2020-07-10T23:13:44 | 275,098,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # get user email address
email= input("Enter your email address: ").strip()
#slice out user name
username= email[0:email.index('@')]
#slice out domain name
#garimagr@gmail.com
ind=email.index('@')+1
domainname= email[ind:]
#format message
message= "The user name is {} and the domain name is {}"
output=message.form... | [
"gsindal@asu.edu"
] | gsindal@asu.edu |
759b4b822b6a931f35052cc8ae753ec5e73d26ef | fab14fae2b494068aa793901d76464afb965df7e | /benchmarks/f3_wrong_hints/scaling_nonlinear_software/3-19_35.py | 57bc6dce8fac1bc637a307a76bce16e0d73a5015 | [
"MIT"
] | permissive | teodorov/F3 | 673f6f9ccc25acdfdecbfc180f439253474ba250 | c863215c318d7d5f258eb9be38c6962cf6863b52 | refs/heads/master | 2023-08-04T17:37:38.771863 | 2021-09-16T07:38:28 | 2021-09-16T07:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,903 | py | from typing import FrozenSet, Tuple
import pysmt.typing as types
from pysmt.environment import Environment as PysmtEnv
from pysmt.fnode import FNode
from utils import symb_to_next
from hint import Hint, Location
def transition_system(env: PysmtEnv) -> Tuple[FrozenSet[FNode], FNode, FNode,
... | [
"en.magnago@gmail.com"
] | en.magnago@gmail.com |
a07fae45caf888b5a1f8594235788961f53f595f | 17f527d6936397270183a35d7097e0a99de16cb5 | /AtCoder/ABC/yomikomi.py | d7eac4e0bf82827b1dc0460a58ae586376914767 | [] | no_license | ryosuke071111/algorithms | e942f043d08c7c7e2c926ed332ee2b8c44bdf0c5 | 867764450cc0f2a709fa2f743d9a0d95001e9296 | refs/heads/master | 2020-05-14T17:14:39.314064 | 2019-04-17T12:58:12 | 2019-04-17T12:58:12 | 181,888,623 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | with open('goi.txt') as f:
a=f.readlines()
count=0
for i in a:
if "・" in i:
count+=1
print(count)
| [
"ryosuke0711993@gmail.com"
] | ryosuke0711993@gmail.com |
d57266dab8d5af22860b6ec60667e9dc907af33f | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/MSSM_HiggsToMuMu/fragment_mhmodp_MA400_tb20_bbH.py | 29e5b0fcac451a27f7c6bbc2d0d18d8dbe8f4c9b | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 18,020 | py | COM_ENERGY = 13000.0 # GeV
CROSS_SECTION = 1 # pb
PROCESS = 'HiggsBSM:gg2H2bbbar = on'
SLHA_TABLE = """BLOCK SPINFO
1 FeynHiggs
2 2.12.0
2 built on ott 13, 2016
BLOCK MODSEL
1 0 # Model
2 1 # GridPts
3 0 # Content
... | [
"pietro.vischia@gmail.com"
] | pietro.vischia@gmail.com |
b69ea749c11a9bd350f6febdebc5ca7638163946 | 1d0a4750e216f301ec49a247bf7bf07cd61fa29f | /app/views/tests/test_company_group_member_view.py | 67e7adb1f0bd92a0db173653baac109cf9e70848 | [] | no_license | smoothbenefits/BenefitMY_Python | 52745a11db2cc9ab394c8de7954974e6d5a05e13 | b7e8474a728bc22778fd24fe88d1918945a8cfc8 | refs/heads/master | 2021-03-27T15:57:34.798289 | 2018-04-29T19:04:04 | 2018-04-29T19:04:04 | 24,351,568 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,119 | py | from django.test import TestCase
from django.core.urlresolvers import reverse
from django.test.client import MULTIPART_CONTENT
from view_test_base import ViewTestBase
import json
class CompanyGroupMemberTestCase(TestCase, ViewTestBase):
# your fixture files here
fixtures = ['49_period_definition', '10_company... | [
"eagleofpc@gmail.com"
] | eagleofpc@gmail.com |
cbbcc1f4459db0b969c39cb2beb64a70a45e79dc | 59665f5c3d205052dffd6436c70884368cd10a19 | /extensions/pyGUI/PyGUI-2.5.4/Tests/21-image.py | 57998ef364a4d9a62a22834601311d9e277706ad | [
"LicenseRef-scancode-public-domain"
] | permissive | edusmil/feature_toggles | bc8200e20a12ca72cde6918a80da44edeb08db8a | ba8ae322331268eaf7968184ea00f4582569d0cd | refs/heads/master | 2022-11-20T21:48:02.231232 | 2018-05-20T23:37:39 | 2018-05-20T23:37:39 | 109,680,999 | 0 | 1 | null | 2020-07-23T02:48:10 | 2017-11-06T10:31:01 | Python | UTF-8 | Python | false | false | 1,550 | py | from GUI import Window, View, Image, application
from GUI.Geometry import offset_rect, rect_sized
from GUI.StdColors import yellow
from testing import say
class ImageTestView(View):
def draw(self, c, r):
c.backcolor = yellow
c.erase_rect(r)
main_image_pos = (10, 10)
src_rect = ima... | [
"eduardosmil@pegasus.ic.uff.br"
] | eduardosmil@pegasus.ic.uff.br |
880254dbedf31b53f86addb6083b6ae7d19799db | 806949632a84e014d8787145af76752122061e76 | /jobs/composetest/app.py | f62f7010712b9d6128a34097b6d791e6e66c6ced | [] | no_license | Krishnendu1987/learn-hyperledger | a126c6658b1825a6adff1a3f03ee849dcb747f6d | 48d7d8fef3a5d490605daa9d030ebafd744f0fec | refs/heads/master | 2020-04-28T03:17:50.498096 | 2019-04-01T05:06:33 | 2019-04-01T05:06:33 | 174,931,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | import time
import redis
from flask import Flask
app = Flask(__name__)
cache = redis.Redis(host='redis', port=6379)
def get_hit_count():
retries = 5
while True:
try:
return cache.incr('hits')
except redis.exceptions.ConnectionError as exc:
if retries == 0:
... | [
"krishnendu.ke.chowdhury@gmail.com"
] | krishnendu.ke.chowdhury@gmail.com |
31a5e9b0504f09a16947134b5910a0f0ed080ca4 | 77b3a979d72a73fcadfc62d5d9ed1f85cbbb7e7e | /test_image_processing.py | 691840c511868a9f7ab1472f79627ec01c1908d4 | [
"Apache-2.0"
] | permissive | juanlucruz/SportEventLocator | 6b37073b7c8e3cab4a609f4ca8a12d32aa929836 | 1ac8236f9fdd60917b9a7ee6bb6ca1fa5f6fa71e | refs/heads/master | 2020-03-12T00:26:00.512203 | 2018-05-31T08:32:39 | 2018-05-31T08:32:39 | 130,348,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,910 | py | from owslib.wms import WebMapService
from owslib import crs
from PIL import Image, ImageEnhance, ImageFilter
import cv2
import numpy as np
from pyspark import SparkContext
from pyproj import Proj
c = crs.Crs('EPSG:3857')
wms = WebMapService('http://www.ign.es/wms-inspire/pnoa-ma', version='1.3.0')
box = 1000 # m?
x=... | [
"raulcs1995@gmail.com"
] | raulcs1995@gmail.com |
8abef58cd4f2bc9ebd8f78f2a9f1204ff594fe33 | 4539ff15683d78774720b5c0ed91ceeb8a7e3249 | /Untitled1.py | 02266199aa7b866c48ab43fbea116fb0121ef4fb | [] | no_license | bagjohn/mouseworld | 1bf4bb38fada1955227d3b71bc58c272533badf8 | 423dfdadedd8745f1c7cce73c3c11ff3e5aef2fd | refs/heads/master | 2021-01-22T03:29:40.990269 | 2017-07-26T19:11:26 | 2017-07-26T19:11:26 | 92,380,580 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,179 | py |
# coding: utf-8
# In[2]:
#%%writefile mouseworld/evolve_Value_Layer.py
import numpy as np
import matplotlib.pyplot as plt
from mouseworld.myspace import *
from joblib import Parallel, delayed
import multiprocessing
import time
a = time.time()
grid0 = Value_layer('example0',100,100)
grid1 = Value_layer('example1',1... | [
"bagjohn0@gmail.com"
] | bagjohn0@gmail.com |
d5fb1f65fb139f9106793a1579efb187499f80e8 | cd89b787165441b95a553d959dcc9f889aa405c1 | /Scripts/pip-script.py | bfb22d0beaff4599cd2f07f2352e1e425d212de5 | [] | no_license | alanx3x7/python_projects | b09b24b5835d40470e23cb15f3ca7933ee1e3847 | d34bf3a1251d2c43d591053cb259ddf65894e3b3 | refs/heads/master | 2020-11-30T16:34:21.728806 | 2020-01-21T04:51:06 | 2020-01-21T04:51:06 | 230,442,345 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | #!C:\Users\alanx\Documents\Python_Projects\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a... | [
"alan_lai@jhu.edu"
] | alan_lai@jhu.edu |
0c430c6aecd9750cc42ba607375c8993c00e350c | 0b420532815a3841b74335e1e6ab9f3d533225c3 | /day_night.py | a9501b87541c63bc5ae6e47f5b599ce2137cbdd2 | [] | no_license | akuhnregnier/npower | 3d7ec12e2e21a6e23db96714391986d372e0e6e0 | bf3d842cde9b2e311cd415a8da7786ed36909645 | refs/heads/master | 2021-06-11T21:23:55.221317 | 2016-11-17T16:32:06 | 2016-11-17T16:32:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,808 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 03 17:08:37 2016
@author: ahk114
"""
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#import seaborn as sns
import cPickle as pickle
import os
from numpy.fft import fft
from numpy.fft import fftfreq
import scipy.optimize as opt
import copy
plt.clos... | [
"ahf.kuhnregnier@gmail.com"
] | ahf.kuhnregnier@gmail.com |
2184d266b166ef45ea77462f62eb4ce275b7ac10 | 129b03022effd8d28aa5ccfdc838f2866d8b884a | /blog/migrations/0001_initial.py | d20d9419d99eef24fd3b22a4976bfa13adf292d9 | [] | no_license | sarthak-g/my-first-blog | 31d7e013c8a676a520f12588a6a1dc99361239cf | 48ecc0b0c9546c38b8700d5e9eab76e27a8f0024 | refs/heads/master | 2020-03-30T09:17:43.906049 | 2018-10-06T20:35:56 | 2018-10-06T20:35:56 | 151,069,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.1.1 on 2018-10-01 09:11
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"sarthakgupta041@gmail.com"
] | sarthakgupta041@gmail.com |
91e7ac6176abc32eef8a903a6ed316f31cc2ddff | 3e4071cd38c484645a1ccb08ffc419a2de025886 | /assignment3/Rectangle.py | 5d9f77715840ac5b47d65f7cb7078dbfce58da6f | [] | no_license | radhika2303/PPL_assignments | 38f5ae9c29f5db7295aa03a1c4b13372c6b997d3 | 4180656673eb0dfc5aabc1a4e1f179ea20070de1 | refs/heads/master | 2022-07-18T19:24:12.029364 | 2020-05-24T10:15:44 | 2020-05-24T10:15:44 | 264,940,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | import turtle
class Rectangle:
def __init__(self, l = 0, w = 0):
self.__length = l
self.__width = w
def set_side(self, l, w):
self.length = l
self.width = w
def get_area(self):
return (self.length * self.width)
def draw(self):
t = turtle.Turtle... | [
"noreply@github.com"
] | noreply@github.com |
46b8ffc637bbd9d82079a40f50572177875b1fe4 | 41991b3f1564fe8492fe3bc62ed5c2d930a41227 | /outliers/outlier_cleaner.py | 09499b19c99c33cd3af1820400c542113dadc0a4 | [
"MIT"
] | permissive | davidderaedt/ud120-projects-master | 7047243fae02837fd8bc8388e11875b7a91fc6e1 | 5ba4e0f3e6c6c440bb19dad1ed8d44bb9248b61a | refs/heads/master | 2020-03-19T03:05:54.423919 | 2018-06-01T10:04:50 | 2018-06-01T10:04:50 | 135,694,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | #!/usr/bin/python
def outlierCleaner(predictions, ages, net_worths):
"""
Clean away the 10% of points that have the largest
residual errors (difference between the prediction
and the actual net worth).
Return a list of tuples named cleaned_data where
each tuple is of the f... | [
"dehats@gmail.com"
] | dehats@gmail.com |
6a433fabf90f7219f3f24df161056e867b23bdb6 | 1727663dde47508ef2f67d0905595f27b3881c24 | /test/set_config.py | 707e92142ad21c0b2f4ee639b9398be0a8e2b8f8 | [
"MIT"
] | permissive | freddif/urchin-cgm | 9648d9e1c13b911da4d6a200db2886f375e1e2c2 | 1d6597540beb23c5b889c588aa96d18bef39882f | refs/heads/master | 2021-01-11T04:08:55.629497 | 2016-10-18T01:34:34 | 2016-10-18T01:34:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | """
Send Urchin config to the Pebble emulator, either from the `config` dict in a
test class definition or from a JSON string. For the former case, best run with
`watchdog` or similar to monitor file changes.
"""
import argparse
import json
import os
import sys
import test_screenshots
from util import set_config
POR... | [
"mark@warkmilson.com"
] | mark@warkmilson.com |
fa9bb76e3d49340273e92d5342b1d42d76847abc | be0171a5e8d2d81c4b6872d180a7e376ca7ac6f7 | /src/prepare_data/get_faces.py | e0e63248aab01ec17afb9f50b0bd9adff5a162cf | [] | no_license | fitrialif/emotion-and-gender-classification | 09ba7b6bf1d81950970eaad3442485cd051fc661 | 0415b18313c079d9d6769d03179c6b47ac8e495a | refs/heads/master | 2020-03-23T09:02:12.525932 | 2018-05-28T13:33:20 | 2018-05-28T13:33:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,008 | py | import tensorflow as tf
import numpy as np
import os
#from print_ckpt import print_ckpt
from tensorflow.contrib import slim
import sys
from easydict import EasyDict as edict
import argparse
import cv2
import time
config = edict()
config.BATCH_SIZE = 256
config.CLS_OHEM = True
config.CLS_OHEM_RATIO = 0.7
config.BBOX_O... | [
"lixiaoyu283284@163.com"
] | lixiaoyu283284@163.com |
cbf81672fe34b40b73e579e7ea4189bd8b29c91e | 9823c2c8cee5d8a3a6b859f7316388c1198722c7 | /XadminShow/apps/course/migrations/0011_auto_20181016_1553.py | b3434f5215d331a2afd10a8401e5dc6e473bda40 | [] | no_license | vlctt/django-project | 519fbe56f4d5093a9b0d898f39a06602e6433c77 | 050dfdfd7da25b862d17aee0d15e0be0f641781d | refs/heads/master | 2021-09-26T21:53:11.321875 | 2018-11-03T02:47:18 | 2018-11-03T02:47:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | # Generated by Django 2.0.5 on 2018-10-16 15:53
import DjangoUeditor.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('course', '0010_course_is_banner'),
]
operations = [
migrations.CreateModel(
name='BannerCourse',
... | [
"1018596741@qq.com"
] | 1018596741@qq.com |
7aa513a018f1f1887b44be7689dd657b6c9f8ed5 | fc20620a1fe41c83cb4c17ce36e5d3e6d5dd58fa | /src/python/dicomifier/__main__.py | b0fac30dd2023b3cfec7b87015b30eef36314d09 | [
"LicenseRef-scancode-cecill-b-en"
] | permissive | lamyj/dicomifier | bdd3ad5756563365fe59a31166cbcaa14f98603f | 8601760917f7ef47d87fbd61d2c647c3d9cbeb3e | refs/heads/master | 2023-04-28T15:45:52.571809 | 2023-04-20T15:50:03 | 2023-04-20T15:50:03 | 32,533,252 | 33 | 11 | NOASSERTION | 2022-09-12T16:53:20 | 2015-03-19T16:28:40 | Python | UTF-8 | Python | false | false | 1,955 | py | #########################################################################
# Dicomifier - Copyright (C) Universite de Strasbourg
# Distributed under the terms of the CeCILL-B license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
# for... | [
"lamy@unistra.fr"
] | lamy@unistra.fr |
5b5f86f52f9d24ad6cabcf8ab4b0e86f6414d299 | 4a0c619deb5e70d35b7dfcb98ce8a8220a0a9cf5 | /sorters/SLO_sorter_current_2017.py | aca72f75e8c6699ffe49f165996ae883b0732788 | [] | no_license | tbutyl/In-Vivo-Retinal-Imaging | 005ecf3bd95909db942834f095f8c85f7c1dd3b3 | de76274e61c7ec2b4f9a52d394c7599c55ba1653 | refs/heads/master | 2021-01-11T17:04:35.602553 | 2019-07-11T21:35:10 | 2019-07-11T21:35:10 | 69,507,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | #Seems to work as of 09-13-2016 10:45 AM
from tkinter.filedialog import askdirectory
import os
import sys
import shutil
def sorting(source):
file_list = os.listdir(source)
# print(file_list)
print (source)
destination_apd1 = source + "/reflectance" #\\ is needed because \ caus... | [
"emill18@u.rochester.edu"
] | emill18@u.rochester.edu |
df3ffa53be1d7bf713732a01a4231db1012843a7 | 3fcb62688c094df7420a41793d80835e2c170a23 | /jose_P2_ENG.py | 29a74f9c3b5ab9974d2e33ee31db5cd5c05f81d0 | [] | no_license | enriquedelacal/GymkanaDelacalv2 | d45fbf69ac6b9536cfc93788cd565d26062fd025 | ab1115886e2da0127ccd93690f436f20f59bfefd | refs/heads/master | 2020-08-14T22:07:03.930365 | 2019-10-15T07:50:40 | 2019-10-15T07:50:40 | 215,239,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,813 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 8 13:04:40 2018
@author: villa
"""
import re
import random
#def raw_input(msg):
# return input(msg)
def generateRandomStr(lon):
s = ''
while len(s) < lon:
s = s + chr(random.randint(ord('a'), ord('z')))
return s
def generateRan... | [
"enrique.delacal@gmail.com"
] | enrique.delacal@gmail.com |
e4d28b7e7ad258bcdaf1b53fe6adf31992e31092 | 6ec45b6548d39b69721c3ac27a93906b924b302f | /dansk.py | d218734876510e77a585a56db3964aafaf167c66 | [] | no_license | smithniels/Dansk_Quiz | 8aaa1311bdcac58496ac334d64960f7fef6e159d | 2e338ec3442278e76343fffabf0f419995038eeb | refs/heads/master | 2020-06-13T03:41:52.205359 | 2019-07-03T11:39:19 | 2019-07-03T11:39:19 | 194,522,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,959 | py | ## ø æ å
## Dansk
'''
CURRENTELY NOT WORKING
TODO: def add_word(key,value):
'''
import string
import random
# import sys
# import io
#sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8')
# sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8')
allowe... | [
"noreply@github.com"
] | noreply@github.com |
77497876ac2b2353acf6bb58d2da197342fb14f7 | 490c3fd7ccfaf1f640d0da559a1a1b7f5bc52564 | /account/models.py | 8cfe2361349c93f6ea87c3c8e0ac699dbc8bf029 | [] | no_license | Pfhorrest/Django-Buddy | 28d1946bcc9599288b39cfa552375a1473aa1bfe | f2740ccb5cf20b274011e347d632a8f87f55bf5e | refs/heads/main | 2023-02-28T05:58:09.972090 | 2021-01-28T09:56:56 | 2021-01-28T09:56:56 | 331,574,082 | 0 | 0 | null | 2021-01-25T09:58:13 | 2021-01-21T09:13:28 | HTML | UTF-8 | Python | false | false | 2,133 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
from django.conf import settings
from django.db.models.signals import post_save
from django.contrib.auth.signals import user_logged_in
from django.contrib.auth.signals import user_logged_out
from django.contrib.auth.signals import user_log... | [
"blairmickie@gmail.com"
] | blairmickie@gmail.com |
8f2804428b63e25c8e704fb9def3a459ee42e87d | 3b1053429de896731fe659b8ea09efe5f8bdc4cb | /src/db/DBStpHardware.py | 902519e353ffa62e3425ec8e2b8cb150f10325d0 | [] | no_license | rajgu/machine-master | 57bb6f05fce5dfa512ecd10bc5e7bb31bbd76b8a | f1a6081c9bfde1937341a1a55478c08d48005f05 | refs/heads/master | 2020-03-26T22:09:14.058722 | 2018-08-20T15:42:00 | 2018-08-20T15:42:00 | 145,435,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | from src.db.Crud import Crud
class DBStpHardware(Crud):
_table_name = 'stp_hardware'
_table_struct = {
'stp_id' : {'type' : 'integer', 'validate' : True},
'type' : {'type' : 'text', 'validate' : True},
'name' : {'type' : 'text', 'validate' : True},
'serial_number': {'type' : ... | [
"="
] | = |
c88a87fa04a6ee97bd135ddfc910c378a0c75315 | ac9a18e1fb393e741645e845a9d3e7d61911b961 | /gt/web/dbhandler.py | 60bfe82a57a647c6bc32119056c9f260e41770dd | [] | no_license | zhizhi100/HelloPython2 | 4419a239553fb3c63a671d8bdf5cab6df8cb1aca | 4395959064a96a4bf819e517195421358dec65b5 | refs/heads/master | 2021-01-10T01:49:07.606432 | 2016-03-04T07:09:56 | 2016-03-04T07:09:56 | 44,967,959 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,411 | py | # encoding: utf-8
'''
Created on 2015年11月15日
@author: ZhongPing
'''
import tornado.web
import json
from gt.gtcore.nsr import Nsr,UNsr
import gt.gtcore.sysinfo as g3sys
from gt.gtcore import nsr
from gt.gtcore.env import Gtenv
from gt.gtcore.frequence import Freq
class AjaxHandler(tornado.web.Re... | [
"zhizhi100@foxmail.com"
] | zhizhi100@foxmail.com |
1b103e18ecb604e87e2f579cf645558421707b91 | 8690ca0028c54b62d68badf1753fc6151ae03525 | /Part3 Levels of Aggregation/fse_data/AllROIs/tpot_mnist_pipeline_triangulateAggregationLevelParticipantSplitaggr_2_groups4.py | 7d1fc2a6145b7665e8206ac0c752c83a15062340 | [] | no_license | brains-on-code/conducting-and-analyzing-human-studies | fd74ee77fdc56cc61bdc1e0cf9bf423780f5dddc | 548e7443f4d2bdb2db1f2858289b7d3518593c59 | refs/heads/master | 2021-06-26T21:30:56.386121 | 2020-12-22T13:49:16 | 2020-12-22T13:49:16 | 195,975,817 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | import numpy as np
import pandas as pd
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import train_test_split
# NOTE: Make sure that the class is labeled 'target' in the data file
tpot_data = pd.read_csv('PATH/TO/DATA/FILE', sep='COLUMN_SEPARATOR', dtype=np.float64)
features = tpot_da... | [
"fmriml@fmriml.com"
] | fmriml@fmriml.com |
13b9c639960ed1668c9fca517e4c5c2a5a1468ba | 09d84e0d8ed3a3b8cffbaf8df37eb42cd6ed7dd9 | /hello_world.py | 9e467f06f873b6dbe91c9be258833f3dea31a625 | [] | no_license | Anshulpg/learning-python | da9af872e17932775374b91bf19c6826260a4b10 | 89819164e87e4c8041011e239a1e12a3035247ac | refs/heads/master | 2022-12-23T19:24:44.467225 | 2020-10-01T07:10:50 | 2020-10-01T07:10:50 | 274,446,637 | 0 | 2 | null | 2020-10-01T07:10:52 | 2020-06-23T15:49:01 | Python | UTF-8 | Python | false | false | 212 | py | names_list = ['Jack', 'Jill', 'Tom', 'Anshul']
for index, name in enumerate(names_list):
if index==len(names_list) - 1:
print(f"Hello World, myself {names_list[index]}")
else:
pass
| [
"noreply@github.com"
] | noreply@github.com |
0f33283a873629ba39462826d54df70ec5c7522d | 029c855332e94b816ec2b80f6114228a56e366c6 | /Training Code/gan/loss_functions.py | ede1e76c276b4d7dc40696800fcad7245e197205 | [] | no_license | kiritobhatta/Comp4471_T2V | 977d71725886a0d61c8dec5468e84dca02ac7053 | 7260706bc858275ab86c5935ddbd0279cfa3a894 | refs/heads/master | 2022-09-13T11:24:43.741017 | 2020-05-26T13:03:40 | 2020-05-26T13:03:40 | 262,611,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | import torch
import numpy as np
import scipy as sc
EPS = 1e-06
def dis_loss(FDwG1, FDwO1, SDwG2, SDwO2 ):
return (
torch.mean(torch.log(EPS + FDwO1)) +
torch.mean(torch.log(EPS + 1 - FDwG1)) +
torch.mean(torch.log(EPS + SDwO2)) +
torch.mean(torch.log(EPS + 1 - SDwG2))
)
def f... | [
"udbhatt@ust.hk"
] | udbhatt@ust.hk |
35bad535a079fa4d1c260581d0e8fc3ca1dd433a | 59b72b8f662cd605b3ce31f54779c17e5ca066d0 | /interview_q/leet_code/子集.py | d6aa3df0e62c43481165dd5041958cface2a3827 | [] | no_license | dongyang2/hello-world | c1f5853ccafd6b8f23836192547ab36f898e0891 | 1f859b53e2b21ed5a648da09b84950f03ec1b370 | refs/heads/master | 2022-12-11T22:07:22.853912 | 2022-11-24T03:52:35 | 2022-11-24T03:52:35 | 119,025,960 | 0 | 0 | null | 2018-01-26T10:09:58 | 2018-01-26T08:28:10 | null | UTF-8 | Python | false | false | 2,388 | py | # https://leetcode-cn.com/problems/subsets/
# coding: utf-8
# Python 3
# 给定一组不含重复元素的整数数组,返回该数组所有可能的子集,包括空集。
#
# 思路:直接使用“组合.py”文件的函数。
# 优化方法,观察输入n=10时的结果,发现后面的结果等于输入数组与前面的结果的差集。如,长度为9的子集,一定等于长度为10的子集减长度为1的子集的结果。
# 边界条件:
def erg_new_new(li, k, tmp, com):
n = len(tmp)
if n == k:
com.append(tmp)
else:... | [
"dongyangzhao@outlook.com"
] | dongyangzhao@outlook.com |
060cf4d4401324c2a96dbff35722acbdad0f7a7c | 27779317db7950afa8d6cb11c4af6b3f94480999 | /pytorch_unet/models/custom_resnet_unet.py | 76aa8c72f9cb141241c68ee3e1eb3dcc2cf1d456 | [] | no_license | UnGast/pytorch_unet | 6f0241bada8d753f791608bb768467cb851a19e3 | 689a87f59f59f7bc1a6814de9f317ac7c0fb0aa5 | refs/heads/master | 2023-03-24T04:14:36.513212 | 2021-03-14T19:31:05 | 2021-03-14T19:31:05 | 308,472,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,023 | py | import torch
import torch.nn as nn
import torchvision.transforms
import torchvision.models
import math
from typing import Union, Optional, List
from ..gpu_stats import get_gpu_stats
from .flatten_layer import Flatten
class UNetIntermediary(nn.Module):
def __init__(self, in_size, in_channels, out_channels):
... | [
"zadrian@web.de"
] | zadrian@web.de |
73d18023f16c3200b250824b0749fbaf61070b46 | 61115cb09959222859953d50baaa842123132f3f | /Homeworks/HWC/Jiahui_Tang_HWC/problem_1/P12_reducer.py | 847306482a7ab6de0e7e1cfbfe676942ed54c49d | [] | no_license | TangJiahui/CS205-ComputingFoundations-Computational-Science | 61601d153b1cdebb8fafda9eb492ac80a51cfba4 | d42e8e48f4151bd7a5be79ad7eb0689a6b4cdabb | refs/heads/main | 2023-04-22T04:28:08.473914 | 2021-05-14T17:38:14 | 2021-05-14T17:38:14 | 335,159,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | #!/usr/bin/python
import sys
previous = None
sum = 0
for line in sys.stdin:
key, value = line.split( '\t' )
if key != previous:
if previous is not None:
print previous + '\t' + str( sum )
previous = key
sum = 0
sum = sum + int( value )
print previous + '\t' ... | [
"tangjiahui0610@gmail.com"
] | tangjiahui0610@gmail.com |
4de8c1ced47b09126de7152c101af2a3ad8f5334 | 931d859cf005f6de117098c1dfe1f9714895c6c5 | /TriangleGroup.py | fc3a3f72ec8ccf9ff15134a99ef2a55b88a9e153 | [
"MIT"
] | permissive | stiter/math3d | 057f24b0bd601ed13c8a73ab6e26c5190d1ac676 | e7d2ebc3b61c09cb5316e2551edbda67ec8186ba | refs/heads/master | 2020-05-29T09:13:57.155029 | 2014-03-28T12:34:24 | 2014-03-28T12:34:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,953 | py | #!/usr/bin/python
# Disable some pylint messages
# pylint: disable=C0103,R0201,R0904,W0511
# C0103 : Invalid name "%s" (should match %s)
# R0201 : Method could be a function
# R0904 : Too many public methods
# W0511 : TODO/FIXME/XXX
# W0212 : Access to a protected member %s of a client class
"""
A simple representati... | [
"pbrennan@gmail.com"
] | pbrennan@gmail.com |
5a67163d305198376e456fba2165dfd442331dcb | 4f7e671e7ae627e4fbec534549dbc946b90a4b64 | /compute/video/python/retinaface/data/data_augment.py | c1b52ae19bf8d9ac3fa256b68730ce1b556c6d6e | [
"BSD-3-Clause"
] | permissive | edusense/edusense | 52b1b732c5b58e849681b0a87f343c8ac866de2a | c84b60abebc72c79f88b60768389b1c007508b78 | refs/heads/master | 2023-08-11T11:17:45.133036 | 2021-06-17T02:30:16 | 2021-06-17T02:30:16 | 211,929,674 | 55 | 12 | BSD-3-Clause | 2022-12-08T01:49:50 | 2019-09-30T18:39:36 | Python | UTF-8 | Python | false | false | 7,076 | py | import cv2
import numpy as np
import random
from utils.box_utils import matrix_iof
def _crop(image, boxes, labels, landm, img_dim):
height, width, _ = image.shape
pad_image_flag = True
for _ in range(250):
"""
if random.uniform(0, 1) <= 0.2:
scale = 1.0
else:
... | [
"deval.maker@gmail.com"
] | deval.maker@gmail.com |
ab13f3796ac1a5f65c310553addac1a2f741bed2 | 6d32702c85e404b74066ae3ff77b34236ea3ed20 | /ps7_test.py | c79f97466461d96ee225a6fbc2e931a0f990a737 | [] | no_license | MAROLDZ/ProblemSet7 | 267c59043bcd1c894cef685f17fd983fd57f765b | b1ef7f40804f43e17ae5489f10d3ba0907d3f448 | refs/heads/master | 2020-12-24T05:55:55.867142 | 2016-07-20T03:10:31 | 2016-07-20T03:10:31 | 63,744,480 | 0 | 0 | null | 2016-07-20T03:10:32 | 2016-07-20T02:43:59 | Python | UTF-8 | Python | false | false | 12,023 | py | # 6.00.1x
# Problem Set 7 Test Suite
import unittest
import sys
from ps7 import *
class ProblemSet7NewsStory(unittest.TestCase):
def setUp(self):
pass
def testNewsStoryConstructor(self):
story = NewsStory('', '', '', '', '')
def testNewsStoryGetGuid(self):
story = NewsStory('test g... | [
"maroldz@hotmail.com"
] | maroldz@hotmail.com |
514b2206d1a8ca94251eb03d75ec648693671ce5 | 1a688ab594d3d9d74f293795b17b846301290c6d | /SparkCourse/MostPopularMovie_DF.py | def7bfe4e07001f6b79e0b66d0807f0c5d425d98 | [] | no_license | ketan-analytics/Spark | 3b1f94d31231c639b611772b44202f17a0298392 | a64ca656f1ba4e30168ccd7ef44b5e3beba51723 | refs/heads/master | 2021-04-26T23:43:33.564096 | 2018-07-02T00:54:19 | 2018-07-02T00:54:19 | 123,845,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | from pyspark.sql import SparkSession
from pyspark.sql import Row
from pyspark.sql import functions
def loadMovieNames():
movieNames = {}
with open("C:/Ketan - Personal/Self Learning/Big Data/Spark/SparkCourse/ml-100k/u.ITEM") as f:
for line in f:
fields = line.split('|')
... | [
"noreply@github.com"
] | noreply@github.com |
5e9b31b9c658c18ee03c3afdab9042716a92b89b | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/vz/ctrctentitydef.py | cf877348cdffddd74f0ba1250b5de389e328ad62 | [] | 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 | 15,939 | 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 |
aba2a884d4f2b0a73725dccefc5950fbfc7e745e | 74afe97073a0693042d31567ba1a5741bcdebf72 | /tests/utils.py | 82762100c4b3ab85ace2b7d2ff312d3fe836d466 | [
"Apache-2.0"
] | permissive | bruvio/tinyber | 82aa34a5cdf842caa0f863540b249e37ae09fc78 | d20d33341f9e74ba9b699553a8cf6448c167dec9 | refs/heads/master | 2021-05-29T23:07:58.841678 | 2015-07-23T23:24:52 | 2015-07-23T23:24:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | from asn1ate import parser
from asn1ate.sema import *
from tinyber.walker import Walker
from tinyber.py_nodes import PythonBackend as Backend
from tinyber import py_nodes as nodes
def generate(infilename, outfilename):
class FakeArgs(object):
no_standalone = False
import os
with open(infilename)... | [
"mark@peek.org"
] | mark@peek.org |
e25d5c6d44603dfc1ac7be40c0f5e63bce951fac | 332ac6deaed8b8917cf874f04fc77246378bdb44 | /setup.py | 4db61d01cd37dbb3dd83d18bdb2eb0d4634cfe76 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | hestela/fauxmo | 5a435399eca61c525502dc90333ee73cff0d3d15 | f2246b952a0246bf0dcd74e770c9daea0dcaa763 | refs/heads/master | 2020-03-11T15:45:48.414168 | 2018-04-19T00:56:27 | 2018-04-19T01:08:35 | 130,095,227 | 0 | 0 | null | 2018-04-18T16:58:43 | 2018-04-18T16:58:43 | null | UTF-8 | Python | false | false | 1,755 | py | import re
from setuptools import setup, find_packages
try:
import pypandoc
readme = pypandoc.convert('README.md', 'rst')
history = pypandoc.convert('CHANGELOG.md', 'rst')
except ImportError:
with open('README.md') as readme_file, \
open('CHANGELOG.md') as history_file:
readme = read... | [
"nate@n8henrie.com"
] | nate@n8henrie.com |
d3239abd511c59d16b0f2c91fac9d96f110c8437 | 859ea0c7d6210299b71f438095f3ba7920fde183 | /Case_Study_2/countwords.py | 650f5cb0c5561f5d56c5ee6a2f0a1066b5fa3968 | [] | no_license | MiladFarazian/UsingPythonForResearch | 2b4f9d620c6fc5e59133276ec4045ec8ce3290ca | 41354f7b3166396f9075f3ce412e16742b11f06a | refs/heads/master | 2022-12-05T22:00:52.009084 | 2020-09-02T02:42:03 | 2020-09-02T02:42:03 | 289,374,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | text = "This is my test text. We're keeping this text short to keep things manageable"
def count_words(text):
"""Count the number of times each word occers in text (str). return
dictionary where keys are unique words and values are word counts. """
text = text.lower()
skips = [".",",",";",":","'",'"']
... | [
"mfarazia@ucsc.edu"
] | mfarazia@ucsc.edu |
9239be7684821d43803dcdd9302b75b5eb43b679 | 9cba7097ac19b86886d1ca658d133780f1b723c6 | /Method_IOLK.py | d0f8e9049dece3fb51db0fe00631f9f60a3d8770 | [] | no_license | Yan-CASIA/Estimation-and-Prediction-Framework | 9ff7f1b439cbf054c1c322bfe78b318afb848611 | 3728c24d75b7e7b6ab5eb2374bfa6268c875b15f | refs/heads/main | 2023-05-12T22:33:23.914459 | 2021-05-31T11:53:58 | 2021-05-31T11:53:58 | 372,485,247 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,971 | py | # Import numpy and OpenCV
import numpy as np
import cv2
from matplotlib import pyplot as plt
import pandas as pd
import torch
from torch import nn, optim
from torch.utils.data import Dataset, DataLoader
from torch.autograd import Variable
import os.path as op
import sys
import time
from LSTM_model import ls... | [
"noreply@github.com"
] | noreply@github.com |
f5c341cca72178ff8dfc526185fcf12e40a313f4 | f6b2842df4e5c3752cc4278fe31a1642332097e2 | /tests/unit/legate/driver/test_driver.py | 47a3cfcfc89fc05fcb98afea5ceb8b1a48ba63ed | [
"Apache-2.0"
] | permissive | nv-legate/legate.core | 3ce237a6629a0fa857394297c5cf0050e1bac31b | f1d4a3e5cd832bc87d5dd7a6763da0c6075483e5 | refs/heads/branch-23.09 | 2023-08-22T04:37:18.561218 | 2023-08-11T17:29:34 | 2023-08-11T17:29:34 | 356,975,841 | 165 | 52 | Apache-2.0 | 2023-09-13T18:09:48 | 2021-04-11T20:46:34 | Python | UTF-8 | Python | false | false | 7,347 | py | # Copyright 2021-2022 NVIDIA Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | [
"noreply@github.com"
] | noreply@github.com |
190931a010f8f4088d6a989d3fd663dec1ebeb62 | 088fe90d8c4a2bf8195e030a0f83bc3a9061c1cf | /Archive/1994-2018/LJ/listings/142/MailAttachment.py | df5b91d9731454f8a3c5a8e6ab910ef958c3ea60 | [] | no_license | acastroy/linuxjournal | ae05384348a09b624056996603aca635a6ee86cf | 8e4544b7482695a668022366eaded81e50aa5b3a | refs/heads/master | 2022-03-28T06:54:45.917154 | 2020-01-13T03:26:35 | 2020-01-13T03:26:35 | 233,156,144 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,240 | py | #!/usr/bin/env python
##~ MailAttachment.py
##~ This programs sends emails with attachments.
##~ Copyright (C) 2005 Fred Stelter
##~
##~ 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 S... | [
"acastroy@users.noreply.github.com"
] | acastroy@users.noreply.github.com |
ef6c16752acf5bee7f50ebca484f34c1c094d0c1 | 701c875c75d2048a484dcb80a5f57265fa5c682e | /mexFunction.py | f699746ce0316c59ed31a52d8f87e77fd945bc1f | [] | no_license | Ravitheja14/Code-signal | d9de018ae16b869f2f01559f8f4cee7cb295e12a | 4f4bcbcc89e5db53b375e339c069dd48438b4984 | refs/heads/master | 2023-03-13T18:42:03.920857 | 2021-03-06T15:57:52 | 2021-03-06T15:57:52 | 344,246,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | def mexFunction(s, upperBound):
found = -1
for i in range(upperBound):
if not i in s:
found = i
break
else:
found = upperBound
return found
print(mexFunction([0, 4, 2, 3, 1, 7], 10))
| [
"papareddyravitheja@gmail.com"
] | papareddyravitheja@gmail.com |
77a3b18675888919ff757d8bc77f040421d1e8bb | 60c20e30c9911e04eb1e780b45437305108c355d | /Python/Merge the Tools.py | 45d5f809e5c1e7d5ac27f6ae2294020923b08cc8 | [] | no_license | NaserAnjum21/HackerRank-Codes | 9fbb039e0ea49c799e5f0119aa2477a782ad3e04 | 07d2428c36cb6205c55c4711501832288b0f0cb4 | refs/heads/master | 2022-11-27T10:22:36.938115 | 2020-07-28T14:22:01 | 2020-07-28T14:22:01 | 276,168,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | def merge_the_tools(str,k):
substr = []
for i in range(0, len(str),k):
substr.append(str[i:i+k])
u = []
for t in substr:
s = ''
dct = {}
for ch in t:
if ch not in dct:
dct[ch] = 1
s += ch
u.append(s)
for ans i... | [
"na.samudro2196@gmail.com"
] | na.samudro2196@gmail.com |
e5983b51de904d0a5e081ffcd78409af395baa10 | 086369f526f5c44484ee3d1ba29642b823741568 | /doQuery.py | 02b800f1e6ac5afb35205373d80e3bbb4329d456 | [] | no_license | tagdara/sofa-adapter-pentair | b61679a928070e554034302b5419163434d601e7 | ec957c5d083982eb63767f6ab75d3675801d28b7 | refs/heads/master | 2020-12-05T06:52:03.700599 | 2020-01-06T06:37:25 | 2020-01-06T06:37:25 | 232,039,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,080 | py | #! /usr/bin/env python
# -*- coding: UTF8 -*-
# doQuery.py
# copyright 2018, Keith P Jolley, keithpjolley@gmail.com, squalor heights, ca, usa
# Thu May 31 16:47:03 PDT 2018
# sends the gateway a few commands and decodes/prints the responses.
import socket
import login
import doMessages
import decodeStatusAnswer
from... | [
"github@dayton.tech"
] | github@dayton.tech |
22a50c0947f3d5ed6bf8add3597687591d385f37 | d0abbc6476344bfc3ec1fdafc055dc3b3e30d505 | /produccion/migrations/0012_auto_20210106_0946.py | c87232d1cb9d6481469233101823483e7f772bd3 | [] | no_license | albor1962/Projecto-tambo | 2a684e852e790ecc5f5fb9f81e7348540f8266f2 | 34ed1cb40a5fc4c4b94a44521de9ebfb530abec6 | refs/heads/master | 2023-03-02T08:33:30.160237 | 2021-02-04T21:35:55 | 2021-02-04T21:35:55 | 336,083,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | # Generated by Django 3.0 on 2021-01-06 12:46
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('produccion', '0011_ingesoalimentos'),
]
operations = [
migrations.RenameModel(
old_name='IngesoAlimentos',
new_name='IngresoAl... | [
"albertofborella@gmail.com"
] | albertofborella@gmail.com |
3680c7f5212b0d2365a564b479d8a1e1ec348cea | 7aaa96f03ec4575b5f73a31ad282a2aa05303f12 | /ping_wave.py | 3b3a1c931b24995c28861868c4091cd4d6c4f9aa | [] | no_license | galaninaa/untitled | 0e003f52507da6a7d2e750ae358ec921437fe583 | 2427ff245e059b78f9160e67368cf2869ea02ba8 | refs/heads/master | 2020-03-30T19:15:32.188566 | 2016-08-02T13:36:24 | 2016-08-02T13:36:24 | 64,758,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py | import wave
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
import math
types = {
1: np.int8,
2: np.int16,
4: np.int32
}
def format_time(x, pos=None):
global duration, nframes, k
progress = int(x / float(nframes) * duration * k)
mins, secs = divmod(progres... | [
"tutoshka@mail.ru"
] | tutoshka@mail.ru |
7fe93013582e17ef8f5518f26feb55c0cfe7805f | 860dde2632c1847ec66ba9346bf0845bd5b501b7 | /server/python_server/django_server/django_server/urls.py | bc4bee83387e328b59ea5e979bd0524e14d340e4 | [] | no_license | Jianru-Lin/http-benchmark | 52364623405165eb90299678b6fe082845f0d9e4 | 37d12944f804f0f3f1d42d088d25ec2ebdc18ab5 | refs/heads/master | 2021-01-13T09:00:05.636349 | 2016-10-06T05:39:59 | 2016-10-06T05:39:59 | 70,043,296 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | """django_server URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/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='home')
Cl... | [
"guoxu3@qq.com"
] | guoxu3@qq.com |
a377f794e724a1d341972d78b1e2b8d8312d6fa8 | 1e5fcb57029daee94ac77c475af84e3b70310ced | /restaurants_api/tests.py | e7befd7ee6be1798746e5cff13dec4ec691f96fb | [
"MIT"
] | permissive | getmiranda/restaurants-rest-api | 14f12b92fc33a6444d55f6e11924c8acbc3b3720 | b850a59d7222af6f213e4368318427307c77db74 | refs/heads/main | 2022-12-26T03:56:13.554250 | 2020-10-12T00:54:57 | 2020-10-12T00:54:57 | 302,995,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,160 | py | from django.test import TestCase
from rest_framework.test import APIClient
from rest_framework import status
from restaurants_api.models import Restaurant
from restaurants_api.serializers import RestaurantSerializer
def create_restaurant(**params):
"""Helper function to create new restaurant"""
return Resta... | [
"androidgalaxys42@gmail.com"
] | androidgalaxys42@gmail.com |
a44309dce3f0b693be43f32fd02f4f9358316329 | 18f1915a46f2f4885c956876c865c1bb682d3ffb | /exam/exam_q4.py | 362750daa324db8c05d633a145b5fe56913d9921 | [] | no_license | gtungare/Big_Data_Analytics_with_pyspark | f93a6aa5ca2382ab749fe89573678774e471e4df | 6ba74b3748ad6081c972850af3192a828637a121 | refs/heads/main | 2023-08-28T14:19:09.654625 | 2021-10-25T17:16:47 | 2021-10-25T17:16:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,925 | py | """
Name - Gaurav Tungare
Class: CS 777 - Fall 1 - Exam
Date: Oct 2021
C:/Users/gaura/PycharmProjects/pythonProject/project-2018-BRFSS-arthritis.csv
"""
from __future__ import print_function
import sys
import sys
from operator import add
from pyspark import SparkContext
from pyspark import SparkConf... | [
"noreply@github.com"
] | noreply@github.com |
658f73dbac10be5eab3b65886b7d63510a3112a7 | 37f3759ca34f20d065ed62c9f892004f3468d869 | /first.py | 9aac5b66135641c05b038a41b8fab12fcb597621 | [] | no_license | cmc5953/cmc5953 | faf0d4d17714ffae10c1d9017b88734bb0f171ba | 76a33411ed305ffa2b5d312699f747591e4147ef | refs/heads/master | 2022-04-05T20:51:10.914382 | 2020-03-02T00:30:18 | 2020-03-02T00:30:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | print("firstfile") | [
"you@example.com"
] | you@example.com |
b199989ed05a8de78b97b2116869c141340e2b65 | e2fe186cafe4a5cec7d06aaf17a30c3f5cae0553 | /main.py | ade372ce062ab35d8c9ea54a17c37c09657fbd8b | [] | no_license | ShimonMimoun/Kalman_Filter_4D | 47f9894776dc20b45f4d0b55135128dc1d25022f | 5f1a6f6035192f37d9aae39fb68d90dff105595c | refs/heads/master | 2020-12-27T16:16:25.192556 | 2020-02-03T13:18:05 | 2020-02-03T13:18:05 | 237,967,316 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,531 | py | import pandas as pd
import numpy as np
def computeRMSE(trueVector, EstimateVector):
sum = 0
for i in range(len(trueVector)):
sum += (trueVector[i] - EstimateVector[i]) ** 2
sum *= 1.0 / len(trueVector)
return np.sqrt(sum)
def computeRadarJacobian(Xvector):
Px , Py , Vx , Vy = Xvector[0... | [
"noreply@github.com"
] | noreply@github.com |
5594d738155165df35681f20b39b82b9a8c92c1f | c9ab605cdd2dbf92c9de05768ade0ecf1718be02 | /03_Django/04_django_crud_review/jobs/views.py | 92e5f3400502a07e8cddaa907118983276b91bed | [] | no_license | PyeongGang-Kim/TIL | 42d69308cf99d2e07644b51d7636e1b64551a697 | 8711501d131ee7d78fdaac544dda2008adf820a1 | refs/heads/master | 2023-01-12T21:10:38.027946 | 2021-10-23T07:19:48 | 2021-10-23T07:19:48 | 195,937,990 | 10 | 1 | null | 2023-01-07T11:25:30 | 2019-07-09T05:22:45 | HTML | UTF-8 | Python | false | false | 2,489 | py | from django.shortcuts import render
from .models import Job
from faker import Faker
from decouple import config
import requests
from IPython import embed
from pprint import pprint
# Create your views here.
def index(request):
return render(request, 'jobs/index.html')
def past_life(request):
name = request.PO... | [
"pyeonggangkim@gmail.com"
] | pyeonggangkim@gmail.com |
5a66a7d5a54814c8db40a6d8b1001a1e58047dcf | 8ef9bb69cb3d4fa6a69e1417575a9d8d5e5bf92c | /answers.py | 3a522d52553a26ebf31315ec565b696afed5b530 | [
"CC-BY-4.0"
] | permissive | pyjavo/Kanji-Recognition | 8a342e421c034863ee7670fb1b8e48e6ed527ecf | 8a951a8ea9b2e9b0a1fd09045a227c010567c2c1 | refs/heads/master | 2022-12-10T17:02:34.136263 | 2020-09-11T07:47:30 | 2020-09-11T07:47:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73,554 | py | import struct
import os
import json
import cv2
from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
mouse = [
'./open_dataset/black\め_0.png',
'./open_dataset/black\ち_0.png',
'./open_dataset/black\ま_0.png',
'./open_dataset/black\ス_0.png',
'./open_dataset/black\リ_0.png',
'./open_dataset/black\ル... | [
"Mediotaku@gmail.com"
] | Mediotaku@gmail.com |
ff47ff17de96ca7ca2c8ad679d3a93463c45e489 | 40f79a1042df782f76a8c66b71512a687f01eb1d | /BlogProject/BlogProject/forms.py | 0942a355958a0b9f98c55ff674178ddb517fb328 | [] | no_license | onurhunce/BLogApp---Tests | 5950dd998fe4c375dff0aee4acb9a6058d358bef | 26356c0cb573f8100c15c5e3d08905219b6e973d | refs/heads/master | 2021-03-12T22:35:12.818801 | 2015-08-26T19:33:44 | 2015-08-26T19:33:44 | 41,347,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
class MyRegistrationForm(UserCreationForm):
email = forms.EmailField(required=True)
class Meta:
model = User
fields = ('username', 'email', 'password1', 'password2')
... | [
"onurhunce@yahoo.com"
] | onurhunce@yahoo.com |
a0f91094ca7f31f28ea56159e2b8a708e4bda704 | d917251cc506953d8f8cdb4d8c6201f8113c0ad9 | /bot/google.py | 4d736873755ad759f96f4e6d6fbae3f528b07473 | [
"MIT"
] | permissive | AntonyMoes/cyberhelper | 00a3e45f763abbbea1101ec6cbcccb256b27254e | 125805b19190250968bf6deef836a600e8b25af6 | refs/heads/master | 2022-12-13T05:23:24.966170 | 2020-02-19T18:23:15 | 2020-02-19T18:23:15 | 202,903,632 | 0 | 0 | MIT | 2022-12-08T06:02:03 | 2019-08-17T16:08:41 | Python | UTF-8 | Python | false | false | 1,250 | py | from urllib.parse import quote
from selectolax.parser import HTMLParser
import aiohttp
from utils import user_agent
base_query = 'https://google.com/search?q='
async def google_it(query: str, how_many: int = 1) -> str:
async with aiohttp.request('GET', base_query + quote(query), headers={'User-Agent': user_agen... | [
"32247865+AntonyMoes@users.noreply.github.com"
] | 32247865+AntonyMoes@users.noreply.github.com |
8d8bd2733afc957d19afad643b783047d417c231 | b40fbe6d0012a299b0e771d2e5f0cfca3fe5be2b | /gen_bulk.py | f4fad52f721f76c134105cc0a87572a95af0cbb3 | [] | no_license | olimpiadi-informatica/randomtex | e8555776daa3761b6014cdf006b9c903db7f0fb2 | 1da019715c44db6a51135cb02dbf5a4e52586a95 | refs/heads/main | 2023-04-14T15:15:25.641932 | 2021-04-26T13:57:47 | 2021-04-26T14:13:03 | 358,237,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,612 | py | #!/usr/bin/env python3
import argparse
import csv
import datetime
import json
import logging
import multiprocessing.dummy as mp
import os
import random
import shutil
import tempfile
import progressbar
import compilation
import utils
progressbar.streams.wrap_stderr()
logger = logging.getLogger("gen_bulk")
def proc... | [
"williamdiluigi@gmail.com"
] | williamdiluigi@gmail.com |
0e32f4c1e11fab6295272d8b92b65b2977ac7faa | a54a97f55ce4b70c802ca9645ba2950ef2dfd871 | /apps/node/src/app/main/database/usergroup.py | 792353d80e12d9e2a423de287612c5f671d735d7 | [
"Apache-2.0"
] | permissive | vvmnnnkv/PyGrid | d15ba680825b1775b9558364f956bdac979d30d2 | eade799fd80c05c42f3829269e95daa7cc4c69db | refs/heads/dev | 2021-08-06T16:50:17.491968 | 2021-03-16T07:28:28 | 2021-03-16T07:28:28 | 246,861,028 | 0 | 0 | Apache-2.0 | 2020-03-12T19:10:41 | 2020-03-12T14:53:45 | null | UTF-8 | Python | false | false | 396 | py | from ... import BaseModel, db
class UserGroup(BaseModel):
__tablename__ = "usergroup"
id = db.Column(db.Integer(), primary_key=True, autoincrement=True)
user = db.Column(db.Integer, db.ForeignKey("user.id"))
group = db.Column(db.Integer, db.ForeignKey("group.id"))
def __str__(self):
retu... | [
"noreply@github.com"
] | noreply@github.com |
6ba2743bc8cb6f9408ac0df3dd4b788c22801f8d | 319f991d830b57f34479bab03c64084917308593 | /rooms/migrations/0008_auto_20210421_1638.py | 87ceb2673570a3c860232404496c5702a70231c3 | [] | no_license | kwon1009/airbnb-clone-2021 | e6a324232fa1a0424598920366eef3aa9488e94c | c866ceb14fb5cd55e182a6f9d71e89d5de3c3d97 | refs/heads/main | 2023-04-21T03:16:06.209912 | 2021-05-08T18:58:00 | 2021-05-08T18:58:00 | 357,075,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # Generated by Django 2.2.5 on 2021-04-21 07:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rooms', '0007_auto_20210415_2111'),
]
operations = [
migrations.AlterField(
model_name='room',
name='guests',
... | [
"47519135+kwon1009@users.noreply.github.com"
] | 47519135+kwon1009@users.noreply.github.com |
31dcb94cfd6ccec8a691f580f2fd16ec12739300 | a2985534c6a2774e087391e181a678eaae5068f2 | /ex4/base.py | a9c8e4fc1ff3496a63988af352395a99f701ca1a | [] | no_license | Caramdir/coursera-ml-python | 46c2c7ccc6dc14a6fe63abc71a69a3f8684c796b | 0489fb4910e719f5ca37929b1a19db765ddaa287 | refs/heads/main | 2023-04-17T20:38:30.391253 | 2021-05-09T13:54:17 | 2021-05-09T13:54:17 | 365,762,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,316 | py | from typing import *
import pathlib
import scipy.io
import numpy as np
def get_data() -> Tuple[np.ndarray, np.ndarray, int]:
data = scipy.io.loadmat(pathlib.Path(__file__).parent.absolute().joinpath("ex4data1.mat"))
y = data["y"].flatten()
y[np.nonzero(y == 10)] = 0 # Reindex to 0-based arrays
retur... | [
"clemens@koppensteiner.site"
] | clemens@koppensteiner.site |
51849e9e5ed14906063e583aaea90f63365bc874 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/nos/v6_0_2f/mac/access_list/extended/__init__.py | 67d76ccc440658bdb11c3eea1c1eb7f28e382ffa | [
"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 | 9,533 | 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 |
5270fd8590b0db70b57d80c3f96aa6bf2f4b6bb5 | 1ece2cecace68fb1f8879fbe705f615256bba77d | /src/web_mirror/_constants.py | b785a9cd9ad8586bd46d47fcfd619ae9946bece2 | [
"MIT"
] | permissive | nuuuwan/web_mirror | 7ac07d5ed2f11f2dc57bb5c3641311f08d6ffca7 | 52330f9869a2fbb95a9f5309d58e5d5953e6a693 | refs/heads/main | 2023-07-16T17:17:39.219621 | 2021-09-04T06:36:15 | 2021-09-04T06:36:15 | 402,963,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | """Constants."""
CACHE_NAME = 'web_mirror'
CACHE_TIMEOUT = 3600
| [
"nuuuwan@gmail.com"
] | nuuuwan@gmail.com |
2553bc5ec831453cc73c3732fdbffe014c7cf7ce | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/mc-animation-blender/operator_anim_export.py | 503e83160184e749fd854f38b8b1ff3864169f8f | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,913 | py | import bpy
import math
import json
# ExportHelper is a helper class, defines filename and
# invoke() function which calls the file selector.
from bpy_extras.io_utils import ExportHelper
from bpy.props import StringProperty, BoolProperty, EnumProperty
from bpy.types import Operator
class operator_anim_export(Operato... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
e0f38337d2d43a77b7c091884203b96f3eccbc09 | 5b73bd29546943487582e6d68dc6ac3ea22792bf | /KafkaExample/transactions.py | 00ccea40adf0074d7cad5e006b4db1e8a6479fae | [] | no_license | beosro/Kafka_Fraud_Detector | 00a5f1ba91beccdcce27e4951f02155984ea5d17 | 3b8962a9b760d0dad47e449fb0752738534e1cea | refs/heads/main | 2023-03-30T17:57:28.717664 | 2021-04-16T10:57:14 | 2021-04-16T10:57:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | from random import choices, randint
from string import ascii_letters, digits
account_chars: str = digits + ascii_letters
def _random_account_id() -> str:
"""Return a random account number made of 12 characters"""
return "".join(choices(account_chars,k=12))
def _random_amount() -> float:
"""Retu... | [
"noreply@github.com"
] | noreply@github.com |
b8f491afbe45a4da3ae7e4b97a8ecaa587c7efee | 9486a46b014724a9a57c8c5a4c95950c34c2fcdb | /DjangoLevelFour/DjangoLevelFour/asgi.py | abc923f512d64849423748548ce92efa6965d84c | [] | no_license | VaheHakobyanVardani/django_project | fb0b7bafdd80ff656326ed2894d075d72cdf8d03 | 4d1b0cfc37689774b377e56bd28be0ef8e1e9ff2 | refs/heads/master | 2021-05-27T05:35:43.542898 | 2020-04-09T00:05:58 | 2020-04-09T00:05:58 | 254,225,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
ASGI config for DjangoLevelFour project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJAN... | [
"vahe717@gmail.com"
] | vahe717@gmail.com |
33986a2ce2c2f8bad045ef1a8eefa67ac5a940b9 | 4760287945e3e90779a8181f6c4d4d71706a0436 | /python/Basic-01-IF-b.py | 8d0bcb493793637e0edb2284069232d41dc058a6 | [] | no_license | hsakabe/mysite | 8e22e3c8f345f3df932329e05f8ef4dd0779eba9 | 01942e58478b37004ecb0ab5c3ca42eb976bd906 | refs/heads/master | 2021-07-12T12:35:22.468338 | 2020-09-13T13:51:31 | 2020-09-13T13:51:31 | 202,481,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | apple_price = 200
# 変数moneyに数値1000を代入してください
money = 1000
input_count = input('購入するりんごの個数を入力してください:')
count = int(input_count)
total_price = apple_price * count
print('購入するりんごの個数は' + str(count) + '個です')
print('支払い金額は' + str(total_price) + '円です')
# moneyとtotal_priceの比較結果によって条件を分岐してください
zankin = money - total_price
if ... | [
"hsakabe@gmail.com"
] | hsakabe@gmail.com |
a88f3beec52a6e8343ef07f1cd958832c125fd30 | 7cab47baf0eb97c6ee7bcaadb84808ff896739a5 | /Documents/ITCS-3155/ITSC3155-finalproject-main/Website/statistics.py | cbfd2b21f548f8224467234d771f9e01dc565a7a | [] | no_license | masole523/ITSC3155-finalproject | 25bded0657bd1a74c4b69e5059f2b11ee762eaa0 | a20cbb0b4c5ef494f3542e667e3572cc905879d1 | refs/heads/master | 2023-04-21T10:05:29.678716 | 2021-05-09T05:37:04 | 2021-05-09T05:37:04 | 361,973,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | import pandas as pd
import plotly.offline as pyo
import plotly.graph_objs as go
# Load CSV file from Datasets folder
df = pd.read_csv('../Datasets/CoronavirusTotal.csv')
# Filtering US Cases
filtered_df = df[df['Country'] == 'US']
# Removing empty spaces from State column to avoid errors
filtered_df = filtered_df.ap... | [
"mastincb523@gmail.com"
] | mastincb523@gmail.com |
d2430b332b34017013284712428858e54750977c | 8cee599608265b7b3df2795c154ff2211b26ef97 | /southtut2/migrations/0004_hash_passwords.py | 541d060f5aafd4b1f74131c7c2146856add5c623 | [] | no_license | seckcoder/django-example | 4d17186ee4dcd92b14d31bc406cf9462aef802d3 | ca0874e5d06437f873d381e1ca81dbd32b1c9103 | refs/heads/master | 2016-09-05T17:52:16.232735 | 2012-09-01T07:45:33 | 2012-09-01T07:45:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,462 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
"Write your forwards methods here."
# Note: Remember to use orm['appname.ModelName'] rather than "from appname.mo... | [
"liwei@jike.com"
] | liwei@jike.com |
52754cdadd5805d96569acb0f8c865f5fd61555e | 275ff8171f04045114e2e03510a9582df75660e6 | /Lab1/json_model.py | d5ce90d2c44de99f1fb26606bcef66d8905aaf76 | [] | no_license | ChumakMike/Python | b080daae2e5743f0c6b7ec3636bf2822791af74c | e779ff90e135cf63e49b05e206e3a13b1b29897c | refs/heads/master | 2020-05-27T17:40:49.926542 | 2019-05-26T19:58:39 | 2019-05-26T19:58:39 | 188,725,765 | 0 | 0 | null | 2019-05-26T19:56:50 | 2019-05-26T19:56:50 | null | UTF-8 | Python | false | false | 447 | py | import json
def load_file(filename):
with open(filename) as json_file:
return json_file
def load_dict(json_file):
return json.load(json_file)
def write_empty_file(filename):
with open(filename, 'w') as json_file:
json.dump({"nextId": 0,
"items": []}, json_file, inden... | [
"ua.anna.arnautova@gmail.com"
] | ua.anna.arnautova@gmail.com |
7fccafdc73aafb1144a05b7b730ea0c5064c11fa | 282d51aef66013b672191d92f9287a63ff8e1a7e | /book_authors_app/migrations/0001_initial.py | 1674f6dba00baaf412191cff9d388975e5514d3e | [] | no_license | vvelikov1988/booksauthors | d8620df50dca008006fec89d82d950a363d920d7 | 0a54fea50eb419928f7ec7bf93b7e00bd7451b95 | refs/heads/master | 2022-11-23T13:00:02.620364 | 2020-07-18T22:13:15 | 2020-07-18T22:13:15 | 280,726,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | # Generated by Django 3.0.7 on 2020-07-14 03:47
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Author',
fields=[
('id', models.AutoField(a... | [
"vvelikov1988@gmail.com"
] | vvelikov1988@gmail.com |
704b96977d187e2bf0d80d35c3d115d54febd735 | dfb0952ea11066b76aa8e808f9e2a15be426ecf8 | /tools/python_interface_test.py | 6f32cc7008a163e2dbc5eb95eaa647317d58a260 | [] | no_license | berendeanicolae/gml | 10070aefc778245304401bf58cd68b1e7b9b17b1 | 556cf8008d12e58077c346c72d70932ca58b316c | refs/heads/master | 2021-01-10T14:07:05.168676 | 2017-08-09T10:40:08 | 2017-08-09T10:40:08 | 36,880,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | import attributelist
import ialgorithm
import builder
import sys
if not len(sys.argv) > 1:
print("You must pass the path of database!")
sys.exit()
path = sys.argv[1]
"""
attr = attributelist.AttributeList()
attr.AddString("DbName","SimpleTextFileDB")
attr.AddString("DbConnString","FileName={}".format(path))
attr.Add... | [
"gavrilut.dragos@dbee95a5-fea3-17b5-19aa-aea05da7b0b2"
] | gavrilut.dragos@dbee95a5-fea3-17b5-19aa-aea05da7b0b2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.