blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0e15eed74eefbfb62ee5c59fdaeeb1a192affa26 | 1d499072e362a6e47f662ab76cfb9fcfebdabd85 | /people/urls.py | 153221e2debc717f74b3c8c08fd2c1e237d43def | [] | no_license | arsen-movsesyan/passman | a3a6732b54b21a65e0a8a31384e6c08d05ff0769 | 8d8e6e2160cc1d2715a5802767073cdec2422959 | refs/heads/master | 2020-12-29T01:31:03.050903 | 2015-07-28T18:38:59 | 2015-07-28T18:38:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | from django.conf.urls import patterns, include, url
from people import views
urlpatterns = patterns('',
url(r'^person/$', views.person),
url(r'^address/$', views.address_history),
)
| [
"arsen.movsesyan@gmail.com"
] | arsen.movsesyan@gmail.com |
a7784cf4b12ea9bed917ce26508e4c63ce253b6c | 12e42f4f34030b90c1841ece8d4efdd28925394f | /test/functional/wallet_scriptaddress2.py | 1f6b0e35dc51989b468955669c9f87acde059877 | [
"MIT"
] | permissive | GerardoTaboada/EducaCoin | 46d8aa08dd4b3859e59b739713ced08ec0b8c510 | c7f1be5dacd0a10464775c7eeb0eb799fc66cd43 | refs/heads/master | 2020-03-31T20:01:41.768383 | 2018-10-17T21:54:13 | 2018-10-17T21:54:13 | 152,522,009 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,921 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test new Educacoin multisig prefix functionality.
#
from test_framework.test_framework import Bitcoi... | [
"you@example.com"
] | you@example.com |
31d9eeab5c41e89598019b524f1037d1b0babfec | acb4150eab3aaadeb65758465d96133606b2464c | /test_for_etf/otg_test_06_risk3.py | 9caf651126b00cc8c3f0248e7a208965f9d17426 | [] | no_license | shinny-mayanqiong/test-otg-by-tqsdk | 898f6a7ebb9e217f991e0c6342224320eedaf284 | 43ca59e6689e9fc4df5a02fc28b98ad89710c16f | refs/heads/master | 2023-01-11T10:39:11.753594 | 2020-10-23T07:59:57 | 2020-10-23T07:59:57 | 288,365,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from tqsdk import TqApi, TqAccount
from otg_check_helper import check_orders, check_positions, check_account, check_risk_rule, check_risk_data, check_all
from test_for_etf.base_info import bid, user_id, pwd, td_url, test_logger
if __name__ == '__main__':
api = TqA... | [
"mayanqiong@shinnytech.com"
] | mayanqiong@shinnytech.com |
c4005f0e5842c7d14c9e583f81263d0b6cbf2b57 | 10711b2745eb0895c715b24be8359335644bf425 | /manage.py | 156d6e9927fdc92f2a542676d34975cb43bc907a | [] | no_license | Mikalisa/Divaexplorer | 7eed29251182f5f313e9a05595a68e1c607517bf | 7cb92fdc3d9e8cb9fb7f3f1e89de98af9ff1f958 | refs/heads/master | 2021-04-11T04:45:56.106135 | 2020-05-17T14:25:42 | 2020-05-17T14:25:42 | 248,993,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from wsgi import app
from app.extensions import db
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
if __name__ == '__main__':
manager.run()
| [
"mekalissa0@gmail.com"
] | mekalissa0@gmail.com |
0aabe54500d0f9cfbda228c78ae78343c531d611 | 9e91706de538097e9d72f8b5a851e7e3c2e48674 | /utils.py | cd45aacee23db77394bce42b9b7ad8e817730883 | [] | no_license | qwp8510/weather_broadcaster_project | 80ddb552590ecf7c05f3ce96c60310d0c00a427b | d317d45f48fddae4a55a8e8dbad6449323cb1d75 | refs/heads/main | 2023-02-12T03:06:44.110454 | 2021-01-17T06:43:32 | 2021-01-17T06:43:32 | 318,798,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | import json
def get_json_content(path):
with open(path, 'r') as js:
content = json.load(js)
js.close()
return content
def trans_temp_kelvin_to_Celsius(temp):
return int(temp - 273.15)
| [
"44150378+qwp8510@users.noreply.github.com"
] | 44150378+qwp8510@users.noreply.github.com |
d6ec614e25fb084667d466be9b59026d2b31eab5 | 6b9eebe50762d088ae487c25aa982a331bbd4843 | /mydocker/compareserverc.py | 9c65e272143539189d730b7b8055b8db2a77621b | [] | no_license | zjzwjcbj/MyDocker | 67b40e517b9e5cf8aa1b153f4d1c7f5c9f4b2258 | 9229d7ed4b6d1dd2ceeffd3ef4de549bc2dce70b | refs/heads/master | 2021-01-19T21:15:28.371928 | 2016-08-24T02:32:39 | 2016-08-24T02:32:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,150 | py | #-*- coding:UTF8 -*-
import os,os.path
import re
#保存所有C程序文件的路径
pathlist = []
lcslist = []
#遍历目录查找C程序文件
def search_c(root,dirs,files):
global pathlist
for file in files:
path = os.path.join(root,file)
path = os.path.normcase(path)
if re.search(r"s/.*\.c",path):
pathlist.append(path)
#求最长公共子序列
def lcs(a,b):... | [
"koen19940214@gmail.com"
] | koen19940214@gmail.com |
a20690d0585dccfcadc444288fb2a3e9ffe50766 | 7e7a13dd1c22c0e327a429416ee9ca5962626773 | /judge_server/containers/java/main.py | e9b546556806da0a4a9109444c4cca3903f2234a | [
"MIT"
] | permissive | ucpr/onlinejudge | 45cf1a822741f6f391d0c96bb37a24ca813c03d4 | 472b4671dc8fde8bd2f2b139ce61bc52e8137fcc | refs/heads/master | 2020-05-02T15:54:28.445552 | 2019-05-13T09:11:12 | 2019-05-13T09:11:12 | 178,055,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,393 | py | import filecmp
import glob
import json
import os
import sys
import subprocess
from typing import List
from subprocess import TimeoutExpired
from judge_result import JudgeResult
def compile_process():
p = None
try:
p = subprocess.run(
["javac", "/problem/Main.java"],
stdout=subp... | [
"ryubi.102395@gmail.com"
] | ryubi.102395@gmail.com |
74096f3871ce295e10d08f00012c88bc032e9da1 | f972e22df004b419d23b4b03d3c7e42e604a2e2b | /compute/wps/tasks/ophidia.py | 830321413d5463dd764a9eed4384191c13d65a43 | [] | no_license | OphidiaBigData/esgf-compute-wps | 9ec663b1701f2336f08117a6fb0725d71adfe078 | 8dd26dde385fbe861c78e432e0954725d7bf9b18 | refs/heads/master | 2020-04-28T10:20:49.718253 | 2019-02-04T09:46:43 | 2019-02-04T09:46:43 | 175,198,536 | 0 | 0 | null | 2019-03-12T11:39:20 | 2019-03-12T11:39:19 | null | UTF-8 | Python | false | false | 5,490 | py | import json
import os
import uuid
import cwt
from celery.utils.log import get_task_logger
from django.conf import settings
from PyOphidia import client
from wps import WPSError
from wps.tasks import base
__ALL__ = [
'PROCESSES',
'oph_submit',
]
logger = get_task_logger('wps.tasks.ophidia')
PROCESSES = {
... | [
"boutte.jason@gmail.com"
] | boutte.jason@gmail.com |
52781a4315e58f453b73b84942444f1862527b89 | 62e6f4e946c2ebbd28a690338da3facbea0f6fd4 | /clients/cloud/python/producer_ccsr.py | c54844999ae51467fcdcbb2f951bfe0efadee3d6 | [
"Apache-2.0",
"MIT",
"CPL-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | vengky/kafka-docker | d9907ed67cc7cf98b13cbc47c85edcff94ffb4d0 | 6722867402e582da94a8b75a903e5eeb71370db0 | refs/heads/master | 2022-12-24T02:24:27.559234 | 2020-03-03T23:15:06 | 2020-03-03T23:15:06 | 244,807,772 | 0 | 0 | Apache-2.0 | 2022-12-08T04:37:17 | 2020-03-04T04:33:29 | TSQL | UTF-8 | Python | false | false | 3,189 | py | #!/usr/bin/env python
#
# Copyright 2019 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | vengky.noreply@github.com |
1d299fc35a1f1aa5feca93086cb650a6d0e1c2f3 | 8842d6c864f12dc8853d22b8a986b01acdf0e446 | /27_12_15_Nico3/LDA.pyx | c15e5a4eef6680c7665544e3191ce137506966f6 | [] | no_license | yukkyo/ResearchSource | 0d701aa09d3cfc5aae80a022445ecf14c42f0a07 | db497d19aae41ea57d7d6dd245714a477a7a1d4c | refs/heads/master | 2021-01-18T20:01:20.427148 | 2019-06-20T05:17:54 | 2019-06-20T05:17:54 | 24,621,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,397 | pyx | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# cython: profile=True, boundscheck=False, wraparound=False
from __future__ import division
cimport cython
from libc.stdlib cimport rand, RAND_MAX
from libcpp.vector cimport vector
from libc.math cimport log, exp
from cpython.mem cimport PyMem_Malloc, PyMem_Realloc, PyMem_... | [
"yukkyo12221222@gmail.com"
] | yukkyo12221222@gmail.com |
9fc5b6e12ba33400052ec9e08c251ff1626f1477 | eb3683f9127befb9ef96d8eb801206cf7b84d6a7 | /testing/test_programs/numpy/basic_numpy/arrays/stypy_test_files/numpy_array_broadcasting_4__type_data.py | 99ec5d09a07932264cc57dd68828680219e497e5 | [] | no_license | ComputationalReflection/stypy | 61ec27333a12f76ac055d13f8969d3e0de172f88 | be66ae846c82ac40ba7b48f9880d6e3990681a5b | refs/heads/master | 2021-05-13T18:24:29.005894 | 2018-06-14T15:42:50 | 2018-06-14T15:42:50 | 116,855,812 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | from testing.code_generation_testing.codegen_testing_common import instance_of_class_name
test_types = {
'__main__': {
'r4': instance_of_class_name("ndarray"),
'r5': instance_of_class_name("ndarray"),
'__name__': instance_of_class_name("str"),
'r2': instance_of_class_name("ndarray")... | [
"redondojose@uniovi.es"
] | redondojose@uniovi.es |
a1091ac2ec151af94c7b3cfb6e2420db81816dc8 | 7311b8d31c5a152e697b1f0ff218db0b9291c604 | /dna.py | 63191116b386c6bcab172eb3e22cfbbd9fe4c683 | [] | no_license | mgxmajewski/dna | 71a43bf18020f4cc2e3b30b1604668f136b4dbab | 5fd4fb024cbb9a5997539f65b5a00510328ddf9e | refs/heads/master | 2023-02-24T11:08:30.135657 | 2021-01-30T22:59:44 | 2021-01-30T22:59:44 | 332,850,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,109 | py | import sys
import csv
# Read database of people as a dictionary
if len(sys.argv) < 3:
print("Provide 2 arguments")
exit(1)
people_database = sys.argv[1]
with open(people_database, "r") as f:
people_reader = csv.DictReader(f)
people_list = list(people_reader)
dna_str = []
... | [
"mgxmajewski@gmail.com"
] | mgxmajewski@gmail.com |
e3a350e9daa6bb356997dec03b833179fc1eb34e | f2579545965c70b7e6cb28248b561c107960d5ea | /bin/track_task.py | f0d4ee43fd50fb89648c673ab49a8c33f038594b | [] | no_license | lao19881213/GLEAM-X-pipeline | f5b79b0636145c7bba115c299252f2c9abc879ec | ea98c4ab0d76a2cd77f2238104ee6f78ac093650 | refs/heads/master | 2020-04-19T08:46:57.565628 | 2018-11-19T07:42:30 | 2018-11-19T07:42:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,729 | py | #!/usr/bin/env python
__author__ = "PaulHancock & Natasha Hurley-Walker"
import sqlite3
import sys
db='/group/mwasci/nhurleywalker/GLEAM-X-pipeline/db/GLEAM-X.sqlite'
def queue_job(job_id, task_id, submission_time, obs_id, user, batch_file, stderr, stdout, task):
conn = sqlite3.connect(db)
cur = conn.cursor... | [
"nhw@icrar.org"
] | nhw@icrar.org |
13e6dab25939004b31a87b72b1bff7a81f948bef | b576fb0efac1cdb48fa484796033aa904b86104e | /webserver.py | 34a7432f6b6c1f0575be28b3637c6c034624fb89 | [] | no_license | i-xingxu/web_servver | b5aa2462248f57510b6d141a239b87bc49239223 | 18f03dff3a8083e2f0a7bd6bec695c5edfe06a26 | refs/heads/master | 2020-03-18T16:02:00.291854 | 2018-05-26T08:54:38 | 2018-05-26T08:54:38 | 134,943,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | #coding=utf-8
from http.server import HTTPServer, BaseHTTPRequestHandler
import json
data = {'result': 'this is a test'}
host = ('localhost', 8888)
class Request(BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header('Content-type', 'application/json')
self.en... | [
"3.14159265358979"
] | 3.14159265358979 |
d52f369279b61c549cd45ca50f35e600bd083990 | 4032f53b1b780a9ae30d2c7defa29ccc48059d3e | /mysite/wasteweb/migrations/0004_inputanop.py | 3b965da510a972953a51e2e175a566c439d7e747 | [] | no_license | kimmy28/django-spdsk-repo | 33d308de176777adf0db56d64608ac25b3083fe2 | e6a479d9ad2c515e65532eea52c5181a8d2462b5 | refs/heads/master | 2020-06-23T16:32:46.689254 | 2019-07-25T15:08:05 | 2019-07-25T15:08:05 | 198,681,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | # Generated by Django 2.2 on 2019-05-17 18:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wasteweb', '0003_delete_angkutansampah'),
]
operations = [
migrations.CreateModel(
name='InputanO... | [
"47594667+kimmy28@users.noreply.github.com"
] | 47594667+kimmy28@users.noreply.github.com |
656ea44a2013c49708dc47316d8f89de585a7142 | 48ada3e6aebcc5b6b364208303716133f35a502d | /MyProject/myapp/templatetags/my_filter.py | 26e530ce5441ee95bf897397841bc0f2118f1748 | [] | no_license | sabujgolder/HostingPython | 6610586be12abb7059831611c505138f0b7ada55 | 2159d135445f57327b689b98543905a6e3c78870 | refs/heads/master | 2023-08-21T22:26:37.152965 | 2021-10-16T13:33:20 | 2021-10-16T13:33:20 | 417,837,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from django import template
register = template.Library()
def my_filter(value):
return value + " | Custom Filter "
register.filter('custom_filter',my_filter)
| [
"sabujgolder9334@gmail.com"
] | sabujgolder9334@gmail.com |
9b6ea46c7719d9ae63ed88c912bf32fb6f626a7b | 21978faf4bf1cc8700e152f5e0784abfc5a3a518 | /PythonProject/Pomodoro/sample/pomodoro.py | a221e3af68580fdd2ad53ed5ed5eabf02ec4449e | [] | no_license | AbelDeLuna/Coding-Examples | b093c5c46dd85cdb853b0db0afc4bdac4cfd35b7 | aa105589ca0aa0db32451e084aa07bfd8b5e2814 | refs/heads/master | 2020-03-07T16:41:40.052061 | 2019-04-17T00:12:03 | 2019-04-17T00:12:03 | 127,590,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | from pomodoroUI import display
if __name__ == "__main__":
x = display() | [
"lunaabel9@Gmail.com"
] | lunaabel9@Gmail.com |
2e128223a11a22dfa56ab09f5a1f881794efade3 | 9ffdc5aace2d4c904c39c5f9af21a2165bb258a2 | /codes/forward_result.py | 5da67a5ca72e703cfe6a6f4b0a8a6598058b9e73 | [] | no_license | Qirui-Y/UDC-Residual-and-Dense-UNet | 971d287432c9682d4a4e4f07cb137f7cecc8436e | 220162dfed14e78feb97c56a7a9762013d21d7a2 | refs/heads/master | 2022-12-09T01:12:23.262885 | 2020-09-09T03:41:20 | 2020-09-09T03:41:20 | 293,988,585 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | import torch
from models import create_model
import options.options as option
import numpy as np
import utils.util as util
visualization = False
if visualization:
import matplotlib.pyplot as plt
opt = dict()
opt['model'] = 'sr'
opt['is_train'] = False
opt['dist'] = False
opt['train'] = {}
opt['gpu_ids'] = 1 # ... | [
"2068325534@qq.com"
] | 2068325534@qq.com |
db420fb80be68c7b5e1dd776d883c1a88d15e964 | dbb320f62c06433b2ca92ee3dd51a6bde8527143 | /xml_test.py | 6d74d88310bc73f6cbadb61d24b4f3ea2c985b5e | [
"MIT"
] | permissive | pranavdave893/Leetcode | 3c051f4510d8907f04534b27c1fa76602f205852 | 1f30ea37af7b60585d168b15d9397143f53c92a1 | refs/heads/master | 2021-06-10T12:12:34.782733 | 2021-03-22T00:37:44 | 2021-03-22T00:37:44 | 140,044,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | from xml.etree import ElementTree as xml
from xml.dom import minidom
def prettify(elem):
"""Return a pretty-printed XML string for the Element.
"""
rough_string = xml.tostring(elem, 'utf-8')
reparsed = minidom.parseString(rough_string)
return reparsed.toprettyxml(indent=" ")
root = xml.Element("U... | [
"pranavdave@Pranavs-MacBook-Pro.local"
] | pranavdave@Pranavs-MacBook-Pro.local |
7c58362f81d2eebf86e77c4f52201dabd123be2d | e7b7cc34f77c71e61aa0fa05bcc62f54fc2fc0e1 | /AlgorithmCodeTemplates/algorithm/sliding_window_examples.py | 634c355c9efa3418e81eeafb9f04d218da1225cd | [] | no_license | sevenhe716/LeetCode | 41d2ef18f5cb317858c9b69d00bcccb743cbdf48 | 4a1747b6497305f3821612d9c358a6795b1690da | refs/heads/master | 2020-03-16T16:12:27.461172 | 2019-04-22T13:27:54 | 2019-04-22T13:27:54 | 130,221,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,002 | py | from collections import Counter
from collections import defaultdict
# [3] https://leetcode.com/problems/longest-substring-without-repeating-characters/
# variation with no pattern
def lengthOfLongestSubstring(s):
# create a default dict to maintain state
counter = defaultdict(int)
count, start, end, res =... | [
"429134862@qq.com"
] | 429134862@qq.com |
5a6867fe5bae4b919908de7cd9fc977d193bb0db | 32c4dde56cc039ba0e02012deb51419293306c5d | /addons/tasquescbm/models/todo_task_model.py | 26085da726d5b5c83912fb2d803bbae509f4178f | [] | no_license | damarillom/odoo | c5172003682d0c4725c20b5aeefcb11756fe33e4 | c138f176357f86ddef26b4f35d82becc45634f32 | refs/heads/master | 2020-05-03T04:57:25.958730 | 2019-04-02T15:00:34 | 2019-04-02T15:00:34 | 178,436,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | # -*- coding: utf-8 -*-
from odoo import api, fields, models
class TodoTask(models.Model):
_name = 'todo.task'
name = fields.Char(help="What needs to be done?")
is_done = fields.Boolean('Fet?')
active = fields.Boolean('Activa?', default=True)
date_deadline = fields.Date('Deadline')
urgencia =... | [
"danielamarillo1@hotmail.com"
] | danielamarillo1@hotmail.com |
97f6be1a83a2f41e8e428878ad403e804c34a963 | 158a2e97d2c043938b27f8f9ae144c1583ea99f4 | /Numerical_Sine_Tests.py | 1bd3b8d5bcce14da3d0303d410788cc8c34dee07 | [] | no_license | Lancaster-Physics-Phys389-2020/phys389-2020-project-searbhan | fe3686bc612e4459e8f5dd4a42f7d31c12b183ea | 79dfda496c62e003895b434c0eec218804166d32 | refs/heads/master | 2021-06-12T21:27:12.614669 | 2020-04-09T16:32:29 | 2020-04-09T16:32:29 | 254,405,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | import numpy as np
class Sine:
def __init__(self, l, b, k, T, p, M):
self.l = l
self.b = b
self.k = k
self.T = T
self.p = p
self.M = M
#self.wv = wv
def value(self, wv):
l = self.l
b = self.b
k = self.k
T = self.T
... | [
"noreply@github.com"
] | Lancaster-Physics-Phys389-2020.noreply@github.com |
733afa4caeb88d41ba189770c059f29d7f3f07c7 | f22d5d94297c9cf167f45a1f938c8753ddbdee75 | /dsa/ArrayUnion.py | cdd1814037a5dbfbe28f4390664830d91865cb7a | [] | no_license | harsham4026/DSA | 084a045ef662666ebaf6ccf0e2c5680b6aa5aa60 | cb216dd87ac30db498ca9aede65e02a405575deb | refs/heads/master | 2021-06-27T15:57:43.061730 | 2019-08-01T02:44:25 | 2019-08-01T02:44:25 | 151,821,424 | 0 | 0 | null | 2020-10-13T10:58:13 | 2018-10-06T08:50:00 | Python | UTF-8 | Python | false | false | 1,800 | py | def union_of_arrays(arr1, arr2, m, n):
result_array = []
i = j = 0
while i < m and j < n:
if arr1[i] < arr2[j]:
i += 1
elif arr2[j] < arr1[i]:
j += 1
else:
result_array.append(arr2[j])
i += 1
j += 1
while i < m:
... | [
"noreply@github.com"
] | harsham4026.noreply@github.com |
2b2524d483e90d56b4695f6a957abea80f42236d | d1064259419c6d22edee3131bd24b5cde78139c3 | /node_grabber.py | 88b89ecb516432629cf6d528658da11f4828dcd0 | [
"MIT"
] | permissive | jonathan-bravo/BioScripts | 945f1edba933f76352d105f1245b27a4c1ed0c37 | 77959a2feb4304fd3595a59fbbbd768a3e4c4831 | refs/heads/master | 2022-10-05T12:43:09.680005 | 2019-03-27T05:05:03 | 2019-03-27T05:05:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,464 | py | #!/usr/bin/env python3
import re, csv, sys
# Usually a .fasta or .fastq file
# - Scaffolds.fasta
inFile = sys.argv[1]
# Nodes that you want to grab from your file
# - 1,2,3
putative_nodes = sys.argv[2]
# The name you want for your output file
# - putative.fasta
outFile = sys.argv[3]
nodes = []
contigs = []
sequence ... | [
"hakmonkey@gmail.com"
] | hakmonkey@gmail.com |
f52fb6152bba23a4c0a005ca2f666c5e95d07473 | 6d80ce7a1f44ddf5741fd190ddfe0d9be8e5f162 | /data/lmdbMaker.py | 0081b73ccebdd68d83571914b0342cb8bcb9817a | [
"MIT"
] | permissive | dun933/FudanOCR | dd8830ca4b8ebb08acd31326fcf5aa3c961886a0 | fd79b679044ea23fd9eb30691453ed0805d2e98b | refs/heads/master | 2021-04-03T19:50:47.646099 | 2020-03-16T08:43:59 | 2020-03-16T08:43:59 | 248,391,401 | 1 | 0 | MIT | 2020-03-19T02:23:11 | 2020-03-19T02:23:10 | null | UTF-8 | Python | false | false | 6,516 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Please execute the code with python2
'''
import os
import lmdb
import cv2
import numpy as np
def checkImageIsValid(imageBin):
if imageBin is None:
return False
try:
imageBuf = np.fromstring(imageBin, dtype=np.uint8)
img ... | [
"576194329@qq.com"
] | 576194329@qq.com |
7219c2288997ad16c5bd77381b8e4bad11e2966c | ff447903cad14d1a2c4e6e47388533aed1e238d9 | /boson_sdk_cpp/FSLP_Files/UART_HalfDuplex.py | 2d670edb19257bcd99847492f5df0441254f0e94 | [
"MIT"
] | permissive | tonyngophd/vuir-zoom | cafbc1a1eb1a1450efb602632808c03d0329ba90 | ba74d0ad1f3c5cc510c91c0cd9327c09f51a9415 | refs/heads/master | 2023-03-24T01:33:38.629294 | 2021-03-05T03:14:27 | 2021-03-05T03:14:27 | 306,504,465 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,847 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 31 14:28:13 2015
@author: jimamura
"""
import ctypes, os, sys
import _ctypes
try:
from .Factory_BOSON_GECKO import *
from . import Factory_INIUtils#, BASE_BosonGecko
FOUND_INI = True
except:
FOUND_INI = False
class UART():
def __init__... | [
"contact@suas.com"
] | contact@suas.com |
5065ee22d47e1ca22302a179abfa8374deba99b3 | ab3de6d9684e4aabffbe251440a23f46eb2dde69 | /tests/tune/iterative/test_asha.py | 30dad89496c1e7e99c02ee301d9684b9ee15e30e | [
"Apache-2.0"
] | permissive | Kamran151199/tune | 00063261b04bf18ab0e591445445eb09097c3757 | bf2288ddcb29c8345d996a9b22c0910da9002da1 | refs/heads/master | 2023-09-05T15:53:54.549870 | 2021-10-07T05:22:30 | 2021-10-07T05:22:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,714 | py | import math
from typing import Any, Dict, Iterable
from fugue import FugueWorkflow
from tune import optimize_by_continuous_asha
from tune.constants import TUNE_REPORT_METRIC
from tune.concepts.dataset import TuneDatasetBuilder
from tune.iterative.asha import ASHAJudge, RungHeap
from tune.iterative.objective import Ite... | [
"noreply@github.com"
] | Kamran151199.noreply@github.com |
d64431f4d4e960083c785d8ffcac9f5e91ad10c2 | c38f9e69e56afe9c2602ce3d0a432c386a187224 | /automate_testing.py | c28e4dfb29d272ed076aa39d11929e8f879b7f6b | [] | no_license | yuji3w/holmes-project | 8a7632f71f595b79b9c66c06d928679fbedae054 | 6c14522e0d6d383749bd89d7acc419b451130185 | refs/heads/master | 2020-08-08T04:14:41.733695 | 2019-11-08T21:05:50 | 2019-11-08T21:05:50 | 213,709,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | import subprocess
def make_pal_arg(minpallen, maxpallen, gaplimit, nummismatches):
return """palindrome -sequence sequence.fasta -minpallen {} -maxpallen {} -gaplimit {} -nummismatches {} -outfile nc_000913.pal -nooverlap""".format(minpallen, maxpallen, gaplimit, nummismatches)
run_other_py_file = "python automate_... | [
"yujiewang@berkeley.edu"
] | yujiewang@berkeley.edu |
25ea3ccf9694bbff46ace1ccdf8a44257540ba69 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/myfavouritekk_vdetlib/vdetlib-master/utils/log.py | 331282eee61fb52e30ff5a83431ec74d430c69e0 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 175 | py | #!/usr/bin/env python
import logging
logging.basicConfig(
format='[%(asctime)s %(process)d %(filename)s:%(lineno)s %(levelname)s] %(message)s',
level=logging.DEBUG)
| [
"659338505@qq.com"
] | 659338505@qq.com |
96e6aab2bb0e71cb5457b158b81c4e21000ec23b | b6387b3ac9750cfae3892ea31ebd3d4f7cab456a | /JIO_Data/jitter_calc_HL.py | a1f67993bcd3c135a9e2e0fe14471d6dbaae38ac | [] | no_license | msoumyakant14/Network-Data-Analysis | ee7d8cd001b9039f33748e8c5902d62829ede7ee | 1d499bd2a3e5040e51d0f3c17115a717e2a44c7a | refs/heads/main | 2023-01-18T16:41:41.526670 | 2020-11-18T18:01:56 | 2020-11-18T18:01:56 | 312,952,945 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | def time_to_num(t):
lnt = len(t) - 3
n = 0
e = 1
while t[lnt]!='=':
n = e*(ord(t[lnt])-ord('0')) + n
lnt-=1
e*=10
return n
file_name = input()
f = open(file_name)
cnt = sm = 0
l = f.readlines()
ln = len(l)
t_prev = -1
i=2
while i < ln-6:
if l[i]=="Request timed out.\n":
t_prev = -1
else:
if t_prev==-1... | [
"msoumyakant14@gmail.com"
] | msoumyakant14@gmail.com |
c1d75bd1bfbc749864be9da119d324e476608263 | 38e1a897ce68bfd71aacd932dc428d7c4b56af0e | /code_supl/split_pos_neg.py | ccca651a202bd453672e6758cf27c7ace3f28bd2 | [] | no_license | rnaimehaom/drug-combinations | 456629e5236ec5f18afa3e3e20e7e02f0f397c58 | 14a32f814c01309ecf61a1713b7cae88bfdc06a4 | refs/heads/master | 2023-03-27T05:36:48.290544 | 2020-08-19T16:23:33 | 2020-08-19T16:23:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,657 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Dec 5 18:12:49 2013
@author: alexey
"""
def split_pos_neg(filename):
extension= filename[-4:]
ih = open(filename, 'r')
oh_pos = open(filename[:-4] + '-pos' + extension, 'w')
oh_neg = open(filename[:-4] + '-neg' + extension, 'w')
for line_number... | [
"ostrokach@gmail.com"
] | ostrokach@gmail.com |
d1b1b3d66f06ffaa78d56207e13518d805c554db | 20076d53b42f209c9fe1bd99887af5d4119751ea | /my_solver/oliver/reader/__init__.py | d34ab9131eeca7d8210d1bf124c31cc7380576e0 | [] | no_license | OliverGeisel/sudokusat-example | 4ccd27196ebda17970b6ad7f74d0d6f0e098785d | 923967fabbe02c4c0551ffa2503783be247f8184 | refs/heads/master | 2020-06-11T07:44:06.447780 | 2019-07-30T23:20:21 | 2019-07-30T23:20:21 | 193,894,796 | 0 | 0 | null | 2019-06-26T11:53:01 | 2019-06-26T11:53:00 | null | UTF-8 | Python | false | false | 20 | py | from . import Input
| [
"geisel.oliver@googlemail.com"
] | geisel.oliver@googlemail.com |
59c0ad6c5e3cfdc1314c6767c4df3e9a8083fb5c | 7f6b8d34cb20cb1292517c9c0d875545f5b20a81 | /api/demo/admin.py | 12dbb5d709b59c5346ec04c4a8e75033ce7fbde5 | [] | no_license | tanvir002700/Drf-React-Boilerplate | 6ad4e02b6aad749b3b045cd1e80a1a131ba5b7b2 | 51b5b837c53dfc49adef060327445fa80bb31684 | refs/heads/main | 2023-01-10T20:02:48.828842 | 2020-11-08T18:21:08 | 2020-11-08T18:21:08 | 306,245,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | from django.contrib import admin
from rest_framework import views, permissions
from rest_framework.response import Response
# Register your models here.
class DemoApiListView(views.APIView):
permission_classes = (permissions.AllowAny, )
def get(self, request):
return Response("World api root")
| [
"tanvir.hasan@codemarshal.com"
] | tanvir.hasan@codemarshal.com |
9fd2562128b2f1703bc4534e945dcf1cd35ef57f | 6258003a64ebad1749986adda185e938ddad1780 | /CNN_Model.py | 87fd6ac904c59b9bb7cf441f1e385bf05f63472d | [] | no_license | sndychvn/LSTM_CNN-Sentiment-Analysis | eae089ff1e14a0db43e38426f2abdacfecf908f6 | 26e8c660f3577a572c7b26802b64d374169f0009 | refs/heads/master | 2020-04-15T00:33:05.998947 | 2019-01-15T21:51:23 | 2019-01-15T21:51:23 | 164,244,257 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,523 | py | import tensorflow as tf
import numpy as np
import re
from IPython import embed
import random
class CNN(object):
##Used an embedding layer, a Convolutional Layer, max-pooling and Softmax layer
def __init__(self.sequence_... | [
"sndy.chvn.fr@gmail.com"
] | sndy.chvn.fr@gmail.com |
54cadc4665ed355d3939850244a60b5432bbb967 | 2d7a5303f065f7dd9783ac49b8b5d0db31e4318c | /train_mnist_with_classifier.py | 740b4e28b343784419063f828df69ebb5869cfda | [] | no_license | DEBADRIBASAK/SPAIR-Improve | 9a28a195db7aaae23ce6e7006ce03eec9755d9f6 | e86ced42e1a704acc8ad1a44dfce787d6153f391 | refs/heads/master | 2023-07-18T04:36:35.047449 | 2021-09-03T06:40:55 | 2021-09-03T06:40:55 | 217,029,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,841 | py | import argparse
import sys
import os
import time
import torch
import math
import numpy as np
from torch.utils.data import DataLoader
import torch.optim
from torch.nn.utils import clip_grad_norm_
import torchvision.transforms as transforms
from torchvision.utils import make_grid
from torch import nn
from torchvision im... | [
"noreply@github.com"
] | DEBADRIBASAK.noreply@github.com |
2fab57f9d7a90e69947876842d351300f5d5583a | 8f6e1a91f4adafa1e27e89315a51a195d7945548 | /Library/ArcETL/arcetl/proximity.py | 26b9149a96c442cae01529dff4743c84c2b04a04 | [] | no_license | denkide/ColumbiaCarto | d85a37b19f40209ee1bff66bc41eb2bb3fb66774 | f57a3444fee7c31d43594eb21868ddc7da005e68 | refs/heads/master | 2020-05-29T19:48:53.575856 | 2019-07-26T03:37:38 | 2019-07-26T03:37:38 | 187,425,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,393 | py | """Analysis result operations."""
import logging
import arcpy
from arcetl import arcobj
from arcetl import attributes
from arcetl import dataset
from arcetl.helpers import unique_path
LOG = logging.getLogger(__name__)
"""logging.Logger: Module-level logger."""
def id_near_info_map(
dataset_pat... | [
"denkide@gmail.com"
] | denkide@gmail.com |
047a2b3f43f4f244a819b6f31e88745c8ab398e0 | 5ae88a0a197a52086edffe9c031bc424634b55d4 | /AizuOnlineJudge/ITP1/6/B.py | 7b3cc8dc426a3470c63010fe4519c4bd638fe9e7 | [] | no_license | muck0120/contest | 1b1226f62e0fd4cf3bd483e40ad6559a6f5401cb | de3877822def9e0fe91d21fef0fecbf025bb1583 | refs/heads/master | 2022-07-17T17:31:50.934829 | 2020-05-18T09:55:30 | 2020-05-18T09:55:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | N = int(input())
S = [i for i in range(1, 14)]
H = [i for i in range(1, 14)]
C = [i for i in range(1, 14)]
D = [i for i in range(1, 14)]
for n in range(N):
suit, num = input().split()
num = int(num)
if suit == 'S': S.remove(num)
if suit == 'H': H.remove(num)
if suit == 'C': C.remove(num)
if sui... | [
"mutsuki.s.0120@gmail.com"
] | mutsuki.s.0120@gmail.com |
3e850dd8c41c4527bbd702500f8bd7d0a8b489fa | f77c1c438029613ef9c48ef7cc6f4c567e9db177 | /208_implement_trie_add_search_prefix.py | d8a7066f619fb5334cb070f5dfabd2baa21368a2 | [] | no_license | rsumukha/leetcode | af002e58fc760496e52909c3bd6d7296c1f49137 | ab8617fc8cc50cdfef736c189ccb09adc687398a | refs/heads/master | 2022-04-01T09:47:02.029967 | 2020-01-28T16:10:07 | 2020-01-28T16:10:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,758 | py | class TrieNode(object):
def __init__(self, char):
self.val = char
self.children = collections.defaultdict(int)
self.count = 0
self.end = False
class Trie(object):
def __init__(self):
"""
Initialize your data structure here.
"""
self.root = TrieN... | [
"sumukharadhakrishna@gmail.com"
] | sumukharadhakrishna@gmail.com |
e13fab0514aa87a22f4efac43760c2d877c23adb | 64a99161204051f6f2abb9e8d88a5508952c0115 | /examples/saveLoadV1/create_save.py | 61f2ff9f7627dd79c32b0c968455c4711de7a2ad | [
"MIT"
] | permissive | suny-downstate-medical-center/netpyne | d1ba5a258ba63c8ad8b0fa91a6d8bbd99f2e8d28 | 9d08867205b776bbb467554c49df9d8aba57dcf2 | refs/heads/development | 2023-08-23T22:48:26.020812 | 2023-08-16T14:20:23 | 2023-08-16T14:20:23 | 48,733,333 | 18 | 18 | MIT | 2023-09-11T16:01:19 | 2015-12-29T07:12:08 | Jupyter Notebook | UTF-8 | Python | false | false | 164 | py | from netpyne import sim
import params
# Create network and save
sim.create(netParams=params.netParams, simConfig=params.simConfig)
sim.gatherData()
sim.saveData()
| [
"salvadordura@gmail.com"
] | salvadordura@gmail.com |
60307f994b3735554e67452f6e4b146fdea0ef7a | 3354e0a6b998b017befae119118ae90d3c5e17aa | /linkedlist.py | c1c113e40fdd329f82896b5eb1c40f6bce004a36 | [] | no_license | ElvinKim/seocho_2019_07 | 14ac829f170668c1f67950399eb5260ab160ae1e | 77f4eb58ac8edd3932d26a2cec1f44b2de6daffb | refs/heads/master | 2020-06-19T10:21:29.803586 | 2019-08-02T13:11:08 | 2019-08-02T13:11:08 | 196,676,128 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,450 | py | import time
class Node:
nodeNext = None
nodePrev = ''
objValue = ''
blnHead = False
blnTail = False
def __init__(self, objValue = '', nodeNext = None, blnHead = False, blnTail = False):
self.nodeNext = nodeNext
self.objValue = objValue
self.blnHead = blnHead
... | [
"noreply@github.com"
] | ElvinKim.noreply@github.com |
e0d7aee5595ccee3e0b07d6015e6a424c555d2ae | 51a4ac8fa703adbdacac13aceb9503b915473d14 | /1주차 토요일/소개글.py | 06e75ca34e5063946c4876259eeec39de6fc38cd | [] | no_license | Ha-rin-kim/Python-basic | 0f6218bafbd277ddbb84c955a1b8caf065307de4 | 3eb7edd4ac53d82dfe0aa6d98699a389fbec208f | refs/heads/master | 2022-03-01T03:48:21.082802 | 2019-11-10T11:59:34 | 2019-11-10T11:59:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | #사용자의 이름,나이,성별을 화면에 출력하는 프로그램
#사용자로부터 이름,나이,성별을 입력받고 변수에 저장
이름 = input('이름 입력:')
나이 = int(input('나이 입력:'))
성별 = input('성별 입력:')
#지정된 포멧 문자열에 변수값을 넣어 화면에 출력
소개글 = '''
안녕하세요 저는 %s 입니다.
나이는 %d이고 %s입니다.
''' % (이름,나이,성별)
print(소개글)
| [
"noreply@github.com"
] | Ha-rin-kim.noreply@github.com |
e1faa83daf6594b6eb818f019733137ed653914a | 4fed03c9ad291e480c56c1da10d9a68e149649e1 | /articles/apps.py | 8af61786cc1ee08ea718a8a12ede5d7bd96b56f1 | [] | no_license | nikakoss1/upw | 8b304e8785f03ee2d6123c5fc427557dd10fd3b3 | 035a349d54cb76e4cf4b29f12eadd4f4744a14ef | refs/heads/master | 2020-04-28T20:46:59.651359 | 2019-03-14T05:49:00 | 2019-03-14T05:49:00 | 175,556,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | # -*- coding: utf-8 -*-
from django.apps import AppConfig
class ArticlesConfig(AppConfig):
name = 'articles'
| [
"i@6009.ru"
] | i@6009.ru |
fca14b53660a6678c7d2568d55ff5cb89c3ff21a | 3db32047e1ac68b0e7d7b858b28050f1100e1efb | /0002/py0001.py | 00e80ee862792f6f082508fb87e6762f5f1af313 | [] | no_license | vinlinch/python_exercise | d2bf69b594da98871539d19977f77df51223b91a | f124228a394f7181bee903f63b744e3425a69821 | refs/heads/master | 2021-09-01T09:26:14.520462 | 2017-12-26T07:26:49 | 2017-12-26T07:26:49 | 115,397,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | #!python3.6.1
# -*- coding: utf-8 -*-
# author: https://github.com/vinlinch
# 0001 做为 Apple Store App 独立开发者,你要搞限时促销,
# 为你的应用生成激活码(或者优惠券),
# 使用 Python 如何生成 200 个激活码(或者优惠券)?
import string
import random
def gene_active_code(number_of_code, str_len):
# generate a str list with 26 upper alphabeta and 10 digits
c... | [
"jielove1@hotmail.com"
] | jielove1@hotmail.com |
412c22f8ce5aa90d526e82e1a80ae3e8f5a2db1b | 4cd14b2d74a01bb81549fa31a2a8b499ed2a599e | /backend/tests/server/test_app.py | a886d82dfd69480cc1225a2c7f1cba03924798d0 | [] | no_license | JackEngelmann/chessengine | 2ffb32412d1885f157ffb5ca6b332996b3472202 | 2b00c2d4403a1e677f5af8cfaa95dd166336e4e8 | refs/heads/main | 2023-02-11T21:04:04.716811 | 2021-01-09T19:47:58 | 2021-01-09T19:47:58 | 325,601,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,390 | py | import pytest
from chessbackend.server import app, data
from chessbackend import engine
from flask import json
def test_create_game(client):
response = client.post("/game")
data = json.loads(response.data)
assert data["id"] is not None
def test_get_game(client):
create_response = client.post("/game"... | [
"jack@tau2logic.com"
] | jack@tau2logic.com |
3c5ef95c496f2a494a9753f4a17c7b50b148cb24 | ba19b5449d72611c48e9395caa808b6ec02f25fc | /HW 2.py | 0db6e2a5b578bbdf665956727921918ff3e794e5 | [] | no_license | osbetel/CS-110-Coursework-2014 | 0a0de475271ce70b8bd109d6e8e5bd68267bef63 | 5059c0d163efbbaae92a6f812f9380e03a5d6caf | refs/heads/master | 2021-01-13T05:25:36.512553 | 2017-02-09T10:09:58 | 2017-02-09T10:09:58 | 81,435,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,089 | py | #Written by Andrew Nguyen; July 10, 2015
#I did attempt the extra credit portion of this lab.
#This program is written as a marketing tool to help determine how much the total cost of software will be
#, granting discounts based on bulk buying.
#2-10 packages = 10%
#11-20 = 20%
#21-30 = 30%
#31 or more = 40%
#FIRST PA... | [
"osbetel@gmail.com"
] | osbetel@gmail.com |
04e23dd0f9dc7fc5bfaba404a9c4618ef737ab5d | ce44b65c5269ee44c2c8a3f44dc689030ff58f44 | /config.py | 5798aa39ac0cd0a5f9a5b87e1589d3f62c978f5b | [] | no_license | judywawira/TotoCare | 360d07152d9f45436c921bffcadb656757fbe79e | 236b9f70901175130ecc2d5370eb8285ac7cbc9b | refs/heads/master | 2021-06-27T03:47:24.508682 | 2017-09-16T00:01:22 | 2017-09-16T00:01:22 | 103,587,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from flask_pymongo import PyMongo
from pymongo import MongoClient
WTF_CSRF_ENABLED = True
SECRET_KEY = 'Put your secret key here'
DB_NAME = 'TotoCare'
DATABASE = MongoClient()[DB_NAME]
POSTS_COLLECTION = DATABASE.posts
USERS_COLLECTION = DATABASE.users
SETTINGS_COLLECTION = DATABASE.settings
DEBUG = False
| [
"judywawira@gmail.com"
] | judywawira@gmail.com |
cd3c833ec59d6f5b7be30c93793164e6ee290006 | ce2beb0878797a8ae88e07e56fcf8c2d0402ac5f | /e075/e75.py | 34035636e3a791493beb0a1ecdcce3f4c6382c83 | [] | no_license | cslarsen/project-euler | 2de49ad9be9b0bfe7c5b22c0e2272992e8f07151 | fd1c7664891a5503aedaccb936b66eeb87d6085b | refs/heads/master | 2020-07-08T00:17:29.605171 | 2015-09-14T17:45:23 | 2015-09-14T17:45:23 | 6,430,645 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | import sys
import math
from fractions import gcd
def triple():
for m in range(1,1300):
for n in range(1,m):
if gcd(m,n)!=1 and ((m-n) & 1)!=1:
continue
yield m*m-n*n, 2*m*n, m*m+n*n
yield 0,0,0
MAX = 1500000
found = {}
seen = set()
t = triple()
while True:
x,y,z = t.next()
if x+y+z >... | [
"csl@sublevel3.org"
] | csl@sublevel3.org |
30b8c1c76638d1d10d64aa615e685919637c8132 | b75f80da7065e631e4850bc4d8dddef86437265d | /python/functions.py | d87969fbe7123db7ccf3ee1ff30864728da2ffce | [] | no_license | eab03/wcc | 099644d14993847bcad96a08dcc20547d7910efe | 5df95d33c5fcca62d74d0d95c2498bc6cec3e49d | refs/heads/master | 2020-07-05T09:17:30.421733 | 2017-01-02T21:11:29 | 2017-01-02T21:11:29 | 67,425,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,192 | py | #def multiply(a, b):
# result = a * b
# return result
# Test the function:
#solution = multiply(4, 5) # Invoke multiply giving it the arguments 4 and 5
#print(solution) # Expected: 20
# Test the function
#print(multiply(4,5)) # Expected: 20
# Test the function
#print(multiply(4,5)) # 20
#print(multiply(9,11)) ... | [
"elizabethbright@Elizabeths-MacBook-Air-2.local"
] | elizabethbright@Elizabeths-MacBook-Air-2.local |
0b3aab841a1ebc987afbdaf6c188eeb5e3c68645 | 4512eaea837a5d95f84e87fd62f07f3bf3ee8ad6 | /scripts/read_alignment/snakemake_ChIPseq_MNaseseq/Snakefile | a896fdcd9ec13933e7586e0bb9fc590472e24ed9 | [
"MIT"
] | permissive | ajtock/Wheat_DMC1_ASY1_paper | 53a631189b075fb053e20a6b8d38d9841e38e496 | f4188d6fda80f8147ac9ddcdbccaab1d439e1b73 | refs/heads/master | 2023-06-04T11:06:30.644413 | 2021-06-17T10:45:00 | 2021-06-17T10:45:00 | 299,987,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,621 | # Snakemake workflow for aligning paired-end ChIP-seq or MNase-seq reads to a reference genome
# Chromosome sizes file below ("data/index/wheat_v1.0.fa.sizes") must exist
# before running snakemake
# e.g., in "data/index/" run:
# samtools faidx wheat_v1.0.fa; cut -f1,2 wheat_v1.0.fa.fai > wheat_v1.0.fa.sizes
# Usage ... | [
"andytock@gmail.com"
] | andytock@gmail.com | |
46c205a3f435959086389638a9fd7fefd957308c | 99fa82f29a5b50a5595985acc460a0afaa6099a8 | /app/shopdj/sale/migrations/0004_invoice_total.py | a4f08cde3a2ed9f2afa42d4898d917d64e08dcca | [] | no_license | nnocturnnn/university_rep | a47cce9e29f96e9cc33293c76321e298e7628a4d | 4a8cd42f53dd112640a37ad5ff815ecf09ce1c25 | refs/heads/master | 2023-04-20T09:44:24.144760 | 2021-05-11T16:16:07 | 2021-05-11T16:16:07 | 304,661,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # Generated by Django 3.0.5 on 2020-07-02 05:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sale', '0003_auto_20200701_0535'),
]
operations = [
migrations.AddField(
model_name='invoice',
name='total',
... | [
"vikchehovich@gmail.com"
] | vikchehovich@gmail.com |
9bda9c11c95d6d32ce7a1eebfd736f5f67170ed6 | d76bc60b5d538b5f4dd435e5b8f78d83b7211992 | /Without_Doubt_Project/Django_Server/crawling_App/urls.py | 4677ff7f2b7d8e0d9577570d9e5b3155c17198d6 | [] | no_license | icona2/crawling | 792f5478db639c0df862a14bbd1d042bb423f871 | c88a0d442ca8afeb8072b48542663b52816fe71c | refs/heads/master | 2020-04-22T03:42:20.245586 | 2019-02-27T05:05:36 | 2019-02-27T05:05:36 | 170,097,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | from django.conf.urls import url
#from django.urls import path, include
from . import views
urlpatterns = [
#url(r'^$', views.index, name='index'),
url(r'^$', views.input),
url(r'^realtime.html$', views.index),
url(r'^realtime_google.html$', views.index2),
url(r'^realtime_Top20.html$', views.top),
... | [
"lyou1@hanmail.net"
] | lyou1@hanmail.net |
0d3dcd3a21ccefd0f1a1dfbce2f6cea60b4365f9 | 3ef70fe63acaa665e2b163f30f1abd0a592231c1 | /stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_checkers.py | 4111f2169895e93fbeeaf8e2819916a1a8a017e1 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | wistbean/learn_python3_spider | 14914b63691ac032955ba1adc29ad64976d80e15 | 40861791ec4ed3bbd14b07875af25cc740f76920 | refs/heads/master | 2023-08-16T05:42:27.208302 | 2023-03-30T17:03:58 | 2023-03-30T17:03:58 | 179,152,420 | 14,403 | 3,556 | MIT | 2022-05-20T14:08:34 | 2019-04-02T20:19:54 | Python | UTF-8 | Python | false | false | 31,498 | py | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for L{twisted.conch.checkers}.
"""
from __future__ import absolute_import, division
try:
import crypt
except ImportError:
cryptSkip = 'cannot run without crypt module'
else:
cryptSkip = None
import os
from collections imp... | [
"354142480@qq.com"
] | 354142480@qq.com |
cb84423f5e4d70a65e70740238373d1f57053190 | c33cffb022fd41f54bf77d52a3fef10bdd96e141 | /bishe/analyze_trend/windowed_MSEvectorRegress.py | 51befd5131e4318b6ab4a6a2192940dfb3277a4d | [] | no_license | comeusr/bishe | 2452f4246ce3b4ed3478a41b25af9d891214d37a | 51f71108017cef940f0ccd5d122ceb6f23bfb587 | refs/heads/master | 2020-05-17T00:04:44.192278 | 2019-07-10T02:15:12 | 2019-07-10T02:15:12 | 183,387,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,559 | py | # -*- coding: utf-8 -*-
import pandas as pd
import numpy as np
import statsmodels.api as sm
import statsmodels.tsa.api as st
path = r'C:\Users\Ziyi Wang\Desktop\bishe\realize wangyi\bishe\data\best_trend\window_best_trend-22-2019-04-23(3).csv'
oil_price_path = r'C:\Users\Ziyi Wang\Desktop\bishe\realize wangyi\Data\Bre... | [
"wonziyi@126.com"
] | wonziyi@126.com |
a718663d2498261adff0e5a36c87fa7d6e782feb | c99fd2b8402d80dc11422c48ecce568ab896dc19 | /hw6_twitter.py | ff6768b43ae5a8995335ad1a8b9e9489264f7e6d | [] | no_license | ettienne010005/W21_HW6_Twitter | 9401514cc5d3a9aa7e1b5bfc2b76b3b65a8d017c | f0f6347df79fdb5b9edf37a7945c1cb1c4188beb | refs/heads/main | 2023-04-02T04:44:03.931381 | 2021-03-29T23:11:03 | 2021-03-29T23:11:03 | 349,137,726 | 0 | 0 | null | 2021-03-18T16:09:24 | 2021-03-18T16:09:23 | null | UTF-8 | Python | false | false | 7,480 | py | #########################################
##### Name: Tzu-Ching Lin #####
##### Uniqname: tzlin #####
#########################################
from requests_oauthlib import OAuth1
import json
import requests
import operator
import secrets # file that contains your OAuth credentials
CACHE_FIL... | [
"ettienne010005@gmail.com"
] | ettienne010005@gmail.com |
27a27b8ff6cfbb7f0b7e72510b910997df65cc2c | 139f055b1c391dfd9e7fa0ee316d9a100768ffe9 | /2.3-sorting-vdj.py | 6a08b44395bc9c48a3b3c04f09744fc332849658 | [] | no_license | yanmc/macaca-antibodyomics | c6a5d174c35c252f4839378a8375c0e193834171 | 401992008c42fefc0fe1645bc0d6d000aa23122a | refs/heads/master | 2020-04-22T12:01:47.629490 | 2016-03-01T03:16:29 | 2016-03-01T03:16:29 | 66,706,526 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | #!/usr/bin/env python
# encoding: utf-8
"""
2.3-sorting-vdj.py -i infile -org orgnism
Created by Mingchen on 2014-09-01.
Copyright (c) 2014 __MyCompanyName__. All rights reserved.
infile: the input file, orgism_get_vdj_add.txt
orgism: human,mouse or rabbit...
"""
import os, sys, glob, re, csv
from Bio import SeqI... | [
"mcyan90@gmail.com"
] | mcyan90@gmail.com |
a5114ef7e1f2739128c2bf274bc7af9d47e46c91 | 4e5de397a7bac9e777074daaadb890f4315752a2 | /athenaCL/libATH/audioTools.py | 9a6e52cf8456020ece47d4066a9827636dd751d9 | [] | no_license | ericahub/athenacl | 60c5757e11f65f65eeb26c40125dac0e1636d86b | 96ac2a6859dedf08e8a9aebbed4ef348a66ac707 | refs/heads/master | 2021-01-10T12:38:04.869889 | 2011-12-17T20:49:19 | 2011-12-17T20:49:19 | 44,901,312 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 41,703 | py | #-----------------------------------------------------------------||||||||||||--
# Name: audioTools.py
# Purpose: General audio processing tools
#
# Authors: Christopher Ariza
#
# Copyright: (c) 2004-2010 Christopher Ariza
# License: GPL
#--------------------------------------------------... | [
"christopher.ariza@13181586-94c9-11de-97c9-d5744c8abab9"
] | christopher.ariza@13181586-94c9-11de-97c9-d5744c8abab9 |
65b42d3a6a40c63cc71527b1616cd9e566132322 | a317e87c54e040f77d2b45358b24c60a8698e0df | /LearningDjango/LearningDjango/settings.py | 118df243d49802c613d2f0ef760e107ccdf2b788 | [] | no_license | beiou315/HelloDjango | 4fc9dfb6d13a9422fd63dbffb09d29e8a0db1a13 | c4c6db5a66316a310260504b309eee2fa59e04fd | refs/heads/master | 2021-01-24T19:23:59.564479 | 2018-09-11T01:25:40 | 2018-09-11T01:25:40 | 123,240,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,121 | py | """
Django settings for LearningDjango project.
Generated by 'django-admin startproject' using Django 1.11.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
i... | [
"beiou315@163.com"
] | beiou315@163.com |
28be41e4af0eff7f6b8524c4520483337cf24def | 66061cb2ab51f7ba78fd414347b622f39a5df292 | /rbm.py | 47ad6c961aeef9e4a1953dcb69a699341e0f9ab0 | [] | no_license | jackal092927/theano_ML | 8e28b4652ab0dd90f4ec94f70864030040ed9f2b | 2acb0db4885de0cea677debbbebed22f32d17187 | refs/heads/master | 2021-03-13T00:01:12.266842 | 2014-10-14T02:50:11 | 2014-10-14T02:50:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,962 | py | """This tutorial introduces restricted boltzmann machines (RBM) using Theano.
Boltzmann Machines (BMs) are a particular form of energy-based model which
contain hidden variables. Restricted Boltzmann Machines further restrict BMs
to those without visible-visible and hidden-hidden connections.
"""
import cPickle
import... | [
"jackal092927@gmail.com"
] | jackal092927@gmail.com |
2b6845c73b61c375a47a8357235a0008e3427bdc | 9d9f11ce0dc77a5b3ee3a9358a27b2c7d454e1f8 | /apps/users/urls.py | 367db33489c0b9eb006412202c738d1b48e449a1 | [] | no_license | samuelki/django-login-and-registration | e1f0f9c0d0415a033b35a83d6ad16112afa3bbc1 | c50af3f05c9fbde9df343431ce61fa1cc229d1bd | refs/heads/master | 2020-04-02T05:17:46.238036 | 2018-10-22T00:03:05 | 2018-10-22T00:03:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^users/register$', views.register),
url(r'^users/login$', views.login),
url(r'^home$', views.home),
url(r'^logout$', views.logout)
] | [
"samuelki62@gmail.com"
] | samuelki62@gmail.com |
036be4f0e66df507bc9729da8b7dfcb53d6adff5 | 31bd0383e29e31e89653b421840593cffc61464f | /app/migrations/0002_auto_20210718_1139.py | 031966e5efa039a935798ad18ad42b04ebca47f4 | [] | no_license | ndrohith09/School-django | 32945086e315df0e024e8a3386755b67254c7f0a | a7664a260447cfcaaac9fa4228d0b1d73a3e8a00 | refs/heads/master | 2023-06-26T22:56:07.204672 | 2021-07-19T12:53:23 | 2021-07-19T12:53:23 | 387,463,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # Generated by Django 3.1.1 on 2021-07-18 06:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='admission',
name='gender',
fi... | [
"ndrohith09@gmail.com"
] | ndrohith09@gmail.com |
504b693788900fa8fe43fab87c1075ce5593cf3b | 6f2675eee55b7ebc5adf9c2176ced8cb59fc64d4 | /dataInterSrvKm/bak/20200113版本半接口半直连/billBoli600.py | 729c1391bc030f8184f66d7eb48bc789ce7a4078 | [] | no_license | wildmanwang/proDataInter | 8c2b65fa96ad45b21165d997b1769a28e12fc42a | f5a1f1fb195c66bf586bd999465c7e3b16453369 | refs/heads/master | 2023-06-07T11:57:16.763251 | 2023-06-03T08:54:56 | 2023-06-03T08:54:56 | 157,559,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,164 | py | # -*- coding:utf-8 -*-
"""
"""
__author__ = "Cliff.wang"
from superBillDCB import SuperBillDCB
from interMssql import MSSQL
import time, json
class BillBoli600(SuperBillDCB):
def __init__(self, sett):
super().__init__(sett)
self.station = [1,2,3,4,5,6,7,8] # 可用基站
self.db = MSSQL(sel... | [
"cliff.w@qq.com"
] | cliff.w@qq.com |
080121153af9a45d9084cd5f5233cdfb821defe7 | 23af1e2b1f29be62926ed6a8e39b4462f07f5f2b | /atcoder.jp/abc086/abc086_b/Main.py | 2caffef31e6e42003299d780de9ca6f6f538b840 | [] | no_license | IKDrocket/Atcoder | 8ef382577a377a8f35890b24a49f681f00f2f047 | fc19379de2ddf62a61b67eda33bf8aa29d503685 | refs/heads/main | 2023-02-09T11:58:00.353304 | 2021-01-02T12:06:20 | 2021-01-02T12:06:20 | 318,876,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | a,b = input().split()
num = int(a+b)
for i in range(1,10101):
ans = i*i
if num == ans:
print("Yes")
break
else:
print("No")
| [
"ikdrocket@IKDrocket.local"
] | ikdrocket@IKDrocket.local |
5f17ba6614701f36534f286259cb976251bdb34c | fa72697feef44fdba1bf4e5c8064d25b65a6cb83 | /topo/diamond.py | 91559a7110a0c52ff2a46456a501017f4ea03302 | [
"Apache-2.0"
] | permissive | ravel-net/Faure | 6de4c022c078db579c13187cb83b79486004bb74 | 2f98c732e371ab14d001cd20e49a3f8fbcbf3d99 | refs/heads/main | 2023-08-12T11:12:21.078931 | 2021-10-04T17:24:47 | 2021-10-04T17:24:47 | 402,385,298 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from mininet.topo import Topo
class DiamondTopo(Topo):
def __init__( self ):
Topo.__init__( self )
h1 = self.addHost('h1')
h2 = self.addHost('h2')
s1 = self.addSwitch('s1')
s2 = self.addSwitch('s2')
s3 = self.addSwitch('s3')
s4 = self.addSwitch('s4')
... | [
"fangpinglan0116@gmail.com"
] | fangpinglan0116@gmail.com |
c31db9e2643724ed66331b721d6a77560de6209a | 06167f625464c898ac95e752694a5931b9a55a55 | /src/admission/migrations/0001_initial.py | bacece5228ade3f6e66d8337c4fae54aa72fdb6d | [] | no_license | nazmul629/school_management_system | 16e2003b652b14174d6f59b4682ca366275f3207 | d0ff759645d9ba8f88d2aa63dbc867e7713455ed | refs/heads/master | 2021-06-19T18:06:56.539454 | 2019-04-20T12:35:24 | 2019-04-20T12:35:24 | 182,307,917 | 1 | 0 | null | 2021-03-20T08:15:23 | 2019-04-19T18:22:11 | CSS | UTF-8 | Python | false | false | 1,699 | py | # Generated by Django 2.0 on 2019-04-19 16:39
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='class_section',
fields=[
... | [
"nazmulhossain.qnh@gmail.com"
] | nazmulhossain.qnh@gmail.com |
9a7d14e536288cb4f31c5d1e079d4321e8ee53be | a5df1b1f24d1d0a8dd1fad8408bdfd82b88fe021 | /3.leetcode/7.Python 随机数生成.py | 0e324aa3f4f2671108e3033946507c6f4d1a94f9 | [] | no_license | safe-pro/DevSevOps | 7c80e4f872e46b8bea224560b70209f2204621e8 | 1f5402e1bfddd008e844b81c2662580d1eb04c3f | refs/heads/master | 2022-03-25T23:54:38.432718 | 2020-01-04T01:35:20 | 2020-01-04T01:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | # -*- coding: UTF-8 -*-
# 生成 0 ~ 9 之间的随机数
# 导入 random(随机数) 模块
import random
print(random.randint(0, 90)) | [
"1229216571@qq.com"
] | 1229216571@qq.com |
83a9f73fd0d79f7c343ce343751d0259403323c4 | 4b1d5c4e17e16b87d6f3f613f12037bd051f3389 | /django_app/urls.py | d443d2c247bd486da86975776eaec72705e18527 | [] | no_license | Kun07/practice | 320b8e4608d2b03dd92a239117bd98744c5ef6a9 | 3d54f78082ecf053c800f55576ca57d148511ffd | refs/heads/master | 2023-03-26T15:53:26.114958 | 2021-03-24T12:04:13 | 2021-03-24T12:04:13 | 350,783,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.urls import url, include
from django.conf import settings
from django.conf.urls.static import static
from users import views as user_views
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^register/', user_v... | [
"moon.kunal32@gmail.com"
] | moon.kunal32@gmail.com |
3f675d6a2dbe464b9ebac1862cbbfd5c698ff968 | 56593402ffb61df9456dca4042507dccf427ba66 | /Allstate/Supervised_Models.py | 2cce16bd82d772bc3b15734261ba48a504f004d8 | [] | no_license | jon-mqn/allstate_comp | b21e3c7488c6f586fa1b98a5792e6f78720e39b1 | 474b1450549218b20781703db7b96e15b4835a1f | refs/heads/master | 2021-06-07T09:15:16.739688 | 2016-10-28T21:29:26 | 2016-10-28T21:29:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 28 15:04:47 2016
@author: jarektb
"""
import pandas as pd
class Supervised_Models:
def __init__(self, pandas_object):
self.pandas_data = pandas_object
def getLinearRegressionModel():
%matplotlib inline
import numpy as np... | [
"noreply@github.com"
] | jon-mqn.noreply@github.com |
4fe6555c2378c5acf140a59ab1b3df05901e15b5 | a731a228ce92db118f300bf6f6ce9b093b5799e9 | /tr.py | afc442b96555f1707167add6d434d3c29e66d948 | [] | no_license | sujuma/pyfiles | 46b31967589ac3cf6cc252378196764a4c242e17 | 39d4e6d4bbb2299aef7e65caa517c2523cad093c | refs/heads/master | 2020-03-28T10:44:25.640210 | 2018-09-10T11:20:08 | 2018-09-10T11:20:08 | 148,140,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | fruits = {
"first": "Apple",
"second": "Grapes",
"third": "Banana"
}
del(fruits["first"])
print(fruits)
| [
"sujumapro@gmail.com"
] | sujumapro@gmail.com |
7e8a8bb81e0a0470aaf10abf3e04291116d40773 | 59f5ec33f1055059f53aa04ee9aa1282282d2c04 | /depends/depends_communications.py | 9e82f742eb4d01f772becbc8ff6fe2ccfb2b97e0 | [
"BSD-3-Clause"
] | permissive | mottosso/dependsworkflow | fcd96c774fc668ae6794b3f528d7b94f16f99049 | 5ed30d2e29d97a1baad1068837fbee54988c8175 | refs/heads/master | 2021-01-15T18:41:33.852577 | 2014-08-21T16:15:42 | 2014-08-21T16:15:42 | 23,190,989 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,410 | py | #
# Depends
# Copyright (C) 2014 by Andrew Gardner & Jonas Unger. All rights reserved.
# BSD license (LICENSE.txt for details).
#
from PySide import QtCore, QtNetwork
"""
This module is responsible for inter-process communication between any two
external programs. It uses The QtNetwork module's QTcpSocket to send ... | [
"gardner@dhcp243-143.itn.liu.se"
] | gardner@dhcp243-143.itn.liu.se |
904a5871b8f4528bb33480917751fdc269b31db5 | 05d186de4b6ddd3f14f19f3958da3869945a938a | /wbddata/admin.py | 41f5dd62857b5d64e5abe2bd612a76d70a4f9338 | [
"MIT"
] | permissive | JimmyBisese/wbd | 6f30bc443497027070c7110e3b2a030ddc8d810d | 9ee92325ee45fb2ab1116829f4be4338c4adf88c | refs/heads/master | 2020-03-31T22:07:20.837845 | 2019-02-26T15:47:17 | 2019-02-26T15:47:17 | 152,606,580 | 1 | 1 | null | 2018-10-11T14:45:47 | 2018-10-11T14:37:27 | CSS | UTF-8 | Python | false | false | 113 | py | from django.contrib import admin
from .models import HUC, WBD
admin.site.register(HUC)
admin.site.register(WBD) | [
"james.bisese@tetratech.com"
] | james.bisese@tetratech.com |
6e7a8849b45d4e7ef435085fefc41204dd11f94a | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/e2e/jit/test_Maxout_0.py | 34ed3c5b0baf796738184d4faee74db735487de9 | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 608 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
test jit cases
"""
import os
import sys
sys.path.append(os.path.abspath(os.path.dirname(os.getcwd())))
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(os.getcwd())), "utils"))
from utils.yaml_loader import Ya... | [
"825276847@qq.com"
] | 825276847@qq.com |
0276f84d950f1b2718985231db5b12da64ee0a89 | ca7b428b4f132b7e18fa55618fff0a7de8357f7a | /src/dronet_tello/scripts/tellopy/__main__.py | d6fe9d222c64c2d956f274c365020dae4ecca4c5 | [] | no_license | MissMeriel/ROS_Tello | 75de6c67431183687af9052939f60e1497804fc3 | b443de5be9d5e6309eb1208223eccdb13c8d3828 | refs/heads/master | 2022-12-10T09:13:12.953462 | 2019-04-10T16:55:29 | 2019-04-10T17:29:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | import time
import tellopy
def main():
tello = tellopy.Tello()
print('Taking off')
tello.take_off()
time.sleep(5)
tello.throttle = 0.01
# tello.pitch = -0.5
tello.yaw = 1.0
time.sleep(0.5)
print('Landing')
tello.land()
time.sleep(3)
print('Shutting down')
tello.shu... | [
"meriel.k.stein@gmail.com"
] | meriel.k.stein@gmail.com |
3b64a3c6ee3f5c6919080f693dfef0fa7820a4f6 | a2afd4f59fac3b80ccc0719b01432ff806d7fa06 | /agrochemistry/agrochemistry/settings.py | a08a4b02aa9b6d22203a5b81fa2220a1b1da8534 | [] | no_license | MalikDeveloper2077/agrochemistry-telegram-bot | d1d9514173b3760500436dc4ffd09f1dcf0a91ba | d282187f6ddd5cf8f9b4ceaf4819a898c32e7176 | refs/heads/main | 2023-04-09T12:22:17.212439 | 2021-04-24T12:23:52 | 2021-04-24T12:23:52 | 349,708,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,426 | py | import os
from pathlib import Path
import environ
env = environ.Env(
DEBUG=(bool, False)
)
environ.Env.read_env()
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve(strict=True).parent.parent
# Quick-start development settings - unsuitable for production
# See ... | [
"kalik@MacBook-Pro-Malik.local"
] | kalik@MacBook-Pro-Malik.local |
4ba2b4fb8af7065418d277f2d0e77dfde2042af3 | 4bb095cd25e48089df0aae93ae7b4526261d480f | /PythonProgramming/Statements/ForloopConcept.py | 50b31306a8cbc2d9b20dcafbdc9efca0ee4cd219 | [] | no_license | DevMindG/PythonProgramming | 064dee87fd8513f88306ae71605bbf30806f5b04 | 6c0a2fa01615fdbd298a07d89d6865e6a8c9c051 | refs/heads/master | 2022-03-27T18:33:39.855597 | 2019-12-21T01:00:57 | 2019-12-21T01:00:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,696 | py | # in operators
# can be checked a value whether there is a list, tuple or string using in
print(5 in {1, 2, 3, 4})
print("hel" in "hello world")
print(10 in [1, 2, 3, 4])
print(not 4 in (1, 2, 3))
# for loop in list
list1 = [1, 2, 3, 4, 5, 6, 7]
for element in list1:
print("Element", element)
# sum list usi... | [
"boblerry4@gmail.com"
] | boblerry4@gmail.com |
4178f805bf8b8945847140f631ea24653a9a02e1 | afaba6f428d704154cabccb2d30908e0535a8ca5 | /locust/locustfile.py | aa4cea9d7ec34621bf3a83d296bd33f5f980e028 | [
"MIT"
] | permissive | sebadiaz/conferences | a67d7c3c2a1c6a3cf8f180e135ad9f8baf6e020b | 9c43b703993f30cd518ea099c1882c35c445bc20 | refs/heads/main | 2023-01-24T09:34:20.054624 | 2020-11-21T14:04:25 | 2020-11-21T14:04:25 | 314,824,334 | 1 | 0 | MIT | 2020-11-21T13:58:48 | 2020-11-21T13:58:47 | null | UTF-8 | Python | false | false | 484 | py | from locust import HttpUser, between, task
from locust.contrib.fasthttp import FastHttpUser
class WebsiteUser(FastHttpUser):
wait_time = between(5, 15)
def on_start(self):
self.client.post("/valider-email", {
"email": "julien.dauphant@@beta.gouv.fr"
})
@task
def ind... | [
"julien.dauphant@beta.gouv.fr"
] | julien.dauphant@beta.gouv.fr |
0b923417f2c83d1b943f897a0e067b827cc724c3 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/6d0b0f8338f7ffbc761ddc05cbdc620a99901074-<format_item>-fix.py | a42ce4e3bcf3cd32eb44b6e67fee46a95e4f787a | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | def format_item(self, item):
d = item.as_dict()
containers = d['containers']
ports = d['ip_address']['ports']
resource_group = d['id'].split('resourceGroups/')[1].split('/')[0]
for port_index in range(len(ports)):
ports[port_index] = ports[port_index]['port']
for container_index in range... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
8e7b22bb92df39bfeee73706b780e1272342e27b | e401c09c53fea6f31a1a52fbffc437b08f4ea0b0 | /hassio/dock/util.py | 87cd76020f394e59292f0d14af145a0b6f301727 | [
"BSD-3-Clause"
] | permissive | pvizeli/hassio | a73df2b2a21636cd52fe260741c92b11d752d128 | 90030d3a28ce88ba49afa1109f3b83d2e3e22fb0 | refs/heads/dev | 2020-12-03T05:15:04.394380 | 2017-06-29T05:57:04 | 2017-06-29T05:57:04 | 84,926,758 | 9 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | """HassIO docker utilitys."""
import re
from ..const import ARCH_AARCH64, ARCH_ARMHF, ARCH_I386, ARCH_AMD64
RESIN_BASE_IMAGE = {
ARCH_ARMHF: "homeassistant/armhf-base:latest",
ARCH_AARCH64: "homeassistant/aarch64-base:latest",
ARCH_I386: "homeassistant/i386-base:latest",
ARCH_AMD64: "homeassistant/am... | [
"noreply@github.com"
] | pvizeli.noreply@github.com |
3b02e36fbb830f8964ea3d2b0b8cd302a2612b81 | 4d159e82c285dabb29dfe1e82e958af1cc289b0a | /千峰的每天/第六天12.18/代码/Day06/10.函数概述.py | 7b7eaec5a688a59ec865c1204a00bafe07cff4fd | [] | no_license | xvjingcheng/superman | 9954ce65b1c8bf21f7b49746ceb6cc5a4d1fc7af | 73ec3a7a45173cea7f2d9ca568f38250a17ad3c5 | refs/heads/master | 2020-04-22T03:51:57.077810 | 2019-02-11T11:26:05 | 2019-02-11T11:26:05 | 170,055,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | # a = 3
# b = 5
# print(a + b)
def add2num(a, b):
print(a + b)
add2num(3, 5)
add2num(5, 8)
"""
函数的定义和格式
def 函数名(参数1,参数2,参数3... ...)
方法体(执行具体功能的代码)
return 返回值
"""
| [
"17853729677@163.com"
] | 17853729677@163.com |
ed9371292dfeeabe4c40569766673eb4d76627e7 | b3d68a4e7f93d8827afb2c7d3f6fd3c0da24cec4 | /FRS_v1/cnn.py | 41b3f4b92e1d618fcbe8b952bed74ff90dc6ba04 | [] | no_license | wasteee/Embedded-Image-Processing-final | 1ab4ced49ccb97c853a91d704064f6ad6310f26a | 3236f61e6bedffed4860a942aff981fb6b933baa | refs/heads/master | 2022-11-04T05:12:28.340991 | 2020-06-21T10:53:08 | 2020-06-21T10:53:08 | 267,253,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,609 | py | from __future__ import print_function
import keras
from keras.datasets import mnist
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten
from keras.layers import Conv2D, MaxPooling2D
from keras import backend as K
import pickle
import os
import cv2
from tqdm import tqdm
import... | [
"noreply@github.com"
] | wasteee.noreply@github.com |
286079141118038776c11e0b7f0eb90ba809b352 | 0d0f123de3e7bdbe846b892bef6f8f12d7f722b4 | /src/courses/migrations/0002_auto_20200211_1409.py | 7a6ec867d33f2e8c0bc4a60cd63f568f562e483e | [] | no_license | frifaie/vidsub | eb889d137f96ab65b0fc3a788e4b18d2f6309b7a | c17e12319c30712689a82fec73aebc53c935d8f8 | refs/heads/master | 2020-12-29T10:53:14.465244 | 2020-02-28T01:19:33 | 2020-02-28T01:19:33 | 238,582,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 2.2.10 on 2020-02-11 07:09
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('courses', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='course',
old_name='allowed_membership',
... | [
"frifaie15@gmail.com"
] | frifaie15@gmail.com |
5cdc5d9a41cd117f2e1e1faa0cf8c5b971c37a2b | 7b2f384e27f039d793d385ee18908d53e1cc4ea8 | /utils/log_tools.py | cfc3d006dbdbb0e9643dfa46fbe57f9dfdf9de94 | [] | no_license | moigomes/etl_geolocalizacao | 10fb687424d0306569945747937178748189e3d9 | 64d0dadc16ca479daf895d484632a2ffba7d10c2 | refs/heads/master | 2023-01-04T22:52:13.599122 | 2020-11-03T16:55:32 | 2020-11-03T16:55:32 | 309,749,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | import logging
def ajustar_log():
logging.basicConfig(datefmt='%d-%m-%Y %H:%M:%S',
level=logging.INFO,
format='[%(levelname)-5.5s] %(asctime)s [%(filename)-15.15s / %(funcName)-20.22s / %(lineno)-5.5s] %(message)s') | [
"moigomes@gmail.com"
] | moigomes@gmail.com |
96fdbd1d69014c062a573ce6737c753189550b8e | 2031771d8c226806a0b35c3579af990dd0747e64 | /pyobjc-framework-CoreServices/PyObjCTest/test_textutils.py | 2ff838ec467acf264133c95ae598c609539c4881 | [
"MIT"
] | permissive | GreatFruitOmsk/pyobjc-mirror | a146b5363a5e39181f09761087fd854127c07c86 | 4f4cf0e4416ea67240633077e5665f5ed9724140 | refs/heads/master | 2018-12-22T12:38:52.382389 | 2018-11-12T09:54:18 | 2018-11-12T09:54:18 | 109,211,701 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,648 | py | from PyObjCTools.TestSupport import *
import CoreServices
class TestTextUtils (TestCase):
def assert_not_wrapped(self, name):
self.assertTrue(not hasattr(CoreServices, name), "%r exposed in bindings"%(name,))
def test_not_wrapped(self):
self.assert_not_wrapped('ScriptRunStatus')
self.... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
fb591f1fb60332f3175b3b2cc3434ae2c22e1d5b | cb1771f2d660c4c0abd6f6a38932fc8e2b0a0c46 | /MadLibs.py | 54ab2d65a4149f3633a489a6b4eeed9ca49d436c | [] | no_license | bagastri/Game | 6e15f6aa30dfa8c84325d3b6270d9c1a1de53fd5 | 8b8f02a70340ed9f82643885df1a656483c1206d | refs/heads/main | 2023-08-21T21:04:16.106516 | 2021-10-20T07:28:49 | 2021-10-20T07:28:49 | 419,225,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | kata_sifat = input("Sebutkan sebuah Kata Sifat: ")
kegiatan = input("Sebutkan sebuah Kegiatan: ")
nama_orang = input("Sebutkan Nama Seseorang: ")
tempat = input("Sebutkan sebuah Nama Tempat: ")
print(f"Aku adalah Seorang yang {kata_sifat}")
print(f"Hobiku adalah {kegiatan}")
print(f"Aku Suka dengan {nama_orang}... | [
"noreply@github.com"
] | bagastri.noreply@github.com |
f55673e83ede11923618c5868e655ce22f08bd6c | f7c38c85203c572a17a55a647f796c4217325914 | /interop.py | 197d08635d9be1a30c76c025c54a386287a444cd | [] | no_license | jeffthnd/interopclient | 27d9b6ce76e729929f81a2a7d52bbea72899e756 | 616a82f6f5af336963041f1994496b841f0ef0f0 | refs/heads/master | 2020-06-23T16:08:59.291042 | 2019-07-24T17:21:52 | 2019-07-24T17:21:52 | 198,674,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,762 | py | import json
import csv
import os
import sys
from auvsi_suas.client import client
from auvsi_suas.proto import interop_api_pb2
from google.protobuf import json_format
"""
Created on Thu Jun 13 09:30:42 2019
@author: Nuttawat Punpigul
"""
"""
The interop imprementation script for SUAS2019 competition.
... | [
"noreply@github.com"
] | jeffthnd.noreply@github.com |
7226b9cda9c338dffe84746f1f19fd9278d6e255 | 15e818aada2b18047fa895690bc1c2afda6d7273 | /lib/python/h5log_loader.py | 5cce0d76a64f14935c96f0fea66de17adea3cff0 | [
"Apache-2.0"
] | permissive | ghomsy/makani | 4ee34c4248fb0ac355f65aaed35718b1f5eabecf | 818ae8b7119b200a28af6b3669a3045f30e0dc64 | refs/heads/master | 2023-01-11T18:46:21.939471 | 2020-11-10T00:23:31 | 2020-11-10T00:23:31 | 301,863,147 | 0 | 0 | Apache-2.0 | 2020-11-10T00:23:32 | 2020-10-06T21:51:21 | null | UTF-8 | Python | false | false | 27,053 | py | # Copyright 2020 Makani Technologies LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"luislarco@google.com"
] | luislarco@google.com |
9a2d9e86480855cb0ada2ea4e9d047a63cc37272 | f89d8e0ea9709d17da7b25e63cab36e77267cefe | /proj2/SleepProj/SleepProj/urls.py | 3912df624b726e5cfe86898af06010d890c6efb1 | [] | no_license | barbarajael/SleepModeOn | 8d36385c325933fa1bb0eb407a84476dc4fc061a | 58e2bb3ea74ae28a73230ae13e2c84876e528ef0 | refs/heads/master | 2020-03-10T06:59:35.596351 | 2018-06-20T23:59:42 | 2018-06-20T23:59:42 | 129,252,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | """SleepProj URL Configuration"""
from django.contrib import admin
from django.urls import path, re_path
import app
from app import views
urlpatterns = [
path('admin/', admin.site.urls),
re_path(r'^$', app.views.dataSleep),
]
| [
"bmothe14@gmail.com"
] | bmothe14@gmail.com |
0148974e49046ac95e1892221c4dcba30449812a | 89a8daa6936c62d2092a19e7c4450e481b91a343 | /Py_Api/venv/bin/pip3.8 | 4efba541fb4f97b956f8da5ba1ef6669e8ef4fdd | [] | no_license | gautamsood15/PyBasics | e3391bb3d7c10d921a9fdbc61be571ab9d0f35d4 | 32992417601b7233d96cb74a6104c3a5333cdad5 | refs/heads/master | 2023-05-07T11:48:44.980225 | 2021-06-05T07:39:34 | 2021-06-05T07:39:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | 8 | #!/home/gautam/Desktop/Py_Basics/Py_Api/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"gauty22@gmail.com"
] | gauty22@gmail.com |
890f060e423c3a4d0a3dafcaa953ddaf17bc4218 | 7925b46f4556be817fc94fd55662bc41f0e7a3fe | /Inherit - 1.py | 679d04b251b63b82aa42d0142fe4b769f107655a | [] | no_license | Kalantri007/OOP-1 | 607093d875f782305e7914fd29ccf26c3c5463b6 | cc3b9e998c1a13d9846172f97dd99af898c42b00 | refs/heads/main | 2023-04-09T08:59:35.057470 | 2021-04-11T11:26:16 | 2021-04-11T11:26:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | class Emp:
def __init__(self, first, last, pay):
self.first = first
self.last = last
self.email = first + '.' + last + '@email.com'
self.pay = pay
def fullname(self):
return '{} {}'.format(self.first, self.last)
def apply_raise(self):
self.pay =... | [
"noreply@github.com"
] | Kalantri007.noreply@github.com |
f3e35b2f4f25821c9af7d753accb90bc7b6152c4 | 091b50259ea6fcbec8943be73b4cd5f044b714ae | /metallics_api/serializers.py | b21d6365854ded938f4827bf6fe17c47ee7d50de | [] | no_license | tushar2488/MetallicsOptimizationServices | 736ca3c0edc53ff184a78a1e86235db08d04aab4 | 8899e9ec382750cab95311d07d29cbc4f7bcb351 | refs/heads/master | 2023-01-27T15:18:03.564516 | 2020-11-30T15:03:03 | 2020-11-30T15:03:03 | 316,971,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | from rest_framework import serializers
from django.forms.models import model_to_dict
from .models import Chemical, Commodity, Composition
class ChemicalCompositionSerializer(serializers.Serializer):
def to_representation(self, value):
serializer = CompositionSerializer(value)
data = serializer.dat... | [
"tushar.tajne@nihilent.com"
] | tushar.tajne@nihilent.com |
48e1d9ec305c6fd676cc6fcfeecf686674f331eb | 3b8de8ff9cc3e61283cc873ad371c39354e00c29 | /modules/init.py | f0ad2a4f208c8c577eba19bdc0ccda7ae1f8db75 | [] | no_license | hiranoo/SearchHouse | 22f71b5712f1060ceca3f6cae196dd37e8fb2bd6 | 4f615da7d5b4c82651dd2f6ece8447daec3b5698 | refs/heads/master | 2023-02-13T11:52:49.479448 | 2021-01-11T14:47:35 | 2021-01-11T14:47:35 | 325,778,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | # coding: utf-8
import os
from base_path import *
def init():
new_path_list = ['/data', '/data/fetched', '/data/selected', '/data/latest', '/data/sending']
for new_path in new_path_list:
new_path = BASE_PATH + new_path
if not os.path.exists(new_path):
os.mkdir(new_path)
| [
"trivalworks@gmail.com"
] | trivalworks@gmail.com |
ede366809d5baadd6f6d50f3790c48b9dd1a638d | 4a923c14f7642dba3638c9ceee178ccad26a4ad1 | /bot.py | 65e75afbb33a95cb172e18f24719e85da81e5e8f | [] | no_license | willnaoosmith/GoogleAccountCreator | 636a074d23bf297ac7816e2ea45b506fa623df7a | 18c783e525a2ba87e09cda72471e08f52fdf385b | refs/heads/master | 2022-12-18T22:44:05.305426 | 2020-08-17T16:29:45 | 2020-08-17T16:29:45 | 244,614,511 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,167 | py | # coding: utf-8
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.support.ui import Select
import time
import random
male = ["André","Antônio","Arthur","Bernardo","Breno","Bruno","Caio","Carlos","Cauã","Daniel","Danilo","Davi","Diego","Douglas","Eduardo","En... | [
"brochensquewill@protonmail.com"
] | brochensquewill@protonmail.com |
58190670c273ac8e0db61251aac2f4d800f43a15 | c95804e7c46349e63f283207ccfa7e9f0f6caaa5 | /openfda/drugsfda/pipeline.py | 613d032a6764cc4a485e7ccd9af34ead921cfd16 | [
"CC0-1.0"
] | permissive | tralfamadoriangray/openfda | 34f2096d8e8cc834de0671ae95b5369a8240dcd6 | b3bd3a06812c3de7586897ca02ecb6a55fe9a578 | refs/heads/master | 2023-02-08T02:18:13.415437 | 2020-12-30T14:13:08 | 2020-12-30T14:13:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,794 | py | #!/usr/local/bin/python
'''
Pipeline for converting Drugs@FDA files to JSON and importing into Elasticsearch.
'''
import os
import re
from os.path import join
import arrow
import luigi
from openfda import common, config, parallel, index_util
from openfda.annotation_table.pipeline import CombineHarmonization
from ope... | [
"noreply@github.com"
] | tralfamadoriangray.noreply@github.com |
c83df4ad926d22384cca579d1feb35abebc2bfec | 866b7615b666875e6cdc024f951fe9baaf728993 | /python/ytdl | 02e0be2579d4651971560b28fffcbbb066f4d6f6 | [] | no_license | sk1418/testit | fcfdb9c6fc51d26d3351bdf6b7783c88b9338d9f | 1628d8bf4de8f28d2441d2785428a74c7eee2932 | refs/heads/master | 2022-04-30T18:36:05.574197 | 2022-03-19T21:58:11 | 2022-03-19T22:05:13 | 8,029,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,842 | #!/usr/bin/python
###################################################
# python script to download youtube video, supports different quality/format options
#
# It supports user choosing different video
# quality/format to download.
#
# Version: 1.0
#
# Kent 2010.10.19
# Email: kent dot yuan at gmail dot com.
#
# Todo:... | [
"kent.yuan@Gmail.com"
] | kent.yuan@Gmail.com | |
1bc34216c87bb8b8ae5c10f623ab5485230d4190 | 27eefa6e7f102378c433798d08154ae9555377c3 | /hrank_pyt/classes_complex_numbers.py | a0711c7e80171bcb74fd1b8e1807d7c8427549eb | [] | no_license | akaydinb/hackerrank-python | d0604c90cf55b785f406df240f9bac1f6d422409 | cdc3a6179e7ba1202da1a7767f1e4a8e025abb36 | refs/heads/master | 2022-12-10T09:28:44.903586 | 2020-08-27T11:30:32 | 2020-08-27T11:30:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,676 | py | #!/usr/bin/python3
# Classes: Dealing with complex numbers
import math
class Complex(object):
def __init__(self, real, imaginary):
self.real = real;
self.imaginary = imaginary;
def __add__(self, no):
return Complex((self.real + no.real), (self.imaginary + no.imaginary));
def __su... | [
"9348636+akaydinb@users.noreply.github.com"
] | 9348636+akaydinb@users.noreply.github.com |
fbeecaa4293179be24399fb4bb5c7eee64229141 | 50a8c057fd6d8cd0ec96ca9b79c9328432335650 | /ubisqsh.py | e945ad61a8de0c5092e765f01c13e8f9f6c84a5b | [
"MIT"
] | permissive | KurSh/qc_modem_tools | ee804b566f83e30dde13e4aaf2f55e1a95c74fda | fce2f00e226f0fce82f064d218bf6adb70ea8647 | refs/heads/master | 2023-07-07T19:16:43.556182 | 2020-12-25T20:25:52 | 2020-12-25T20:25:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,643 | py | #!/usr/bin/env python3
from struct import unpack
import os,sys
def parse_ubihdr(rf):
curpos=rf.tell()
magic = rf.read(4)
if magic == b"UBI#":
rf.seek(curpos+0x10)
hdrsize = unpack(">I", rf.read(4))[0]
blksize = unpack(">I", rf.read(4))[0]
data = unpack(">I", rf.read(4))[0]
... | [
"info@revskills.de"
] | info@revskills.de |
e2d13ee6442f4b0bb406ce1c2a80561ba9bce769 | 71f24b3427a242ba87451d6f057daedfecd2b05d | /scaffold/spec/prod/wsgi.py | 9043e52b21871c797ec5582d2f5fa9d9982c87ff | [] | no_license | gdipkf1986/django-scaffold | 8b0d4b41f493047316a3f0573c7db8d6d0432466 | 9e5b1e02352eaf7893260480c9102cea72ffcf3d | refs/heads/master | 2020-02-26T15:26:49.403292 | 2015-10-05T04:32:32 | 2015-10-05T04:32:32 | 34,237,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | # -*- coding: utf-8 -*-
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "scaffold.spec.prod.settings")
from scaffold.wsgi import application | [
"huangf@garena.com"
] | huangf@garena.com |
6ddb0bb22d3420954fafaf311e40e650fa1b866f | 6dba9105e4e2c6f4b1d54deb1b96d7c930dc6375 | /flask_blog/__init__.py | 9490f9902e56ef79dbc902773d044b917bea40aa | [] | no_license | angelabauer/new-blog-test | 196bdd03b38af639b99b79a6b1ea970d6d21d54a | 826ecc12010b719521ca5535d8a5209b29d252d9 | refs/heads/master | 2023-01-02T03:18:20.769690 | 2020-10-23T15:34:18 | 2020-10-23T15:34:18 | 306,678,113 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,322 | py | from flask import Flask, render_template, redirect, url_for, flash, abort
from flask_bootstrap import Bootstrap
from flask_ckeditor import CKEditor
from datetime import date
from functools import wraps
from werkzeug.security import generate_password_hash, check_password_hash
from flask_sqlalchemy import SQLAlchemy
from... | [
"angela@londonappbrewery.com"
] | angela@londonappbrewery.com |
2203b01c4dc8cf240f7580252e4dbfe1e8defc5c | cb1d53abffe60987615119fb3ee82eb27b5c2655 | /Day 9.py | ba6a17f599238e837ea84b62ca8d3d8d0af90738 | [] | no_license | NathanielB123/2019-Advent-of-Code | 4a247e1cdb659fc311e066e900991b17578ab8d2 | 4d310a2d6444f6fb84c606a53d16ec49014a183b | refs/heads/master | 2021-12-08T07:41:30.980341 | 2021-10-02T09:14:07 | 2021-10-02T09:14:07 | 226,645,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,813 | py | Code=[1102,34463338,34463338,63,1007,63,34463338,63,1005,63,53,1101,0,3,1000,109,988,209,12,9,1000,209,6,209,3,203,0,1008,1000,1,63,1005,63,65,1008,1000,2,63,1005,63,904,1008,1000,0,63,1005,63,58,4,25,104,0,99,4,0,104,0,99,4,17,104,0,99,0,0,1102,23,1,1004,1102,1,26,1000,1102,897,1,1028,1101,27,0,1012,1102,33,1,1001,110... | [
"30476356+NathanielB@users.noreply.github.com"
] | 30476356+NathanielB@users.noreply.github.com |
f26b9ee73be0d7493db27af80ec42b7699b9f50b | 5d8be0b8cfe03baf50a5607e98a41018471c79a0 | /ledbrick.py | 0892428a28c6fe4201add69a112525e7fff45f58 | [] | no_license | LCampbell2s/pythonschooling | 26faff3488d81483a378d886c6721b77916a6453 | f45d34ab5d9d43a1e94e36fe4ac6885851d24b6a | refs/heads/main | 2023-05-13T20:13:06.035617 | 2021-06-03T15:45:02 | 2021-06-03T15:45:02 | 371,017,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | import explorerhat as eh
import time
eh.output.one.on()
print("Lights on!")
time.sleep(2)
eh.output.one.off()
print("Lights out!")
| [
"noreply@github.com"
] | LCampbell2s.noreply@github.com |
8b6ffe717347139cea85ca695721274b02808e86 | d89df0f93114b02d50c2326538a13e03bafe6e1c | /projet/contact/migrations/0001_initial.py | 3097cc62521a71816724c75b1e5f2725fdd886b5 | [] | no_license | MJoshua25/projet_sp_dj_resto_g5 | 82212fe82a930cffce50e64577ed8739675f5b2c | 9b7afbc7c92df9dce52a9e50dddd305d97ed73b3 | refs/heads/master | 2022-12-04T06:50:55.414563 | 2019-10-18T12:10:56 | 2019-10-18T12:10:56 | 213,174,126 | 1 | 0 | null | 2022-11-22T04:34:11 | 2019-10-06T13:31:39 | JavaScript | UTF-8 | Python | false | false | 1,623 | py | # Generated by Django 2.2.6 on 2019-10-08 20:41
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Message',
fields=[
('id', models.AutoField(... | [
"cedric.gbele@uvci.edu.ci"
] | cedric.gbele@uvci.edu.ci |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.