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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8a880d4a2fac9bcfae35aa08cc8947dfbe299834 | 13f87656c4267c461deaafcc509ecc5a456650f9 | /mysite/main/admin.py | a1321208a561a7a6151084d3dc0c26da72fee64b | [] | no_license | ishan-agarwal/Tutorials-Website | 5b1eab1c0cbf4d888faa6e77ec076532e2d46b85 | d0b6403d6ca53ecf49421aa801311a30f1f8efaf | refs/heads/master | 2022-06-29T06:53:26.817617 | 2020-05-06T03:21:55 | 2020-05-06T03:21:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | from django.contrib import admin
from .models import Tutorial, Question
from tinymce.widgets import TinyMCE
from django.db import models
# Register your models here.
class TutorialAdmin(admin.ModelAdmin):
fields = ["tutorial_title",
"tutorial_content",
]
formfield_overrides = {
... | [
"ishanagarwal1605@gmail.com"
] | ishanagarwal1605@gmail.com |
e3e81e9a7cb19b08d57ebf9dcdce2402c63f2434 | 7ceac01483e5b6a2f76f5184462506b773ae3ee0 | /venv/Scripts/pip-script.py | d847241f2d40144619d67cad4e3c1ed5239eb065 | [] | no_license | leandroph/Python-CursoEmVideo | e75c4ae6e8b0801d5b5cf95c6c0ad4ed3504e9df | 95ea1b3c3ece1d9f042fc5973c71ee507a312222 | refs/heads/master | 2020-03-20T20:00:13.282220 | 2020-02-19T01:32:26 | 2020-02-19T01:32:26 | 137,665,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | #!D:\Projetos\Python\Python-CursoEmVideo\venv\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.argv[0... | [
"leandro.h@sou.unijui.edu.br"
] | leandro.h@sou.unijui.edu.br |
cbe8f456cf36d47b0a67a67919aa01d85a3138c1 | cb4df15292c2d8b797d65fa59574aba5ee4d44bd | /backend/threads/migrations/0004_auto_20180424_1654.py | 31e198615ac9240c1b399e6a43ce92c59ddd10f7 | [
"MIT"
] | permissive | CommonShares/rengorum | a9bb18b1eb9e36314bccc759130b55e7367e77ee | 22068651b943e9abbf91ee7f4b95e96d6cfa5be6 | refs/heads/master | 2023-01-07T14:02:42.566836 | 2020-11-14T16:37:07 | 2020-11-14T16:37:07 | 312,552,449 | 0 | 0 | MIT | 2022-10-10T09:13:13 | 2020-11-13T11:06:56 | JavaScript | UTF-8 | Python | false | false | 366 | py | # Generated by Django 2.0.3 on 2018-04-24 16:54
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('threads', '0003_auto_20180424_1650'),
]
operations = [
migrations.AlterModelOptions(
name='thread',
options={'ordering': ['-... | [
"endiliey@gmail.com"
] | endiliey@gmail.com |
3cffb25396bb01bc80f2f33b12dc67aefb015410 | 87917aa9971cbea67e9d3d9f3ba17ff38a68f637 | /clean-NN/mnist-conv.py | 91f15f3b2ad9aaad8b8c84b6a434db1e4e0c1fc4 | [] | no_license | daterka/Comparison-of-effectiveness-of-Regular-and-Convolutional-NN-in-handwritten-digit-recognition | a1e23485e0f56467115c0f097f7acadbe30c7b99 | 7c8c46b0ed149fe25acfc2321d89bdd8a8eed481 | refs/heads/master | 2020-09-23T06:19:24.170579 | 2019-12-05T16:28:37 | 2019-12-05T16:28:37 | 225,426,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,939 | py | from __future__ import print_function
import keras
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense,Conv2D,Dropout,Flatten,MaxPooling2D
import matplotlib.pyplot as plt
import numpy as np
batch_size = 128
num_classes = 10
epochs = 8
# input image dimensions
img_rows, ... | [
"simple@pop-os.localdomain"
] | simple@pop-os.localdomain |
d6ea747b5957732d583916c70b4f80bc1cdb39b4 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17s_1_02/brocade_mpls_rpc/show_mpls_ldp_fec_prefix_prefix/input/__init__.py | 414039c71bac5dac5968fee3843019053441ab0c | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,492 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
541e43b87cc5ec674f11ed89b1690f6a19cdc383 | 5b2f9eda8797c52ff50fc504b6f3c7c0812eef31 | /smarthome-master/webserver/SMHome/Database/migrations/0004_auto_20190408_2052.py | 3e99edc60383c216c5ba034c82c8a1579f97ca77 | [] | no_license | LKowalczykProj/Projects | 279e4f5a39704eae214872d07c95fccf90d7a3e1 | 95f2eb56fc397d03bd3e9a95319547fa6a044cc0 | refs/heads/master | 2023-08-03T10:55:45.799715 | 2019-07-17T12:46:33 | 2019-07-17T12:46:33 | 178,564,862 | 0 | 0 | null | 2023-07-22T00:03:05 | 2019-03-30T13:53:14 | Java | UTF-8 | Python | false | false | 1,538 | py | # Generated by Django 2.1.5 on 2019-04-08 20:52
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Database', '0003_auto_20190408_2039'),
]
operations = [
migrations.AlterField... | [
"kowalczyk.m.lukasz@gmail.com"
] | kowalczyk.m.lukasz@gmail.com |
1f55fa097417e8fa873ef1d263c81b8567c2790c | 318d8c05894c252413f0a68e70583498fc394ca5 | /manage.py | e9ad36564a438069accbcd9b441e4137049c4dbb | [] | no_license | ualexzt/fxportal | aa0326ef1379c3c553647b90dd366f3ae3c96ea0 | 0bc4cbbceb67f0b95dfc3d61d5f63a8da2c07ee3 | refs/heads/master | 2022-12-23T13:23:01.060318 | 2020-02-20T14:36:06 | 2020-02-20T14:36:06 | 231,742,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'fxportal.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impor... | [
"ualexzt@gmail.com"
] | ualexzt@gmail.com |
95ba742a2c0d23addf49e446d3d2ca9c64c13433 | 8d2b2a54d73d10863de29c8030b0fa9891355e26 | /ProjectGroup/my_app/migrations/0007_auto_20200319_0920.py | 87fc2f5e85f873b728e55c19bd109451855e8c06 | [] | no_license | denglia/cs493 | bc9d08611edd6a6045c05f2542b23c6460a5b32a | 7c1e8998caa0acc4a196d96ea94d223d848dc7f3 | refs/heads/master | 2021-05-24T14:12:45.452004 | 2020-04-06T19:51:18 | 2020-04-06T19:51:18 | 253,600,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | # Generated by Django 2.1.7 on 2020-03-19 01:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('my_app', '0006_auto_20200319_0115'),
]
operations = [
migrations.AlterField(
model_name='car',
name='p... | [
"noreply@github.com"
] | noreply@github.com |
ebddad0a10200abb12d5766947407ad330b1c73e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03773/s930206485.py | 73718780627fbe486462c2c936d41e242d1de545 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | import sys
input = sys.stdin.readline
a,b=map(int,input().split())
print((a+b)%24)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8588051727a218161e3bf792bad3dd3b97e22116 | 3594a6077a73e5881efc4307e6af6652ffe570ce | /web/diceuser/migrations/0001_initial.py | acc99c8f41d37859a5cb882e1e58fbe1e7597489 | [
"MIT"
] | permissive | whitepurple/VideoStreamingPlatform | 1de9b2203511cd80fa308103c83ad95f2a2d62ed | 35b62e76987398c49b33c6e4f99fbd7ad3839584 | refs/heads/master | 2023-02-22T01:42:18.012743 | 2021-01-25T06:17:07 | 2021-01-25T06:17:07 | 294,710,702 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,841 | py | # Generated by Django 3.0.4 on 2020-08-28 02:16
import diceuser.models
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0011_update_proxy_permissions'),
]
operations = [
migrations.CreateModel(
nam... | [
"qazplook@naver.com"
] | qazplook@naver.com |
8b35811c9a9336f4057789c80a146327e4bc69e8 | 26eb6f140873106c3b412852a9e33826617e758a | /rescueapp/migrations/0022_address_breakdown.py | 7f5294abd4b672dd7d03e16bea79aaec9413ab3a | [] | no_license | Aqudei/RescueServer | 95c1b247d77a11ed7122b1db2e607691be78c037 | d95d15404e9cda92729b40607698d724b3b7a8af | refs/heads/master | 2021-07-18T07:49:18.349700 | 2017-10-22T11:33:11 | 2017-10-22T11:33:11 | 103,828,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,599 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-16 13:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rescueapp', '0021_incident_info'),
]
operations = [
migrations.AddField(
... | [
"yodi_cute07@yahoo.com"
] | yodi_cute07@yahoo.com |
a5d475c35d02fb1c51d8aa4b9757784721f30919 | 5cd5a33f3b96aee8048af24a278c509538fe12ed | /Assignment3/Assignment3.2.py | 13de72fb2f5249aaff2e9e87c5e85a3852d3b46d | [] | no_license | priyankadighe20/Learning-Algorithms | 2e4c0c050b10b96f89d808cb6d88903a4538f9a4 | a8e0305987bbf1ab12b114e36688b49d8df760ad | refs/heads/master | 2021-05-04T05:17:40.676570 | 2016-10-17T07:52:47 | 2016-10-17T07:52:47 | 70,973,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | import random
import math
import matplotlib.pyplot as py
import numpy as np
def LIKELIHOOD_WEIGHT(b):
return (0.65/1.35)*(0.35**math.fabs(Z-b))
def GENERATE_B(n):
num = 0;
for i in range(0,n):
num = num << 1
num += random.randint(0, 1)
return num
def PR_QUERY_W_EVID... | [
"pdighe@ucsd.edu"
] | pdighe@ucsd.edu |
ce8ac6565ee928adbfd31d1c35aa7d97bfe71606 | f99846f1c25d1acc3185c24066b07c5121c7d02b | /currency_converter.py | ceb380f93af992f5ab79210da9f7f879443051b2 | [] | no_license | tomasd1/currency_converter | e6a30acc84b3a9f2856118b3c5be6069b4fda47b | f367a767864fb48aedca2c524a3bbe2beb8f6af9 | refs/heads/master | 2022-11-19T11:00:31.109394 | 2020-07-13T15:43:25 | 2020-07-13T15:43:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,420 | py | """
Currency Converter, currency_converter.py by Tomas D., 2016-01-16
Converts input currency to output currency(ies) at currrent ROX
Usage examples:
currency_converter.py --amount 100.0 --input_currency EUR --output_currency CZK
currency_converter.py --amount 0.9 --input_currency ¥ --output_currency AUD
c... | [
"tomas.drahokoupil@gmail.com"
] | tomas.drahokoupil@gmail.com |
52624b4327a85e5fcae2b3c2e848a59ed503ef0a | 2ddc71961db7b88b734b93e5716706c5ba22cd8b | /venv/bin/cmake | 308ec0fc49730a3f2ffb731f415302f50f898b55 | [] | no_license | zweistein1326/FaceIdAttendance | 5d6d4fbf34cf7b397ef3ed5aa4f3f2ac46f7b6a0 | 87e79679c5776033cb026e286778812aa2fdff6c | refs/heads/main | 2023-08-28T09:18:23.808146 | 2021-10-07T11:07:52 | 2021-10-07T11:07:52 | 333,559,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | #!/Users/sid/PycharmProjects/FaceIDAttendance/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from cmake import cmake
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(cmake())
| [
"sid.agarwal45@gmail.com"
] | sid.agarwal45@gmail.com | |
5f4d4cbae4be77f5c897b06ef5e96f1d6c45ff12 | 4f875744ccae8fa9225318ce16fc483b7bf2735e | /amazon/missingNumber.py | 51bc4b88b741139e123462001c9eba084a29d249 | [] | no_license | nguyenngochuy91/companyQuestions | 62c0821174bb3cb33c7af2c5a1e83a60e4a29977 | c937fe19be665ba7ac345e1729ff531f370f30e8 | refs/heads/master | 2020-07-27T05:58:36.794033 | 2020-04-10T20:57:15 | 2020-04-10T20:57:15 | 208,893,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 1 23:59:19 2020
@author: huyn
"""
#Missing Number
#Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array.
from typing import List
class Solution:
def missingNumber(self, nums: List[int]) -> int:
... | [
"huyn@cvm6h4zv52.cvm.iastate.edu"
] | huyn@cvm6h4zv52.cvm.iastate.edu |
387e9b1e5ad5002216240831e93cad2309d95df5 | a4ad81b09feb7e2816481c96864a5c274e6132c4 | /auth_with_lambda/main_run.py | f383b85c84d56abe8f009d47703b7e55d40bff28 | [] | no_license | GAbdallah/Python-JavaSample | 015aa1d81744f0d1903856b82a84e9838d042711 | d774469edb6cafc8a338b654d73b7ec763d69956 | refs/heads/master | 2023-06-08T09:11:16.881371 | 2021-06-28T20:59:10 | 2021-06-28T20:59:10 | 381,159,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,150 | py | from database import DatabaseLayer
from passlib.hash import pbkdf2_sha512
from datetime import datetime
from psycopg2 import pool
import psycopg2
rds_database = ''
rds_user = ''
rds_password = ''
rds_host = ''
rds_port = ''
ip = ''
source = 'phone'
postgreSQL_pool = psycopg... | [
"abdallah@rxvirtual.net"
] | abdallah@rxvirtual.net |
fb3ae55ef32a7d7e54a07342319d8f0569c814a0 | 6364bb727b623f06f6998941299c49e7fcb1d437 | /msgraph-cli-extensions/src/education/azext_education/vendored_sdks/education/operations/_education_class_assignment_submission_operations.py | 40c6e974d3dfc0da75b45fd0d3fe60b3bdfb72ea | [
"MIT"
] | permissive | kanakanaidu/msgraph-cli | 1d6cd640f4e10f4bdf476d44d12a7c48987b1a97 | b3b87f40148fb691a4c331f523ca91f8a5cc9224 | refs/heads/main | 2022-12-25T08:08:26.716914 | 2020-09-23T14:29:13 | 2020-09-23T14:29:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85,715 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
5f7da7fa319f1cc207012d4a7c768df8dbb81213 | b096dbccb31d3bd181259e930816964c71034ff4 | /tests/test_asynchronous/test_task.py | 73017b8eafee20bb87f1953d01201f1490e7e409 | [] | no_license | cosphere-org/lily | b68f95720381a69ce0caa5f47fca461b3f5242a9 | f6a8281e10eedcccb86fcf3a26aaf282d91f70f4 | refs/heads/master | 2023-02-18T13:49:03.568989 | 2022-06-30T09:58:23 | 2022-06-30T09:58:23 | 175,789,374 | 6 | 0 | null | 2023-02-15T18:49:10 | 2019-03-15T09:28:05 | Python | UTF-8 | Python | false | false | 369 | py |
from unittest import TestCase
from lily.asynchronous import AsyncTask
class AsyncTaskTestCase(TestCase):
def test_init(self):
def fn():
pass
task = AsyncTask(callback=fn, args=[9, 1])
assert task.callback == fn
assert task.args == [9, 1]
assert task.succes... | [
"maciej@cosphere.org"
] | maciej@cosphere.org |
c098e841a18b5c063ff3cacb87764cdf91444d91 | 064adee6fd8ca73906c7f1de0fcc701962a957ed | /LeetCodePractice/Graph/MakeConnected.py | 0c98fce1da972dedadfaaf560409caa58ebc312e | [] | no_license | hj59172507/AlgorithmPractice | d2c5e7d37b7feff6e93f6ca48d41b325b38618c2 | cc752cf5e98790bc9222454bc2d6f9b19952945c | refs/heads/master | 2021-07-08T05:57:09.399505 | 2020-08-03T16:20:20 | 2020-08-03T16:20:20 | 166,489,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,247 | py | """
1319. Number of Operations to Make Network Connected
There are n computers numbered from 0 to n-1 connected by ethernet cables connections forming a network where connections[i] = [a, b] represents a connection between computers a and b. Any computer can reach any other computer directly or indirectly through the ... | [
"huaj59172507@gmail.com"
] | huaj59172507@gmail.com |
85fbf72f12c93bd8cbc07a20077d8f3efcaed883 | d8e0d9f7a1ab10fe8c8ac9fc5310973962d32e48 | /django_demo/api/utils.py | 2a977e18134d1a3cd917ab6e83303582acb3839e | [] | no_license | kmcgon/django_demo | 4e6e7dd9bff1c7879d699c799311ad72425b6a99 | be3acafcd40021819ab67a1f5d84aa52bf6827ac | refs/heads/master | 2022-12-15T08:37:25.626794 | 2020-09-15T02:45:24 | 2020-09-15T02:45:24 | 295,596,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | import subprocess
def get_date():
"""Get the current date and time from the system."""
return subprocess.check_output("date").decode("utf-8")
def get_cpuinfo():
"""Get all of the contents of /proc/cpuinfo.
This is equivalient to 'cat /proc/cpuinfo' in bash.
"""
with open("/proc/cpuinfo"... | [
"kmcgon@gmail.com"
] | kmcgon@gmail.com |
25788f2b9bda8b347883b6978af3d158f8ee4b59 | c3afa54f177ae302c3b326a63a15c65d464f2e20 | /primrose/base/postprocess.py | 81b54d029c1f97a188e274b1736cf461328178ff | [
"Apache-2.0"
] | permissive | pombredanne/primrose | 4675d7dfe5e0d34cd221bdc1381b892f3558710a | 7d1b4d2a75c4e6ec0115e43d755396b5a1b4d9e3 | refs/heads/master | 2020-09-22T22:05:18.380669 | 2019-11-27T18:06:05 | 2019-11-27T18:06:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | """Module with abstract postprocess class to specify interface needed for future postprocesses
Author(s):
Michael Skarlinski (michael.skarlinski@weightwatchers.com)
Carl Anderson (carl.anderson@weightwatchers.com)
"""
from primrose.base.node import AbstractNode
class AbstractPostprocess(AbstractNode):
"... | [
"michael.skarlinski@weightwatchers.com"
] | michael.skarlinski@weightwatchers.com |
8b1c43c02b43a82f211b757ec0a1944b54c95ff9 | 190ed35d0c36368a9d775ac27f90575906da527c | /python_scripts/file/download_file.py | 1d4facc0ec1acef245f25dae107132079d898d3a | [] | no_license | bestzmr/python-demo | 420a0079445393753ff30eb93bb32fd8b33ea612 | 789fee140d1824695876d4d419ba41f43970aa1c | refs/heads/master | 2023-04-21T09:58:55.341423 | 2021-05-17T03:01:35 | 2021-05-17T03:01:35 | 322,514,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# @Time : 2021/1/15 9:53
# @Author : ZhaoQiang
# @File : download_file.py
# @Software: PyCharm
# @Description: 下载文件
import requests
def download_file(url, filepath, header):
# stream=True 开启懒下载,防止文件过大,放入内存时,内存会溢出,通过调用iter_content分块将文件放入内存
response = requests.get(ur... | [
"z2485782203@163.com"
] | z2485782203@163.com |
8bf0b25f614e368a825205d186b8622cf8e8c727 | 35895890ba77cbd4657280e489971515f0013ac5 | /envirovote/races/tests.py | f6344ddc6c4e2663f805a8c756f535d41159e151 | [] | no_license | brianboyer/envirovote | 2215573397f42edf4bdb25716fbc9932d68f8b28 | 4c868bc367843f9264ab88c49ec31f53f7fc8b1d | refs/heads/master | 2021-01-10T19:42:05.722060 | 2008-12-13T17:25:40 | 2008-12-13T17:25:40 | 32,231,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,146 | py | import unittest
from races.models import Candidate, Race
from endorsements.models import Endorsement, Organization
from races.helpers import calculate_meter_info
class HelpersTestCase(unittest.TestCase):
def setUp(self):
org1 = Organization.objects.create(name='Sierra Club')
org2 = Or... | [
"benderbending@aeaa4eaa-a835-11dd-a887-7ffe1a420f8d"
] | benderbending@aeaa4eaa-a835-11dd-a887-7ffe1a420f8d |
cd11f4c013bbbf9e2770dc15bde51f95098d6eac | a43cf3cacf518096737dd39833fd39624f8cf543 | /tests/test_csv_adapters.py | 071ac85a5c6f6098d645e145a468f026e11bcd6a | [
"Apache-2.0"
] | permissive | Mickey1964/antevents-python | f6ad4f9b056550055a223f7d4a7d34bc030c1dfb | 5b9226813583141986014fc83f6f74342a5f271e | refs/heads/master | 2021-06-15T11:23:56.253643 | 2017-03-31T05:25:59 | 2017-03-31T05:25:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,236 | py | # Copyright 2016 by MPI-SWS and Data-Ken Research.
# Licensed under the Apache 2.0 License.
"""Verify the csv reader/writer through a round trip
"""
import unittest
import time
from tempfile import NamedTemporaryFile
import os
import asyncio
import datetime
from antevents.base import Scheduler, IterableAsPublisher, S... | [
"jeff@data-ken.org"
] | jeff@data-ken.org |
3ba8f7fac04d4e7b45bfe7128eff82a0fb4248dc | 974d04d2ea27b1bba1c01015a98112d2afb78fe5 | /test/ipu/test_gelu_op_ipu.py | 5877341afb1264b0ffe18dd0fbecc822be5d9904 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle | b3d2583119082c8e4b74331dacc4d39ed4d7cff0 | 22a11a60e0e3d10a3cf610077a3d9942a6f964cb | refs/heads/develop | 2023-08-17T21:27:30.568889 | 2023-08-17T12:38:22 | 2023-08-17T12:38:22 | 65,711,522 | 20,414 | 5,891 | Apache-2.0 | 2023-09-14T19:20:51 | 2016-08-15T06:59:08 | C++ | UTF-8 | Python | false | false | 2,151 | py | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | noreply@github.com |
15168f8997c802aa12de9a3e6c807d5268b738c5 | c998a5505531d67dfc6c89045c58c188364f23f8 | /hyperfet/extractions.py | e10f57998910e8c871e8b729deeaf8ca88d3a205 | [
"MIT"
] | permissive | samueljamesbader/HyperFET_Project | 7f99931be80842acb2dd6f3e73c6fa36cc93bcd3 | c9b7a870aa9c63f0bac76d3b9370ef4814acda0b | refs/heads/master | 2021-01-19T11:53:45.973059 | 2017-03-03T01:59:42 | 2017-03-03T01:59:42 | 82,488,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | import numpy as np
from hyperfet.devices import Direction
def left(VG,If,Ib):
hyst=(~np.isclose(If,Ib))
i=np.argmin(VG[hyst])
return VG[hyst][i],If[hyst][i],Ib[hyst][i]
def right(VG,If,Ib):
hyst=~np.isclose(If,Ib)
i=np.argmax(VG[hyst])
return VG[hyst][i],If[hyst][i],Ib[hyst][i]
def is_point_h... | [
"samuel.james.bader@gmail.com"
] | samuel.james.bader@gmail.com |
4441e66f99b1c1064e3927508a2b0066d814ffdb | adf8f911698d91e4b725a774c8883fbea6c633c6 | /mysite/common/urls.py | 8851f09bb74b916e50247ce0998e43bd8d8c642d | [] | no_license | SangminKwon/django | e21df9c27f416b9b764705eee310f4acfb59c384 | cf20169f033de96530e3c864a8bd354bcacc8aee | refs/heads/master | 2023-05-31T15:54:18.486637 | 2021-06-17T00:17:38 | 2021-06-17T00:17:38 | 376,989,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | from django.urls import path
from django.contrib.auth import views as auth_views
from . import views
app_name = 'common'
urlpatterns = [
path('login/', auth_views.LoginView.as_view(template_name = 'common/login.html'), name='login'),
path('logout/', auth_views.LogoutView.as_view(), name='logout'),
path('s... | [
"ksm9905@gmail.com"
] | ksm9905@gmail.com |
051cf3b0ce8c33d2703249127fc0b89868329c66 | 84b8ffefb55cffe1973995d16bf009262c61794c | /Test RPG Game/Main.py | b1d6dcb8b9cdf21164ab9437c36008c5fbff87a9 | [] | no_license | LupinotheWolf/Python | 581e560bf906781431a504dda8649591f0e515f9 | 927a7331cae4707fd5a9e7d9918332566c23e1ac | refs/heads/master | 2023-02-02T22:58:28.890732 | 2020-12-21T15:41:38 | 2020-12-21T15:41:38 | 323,378,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,039 | py | import pygame
import time
import random
pygame.init()
FPS = 30
clock = pygame.time.Clock()#sets clock so you can create FPS
#define colours
white = (255,255,255)
black = (0,0,0)
red = (255,0,0)
green = (0,255,0)
blue = (0,0,255)
#Set window size
display_width = 800
display_height = 600
game_display = pygame.display... | [
"74966209+LupinotheWolf@users.noreply.github.com"
] | 74966209+LupinotheWolf@users.noreply.github.com |
449c3c5e309070e99dc56af5ec86f50dc0f73458 | 5292b03998384c0d2bb5858058892d7e45c5365b | /Hack.lu/2020/right-spot/run.py | 8c7042ab7fb76f17d7a1c5a6d887097b60883e2d | [
"MIT"
] | permissive | TheusZer0/ctf-archives | 430ef80d367b44fd81449bcb108e367842cb8e39 | 033ccf8dab0abdbdbbaa4f0092ab589288ddb4bd | refs/heads/main | 2023-09-04T17:56:24.416820 | 2021-11-21T06:51:27 | 2021-11-21T06:51:27 | 430,603,430 | 1 | 0 | MIT | 2021-11-22T07:24:08 | 2021-11-22T07:24:07 | null | UTF-8 | Python | false | false | 2,998 | py | #!/usr/bin/env python3
import zlib
import sys
import os
import subprocess
import io
import bz2
import sys
from flag import flag
COMPRESSED_LIMIT = 2**20 # 1 MB compressed
DECOMPRESSED_LIMIT = 30*2**20 # 30 MB uncompressed
EXPECTED_STRING = b"pwned!\n"
NUM_TESTS = 4
def compress(data):
if len(data) > DE... | [
"sajjadium@google.com"
] | sajjadium@google.com |
8c9c6f86415414eac65099b6ad036d598482a6ef | cc88beafd7a59a832fecff45f436490f805ba000 | /demos/json_schema.py | 72f3cf8eec40655d6dac240792698b62d8a3ff2c | [
"BSD-3-Clause"
] | permissive | RobSpectre/structures | 6ead59bf37ef02e3c3d2181dc941a2e60f98becb | 5345fb63658eecdc59e08882372294f13b0df889 | refs/heads/master | 2020-12-25T04:29:11.389945 | 2012-08-25T17:45:15 | 2012-08-25T17:45:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | #!/usr/bin/env python
"""{'type': 'object', 'properties': {'personal_thoughts': {'type': 'string', 'id': 'personal_thoughts', 'maxLength': 255}, 'title': {'type': 'string', 'id': 'title', 'maxLength': 40}, 'id': {'type': 'string'}, 'year': {'minimum': 1950, 'type': 'integer', 'id': 'year', 'maximum': 2011}}}
"""
im... | [
"jd@j2labs.net"
] | jd@j2labs.net |
f48e9c86d62820de6dafa538d6a9e4d6ac681258 | 365b81432adf4850028407f08ed40c4259ac24be | /scripts/sine.py | c034a9c6d9105e88177885d2c7fe08062bdfd777 | [] | no_license | massimilianocasini/openhab2 | 173fa620d313a14a2dd9a880fbdb77375a273a0d | 7933a12f0362f216b3d4df500801a8260dc1559b | refs/heads/master | 2021-07-03T06:37:04.834167 | 2021-06-06T07:38:17 | 2021-06-06T07:38:17 | 288,466,529 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,348 | py | #!/usr/bin/python
# A little script to send test data to an influxdb installation
# Attention, the non-core library 'requests' is used. You'll need to install it first:
# http://docs.python-requests.org/en/master/user/install/
import json
import math
import requests
import sys
from time import sleep
IP = "localhost"... | [
"massimiliano.casini@gmail.com"
] | massimiliano.casini@gmail.com |
d248b71876a13eb1dced36510f2490ce62092796 | b19bc58dd9855409dfb0a0361714763f64e8950b | /project/app/migrations/0004_auto_20170711_2215.py | 798fc39fadf0ebc781e5392c3ec76366cefe6f46 | [] | no_license | caroid/Django-mysql-data-management | 6e9fc66c762083ede2517e432cb24ba64649adf9 | 23892b252b34c08b3d81cffad9a1a697cc0459e3 | refs/heads/master | 2021-04-03T05:13:56.612097 | 2017-07-17T11:26:35 | 2017-07-17T11:26:35 | 125,162,127 | 1 | 0 | null | 2018-03-14T05:53:12 | 2018-03-14T05:53:12 | null | UTF-8 | Python | false | false | 469 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-07-11 22:15
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0003_auto_20170711_2209'),
]
operations = [
migrations.AlterField(
... | [
"rajkumarmeena25996@gmail.com"
] | rajkumarmeena25996@gmail.com |
5097b846d08047afa9caae82e49275ea9f3c46fa | af8f42e890126aa9af0535991e7c7109db1cedf7 | /hw1/reports/sec2plot.py | b3a31adb9c253b6768e3e192addbcc8116a3fcb0 | [
"MIT"
] | permissive | mwhittaker/homework | 1c482a346a85c0eb9364185cb90ab5efdc67d632 | 2faa90662ea0b256625bd07d0d26de39b4e9a455 | refs/heads/master | 2021-01-22T07:39:51.446384 | 2017-10-18T17:31:05 | 2017-10-18T17:31:05 | 102,309,475 | 4 | 0 | null | 2017-09-04T02:16:25 | 2017-09-04T02:16:25 | null | UTF-8 | Python | false | false | 378 | py | import matplotlib.pyplot as plt
import numpy as np
def main():
X = np.genfromtxt("sec2.txt", delimiter=" ")
steps = X[:,0]
loss = X[:,1]
plt.figure()
plt.semilogy(steps, loss)
plt.grid()
plt.xlabel("Training iteration")
plt.ylabel("Training loss (average mean squared error)")
plt.s... | [
"mjwhittaker@berkeley.edu"
] | mjwhittaker@berkeley.edu |
7d18be02197d5ac26671c7436dd67fee6601902e | c319730a44788d106540dc9a203fd72eb898bd43 | /ex05.py | a04f60465f312a415c72934bd905026c7d00af56 | [] | no_license | kelvinadams/PythonTheHardWay | 469fff91561a8f6ac270cd68a3b8c05e5fdf8af8 | 6f9c33cf6e0475a524876bb581e38419e6777456 | refs/heads/main | 2023-07-27T22:28:28.083520 | 2021-08-24T22:03:36 | 2021-08-24T22:03:36 | 383,270,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | # Python the Hard Way - Exercise 5
my_name = 'Kelvin Adams'
my_age = 31 # Technically almost 32
my_height = 72.5 # Inches...and yes, that 0.5 is important!
my_weight = 185 # Pounds
my_eyes = "Grey" # they alternate between blue and green
my_teeth = 'White' # Especially after my dentist appt today!
my_hair... | [
"noreply@github.com"
] | noreply@github.com |
4ffb855b13fd38f3ff0bf76db89c7a878afc1c77 | e210c28eeed9d38eb78c14b3a6388eca1e0e85d8 | /examples/advanced/sklearn-svm/jobs/sklearn_svm_base/app/custom/svm_learner.py | 070ceb832d5e6448975001a4a6fd155dcae0fea3 | [
"Apache-2.0"
] | permissive | NVIDIA/NVFlare | 5a2d2e4c85a3fd0948e25f1ba510449727529a15 | 1433290c203bd23f34c29e11795ce592bc067888 | refs/heads/main | 2023-08-03T09:21:32.779763 | 2023-07-05T21:17:16 | 2023-07-05T21:17:16 | 388,876,833 | 442 | 140 | Apache-2.0 | 2023-09-14T19:12:35 | 2021-07-23T17:26:12 | Python | UTF-8 | Python | false | false | 3,884 | py | # Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | noreply@github.com |
22e6134ec7f1f2c305fd830471c62ba2d52f78ba | e3a97b316fdf07b170341da206163a865f9e812c | /python/kwiver/vital/tests/test_category_hierarchy.py | c9497979ff437d836cb13a371ab1157285bb6372 | [
"BSD-3-Clause"
] | permissive | Kitware/kwiver | 09133ede9d05c33212839cc29d396aa8ca21baaf | a422409b83f78f31cda486e448e8009513e75427 | refs/heads/master | 2023-08-28T10:41:58.077148 | 2023-07-28T21:18:52 | 2023-07-28T21:18:52 | 23,229,909 | 191 | 92 | NOASSERTION | 2023-06-26T17:18:20 | 2014-08-22T15:22:20 | C++ | UTF-8 | Python | false | false | 16,958 | py | """
ckwg +31
Copyright 2020 by Kitware, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the ... | [
"john.parent@kitware.com"
] | john.parent@kitware.com |
cc7de0584bc82949c6b905c784c992296760e455 | 8dd64f6b99654da666430cb16a0c549124e7b9b3 | /server/api/urls.py | 8539ff62b9554b3e43e10bce9a6e84ddedbdf7e6 | [] | no_license | purveshmakode24/django-angular | 1a435c20fd0ddfdeb7759b6d3abbeef8b0a5be5d | 59f30cc5f2e2337ea9839a7cc4ed787974f2f791 | refs/heads/master | 2023-06-02T05:46:29.066687 | 2021-06-13T16:37:41 | 2021-06-13T16:37:41 | 376,569,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from django.urls import path
from api import views
urlpatterns = [
path('', views.home, name = 'home'),
# path('', home, name='home'),
] | [
"makodepurvesh@gmail.com"
] | makodepurvesh@gmail.com |
b8d013dbdb8bf21831bd114e91e73dc1e882763c | 35f7d935b17fbb3be4cf3d04ccba8bf5205a19ec | /Gtbit IT.py | 8caaa10f2ee8029822e21dbfa81f501346b48bc9 | [] | no_license | mgmanthan26/Gtbit-IT-Portal | cf7c4438f79c10d74a18ed6d59aaeaa955c4850f | 8cd98064deedf37ae6285643418087e659bb6047 | refs/heads/main | 2023-06-18T10:21:03.204536 | 2020-12-05T13:38:50 | 2020-12-05T13:38:50 | 318,791,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def home():
return render_template('index.html')
@app.route("/insights")
def about():
return render_template('insights.html')
@app.route("/post")
def post():
return render_template('post.html')
@app.route("... | [
"noreply@github.com"
] | noreply@github.com |
0c91e11b9a0c78fc00e0b9cca338a0526b119143 | fe5a3d6e5f2586210a768c437bd028817a5150e1 | /Polynomial_Class2.py | 85855804267de6a92762b6cc1cd00fcd884e4aaa | [] | no_license | 340730/chicken | c36b17482958092bfaf1d618b280946de0233ed7 | 3780ce90574e36ff3bbaf8a74271c52798cde8c1 | refs/heads/master | 2020-03-27T01:55:13.613072 | 2018-12-11T22:24:12 | 2018-12-11T22:24:12 | 145,753,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 884 | py |
"""
Created on Thu Sep 27 17:40:48 2018
@author: randydavila
In this script we will define a class called
Polynomial.
"""
class Polynomial:
def __init__(self, coefficients):
self.coeff = coefficients
def degree(self):
return len(self.coeff) - 1
def __str__(sel... | [
"noreply@github.com"
] | noreply@github.com |
0827a0936743d568a6e345d0183c0b9bdde812f5 | aebd8376eeb1215bab28f41544e7c3568c66112c | /blog/views.py | 5c15de0cdc3ab3faf6106f1c98edfcadfb36ab61 | [] | no_license | unovikash/testBlog8210 | 3ccb099efa7e51c02479b4470c31b73c68f0e050 | 78d3f24fb08342d44a34c27f7a9e864fc5cbc533 | refs/heads/master | 2021-08-19T22:49:19.720768 | 2018-11-22T21:29:59 | 2018-11-22T21:29:59 | 146,684,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.utils import timezone
from .models import Post
from .forms import PostForm
# Create your views here.
def post_list(request):
posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('published_date')
return render(requ... | [
"vikashkumar@unomaha.edu"
] | vikashkumar@unomaha.edu |
8ed04321cc923a0b0cf6b320d0b25f6205625691 | b50c44ad44f95035332f371517808406e4a756d0 | /cbvSerializers/cbvApp/migrations/0001_initial.py | 3af20fe7c5f546e1c79919b7d44819cc546f7478 | [] | no_license | anandkumar-design/api1 | d970e336f15b46dceb07ef480aa57fd544a3bd93 | ae767463828138b97f4cf5ef6f7ac2ae4ac33afa | refs/heads/main | 2023-04-25T00:18:13.406364 | 2021-05-13T12:43:35 | 2021-05-13T12:43:35 | 367,045,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # Generated by Django 3.2 on 2021-05-04 08:16
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
('id', models.IntegerField... | [
"you@example.com"
] | you@example.com |
9b274e73476a2bedc83d122ad2d7a65c035c80bc | fc43283aa2b12b217e5da7064d45f38bd62bab87 | /btree.py | b99d7689f3070e20602bd361dd9d719d59d4598f | [] | no_license | cxt90730/btree | db0a5d163b98c09fa9ba699d694ddd5d0286bc95 | eae21210ae98720bf89968a6736f920dc6341fa2 | refs/heads/master | 2021-01-22T23:53:16.912615 | 2017-03-21T08:09:50 | 2017-03-21T08:09:50 | 85,675,146 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,205 | py | # coding=utf-8
import graph
MAX_CHILD_NUM = 4 # Max num of child , if beyond it, that node need to split
t = (MAX_CHILD_NUM >> 1) - 1 # Mid Idx
class BPlusTreeNode(object):
def __init__(self):
self.isRoot = False
self.isLeaf = False
self.n = 0 # num of key
self.key = []
s... | [
"cuixiaotian@le.com"
] | cuixiaotian@le.com |
181af69f0d3013dde6823a9d1fed5231d26c900e | d4b85f462c88dbc2e004151509771bc7a4be6d6b | /pypdf2table/Output.py | 4d4d7681546ef89c32f31215fc0febd4dac4cb44 | [] | no_license | Sandy4321/pypdf2table | b7dcd8be425e3212c667838f819ff4a4c176ae99 | 79f801cf03a74f458dac271cdb811f3482bb172d | refs/heads/master | 2021-05-26T21:24:38.027331 | 2012-02-07T20:21:33 | 2012-02-07T20:21:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,010 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2008 ISrg (NSI, CEFETCAMPOS, BRAZIL) and Contributors.
# All Rights Reserved.
# Vanderson Mota dos Santos <vanders... | [
"d.camata@gmail.com"
] | d.camata@gmail.com |
29b2c492995b0dfded24806b18f9fb1644669ccd | 8b8989ec3bc73f1710c03ef3e3e5fd93ddf56711 | /jobs/migrations/0004_auto_20200328_1228.py | 32135eaf6ce287c5a4aad231865d2c719c020216 | [] | no_license | petergitzz/portfolio-project | 5f8c618172a35058feec88952dcd07e85339a61a | 4ebda97913ab2d4d596863133fbd5e5a12fd7d8b | refs/heads/master | 2022-12-09T15:22:14.075580 | 2020-04-15T19:48:41 | 2020-04-15T19:48:41 | 252,603,180 | 0 | 0 | null | 2022-11-22T05:27:35 | 2020-04-03T01:23:06 | Python | UTF-8 | Python | false | false | 386 | py | # Generated by Django 3.0.4 on 2020-03-28 09:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jobs', '0003_auto_20200328_1224'),
]
operations = [
migrations.AlterField(
model_name='job',
name='image',
... | [
"petergitzz@icloud.com"
] | petergitzz@icloud.com |
26f3b4a714e138482e4799aecd77cd946190d8db | bdd6ab129de61947945b380a487a3ee923f542f3 | /real_genomes/datasets/gbk2dbfiles.py | 73549d27723c8a1e8b7be53aa05418915d9867e5 | [] | no_license | InfOmics/pangenes-review | 1e27c1fd1a93fb7a5fd764c4090f7a4a2a207b0b | a74f8f9d615de6a76aa1918c2c4e9d0c1f0c8385 | refs/heads/master | 2021-01-07T12:14:37.891227 | 2020-06-01T14:20:27 | 2020-06-01T14:20:27 | 241,686,261 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,435 | py | #!/usr/bin/python3
import sys
from os import listdir
from os.path import isfile, join
import re
from Bio import SeqIO
idir = sys.argv[1]
odir = sys.argv[2]
print("reading gbk files from", idir)
gbkfiles = [f for f in listdir(idir) if isfile(join(idir, f)) and re.match('^.+\.gbk$', f)]
print(gbkfiles)
def read_gb... | [
"vincenzo.bonnici@gmail.com"
] | vincenzo.bonnici@gmail.com |
98f56d9d28cad1e19b4d224bf103db80fbe2e222 | 55d7a1f65449dcc68e9a0698e036cdc36a3154f7 | /code/12-tuple元组.py | e13bd658dbd20cac937dfc99c46c051a1c21b174 | [] | no_license | kuan1/test-python | 0e94742a2ccfa1e4df6c76cf40fb7da11df9da90 | 48b52877cfd67379416a38274f6f67a52e31d4e2 | refs/heads/master | 2021-12-09T04:01:37.259751 | 2021-10-04T12:17:28 | 2021-10-04T12:17:28 | 185,113,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | # tuple不可修改列表
my_tuple = ()
print(my_tuple, type(my_tuple))
my_tuple = tuple(range(10))
print(my_tuple)
# 可以省略括号
my_tuple = 1, 2, 3, 4
print(my_tuple)
# 只有一个逗号的时候,必须有一个逗号
my_tuple = (1,)
print(my_tuple)
my_tuple = 1,
print(my_tuple)
# 元组解构
my_tuple = 'a', 'b', 'c'
(a, b, c) = my_tuple
print(a, b, c)
# 解构必须一致
my_tup... | [
"luzhongk@126.com"
] | luzhongk@126.com |
f25cc8bf0e04bf9284cbee6ccd9c2174ba7ca2d7 | 7542d0e1e7d30f9d215e6886d1707deefc903011 | /src/trailingZeroes.py | 773e391aa1b45ffb7c7d4214c5fc588773912e33 | [] | no_license | zhengminhui/leetcode-python | 3acc989d73ce50205b0f7e0cf13049fa5643cc8a | 6d26596a3c18750687082ca2b9f55746628576e6 | refs/heads/master | 2023-01-25T05:13:51.989092 | 2023-01-14T07:00:15 | 2023-01-14T07:00:15 | 104,976,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | def trailingZeroes(n):
"""
:type n: int
:rtype: int
"""
ans = 0
while n:
ans += n/5
n /= 5
return ans
| [
"zhmh1025@hotmail.com"
] | zhmh1025@hotmail.com |
06810a4a86bb50e0517a53d81faa51ea576bfa68 | a69206bd76ad02c213425ab024046f6a71120560 | /eos/utils/version.py | 5c6b5dad5b4c14beb06aa65a873febbf75d5702c | [
"Beerware"
] | permissive | YSaxon/eos | f120f3d11366ada131aa7e04820a01436b1d4c5f | 0cebeb2fd2d1952d6bb0d040a22f909fd5ae6efd | refs/heads/master | 2023-05-22T03:12:24.376238 | 2021-06-10T17:55:18 | 2021-06-10T17:55:18 | 375,783,898 | 0 | 0 | NOASSERTION | 2021-06-10T17:55:19 | 2021-06-10T17:50:54 | Python | UTF-8 | Python | false | false | 770 | py | """
Versions helper.
Wrapper on distutils.version to allow more laziness.
"""
from distutils.version import LooseVersion
class Version(LooseVersion):
"""
EOS Version.
Simple wrapper on distutils.LooseVersion to provide more abstraction on version comparison.
"""
def _cmp(self, other):
... | [
"aevy-syn"
] | aevy-syn |
68ea1dea2939203e6f537230def02ae234372113 | e13c98f36c362717fdf22468b300321802346ef5 | /documents/migrations/0002_auto_20161206_1643.py | a5421c43dfb9d72c97c9d451bbe268874e6e6229 | [] | no_license | alexmon1989/libraries_portal | 2415cc49de33459266a9f18ed8bb34ac99d3eb7c | 277081e09f6347c175775337bffba074a35f3b92 | refs/heads/master | 2021-01-23T07:25:53.884795 | 2018-12-25T14:29:29 | 2018-12-25T14:29:29 | 80,501,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,158 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-12-06 14:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('documents', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(... | [
"alex.mon1989@gmail.com"
] | alex.mon1989@gmail.com |
0135a94e64c60142d8c29bfdaba4788908690526 | 376150fe6b4dd5d8c3caa65714aa47bc35e31784 | /nintendo/games.py | dd8c5a5db2e8ac06d7e378a4ab5f9226ca8181f6 | [
"MIT"
] | permissive | tenda-gumi/NintendoClients | 977d5de576a0216a2e6c894bfa5de1658f8ef5de | 67f2600f68e441980187932e8521d6dcc69dcc24 | refs/heads/master | 2020-06-17T14:33:52.314419 | 2019-07-10T04:19:38 | 2019-07-10T04:19:38 | 195,951,685 | 0 | 0 | null | 2019-07-09T07:03:23 | 2019-07-09T07:03:23 | null | UTF-8 | Python | false | false | 1,320 | py |
#===== Wii U Games =====#
class Friends:
TITLE_ID_EUR = 0x10001C00
TITLE_ID_USA = 0x10001C00
TITLE_ID_JAP = 0x10001C00
LATEST_VERSION = 0
GAME_SERVER_ID = 0x3200
ACCESS_KEY = "ridfebb9"
NEX_VERSION = 20000
class DKCTF:
TITLE_ID_EUR = 0x0005000010138300
TITLE_ID_USA = 0x0005000010137F00
TITLE_ID_JAP = 0x0... | [
"ymarchand@me.com"
] | ymarchand@me.com |
3dbf29b81d4125c09676964c81ebeb19e854dc5f | e57220aca129b4b6d19e10d016ce3d29198e6cc3 | /profiles_project/settings.py | 24a1193cea04f949a18ac2c0dc52b711fa76b16b | [
"MIT"
] | permissive | hm289/profiles-rest-api | d693b5a67cbfab05171f85c0cd9ddc1d73732016 | acfeed0553994d4e86f1146b5537d24beb23d434 | refs/heads/master | 2023-01-23T07:48:30.442050 | 2020-12-06T19:41:40 | 2020-12-06T19:41:40 | 314,030,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,212 | py | """
Django settings for profiles_project project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
fro... | [
"maleki289@gmail.com"
] | maleki289@gmail.com |
511a92818a5b5df64a9fa1f2695d0cec0ec27022 | a2238429ea0e84e30441e7bf7319cd9810d0eb22 | /posts/models.py | b5af6f962c2417dca8750ad41ee565db81bbf079 | [] | no_license | praveenvino39/instagram_clone | f00a33d21eb75fa692468ce1c158d25bbd457b9c | b3316751a0ce419c2f88153b5e99096976c317c5 | refs/heads/main | 2023-08-23T15:23:12.500964 | 2021-10-15T20:10:13 | 2021-10-15T20:10:13 | 339,464,615 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | from datetime import datetime
from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Post(models.Model):
user = models.ForeignKey(User, related_name="user",
related_query_name="user", on_delete=models.CASCADE)
video_url = models.... | [
"praveena4e@gmail.com"
] | praveena4e@gmail.com |
1bf98132707c79679412594e52a4b60a9a481f22 | d78ae69ee26ee596d44bbebb3019b3fe27f1669e | /uriel/core/weakset.py | 24247860db7dd06f2bd504e99c40e45bd9a99a8e | [] | no_license | gregr/uriel | cd35c1ee128606147e22c6599fda21d3b1efcf84 | 1e68c771cf041a6951d1c853dd20f99a4b5e7eb5 | refs/heads/master | 2020-05-17T13:01:30.767504 | 2013-04-21T14:49:14 | 2013-04-21T14:49:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # Gregory Rosenblatt
from weakref import ref
class WeakSet(object):
"""A set which weakly references its contents."""
def __init__(self, sequence=[]):
self.set = set(sequence)
def __iter__(self):
return iter(self.set)
def Add(self, obj):
self.set.add(ref(obj, self.set.remov... | [
"greg.weiqi@gmail.com"
] | greg.weiqi@gmail.com |
4b27e8803d48b26d90c568aa778d7eec4c44dc85 | 2210a763aa4679283b8d3b59e862caf691d4d5af | /projects/migrations/0003_userprofile.py | b8d9373aa4b9f3d471c16018d1fdfdf8b3e7faea | [
"BSD-2-Clause"
] | permissive | dymaxionlabs/analytics-backend | 21c7dd4579188b20214c7c8ac92db26ca04348f8 | fb801b184e4e510d54e8addb283fd202c9dfe7b1 | refs/heads/master | 2022-05-10T23:30:35.958044 | 2022-04-24T13:58:59 | 2022-04-24T13:58:59 | 192,096,995 | 0 | 0 | BSD-3-Clause | 2022-04-24T13:59:11 | 2019-06-15T15:55:28 | Python | UTF-8 | Python | false | false | 863 | py | # Generated by Django 2.1.5 on 2019-01-21 03:23
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('projects', '0002_auto_20... | [
"munshkr@gmail.com"
] | munshkr@gmail.com |
56ba9749edd02ce19359eec905a0c7711e644444 | 5d7e5624da132dcad0d0ef74d612d8c834c9f24f | /download_slack.py | b68737bb51eaaa956fbd2537448c0ace52c47ca9 | [] | no_license | indyhall/slack-export | 790a9925361231427e2d4ebad99a6b4599bfdffd | 2fdd73de0074c32090977671c69f3195dd391cd5 | refs/heads/master | 2021-01-10T09:48:16.925379 | 2015-10-27T18:48:05 | 2015-10-27T18:48:05 | 45,062,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,628 | py | #!/usr/bin/env python
# Allow CAPS in function names
# pylint: disable=C0103
"""
Download all files linked in a Slack export archive.
All uploaded files are downloaded into their respective channel folders.
Optionally, Slack IDs can be used instead of file names.
"""
import argparse
from functools import partial
i... | [
"dangerouslyawesome@gmail.com"
] | dangerouslyawesome@gmail.com |
aca386663ee2b7bb52e07fbc3da653ace55ccb39 | fa3e527114cd5799dddb0a25067da4923eae354e | /FastSim/JUNO/reco/reco_test_v1.py | 44cb6f1977fa86490d524b1432e2d1ebb9f8a52f | [] | no_license | wenxingfang/FastSim_ML | e64c6b56ce2afd703d1ddda0ada2de6f65fde049 | d2f1abbb2f6879313d5f4f137b64c4d8bf10fe83 | refs/heads/master | 2022-11-28T01:35:39.727895 | 2020-08-03T15:47:37 | 2020-08-03T15:47:37 | 284,734,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,898 | py | import math
import yaml
import h5py
import json
import argparse
import numpy as np
from keras.models import model_from_json
from keras.models import model_from_yaml
from keras.models import load_model
from sklearn.utils import shuffle
def get_parser():
parser = argparse.ArgumentParser(
description='Run Cal... | [
"1473717798@qq.com"
] | 1473717798@qq.com |
9d58362ddfed7ce96220d7ec389352353b2a2c8a | b05a3094820e8d8b315846ee1f4d90ee325d24f1 | /python/comp.py | 6062d3adb7e2dff67deb297a59889a56aaa53b60 | [] | no_license | aistairc/DLTSkip | 7841aaece9cba31c144212e3fee6a102fb1fc4f2 | d357f12d4ea3a91f3dce1632257e90be56be8c7c | refs/heads/master | 2020-03-21T17:45:58.695316 | 2018-08-03T02:58:07 | 2018-08-03T02:58:07 | 138,852,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,749 | py | # -*- coding: utf-8 -*-
import time
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import sys
#sys.path.append('/home/genta/work/spams-python/install/lib/python2.7/site-packages')
import spams
import util
class Compressor:
def print_setting(self):
print()
... | [
"nis@soum.co.jp"
] | nis@soum.co.jp |
90fa0d53bd2415d8601241b859795afb31b89fc0 | ef7a8dd99c890d640b74247fbb27e2978041e6b6 | /migrations/versions/d545899a6ca_added_qty_to_corporate_purchase.py | 4fb6c77d9ebdf77c6eb4aa9ec8ea0ef9414ce4e5 | [] | no_license | softwarelivre/segue | b0e89528ffd179719e1aa009cde42028e75febfe | d045ea652f86bd93c27bf9d183a9692a3ae2b3ba | refs/heads/master | 2020-04-05T07:47:51.898553 | 2017-08-16T00:23:35 | 2017-08-16T00:23:35 | 81,842,293 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | """Added qty to corporate purchase
Revision ID: d545899a6ca
Revises: 4f89d195687c
Create Date: 2016-04-01 15:07:42.001784
"""
# revision identifiers, used by Alembic.
revision = 'd545899a6ca'
down_revision = '4f89d195687c'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generat... | [
"inscricao@softwarelivre.org"
] | inscricao@softwarelivre.org |
8f650f01937a81fbc4be7902be1f150c38b6b484 | 0c8eb6a1f8eb6c7d3276d69887e4e3938c99d657 | /intro/investment.py | 3e9983bc0b2bd0e17e7b116c78b9fe44e4040e8e | [] | no_license | symatevo/python_basics | 54ebcde0069516dfb8d1734c32c4a622f3d634a8 | d8c68189797d8dafab3c99d49ebbd13e23de65a8 | refs/heads/main | 2023-07-09T18:56:25.145671 | 2021-08-17T19:12:49 | 2021-08-17T19:12:49 | 397,365,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | P = 10000
n = 12
r = 0.08
t = int(input('years: ;))
A = P * ((1 + r/n) ** (n * t))
print(A)
| [
"noreply@github.com"
] | noreply@github.com |
eef8ad3df7f2867949338d395c89c8fdc5d64834 | 1058984cbca36552120092af1f849cea27662c50 | /rebench/tests/interop/time_adapter_test.py | a73f964d66ac61d2533d516993e656b4d65258f5 | [
"MIT"
] | permissive | smarr/ReBench | 21437c7a348a1821f8c5e5016539211376439447 | fd8fa6beeac13c87e848ea76efb1243d1e6ee3ae | refs/heads/master | 2023-08-28T00:38:18.378579 | 2023-08-06T15:11:50 | 2023-08-06T15:11:50 | 1,263,079 | 71 | 19 | MIT | 2023-08-06T15:11:52 | 2011-01-17T10:43:28 | Python | UTF-8 | Python | false | false | 2,355 | py | # Copyright (c) 2016 Stefan Marr <http://www.stefan-marr.de/>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, mo... | [
"git@stefan-marr.de"
] | git@stefan-marr.de |
4e6831c00eea402266ff39cd2de8df9a3ff7de0f | a72cb4d00528fb3d2d47f99a1ccca1b8b9b41ff7 | /scripts/addons_extern/space_view3d_rotview.py | e9abc14ef5ebc45a9695ad927f5db3e218dce9c0 | [] | no_license | talocan/blenderpython | b05204881183ff901ec189916a3bcc1d3e9d3e20 | 056ac37e76a1b410696c9efe4fe0ea09fdc68c0e | refs/heads/master | 2021-01-18T05:16:47.221786 | 2014-07-11T17:01:53 | 2014-07-11T17:01:53 | 21,749,332 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,151 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"super3dblender@yahoo.com"
] | super3dblender@yahoo.com |
21359e6eb60a8334bc8d00d4679f91b27603b881 | 309870c1bb943928f91dcbfc9a0fddc6bc241c25 | /Perceptron.py | e15ff63d7cac0a692044884bce3b49cc96431e0c | [] | no_license | yuesong-feng/Machine-Learning-Algorithms | b16ca25827e5181bc6febe5584ce4694a30f54ec | e566eb2c95179a8fd9d63009e94e8bc5fa902e58 | refs/heads/main | 2023-09-05T05:01:40.304268 | 2021-11-14T05:27:43 | 2021-11-14T05:27:43 | 324,681,013 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | import numpy as np
class Perceptron(object):
def __init__(self, eta=0.01, n_iter=50, random_state=1):
self.eta = eta
self.n_iter = n_iter
self.random_state = random_state
def fit(self, X, y):
rgen = np.random.RandomState(self.random_state)
self.w_ = rgen.normal(loc=0, sca... | [
"yuesong-feng@foxmail.com"
] | yuesong-feng@foxmail.com |
204a0594892cc09b0c8369bade86c79c6ef2dcf6 | 0bea4ef65cc7c73108aca58d50f9710ec06cba69 | /ChinaMarket/single_stock_recent_change_check.py | b4f1dd85f9fb2946783c376f12cabd7cf1849f37 | [] | no_license | LeoFengShou/StockInvestmentAssistant | 2af12ac69e517805b8e74fc949a7e7a27e3a07a2 | 4ecc3a6b5026865c2b5452fb39e41d2913a2d2dd | refs/heads/master | 2021-04-28T22:13:16.383042 | 2017-01-01T19:31:29 | 2017-01-01T19:31:29 | 77,755,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,177 | py | '''
Author: Shoujun Leo Feng
1T9 Engsci, UofT
purpose: To check the stock price at a certain number of days ago
For example, check the price of 600510 3 days ago
'''
import urllib2
import time
MONTH_SHORT = ["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]
MON... | [
"noreply@github.com"
] | noreply@github.com |
4f6b1dc211e4bc1cc3ec122d5bc8cba70661d87d | f11600b9a256bf6a2b584d127faddc27a0f0b474 | /normal/1401.py | 52bff56683cf923937222e17b79a7c0999757b14 | [] | no_license | longhao54/leetcode | 9c1f0ce4ca505ec33640dd9b334bae906acd2db5 | d156c6a13c89727f80ed6244cae40574395ecf34 | refs/heads/master | 2022-10-24T07:40:47.242861 | 2022-10-20T08:50:52 | 2022-10-20T08:50:52 | 196,952,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | class Solution:
def checkOverlap(self, radius: int, x_center: int, y_center: int, x1: int, y1: int, x2: int, y2: int) -> bool:
# 条件 1:首先判断圆心是否在矩形内
if x1 <= x_center <= x2 and y1 <= y_center <= y2:
return True
# 条件 2:圆心位于矩形的上下左右四个区域
elif x_center > x2 and y1 <= y_center <=... | [
"jinlha@jiedaibao.com"
] | jinlha@jiedaibao.com |
85d9eaac3bd912d3a58222497c62c5436bd24f38 | 11a2b91ed5d077854b0dcf3deb5748dd67db9cf2 | /src/account/migrations/0001_initial.py | c15474bfa5cbd2dca5ab93953c67fdf8bbf6f859 | [
"MIT"
] | permissive | lettoosoft/lettoo-weixin-platform-back | 920fe80f81f9e47bd00f93e51f4859dd8df9a7bc | 757e7620cfa8218677b6e6d9058bccbb87a4eb63 | refs/heads/master | 2021-01-23T16:40:14.659645 | 2014-09-01T02:19:58 | 2014-09-01T02:19:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,421 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'EmailConfirmation'
db.create_table(u'account_emailconfirm... | [
"zhiwehu@gmail.com"
] | zhiwehu@gmail.com |
2e4720e753bc3732ab57849977a72d37e3ea27ec | d5160655af67bb348e2eb7ad83dfc6beb92c9639 | /server/bin/flask | 63064fa476f26e9fc6e29ae6959ba8b293c57a5c | [] | no_license | Pavanisoma/ImageCounter | d01a26a60237a0635ae3dbaf4701c44886e4019c | 31a89323d668672a6a48d23bba3227105d19f6b5 | refs/heads/main | 2022-12-28T20:25:50.402123 | 2020-10-11T21:28:01 | 2020-10-11T21:28:01 | 301,018,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/Users/pavani/Documents/flask-vue-crud/server/env/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"pavani.somarouthu@sjsu.edu"
] | pavani.somarouthu@sjsu.edu | |
f89baa17881057d2791812fb4e6a13d8e002cd60 | 11f1610c9f2e120c6dfcd3d2ceacb5d9998c24a1 | /flasky/lab7/flasky/app/main/__init__.py | 601a75f7856d42dc85a95fff53212c38b733929d | [] | no_license | theguyisnoone/flaskk | c2f759027b840e2c84a29be4e41bf451fedc367b | 0758b52f118568959d7cb2635688591bd77c4bde | refs/heads/master | 2020-03-31T15:51:47.525452 | 2018-11-14T06:19:47 | 2018-11-14T06:19:47 | 152,354,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | #main blueprint
from flask import Blueprint
main=Blueprint('main',__name__)
from . import views,errors
| [
"953258481@qq.com"
] | 953258481@qq.com |
585e0c0605f122c703682e1ebfecea8b7d006ff4 | 6bebdb5a81c03681a7828b35b41f8856ebf43c88 | /recifegrafica/arts_and_orders/migrations/0002_auto_20170130_1824.py | bffb997039aedc90f0d787e14fc55e3bda1cfb62 | [] | no_license | 3ecologias/emporio-farmaceutico | cf4a4dc0f2fe3383694af705184b94dc8122474b | f29105a9a3cfb4c3806cb69195a94ad691e8f9e9 | refs/heads/master | 2021-03-19T18:57:57.284829 | 2017-03-16T22:17:04 | 2017-03-16T22:17:04 | 85,241,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('arts_and_orders', '0001_initial'),
]
... | [
"laqcs@cin.ufpe.br"
] | laqcs@cin.ufpe.br |
958e66963b687952abe54f34a00c7cef057ef540 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/Lambda-Resource-Static-Assets/2-resources/_External-learning-resources/02-pyth/Python-master/ciphers/hill_cipher.py | bc8f5b41b624ca389e5279c713516e329ed4da0f | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 7,549 | py | """
Hill Cipher:
The 'HillCipher' class below implements the Hill Cipher algorithm which uses
modern linear algebra techniques to encode and decode text using an encryption
key matrix.
Algorithm:
Let the order of the encryption key be N (as it is a square matrix).
Your text is divided into batches of length N and con... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
52475c83925cb4a2a169c87ed0c0ac24a278254c | 3b79d12d1f3383adb45aa33f785b1678de3ea168 | /lab5/analysis.py | d02affacc703e766ac523e9460bb0ca295454e9c | [] | no_license | ryanrishi/coen146-computer-networks | df19bba8af57f308955a97baf54fb623dbf08e1c | b0add4284e598ae34cf8c1b59dfaa615e6abb635 | refs/heads/master | 2021-01-21T13:25:19.753755 | 2016-05-18T20:32:36 | 2016-05-18T20:32:36 | 53,754,601 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | #!/usr/bin/env python
from math import log
import sys
"""
Initialize an array to hold frequency of characters
"""
frequency = []
for i in range(256):
frequency.append(0)
count = 0 # total number of bytes read
"""
Read from stdin until stdin is empty
"""
while True:
try:
byte = ord(sys.stdin.read(... | [
"rdrishi12@gmail.com"
] | rdrishi12@gmail.com |
2c9a0ac0ece267189af57b23c3bb60a2e93a04dc | afff4906de0f9d306b65b3781a82edb4ddce6da6 | /PicoCTF/2019/ReverseEngineering/VaultDoor4/script.py | 3a01fc0673277c2977d5b7766d6f566c3b27936c | [] | no_license | FORGIS98/roadToCTF | 9fea7cd0e3551baf177b79164e64b7d1d6a444db | 610ff59ac8ba68ba13eef2e69965fda84b39dfa6 | refs/heads/master | 2022-04-19T18:45:15.377390 | 2020-04-19T15:38:39 | 2020-04-19T15:38:39 | 241,630,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | myBytes = [
106 , 85 , 53 , 116 , 95 , 52 , 95 , 98 ,
0x55, 0x6e, 0x43, 0x68, 0x5f, 0x30, 0x66, 0x5f,
0o142, 0o131, 0o164, 0o63 , 0o163, 0o137, 0o67 , 0o141,
'1' , 'c' , '8' , 'c' , '6' , '6' , '8' , 'b'
]
for x in myBytes:
if(x not in ['1' , 'c' , '8' , 'c' , '6' , '6' , '8' , 'b']):
print(c... | [
"cifradoforgis@gmail.com"
] | cifradoforgis@gmail.com |
af24b9455252c6b9b58c9672b4c0a8a22e0657eb | 334fafa9d87fdd13cc549a662a0cf35c47f2d5e3 | /backend/data/bahn/bahnscript/bahn2.py | 9738bfe0b9f26768f010e9a577d6262182208138 | [] | no_license | Jugendhackt/apartmapp | 27cd7c17e808a6948f017043e61ebd5480e87c89 | 0fded8e1da75a021547b53d68e88e9db524b088e | refs/heads/master | 2021-01-15T14:31:43.959035 | 2014-06-08T12:10:04 | 2014-06-08T12:10:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | import json, psycopg2
filename = "plankgeo_data.json"
def trains(filename):
con = psycopg2.connect(database='appartmapp', user='postgres')
cur = con.cursor()
with open(filename, "r") as data:
json_encoded = json.loads(data.read())
data.close()
# print to screen
print json_encoded[0]['lat']
for entry in j... | [
"me@me.com"
] | me@me.com |
7f0eda9e127f5ae2eed25034e58524dc7081955c | 03a90ee0d517426a052f230c10e4f1ead43ddc97 | /OOP/Intro/6.py | 0c1b8821832a38760d743c91d55d7aeaf7d8920b | [] | no_license | AKNO6/Python3_DataStructure | 13ab8341c915e29050cda1fb0ec1997d5a951fc4 | aed34a12c81d61e666b36c5a0c9e0b4b3c30d2fe | refs/heads/master | 2022-03-01T05:40:13.519176 | 2019-09-23T02:32:02 | 2019-09-23T02:32:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | class Calc:
r=23
def __init__(self,a,b):
self.x=a
self.y=b
def getValue(self):
print(self.x)
print(self.y)
def test(self,m,n):
self.m1=m
self.n1=n
def test1(self):
print(self.m1)
print(self.r)
self.r=67
def test2(self):
... | [
"phpguhan@gmail.com"
] | phpguhan@gmail.com |
cc833d1c0989c341c318177547ee45c3ac6aca36 | 0df3fa2587a356eab2d211f273236a62c1a0c939 | /pylearn2/models/sparse_autoencoder.py | f3c054ab9685e94e20bf5eccfb788bba93386f1e | [] | no_license | poolio/pylearn | 92a4e5cc508c8776f7a5f7e8f837b88edd29b1b2 | 502f777713cdb34357652ecff0086e0d75dc71c7 | refs/heads/master | 2020-12-25T08:50:34.954918 | 2012-12-07T21:05:03 | 2012-12-07T21:05:03 | 7,122,948 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,841 | py | import numpy
import theano
import theano.sparse
from theano import tensor
from pylearn2.autoencoder import DenoisingAutoencoder
from pylearn2.utils import sharedX
from pylearn2.space import VectorSpace
from theano.sparse.sandbox.sp2 import sampling_dot
from pylearn2.expr.basic import theano_norms
if 0:
print 'WAR... | [
"li.yao@umontreal.ca"
] | li.yao@umontreal.ca |
29f368c746a19f3998950246ad42f3b884fe13f2 | 2269649d28dfcda6021ae62d9a49bb7ffd187986 | /rest.py | f800e8dc332792572119943591189d10ba20cf15 | [] | no_license | fbrundu/dimc | 00a830fe940342712fb4ea6d768bcdc1e059b042 | 0bea1e30cfd13ad77b3147a149fc473536ff8447 | refs/heads/master | 2021-06-18T15:47:11.653731 | 2021-01-28T20:02:00 | 2021-01-28T20:02:00 | 168,638,058 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,310 | py | import cherrypy
from cherrypy import log
from lib import get_parameters, handle_error
import json
# import os
import requests
import ssl
# import subprocess as sp
import urllib
from xml.etree import ElementTree
# load configuration into global dictionary
with open("conf/conf.json", "r") as cfile:
pbc = json.load(c... | [
"francesco.brundu@gmail.com"
] | francesco.brundu@gmail.com |
1f3e515e316251c9b0be121a21442fe3cc97b115 | 6ed2f542e1d3cff6c94eb8cd189625f8ad045b9a | /scripts/resize-ds.py | 864431d5d694ed1af61d31a166a97851a590836b | [] | no_license | roman-boursier/katrina | 331a0b3f320c16d288dc795e64108aedc509958a | 14b94ddf6b90c3665cf4ae2bfbe000a1a0398c27 | refs/heads/master | 2022-12-22T10:12:04.540664 | 2020-07-09T22:40:12 | 2020-07-09T22:40:12 | 273,904,052 | 0 | 0 | null | 2022-12-13T04:27:59 | 2020-06-21T12:55:26 | Python | UTF-8 | Python | false | false | 533 | py | from PIL import Image
from resizeimage import resizeimage
import os
i= 0
for file in os.listdir("./peinture_c_hd/"):
#Save output image
outputImg = Image.open(r'./peinture_c_hd/' + file)
if(outputImg.size[0] >= 256 and outputImg.size[1] >= 256):
outputImg = resizeimage.resize_cover(outputImg, [256... | [
"roman.boursier@gmail.com"
] | roman.boursier@gmail.com |
747156b62d51a84b1a7ab38642f1d75f96cb87f3 | ec6313f67565b7e2408bd1206060b5eece562d25 | /app/views.py | 05117c19818f3854d344fa23ae9f212aa2894af2 | [] | no_license | renatomak/crud-python | ba14ac99e75c40fb5e49d9f255cdaeffc4d99447 | 5b191aeaf525feb26c1ebbc231404ec3e00765d4 | refs/heads/main | 2023-08-15T13:17:44.393671 | 2021-09-19T01:18:50 | 2021-09-19T01:18:50 | 408,001,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | from django.shortcuts import render, redirect
from app.forms import CarrosForm
from app.models import Carros
from django.core.paginator import Paginator
# Create your views here.
def home(request):
# data = {}
# data['db'] = Carros.objects.all()
# return render(request, 'index.html', data)
# data = {}
... | [
"renato.mark.silva@gmail.com"
] | renato.mark.silva@gmail.com |
997ab21d5f096e6d92121758955ec180c36f4722 | 6c4f83c048be905ce824f7890ed9aa05166c9155 | /zalore_project/zalore_project/wsgi.py | 8e2772c9d6f6082494a51eca79b815a6ed39a713 | [] | no_license | Tjandra-Putra/zalore-ecommerce | ebf54919b853e23836bb4ee7547067145a2577ef | fb5f57c6b3d43cfe57d2e3986be5c1ac13b28edb | refs/heads/master | 2023-01-20T06:55:25.297778 | 2020-11-26T11:52:53 | 2020-11-26T11:52:53 | 297,910,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for zalore_project project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANG... | [
"tjandraputra2000@gmail.com"
] | tjandraputra2000@gmail.com |
6eca501b543acfb8f36cd94dfddb2243e88dcbd9 | 1f0e700c2c2b2fc7c8001032a75255655c7ba287 | /aula3/tagsHTML.py | d0933a5323069276a146cd6831104df0c3404814 | [] | no_license | Renato2000/FichasPL | 6318ad0edd40c5d3a8347f6326d8d4ad558b6603 | ef50531f366a835a16843498dd4e6c765ef26f1e | refs/heads/master | 2023-05-01T11:17:23.748600 | 2021-05-11T14:41:30 | 2021-05-11T14:41:30 | 341,492,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # Deteção de tags HTML
'''
Exemplo de input:
2
<p><a href="http://www.quackit.com/html/tutorial/html_links.cfm">Example Link</a></p>
<div class="more-info"><a href="http://www.qt.com/lexamples.cfm">More Link Examples...</a></div>
Resultado:
a;div;p
'''
import re
tag = re.compile(r'<([a-z]+)\s*')
tags = []
n = in... | [
"renatoandre2000@hotmail.com"
] | renatoandre2000@hotmail.com |
e60fd91f73ca435922e6eeb21ff36cf4eb2476a7 | 02cad35c0d37dd88d0028a7a97c06d3e7f8de04f | /按w.py | 6f9729225b37fbe63c2c03c0283e648d12057a6a | [] | no_license | MrFengGG/PythonDemos | 2f0e90cab4d2b210ff1fbf0c6f4a1139bed20505 | ff62af2019825781571403ca228438fd9f9917e0 | refs/heads/master | 2022-03-03T05:40:47.495534 | 2019-09-03T02:33:34 | 2019-09-03T02:33:34 | 114,099,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | import win32api
import win32con
import time
while True:
win32api.keybd_event(87,0,0,0)
time.sleep(10)
| [
"fengziyu@apexsoft.com.cn"
] | fengziyu@apexsoft.com.cn |
9a7032fb4a6c3a4c73af2c3f8c631ba5100585c7 | 638b207f3c7706cb0cb9dd1d6cf112ab91f69837 | /0x11-python-network_1/5-hbtn_header.py | c0286a8b9aaaf86889e63216152a5918919ad69c | [] | no_license | NasserAbuchaibe/holbertonschool-higher_level_programming | c30a066dfd4525e936b4121f930c3a63e6d911d6 | 5b0c11423e11bd9201cc057775c099eb0259f305 | refs/heads/master | 2022-12-16T17:15:57.775143 | 2020-09-25T03:00:56 | 2020-09-25T03:00:56 | 259,379,453 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | #!/usr/bin/python3
""" Response header value
"""
import requests
from sys import argv
if __name__ == "__main__":
"""ok
"""
r = requests.get(argv[1])
print(r.headers.get('X-Request-Id'))
| [
"nasser_abuchaibe@hotmail.com"
] | nasser_abuchaibe@hotmail.com |
5632f932f5ba3faf87be97db115dc4e8b62af556 | 2a9246c620b588068e2a82a166f7836bf56938e3 | /JetAnalysis/python/EGammaAnalyzers_cff.py | 6680749b27dda629b3d777655cee0b7f9f41ed14 | [] | no_license | CmsHI/CVS_CmsHi | 6dc20b07a34a8927f1af3d11b59b59058b5ddeeb | 9b9dcd34a1b718e4649ca2ddc34583706dfd5d1c | refs/heads/master | 2021-01-20T15:36:12.324219 | 2013-06-20T13:06:49 | 2013-06-20T13:06:49 | 11,457,757 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | import FWCore.ParameterSet.Config as cms
from CmsHi.PhotonAnalysis.MultiPhotonAnalyzer_cfi import *
multiPhotonAnalyzer.GenParticleProducer = cms.InputTag("hiGenParticles")
multiPhotonAnalyzer.PhotonProducer = cms.InputTag("selectedPatPhotons")
multiPhotonAnalyzer.VertexProducer = cms.InputTag("hiSelectedVertex")
mult... | [
""
] | |
9a8b0d7ad862f8956c21a0b3756db79d5082d5cf | c699fc1741bbf3d1c57e0c4fc9cd2baf691ff636 | /re_basic_pattern_search.py | f5bcbd74c6711bb9fa9ea8b5813139dd9ecd1046 | [] | no_license | akash-mitra/pykarma | 164163209995366f67d9bbbf36eb97cd113fb687 | 7071fde8d31e301ee75f0cf886e896359fe5ee18 | refs/heads/master | 2022-12-16T19:57:03.208551 | 2020-09-08T01:04:46 | 2020-09-08T01:04:46 | 293,665,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | # Given a specific string pattern, check
# how many times the pattern appear in a
# block of text
import re
texts = """
This is a test block of the text where we
need to search for a specific pattern. Then
we nedd to count how many times that specific
pattern has appeard in this block ... | [
"akashmitra@gmail.com"
] | akashmitra@gmail.com |
b3dfed5c1dc9814d3659cf0c53bb2e0736762273 | af5120175ced1e0fb805d3a5d7d8e17a21c91c2a | /backend/legacy.py | 1ecdf1c007195a9b9a2a1b81a8401f2692e33098 | [] | no_license | valgilbert/CryptoDashboard | 1bd79bb41bcd51e7b8d5885762293eda76fdb775 | e143ac9a45a0dd77d7538e6b5ceb11a9b05c7544 | refs/heads/master | 2020-08-30T23:28:54.719894 | 2019-03-01T22:54:03 | 2019-03-01T22:54:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | @app.route('/binance/portfolio_old')
def binance_portfolio_old():
url = 'https://api.binance.com/api/v3/account'
key = get_input_param('key')
secret = get_input_param('secret')
curr_time_unix = str(int(time.time()*1000))
query_string = 'timestamp=' + curr_time_unix
hmac_string = hmac.new(bytes(s... | [
"jiafrank98@gmail.com"
] | jiafrank98@gmail.com |
8ccb82f2bb44ea36b97afd9274410eb99677819a | ac6ba5888ef8a1a8446e2789c62603893521329c | /display_prob_forecasts_mme/display_prob_forecasts_mme.py | 8ba4ec220fbd10f313cddb246b4014e9567dfafc | [] | no_license | ThomasMoreHamill/Multi-model_PQPF | 1c9a23b3f0fc80cbc57ee03502a0b56226ace4c5 | e5772a8e9f45f557a2011471815995d8b7173f11 | refs/heads/master | 2021-01-23T11:20:20.541658 | 2018-01-11T21:02:29 | 2018-01-11T21:02:29 | 102,629,167 | 3 | 5 | null | 2017-09-15T14:45:33 | 2017-09-06T15:57:34 | Fortran | UTF-8 | Python | false | false | 12,496 | py | """ this python script is intended to display precipitation analysis
and forecast information at the 1/8-degree grid mesh scale. This
routine is capable of generating plots of quantile mapped
and dressed, quantile mapped only, and raw ensemble
probability forecasts.
"""
# --- import library routines
... | [
"noreply@github.com"
] | noreply@github.com |
d3ea76fa3f229d69bca38fda67f5e6358d97c8a5 | 8c54c9426e1724cba8fea5184cd0303e63e7b0a5 | /download.py | de3fdb1d13e14fcca33642fd105fc465f5efcedf | [] | no_license | SahuSumanta/DownloadYoutubeVideo | 6faedd0a3ffe6a25fd7fd90d38c4298e3cdafa4b | d4d57dc6a3c8d342fb52bc3546d1a8f0380515b0 | refs/heads/master | 2022-11-25T19:23:01.872403 | 2020-08-04T01:37:13 | 2020-08-04T01:37:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | from pytube import YouTube
link = input("Enter the YouTube Link : ")
yt = YouTube(link)
videos = yt.streams.all()
i = 1
#it used for user convinience
for streams in videos:
print(str(i) + " " +str(streams))
i += 1
stream_number = int(input("enter number : "))
#for the user convienience because user don't n... | [
"smsahu9@gmail.com"
] | smsahu9@gmail.com |
2b6e7be9c0aa37d81d8306f9f2251fe28502fe9a | e87201773bd434dbde007d5ff8023ea536f5376f | /PlumberClient/IncomingDataThread.py | a05c6339738a7fb68d633c0b0b362c7f3aeed5ab | [] | no_license | AharronS/plumber | 95cab02794205cb9c7df0f498ef7414e2d67fca2 | a9ac3eaa140ae1009a1dd0f70b5f6aa4567ce619 | refs/heads/master | 2021-04-12T04:41:36.226545 | 2018-05-08T15:18:33 | 2018-05-08T15:18:33 | 125,761,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,911 | py | import sys
sys.path.append('../')
from scapy.all import *
from Protocol import *
from Protocol.DataPacket import DataPacket
from scapy.layers.inet import IP, ICMP, TCP, UDP
import threading
import logging
def get_plumberpacket_packet(base_proto, magic, pkt):
if IP in pkt and base_proto in pkt and Raw in pkt:
... | [
"Aharron@gmail.com"
] | Aharron@gmail.com |
684bb9b634cf46ead79b715049cf84129c8f2ed3 | 4bc25aaf986e481a533e22a7d74e963a18499593 | /Chapitre_5/visionneuse_1.py | 84b18735cbfc634e5f5e849a5feb1d38c636cf5d | [] | no_license | EditionsENI/python-raspberrypi-3e-edition | c5dd3be2cbc7e52793361f2a601b100011ea535d | f189aefc5ea0b265fd664c8a47dcde6cd110a8b0 | refs/heads/master | 2023-04-10T18:59:35.922958 | 2021-04-19T21:47:29 | 2021-04-19T21:47:29 | 317,060,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,780 | py | #!/usr/bin/env python3
import glob
import sys
import os
from tkinter import PhotoImage
from tkinter import Message
from tkinter import Button
from tkinter import Frame
from tkinter import Label
from tkinter import Tk
from tkinter import BOTTOM
from tkinter import LEFT
from tkinter import BOTH
from tkinter import YES
... | [
"monsieurp@gentoo.org"
] | monsieurp@gentoo.org |
b6a5f93ae739c0c33ece286e0c20d023f7b8f57b | e38f5a3c2448683f7eaf860ddbf8f2454103f544 | /ProducerScripts/Production_Manager.py | 6edc8e0da17829f1101469e0d4b3210b1fdc955c | [] | no_license | ggverma/Console-Log-Analyzer | 772f216a20f41f6f77026439ccad2014088a6e7a | 8fc21164e6a2998c1d3e2153f425a67a68111265 | refs/heads/master | 2020-03-17T02:27:46.123286 | 2018-05-12T23:45:33 | 2018-05-12T23:45:33 | 133,190,971 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | from Logger import Logger as LGR
from threading import Lock, Thread
from AWS_CREDS import Kinesis
Logger = LGR(Lock(), '../LogFiles/Producer/Logs-', 'log_file_')
LOG_FILE_PREFIX = "log_"
from producer_meetups import Producer_Meetups as ProducerMeetups
from producer_reddit import Producer_Reddit as ProducerReddit
from... | [
"gverma@ncsu.edu"
] | gverma@ncsu.edu |
c4aaac47edb884b8174bfdf2ae9a11ec67f53cfe | 518f51e6b79c5f34b4a95c164a191ef7264f30f1 | /show_star.py | 75e7291336e688797ccf1833848ed66effd49666 | [] | no_license | ManishRana11/Basic_Python_Codes | eb466493d433f5f62f6e999b0dfe44aff47b1087 | 3c7cabf1b93a7972019bcd7bd26a4ded3c77f89d | refs/heads/main | 2023-03-11T03:19:49.180036 | 2021-03-01T09:15:24 | 2021-03-01T09:15:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | def show_star(rows):
for i in range(0, rows+1):
print("*" * i)
i = 0
i = i = 1
rows = int(input("Enter number of rows:"))
show_star(rows)
| [
"noreply@github.com"
] | noreply@github.com |
d5da6927dd31fe7ad45d93dbfc11c2071edde7dc | 14bca3c05f5d8de455c16ec19ac7782653da97b2 | /lib/kubernetes/client/models/v1_container_status.py | 1a90953d9050f84b6e1a3a816893dd05898df8f7 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hovu96/splunk_as_a_service_app | 167f50012c8993879afbeb88a1f2ba962cdf12ea | 9da46cd4f45603c5c4f63ddce5b607fa25ca89de | refs/heads/master | 2020-06-19T08:35:21.103208 | 2020-06-16T19:07:00 | 2020-06-16T19:07:00 | 196,641,210 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,938 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteri... | [
"robert.fujara@gmail.com"
] | robert.fujara@gmail.com |
a29bbe7d2c8cb74beba2552e92cb4abc19df3926 | b773ff8595421fb743e55f7bc0190791f2ece7a2 | /backend/home/migrations/0002_load_initial_data.py | eb446cfe1a0a9a986553ca35b2a5b469e122a3f3 | [] | no_license | crowdbotics-apps/msm-tc208-fzjohztpg-12768 | d68746372f604aa5ec805c7c4c480eb451d2b96d | 016bfac5d6497dbd88b49eddc4b8f74788161c83 | refs/heads/master | 2022-12-28T04:01:12.567205 | 2020-10-06T05:28:05 | 2020-10-06T05:28:05 | 301,622,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "MSM-TC208-fzjohztpgt"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "Hom... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
12542080ccca60a90bdf8d0f0071599b072ee0bc | 89c09dcade7c64540f9c7efe8c060f878ee6986d | /whole_model/CrowdNav/crowd_sim/envs/crowd_sim.py | 6a058d104fb0c2afdc11ad72206e6a3ea79c8b1c | [] | no_license | SiChiTong/Navigation-2 | d0f4c0dd5df3be8c9ebd206c5e94ac50c33ff1d1 | 7658ce2a0db8f5fb551af1daf5ed47e0ab453cac | refs/heads/master | 2022-03-31T18:00:59.981618 | 2020-02-25T13:44:04 | 2020-02-25T13:44:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,110 | py | import logging
import gym
import matplotlib.lines as mlines
import numpy as np
import rvo2
from matplotlib import patches
from numpy.linalg import norm
from crowd_sim.envs.utils.human import Human
from crowd_sim.envs.utils.info import *
from crowd_sim.envs.utils.utils import point_to_segment_dist
class CrowdSim(gym.E... | [
"saleh.gholamzadeh@epfl.ch"
] | saleh.gholamzadeh@epfl.ch |
54d9c458c43f93f11ddf1b42c2ea501142e9d7cb | 58dfa1adc54f2d6020f9728e3d8c29aee9a27a42 | /src/lsa.py | 9eaefa77b8f83550811acf53ce72f4a39a8645e4 | [] | no_license | rock417/bddac-task1 | 35da5c81ab5421f843a72526bdc9510a4ccd7a72 | 91dd645468b19d4517b6f7fcd7a0e3c6f290d75d | refs/heads/master | 2021-01-17T21:40:38.583349 | 2014-07-05T11:06:55 | 2014-07-05T11:06:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jul 05 13:03:23 2014
LSA: Latent Semantic Analysis
__init__:
input: word_dict:the dict {word:the label of id}
id_count:the number of the id
build_matrix: construct the matrix of the word and the id
obtain a dict of the word and its label
... | [
"mountlovestudy@gmail.com"
] | mountlovestudy@gmail.com |
45b917165828401e96c1a8c3a7cfa1b5fae52fd8 | 4f7d2beed58fd3f484b1930ca3adeac406576d66 | /config/settings/mlsettings/pyTorchClassificationParams.py | 0f57469851642d8c24fec13f9b798fbbfeec8d2d | [] | no_license | Srinidhi-SA/mAdvisorStgAPIUI | 55515997fff1e30fe22f6a88cc222dcd51816031 | 75653e9f2eef51be771991edd6473f470b344110 | refs/heads/main | 2023-08-24T15:53:27.585277 | 2021-10-08T06:27:49 | 2021-10-08T06:27:49 | 343,185,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76,760 | py | PT_ACTIVATION_ELU_PARAMS = [
{
"name": "alpha",
"displayName": "alpha",
"description": "the alpha value for the ELU formulation.",
"defaultValue": 1.0,
"paramType": "number",
"uiElemType": "textBox",
"display": True,
"hyperpatameterTuningCandidate": Tr... | [
"Srinidhi.Anantharamu@gmail.com"
] | Srinidhi.Anantharamu@gmail.com |
d63a6f917f3b4ae9bc5527725f1ef87f2016b0e7 | e0a3c60948e9b89e4c3e96939fafabe24dbdc8cb | /153. Find Minimum in Rotated Sorted Array/Find_Minimum_in_Rotated_Sorted_Array.py | 7d6dcd66d3989ce52798bdfba04520dcf6d70750 | [] | no_license | hyang012/leetcode-algorithms-questions | 5366f71c4c50e76b2ee27de55ad38010c402374e | dcf84809b80bcd8349f5be87536e212c6d45ba88 | refs/heads/master | 2021-07-15T21:33:56.606145 | 2018-12-02T05:46:58 | 2018-12-02T05:46:58 | 129,002,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Leetcode 153. Find Minimum in Rotated Sorted Array
Suppose an array sorted in ascending order is rotated at some pivot unknown
to you beforehand.
Find the minimum element.
You may assume no duplicate exists in the array.
"""
def findMin(nums):
"""
:type num... | [
"Derek@hongfei-mbp.attlocal.net"
] | Derek@hongfei-mbp.attlocal.net |
9087056cacb16dc0ef9ef078ac17d911f34b3807 | 3616fa9c7fe5b82ada659a373f55b5783a50011c | /find_button_in_a_sample.py | a0d2de293abaed09c9e6632a4a61223bb6d1cb3d | [] | no_license | Mihail12/agileengine_test | 4cd094cc83989f84f1d25f53640ac3e0181262ad | 720928807dc4f180dd01bfbe4db481030eb37b10 | refs/heads/master | 2022-06-10T03:13:01.355202 | 2020-05-07T15:06:11 | 2020-05-07T15:06:11 | 262,081,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,064 | py | import difflib
import re
import sys
from bs4 import BeautifulSoup
def read_file(path):
with open(path, 'r') as f:
text = f.read()
return text
def similarity(normalized1, s2):
normalized2 = s2.lower()
matcher = difflib.SequenceMatcher(None, normalized1, normalized2)
return matcher.ratio(... | [
"spasenkomihail@gmail.com"
] | spasenkomihail@gmail.com |
3d8932294108b58d955a6a001dde9f5ab2567032 | 23ae37ef3fe4dad5fae6bbcd5265cb9dfa5ff032 | /assignment1/cs231n/classifiers/k_nearest_neighbor.py | d805a9ea2b3ef27d7bb42d53c385cc01d2d27f1f | [
"BSD-2-Clause"
] | permissive | ZhiquanW/CS231n-Coursework | 82890ee8999d1e34b98cf9533d14c1e83b576423 | 286089692561c12a82724487ea27db68920fc1f3 | refs/heads/master | 2022-12-09T07:11:37.839763 | 2020-02-26T19:18:28 | 2020-02-26T19:18:28 | 207,199,382 | 0 | 0 | BSD-2-Clause | 2022-12-08T05:21:37 | 2019-09-09T01:31:59 | Jupyter Notebook | UTF-8 | Python | false | false | 9,018 | py | from builtins import range
from builtins import object
import numpy as np
from past.builtins import xrange
class KNearestNeighbor(object):
""" a kNN classifier with L2 distance """
def __init__(self):
pass
def train(self, X, y):
"""
Train the classifier. For k-nearest neighbors t... | [
"zhiquan.wzq@gmail.com"
] | zhiquan.wzq@gmail.com |
144f59685bb10c3354166f6418c4dafff8ef54e3 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/ospf/actxpol.py | eb68c9228b8ae67d290caf769569822d2309626a | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 10,769 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
8f10397edc7ab65ffd5da0b053bac750e2a65976 | 552556631580799b16d0fb31e8f10850383ef3b2 | /ex3/outputs/hmmer/hmmer.DW_32-WS_384.out/info.py | ac221e133c77455ceb86e9ee7263f6d24f0a78b6 | [] | no_license | gregth/NTUA-advcomparch | f19ee414f8b77f749a09f263feb980350f88880d | bc501f427ddf1423f851ce1a052dc335183c5103 | refs/heads/master | 2022-11-14T20:11:49.035503 | 2020-06-27T09:17:43 | 2020-06-27T09:17:43 | 262,262,423 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 18,779 | py | power = {'BUSES': {'Area': 6.71959,
'Bus/Area': 6.71959,
'Bus/Gate Leakage': 0.0180267,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.187981,
'Bus/Subthreshold Leakage with power gating': 0.070493,
'Gate Le... | [
"gregthanasoulas@gmail.com"
] | gregthanasoulas@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.