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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17b2acb4b4f0a5b2fb15b6f6cb0c5a4b028b87ae | 13b8e4ccdf73c741fbe0522ffb648eee89b9a3ad | /modifiers/trans.py | 64bbd0fd6cb1ce7306ca21b7fcd101179fa3d4a3 | [] | no_license | cyborgizator/pyced | 6c5111ee2e1acdc1c09cca736cd57056aa5fcc0e | 6f828fefb6a44f25f1d9a3a10ea69d37c6e81050 | refs/heads/master | 2021-01-17T15:30:22.756153 | 2016-03-27T20:43:03 | 2016-03-27T20:43:03 | 8,270,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | __author__ = 'Alexey Bright'
from modifiers.modifier import Modifier
class Trans(Modifier):
""" Represents trans-bond """
names = {'trans'}
def apply(self):
""" Applies modifier to the molecular graph """
pass
| [
"cyborgizator@gmail.com"
] | cyborgizator@gmail.com |
8f0b720310ac0d2db3f03f90e334dc1fc3f57a2c | 57a01e30fe44b5778a2da5c38da5fd6383162da5 | /src/com/framework/utils/fileutils/ZipUtil.py | c48ef9bd1342e06fe391f4c81336c632577cbcdc | [
"Apache-2.0"
] | permissive | chen5669/AppiumTestProject | b7577a8791dafa03581c5a0c93bce006e6a71a50 | 9ce7a552532193e8571c99148e452804b60e26d3 | refs/heads/master | 2021-09-01T12:38:12.314489 | 2017-12-27T02:15:20 | 2017-12-27T02:15:20 | 115,418,225 | 1 | 0 | null | 2017-12-27T02:15:21 | 2017-12-26T11:57:31 | Python | UTF-8 | Python | false | false | 1,424 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@version: python2.7
@author: ‘jayzhen‘
@contact: jayzhen_testing@163.com
@site: https://github.com/gitjayzhen
@software: PyCharm Community Edition
@time: 2017/3/29 13:12
"""
import os
import ZipUtil
#解压zip文件
def unzip():
source_zip = "c:\\update\\SW_Servers_2012... | [
"jayzhen_testing@163.com"
] | jayzhen_testing@163.com |
56800e9081ae660230ca1cdde52125e003561ae2 | 9a952ad4a7b0fff5a42b7e232e61980dd73f49a7 | /CuraSlicer/gcodeInterpreter.py | 9ad0bf2203090f096e84f50c02be7ec524e4c4d9 | [] | no_license | shoz/CuraSlicer | 28f333621ae028530d1be92d389b42d895876b21 | a50206e01920123c745ef24968a0d4dd40f49f3a | refs/heads/master | 2021-01-15T18:58:17.614221 | 2015-06-28T10:32:19 | 2015-06-28T10:32:19 | 37,811,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,953 | py | """
The GCodeInterpreter module generates layer information from GCode.
It does this by parsing the whole GCode file. On large files this can take a while and should be used from a thread.
"""
__copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AGPLv3 License"
import sys
import math
import os... | [
"shoji.ihara@gmail.com"
] | shoji.ihara@gmail.com |
500999b64b846913ee8eafb72d301d9641950d71 | 022fdec163db36b9dd3877ed4f27c1d85c094596 | /src/pip/__init__.py | 75df0357626461609395d037c9de004d53662bb2 | [
"MIT"
] | permissive | cade335/pip | d10cd892c43539fbf9ff12eac5cffdb3bfda5947 | ddfa401dae5cdc473772f93951be2715e852681a | refs/heads/master | 2020-06-17T10:52:53.480599 | 2019-07-08T20:19:43 | 2019-07-08T20:19:43 | 195,902,067 | 1 | 0 | MIT | 2019-07-09T00:06:31 | 2019-07-09T00:06:30 | null | UTF-8 | Python | false | false | 26 | py | __version__ = "19.2.dev0"
| [
"pradyunsg@gmail.com"
] | pradyunsg@gmail.com |
d474dc02fac9022280b7a674320f1a354a499e68 | 69a199830b2d6c99b2bb8a3007a001c363d80e4f | /5_训练数据.py | 6983ba0f99e2281418cae2d188ce5654bab655d6 | [] | no_license | IronSpiderMan/FaceDetector | 0285d0835061d31b78252ccf87cddac962e6dc84 | ba658a0e8f38eeb02a97b17bb30ce79dd309f245 | refs/heads/master | 2020-12-15T12:24:59.578002 | 2020-01-20T13:03:29 | 2020-01-20T13:03:29 | 235,101,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | import cv2
import os
import numpy
# 人脸的根目录
root = './face/'
def getFacesAndLables():
# 用于存储人脸数据
faces = []
# 用于存储标签数据
labels = []
# 获取人脸检测器
face_detector = cv2.CascadeClassifier('haarcascade_frontalface_default.xml')
# 获取图片路径
files = os.listdir(root)
for file in files:
... | [
"sockwz@163.com"
] | sockwz@163.com |
7f5649092f26f5102c6fa6dd446e1d3a8c4f6537 | 6f594cbe55ea146de86b0f82d4b4bd2cc716eb11 | /migrations/versions/6451c45cc96d_.py | 8134fd6c58f803c1666b1397dc7f2f8d5b48660b | [
"BSD-3-Clause"
] | permissive | Rdbaker/WPI-IFC | 428d4c8ae422e50364ca0b80aa7f410641c8bb03 | 23b39d57d8ab62bb0588590010a43bfbdaea2b36 | refs/heads/master | 2021-01-10T16:12:01.558306 | 2018-02-06T01:07:55 | 2018-02-06T01:07:55 | 54,286,220 | 0 | 1 | null | 2016-12-23T05:03:40 | 2016-03-19T20:40:26 | Python | UTF-8 | Python | false | false | 1,075 | py | """Add parties references to the 'users' and 'fraternities'
Revision ID: 6451c45cc96d
Revises: e2200226cabc
Create Date: 2016-04-15 19:15:32.280974
"""
# revision identifiers, used by Alembic.
revision = '6451c45cc96d'
down_revision = 'e2200226cabc'
from alembic import op
import sqlalchemy as sa
def upgrade():
... | [
"ryan.da.baker@gmail.com"
] | ryan.da.baker@gmail.com |
71464f9990bdf5bbe65c7df13109d356523a17e2 | 8e92aa8428a9c4321d98852a19b52fb0eec07850 | /python/abc/abc215/abc215d.py | 0fcd849683e13b4a329faccda071fe051b5db3d7 | [] | no_license | t-chov/algorithm_and_data_structure | ad71a4aa7a85698081fc428566125d8adff6463b | e1dab899e76539fda7e5271b8f6b1927b82e152a | refs/heads/main | 2023-08-17T01:33:53.355280 | 2021-09-12T07:15:46 | 2021-09-12T07:15:46 | 373,989,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | from math import sqrt
def prime_factorize(n: int):
"""素因数分解"""
s = int(sqrt(n))
r = 0
primes = []
for i in range(2, s + 1):
if n % i == 0:
r = 0
while n % i == 0:
r += 1
n = n // i
primes.append((i, r))
if n > s:
... | [
"kotsuyuki@gmail.com"
] | kotsuyuki@gmail.com |
852f3ca9df527b3b9480c1a93e71c8d44bf424fa | c3d348e5d3a85034afc360a617a88b803f1067fa | /python/a.py | c5b75bfb0c7b62ee26f06e0f803df41c8ebd6a51 | [] | no_license | Gupta-Akshit/Firsttime | d5be966ff0a97abdd8c3baa2b1c167368e207c11 | 509009aa727a7bc3182aaa9d81548d815bf661d5 | refs/heads/master | 2021-05-02T10:36:44.066565 | 2018-02-08T13:21:09 | 2018-02-08T13:21:09 | 120,760,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | print("hello People")
| [
"akshit.gupta.cool@gmail.com"
] | akshit.gupta.cool@gmail.com |
1473ee68499fd09e1f265bb3e9d73d5ae37b9718 | 09c3d83aa8aa0c05af518b2131800f45d3255541 | /snapshot.py | 3ea8b29456685779365c2108655636d1801449b3 | [
"MIT"
] | permissive | receronp/meraki_bot | 9cfcbc252f766eeb41755d555c5fc1596dbb1e17 | 9c7a9379184a18961309b9ed1b13a8031e5a290d | refs/heads/main | 2023-08-27T18:50:10.504515 | 2021-10-29T22:27:15 | 2021-10-29T22:27:15 | 422,692,134 | 0 | 0 | null | 2021-10-29T22:27:16 | 2021-10-29T19:31:43 | Python | UTF-8 | Python | false | false | 7,915 | py | from datetime import datetime
import pytz
import requests
from chatbot import *
from status import *
# List the devices in an organization
# https://api.meraki.com/api_docs#list-the-devices-in-an-organization
def get_org_devices(session, api_key, org_id):
headers = {'X-Cisco-Meraki-API-Key': api_key, 'Content-T... | [
"receronp@gmail.com"
] | receronp@gmail.com |
d2f4d7328e9ba27c70e90e4189dccf707b288262 | 4d1a392efa56da53bc9d35946afca3f93b574deb | /GetGitlabDetails.py | ed94d126606cbc366c493f23e9ece2b7bdcee2eb | [] | no_license | vikramuk/PythonScripts | aa0f819ef3b8d6de7f9be6866d806c0496a2d00a | 96d6fe661b02da7c1f4a5e9b6ddaa76d540e910b | refs/heads/master | 2020-04-11T12:24:07.479525 | 2019-08-16T09:54:54 | 2019-08-16T09:54:54 | 161,778,845 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,883 | py | import gitlab, os, sys
import logging
import requests, json, time,urllib
from requests.models import PreparedRequest
#https://stackoverflow.com/questions/2506379/add-params-to-given-url-in-python
headers = {
'PRIVATE_TOKEN': '',
}
param2 = (
('private_token', ''),
('statistics', 'true'),
)
def GetDetails... | [
"noreply@github.com"
] | vikramuk.noreply@github.com |
287079129a1d83cbb891aa1cfbcf0a2daf0564f8 | 07d71b9664f4cac4841455c9a5966cbc66b87ae9 | /construction/wizard/__init__.py | 954ce0e6246bfbb23bf83a01b132f5c6a1bbc827 | [] | no_license | benoitlavorata/egy-pt-ext | 16bff0aed96722fc0b303581f9454b4f3be08383 | f07913cf1180e6f4bb336276dfea7d6856a2ca4b | refs/heads/master | 2023-02-04T09:04:16.288987 | 2020-12-25T20:57:50 | 2020-12-25T20:57:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | # -*- coding: utf-8 -*-
from . import project_user_subtask
from . import task_costing_invoice
from . import whatsapp_wizard
| [
"ah.amen79@gmail.com"
] | ah.amen79@gmail.com |
dddc102451650e8c1246a72751a2e42c806265f0 | 5149eca42f04316a9a13ce1a6e1307cb70dd3fcc | /GainProb/Hinet_Gain/AveLocation.py | a734ad80d33c55b49b0935c5066d192cc2c7f3f2 | [] | no_license | VioletaSeo/earthquake | f720d6d33d78c6e7d1b1661e36f64bdf6a90d0da | 1527b2b40cb8f7de3169ede1f1f2807b8616305c | refs/heads/master | 2020-09-12T00:38:57.133971 | 2020-04-03T08:57:30 | 2020-04-03T08:57:30 | 222,243,668 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | # Compute the average location of all HiNet stations (latitude, longitude) in degrees
from HinetPy import Client
client=Client("msseo97", "minseong97") # User login
stations = client.get_station_list('0101') # Get all the station info of HiNet
lat_sum, long_sum, count=0, 0, 0
for station in stations:
lat_sum += sta... | [
"noreply@github.com"
] | VioletaSeo.noreply@github.com |
1382f7c73719abbbf5b4fc5626130b4d4276b793 | 3e04762874f7284bf28073794b0aa4741b3bb5d7 | /week4/0alfabeto.py | 441e896fe3fd0dd687d471bcbe919ee01e4b9c82 | [] | no_license | FelipeMQ/CS1100 | 2b8b81c0ff4bb27f184498a5c8b54410da60c817 | 1c1af3773fde2d696f538c60fd0a91a956a4761b | refs/heads/master | 2020-03-25T00:44:50.335643 | 2017-10-16T13:52:43 | 2017-10-16T13:52:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | alfabeto = "abcdefghijklmggggnñopqrstuvwxyz"
for caracter in alfabeto:
if caracter == 'g':
print('caracter g') | [
"randiel.melgarejo@gmc-soft.com"
] | randiel.melgarejo@gmc-soft.com |
ea22cbc90ac662f3653b73a10e009a8cd350a45f | a012ed6fd7e2ecbbb694260f82c15ab19849774a | /scratch.py | ebad8251fdd3404b24357592a60fb738023a1c40 | [] | no_license | dpiponi/nano | f059285a8d5adc2aaaef7bdbb4d857b228101925 | 8145a95cb7f6ba7bfe5269bf3d0abd87d5c77444 | refs/heads/master | 2020-05-17T15:44:16.976181 | 2018-01-11T21:57:56 | 2018-01-11T21:57:56 | 7,544,583 | 5 | 5 | null | null | null | null | UTF-8 | Python | false | false | 16,535 | py | """
Compute energy levels and band structures for atomic nanostructures
drawn with ASCII art.
"""
# 3eV for graphene
import numpy
import numpy.linalg
import matplotlib.pyplot
import math
import sys
import operator
import units
diagram = r"""
o-o
/ \
o o-o
\ / \
o-o o
... | [
"dpiponi@gmail.com"
] | dpiponi@gmail.com |
7e812132e7cf725bce5dd9ec1126147adaf1cb97 | 94a766caa58ce5a9619bc7f99c6dceb961211b2a | /pi-face-recognition/dots.py | 10b52a02295afca465a2b0aacd21961c2746b47b | [] | no_license | n-nicholas-s/Toddler-Companion-Bot | 90976294f08fceadfefbd2382fba6e8c048a3db1 | 81c8f4dc3ee5328ad5986e36b642520d2d1d1225 | refs/heads/main | 2023-02-27T08:33:58.554148 | 2021-02-09T10:37:19 | 2021-02-09T10:37:19 | 311,227,832 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | #Import required modules
from imutils.video import VideoStream
import imutils
import cv2
import dlib
import time
vs = VideoStream(usePiCamera=True).start()
time.sleep(2.0)
#Set up some required objects
video_capture = cv2.VideoCapture(0) #Webcam object
detector = dlib.get_frontal_face_detector() #Face detector
predi... | [
"noreply@github.com"
] | n-nicholas-s.noreply@github.com |
269973bf925d19675fed0e0eda03f5b215389c27 | de86f9f9dd620212c96fc3bbc28bdbc7432aa237 | /lib/Cond_Ex.py | bbe7a482982a63c49b59bf18cc8400242b9fd48e | [] | no_license | yomhub/Tensorflow_research | 235fa5513abeea64e44291e6705fb136cf108af4 | 2f8102039168ade5481745e4aa59c7e6a0cba59b | refs/heads/master | 2022-11-24T05:08:11.009741 | 2020-06-14T01:21:54 | 2020-06-14T01:21:54 | 280,804,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,421 | py | # utf-8
# this module for Conditional Spatial Expansion
# based on paper
# Towards Robust Curve Text Detection With Conditional Spatial Expansion
import os, sys
import tensorflow as tf
from tensorflow.keras import layers
import numpy as np
class Cond_Pred(layers.Layer):
"""
X: input feature (chs,)
Y: possibil... | [
"yom@yomhub.com"
] | yom@yomhub.com |
7571ab18bd773849dcf06b2496371d53089e95ab | 38d86e192292e46674a58bec9e6fa1391255b10f | /tests/test_project/migrations/0005_organizationradiussettings.py | ec1bf6a6e0b6e322d42ca96ff1376ba8e477f972 | [
"Apache-2.0",
"CC-BY-SA-4.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | openwisp/openwisp-utils | b8e44def6dbe9193201c89a77451da15f485c411 | 242afc8b1aa70c4691fd5b43e9ce1a3ca9eb8700 | refs/heads/master | 2023-08-02T11:15:42.529346 | 2023-07-26T17:21:17 | 2023-07-26T17:21:17 | 95,099,346 | 85 | 100 | BSD-3-Clause | 2023-09-08T13:53:57 | 2017-06-22T09:35:55 | Python | UTF-8 | Python | false | false | 2,348 | py | # Generated by Django 3.2.19 on 2023-06-24 15:15
from django.db import migrations, models
import openwisp_utils.fields
class Migration(migrations.Migration):
dependencies = [
('test_project', '0004_sheft_data'),
]
operations = [
migrations.CreateModel(
name='OrganizationRadi... | [
"noreply@github.com"
] | openwisp.noreply@github.com |
263e646a2a64012dac02f0cf6f4926dfa2bc0eb6 | de28880dd1c46d0ee2def7e46066d12185fc9a4b | /midinet/model.py | 742bcb8e483d1578aa2f56628c35106154bffb80 | [] | no_license | frederictamagnan/PredictDrumFillsInNativeInstrumentsSoundPack | c3712987352a152edf91e893e8af1b23fd17f495 | 2a19d43d5c153340f0a7a50e7314c4763a6089a4 | refs/heads/master | 2020-04-10T04:16:11.417914 | 2019-04-28T16:18:51 | 2019-04-28T16:18:51 | 160,793,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,809 | py | import numpy as np
import torch
import torch.nn as nn
from torch.utils.data import DataLoader
import torch.nn.functional as F
import torch.optim as optim
import ipdb
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from ops import *
class sample_generator(nn.Module):
def __init__(self):
... | [
"frederic.tamagnan@gmail.com"
] | frederic.tamagnan@gmail.com |
caccd1355ec8d538d438f380c59e87e6f0d3d43c | ba80848eab0bdbbf73bc79c1b88cff32b2f83b61 | /hands-on-ml-zh/02/main.py | 1c6798ff7d332418b4f0bd71e60545775b322886 | [] | no_license | 1SOU/2019ex | 9c4cffbeeb0a476c8606348a77e2847d5b8ef362 | 7f0076a455533bf09f30b274fb06d16bdbc3398b | refs/heads/master | 2020-07-26T15:03:04.084831 | 2019-09-16T01:33:50 | 2019-09-16T01:33:50 | 208,685,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 22 09:10:46 2019
@author: Yisoul
"""
| [
"2381824597@qq.com"
] | 2381824597@qq.com |
ee206e8d4a00724240ebf254d91d1e8941978264 | a6355ef8ddb4d31fb4ff45ae755f34482d8c0ff9 | /supervised/models/compute_additional_metrics.py | e74e522c6eeaa975273774befac8d3433b6506e2 | [
"MIT"
] | permissive | michaelneale/mljar-supervised | d4d1b44f4cd5dcbdb36768c5186f2480a53ec3f7 | 8d1b5fdd56e994a7f13ec5f6d2033830744f3d6f | refs/heads/master | 2022-02-06T14:11:21.377791 | 2019-11-05T08:15:02 | 2019-11-05T08:15:02 | 220,161,447 | 0 | 0 | MIT | 2022-01-26T00:32:56 | 2019-11-07T05:51:34 | null | UTF-8 | Python | false | false | 3,084 | py | import logging
import copy
import numpy as np
import pandas as pd
import time
import uuid
from supervised.tuner.registry import BINARY_CLASSIFICATION
from sklearn.metrics import (
f1_score,
accuracy_score,
precision_score,
recall_score,
matthews_corrcoef,
roc_auc_score,
confusion_matrix,
)
... | [
"pplonski86@gmail.com"
] | pplonski86@gmail.com |
6118aac454787deedc978d8651554562c83be1cd | f0dd1343ad57362c91c19d1ae46089e33777b988 | /pageobjects/ResourceManage/GroupResource_page.py | e85491bc23b2c8d890763d5caa8d8153f76e38d2 | [] | no_license | heshuiming/AutoTest | f786b1feee02bf94d6e8f0adec4eda2861a933a4 | 03440ca956e469733b4f4000af40f93625b2a4ee | refs/heads/master | 2020-05-14T23:30:24.713383 | 2019-04-29T11:03:29 | 2019-04-29T11:03:29 | 181,997,942 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,206 | py | from unit.base_page import BasePage
from time import sleep
#本组资源
class GroupResourcePage(BasePage):
#咨询类别
consultation_1 = "xpath=>//label[contains(text(),'咨询类别')]/../a[contains(text(),'雅思')]" # 雅思
consultation_2 = "xpath=>//label[contains(text(),'咨询类别')]/../a[contains(text(),'北美')]" # 北美
con... | [
"heshuiming@pxjy.com"
] | heshuiming@pxjy.com |
8ed898a821efe6042373dea98279e07c01c08044 | e006ba80e39ed9cfda121881f03a62c097cb4614 | /gcp_variant_transforms/testing/integration/run_tests_common.py | 4fe4bb677249af2fbbccf33b614cf17ec9d343b1 | [
"Apache-2.0"
] | permissive | thuylevn/gcp-variant-transforms | aee27f061451a5f23b7d3024f65eda1c2ab52bec | d0b77a6acdf3f0a0d1274fe4eb54d6ee27ce427a | refs/heads/master | 2020-07-10T16:51:40.954884 | 2019-08-20T14:40:26 | 2019-08-20T14:40:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,452 | py | # Copyright 2018 Google Inc. 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 applicable law or... | [
"noreply@github.com"
] | thuylevn.noreply@github.com |
4d14e85f72f60042cb859ef7ccddd176ed9c872b | 64e8f8e7ede25b76997e77c09204679f63ffb946 | /activities/urls.py | a2101fd407fe31a9a7e39e83f5b0e81a3efed336 | [] | no_license | noelroy/pharmacy | f4f1849e678bd4715d05ea710c78e65c666e57d9 | b2a90f5622b21ac60a189b9b17ba7511cd344c54 | refs/heads/master | 2021-09-08T14:59:10.383647 | 2021-08-25T18:45:26 | 2021-08-25T18:45:26 | 84,398,400 | 7 | 9 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | from django.conf.urls import url
from activities import views
urlpatterns = [
url(r'^orders/create$', views.create_order, name='create_order'),
url(r'^orders/get_company_list$', views.get_company_list, name='get_company_list_order'),
]
| [
"noelroy96@gmail.com"
] | noelroy96@gmail.com |
4114e81d545e8d1b52a61627033bba787df43ae4 | e67cef71640b868ac23f750ef6a485bd938013df | /facebook.py | a2f411f13ddc72551c24118ff8a5a7ccf76ab208 | [] | no_license | mahmoudhany1/facebookCreator | 58b879027591dc6920577c638357c1b3187881cc | 93567c7f1389ad22f13d6617556ed5020fb86bbe | refs/heads/master | 2020-03-31T14:43:29.975718 | 2018-10-09T19:09:41 | 2018-10-09T19:09:41 | 152,306,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py | print """ Mahmoud Hany Security
Thise Script Maded By Abo Hany 1 Pas Hhhhh
Thise Script Maded By Abo Hany 1 Pas Hhhhh
Thise Script Maded By Abo Hany 1 Pas Hhhhh
Thise Script Maded By Abo Hany 1 Pas Hhhhh
Thise Script Maded By Abo Hany 1 Pas Hhhhh
Thise Script Maded By Abo Hany 1 Pas Hhhhh
My Acou... | [
"noreply@github.com"
] | mahmoudhany1.noreply@github.com |
5ff41892cdff2e8c2bf0ec19a9f07d27a6f47528 | 4c6d13afe5a6846be002248774261309ad4a9445 | /learning_templates/basic_app/urls.py | 1d6e16827193d75966bfc84f8880b2f3f4faa1af | [] | no_license | JiGzZz/django-deployment-example | 8629007c7fd95f3ed54c0a51dd8036512943a184 | e207ea950dc4e197262b5f65a83c2dd4851483d5 | refs/heads/master | 2020-04-17T12:35:18.985796 | 2019-01-19T20:22:58 | 2019-01-19T20:22:58 | 166,585,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | from django.urls import path
from basic_app import views
# TEMPLATE TAGGING
app_name = 'basic_app'
urlpatterns = [
path('relative/',views.relative,name='relative'),
path('other/',views.other,name='other'),
] | [
"developer.jigardhulla@gmail.com"
] | developer.jigardhulla@gmail.com |
472cadaf32afaeb4b58e1c709b41a3c59a831a37 | 2e56d10d7b8def30dcc46b2a0240ee702caf393d | /stream.py | e9e2f73b105c55bdf6c2f87f913f5b5fef6b3f81 | [] | no_license | sweetcocoa/streamlit_image_explorer | 15309380e56b555fe3fb54cb7fe979d8b5e1d649 | 70a3b0f017bc0e552180f9e03ea3a7d4d099c7ec | refs/heads/main | 2023-06-19T17:52:23.660373 | 2021-07-09T05:41:36 | 2021-07-09T05:41:36 | 379,520,194 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,256 | py | import streamlit as st
import numpy as np
import os
import urllib
import glob
import SessionState
import cv2
# DATA_URL_ROOT = st.secrets['DATA_URL_ROOT']
# DATA_URL_ROOT = "data/"
DATA_URL_ROOT = (
"https://raw.githubusercontent.com/sweetcocoa/streamlit_image_explorer/master/"
)
session_state = Ses... | [
"sweetcocoa@snu.ac.kr"
] | sweetcocoa@snu.ac.kr |
2befe1a095c5cca705e4984daeef32dbf5cc58e9 | cb4e5259ae2e67bc36feb059819e78d9b2f6644b | /wlutil/__init__.py | 5d1c5b946a2a6465b23c0abc8b2bf27aa23f80e2 | [
"LicenseRef-scancode-bsd-3-clause-jtag"
] | permissive | abejgonzalez/FireMarshal | bf7645684c0c418840c29e95a0da2f7fae0d4aeb | 56c050e8be3d3c9cfe5be6b777a5a82de47a14d4 | refs/heads/master | 2020-08-31T08:44:10.693786 | 2019-10-22T01:08:55 | 2019-10-22T01:08:55 | 218,650,718 | 0 | 0 | NOASSERTION | 2019-10-31T00:19:01 | 2019-10-31T00:19:01 | null | UTF-8 | Python | false | false | 258 | py | """
Utilities for dealing with FireSim workloads
"""
from .wlutil import *
from .build import buildWorkload
from .launch import launchWorkload
from .test import testWorkload,testResult
from .install import installWorkload
from .config import ConfigManager
| [
"nathanp@berkeley.edu"
] | nathanp@berkeley.edu |
c1d8b8802fa2dbe27d011b791fec7a5a85e50004 | a3f80da27fee10ad2fc924020deb3aa8b19fdb96 | /src/boj/boj5052/Main.py | 399a0a2558a589e3a51edd163e278352f0711b44 | [] | no_license | jeemyeong/problem-solving | dad4bfe6fa0cc08678b5caebb7dcb751ef8c72d8 | add26360ebe9758bc2f050545c93edfaf8cd342a | refs/heads/master | 2021-05-16T17:54:37.804842 | 2018-07-15T11:25:53 | 2018-07-15T11:25:53 | 103,120,018 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,183 | py | import sys
def I(): return int(sys.stdin.readline())
def S(): return input()
class Trie(object):
def __init__(self, initial = False):
if initial:
self.trie = {"initial": True}
else:
self.trie = {"initial": False}
def insert(self, node):
if len(node) == 0:
... | [
"jeemyeong@gmail.com"
] | jeemyeong@gmail.com |
0b6395abe2b53c4ce9df5eaab42b972dbf838e3a | 8c67a786d726e4e02d494ba35b882bd8e88042c8 | /heap/heap.py | 313d96e37d43fc4ddae312437914809721a01d9e | [] | no_license | Bloomca/algorithms | 34143667ea902a4d2e0e81a79660cdc80c7c3c11 | a36fc0334b02793c914959664dbc11c4e71a72a3 | refs/heads/master | 2021-01-19T02:49:19.510850 | 2016-07-26T19:14:56 | 2016-07-26T19:14:56 | 63,779,615 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,446 | py | class Heap:
"""
Heap data structure with two operations:
Insert in O(n * log(n))
Extract-min (Extract-max) in O(n * log(n))
Both types of heaps are supported, both min and max extraction
Data is stored in array, with binary layers
"""
def __init__(self, type = 'min'):
self.... | [
"seva.zaikov@gmail.com"
] | seva.zaikov@gmail.com |
87fc10a9db642a91f08b99c9b1c87dfbdc15c7ba | 70c4f21aabb1bdf26789b38883cbde737250d38c | /digital_voting_app/web_app/migrations/0003_remove_voter_occupation.py | 147ab5d098a749c141df1d86c62935bb714d2cdb | [] | no_license | DigitalVotingApp-Dev/DigitalVotingApp | 55f2853a2467582f524a761f2c48bcb24d5ee213 | da80e167ee6697a93ee1e668b6ccfe7807148b22 | refs/heads/master | 2022-12-13T13:00:40.289476 | 2019-06-18T11:04:19 | 2019-06-18T11:04:19 | 161,016,237 | 1 | 1 | null | 2022-12-08T00:53:50 | 2018-12-09T07:37:58 | JavaScript | UTF-8 | Python | false | false | 332 | py | # Generated by Django 2.0.13 on 2019-03-27 06:27
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('web_app', '0002_auto_20190326_1628'),
]
operations = [
migrations.RemoveField(
model_name='voter',
name='occupation',
... | [
"baljeetsingh1274@gmail.com"
] | baljeetsingh1274@gmail.com |
a887704eba56ea217186faef1581f771a575cae2 | c4a32dc9fb26d72721864982b52578e2aea31db4 | /1.PRIMERA EXPOSICIÓN/Perfil vertical eventos/CONFIRMACIÓN EVN TT.py | d4fbf3970dd6c725de7ddbc27eb8f6eb44bf4d1d | [] | no_license | yordanarango/CODE_TRABAJO_GRADO | 30eee8778bf4d61706fd5e7dc26b609ad1214fd3 | 5eb55e90b864359942e40ac8d4672c28dea1e1de | refs/heads/master | 2021-04-15T12:18:33.032433 | 2018-03-22T14:19:35 | 2018-03-22T14:19:35 | 126,347,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,496 | py | from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
import matplotlib.pylab as pl
import netCDF4 as nc
import numpy as np
####################
"LECTURA DE DATOS"
####################
Archivo = nc.Dataset('/home/yordan/Escritorio/TRABAJO_DE_GRADO/DATOS_Y_CODIGOS/DATOS/PERFIL_DE_EVENTOS_DE_VIENT... | [
"yuarangoj@unal.edu.co"
] | yuarangoj@unal.edu.co |
b5772ab6d016c1eada09bc35eb878b6ac386dbe6 | da91b375b9450be733370ca715e704f912e4efd0 | /flaskapp/__init__.py | 49df7b0183f418a855dc1d364e166e3942e2626e | [] | no_license | Ge-eez/IProject-Backend | b64a51ce83ed536f9a53314b6fada2e8ed9dcee9 | cafbac7161fab564ba90707760b485b07498a1d5 | refs/heads/master | 2023-05-22T16:17:00.562210 | 2021-06-17T04:46:27 | 2021-06-17T04:46:27 | 369,288,841 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,487 | py | import os
from flask import Flask
from flask_cors import CORS
from flask_session import Session
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
from flask_restful import Api
from flask_migrate import Migrate
from flask_rest_paginate import Pagination
from saf... | [
"elshadaikassutegegn@gmail.com"
] | elshadaikassutegegn@gmail.com |
097dfea7934d6c0ecbe261df559a5c5f50018e6f | 6daabad92d7071879fd8822963f2c709dba3c450 | /hw2-2.py | 30efcc4a0f884c75c395622f783d94c37abdbbd4 | [] | no_license | y1k333/ML-ng | ac03601b62493902ae959e2f65dc0d17bf65c01d | 2b99ece503f580926886f6e1a82c22a49f0706ad | refs/heads/master | 2021-05-09T09:50:26.517315 | 2018-09-28T20:04:25 | 2018-09-28T20:04:25 | 119,460,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,387 | py | # Logistic Regression with regularization
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# visualize data
datafile = 'data/ex2data2.txt'
cols = np.loadtxt(datafile,delimiter=',',usecols=(0,1,2),unpack=True) # Read in comma separated data
# Form the usual "X" matrix and "y" vector
X = np.transpo... | [
"kaiyang@usc.edu"
] | kaiyang@usc.edu |
2f145ed3885c6a99d1b0264ddffbc2837b3817a4 | f49d35798bdc789767f93913439ae71e5e76de0d | /final/post/views.py | 5754f642fafdc3d911d1e3c7a3128841438cdeb1 | [] | no_license | RealWei/Social-Computing-Application-Design | 49aafd37e6917e0606efefa1c1c68d52c6cba51c | 68674ea18af69e94ed920d422b7ad73fdbe2eac0 | refs/heads/master | 2016-09-13T20:45:18.913838 | 2016-05-25T02:21:23 | 2016-05-25T02:21:23 | 59,623,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,081 | py | # -*- coding: utf-8 -*-
import json
from random import sample
from django.shortcuts import render
from django import forms
from django.core import serializers
from django.http import HttpResponse
from django.http import HttpResponseRedirect
from django.http import JsonResponse
from django.views.decorators.csrf import ... | [
"tsengchengwei@gmail.com"
] | tsengchengwei@gmail.com |
79d55234b6cc4dd1255378d64c29ca50ce4f32b4 | 2af943fbfff74744b29e4a899a6e62e19dc63256 | /4DModules/FourDAnalysis/Python/CurveFittingGammaVariate.py | 145cbfbd7f2281c8b7ae3578411964ded0cf0d56 | [] | no_license | lheckemann/namic-sandbox | c308ec3ebb80021020f98cf06ee4c3e62f125ad9 | 0c7307061f58c9d915ae678b7a453876466d8bf8 | refs/heads/master | 2021-08-24T12:40:01.331229 | 2014-02-07T21:59:29 | 2014-02-07T21:59:29 | 113,701,721 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,093 | py | # ----------------------------------------------------------------------
#
# Python Package for Curve Fitting in 3D Slicer 4D Analysis Module
#
# Portions (c) Copyright 2009 Brigham and Women's Hospital (BWH)
# All Rights Reserved.
#
# See Doc/copyright/copyright.txt
# or http://www.slicer.org/copyright/copyri... | [
"tokuda@5e132c66-7cf4-0310-b4ca-cd4a7079c2d8"
] | tokuda@5e132c66-7cf4-0310-b4ca-cd4a7079c2d8 |
4dc527e0d25970a1dd5729429b4c49f2b26b84a8 | b144cb0c9e497136c99e608c1cf3cf0b2e0e3c2d | /D3Q/src/deep_dialog/controller/discriminator.py | c41b0977a9d25d99e2f92a3f40d2c69110e8124f | [] | no_license | loremdai/A2C_PPO | 924182d780836a4774bc304c0bb460a1ef22c143 | f8135e4f9e3109a8861166b05f2090a1389188a9 | refs/heads/master | 2023-06-02T10:52:34.839587 | 2021-06-30T09:56:54 | 2021-06-30T09:56:54 | 381,645,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,653 | py | '''
created on Mar 13, 2018
@author: Shang-Yu Su (t-shsu)
'''
import torch
import torch.nn as nn
from torch.autograd import Variable
from torch.nn.utils import clip_grad_norm_
import torch.optim as optim
import numpy as np
import random
from deep_dialog import dialog_config
use_cuda = torch.cuda.is_available()
class ... | [
"etienn3dai@gmail.com"
] | etienn3dai@gmail.com |
406e35ae24ec2980a846e1ed4635bfff5afb80e2 | f96bb6344180322fbef067d611aab9cb5ceeea38 | /Занятие2/Практические_задания/task4_1/main.py | d57d450b0fe7935664b2e222e8f44f7c84ae2662 | [] | no_license | Irina1207/PythonPY100 | 485247ce32e52f388d863ddd8dbc7788278e6f38 | 7525d09fc7d8e701768e3b0cc6fed111f5d2ae1a | refs/heads/master | 2023-09-02T11:10:06.079356 | 2021-10-28T18:14:37 | 2021-10-28T18:14:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,387 | py | if __name__ == "__main__":
list_ = [4, -1, 10, -1, 3, -3, -6, 8, 6, 9]
# предположим, что первый элемент в нашем списке минимальный
min_value = list_[0]
# а далее пройдемся по всему списку, и будем искать элемент меньший ранее найденного минимального значения
for current_value in list_:
# ... | [
"IraL122@mail.ru"
] | IraL122@mail.ru |
e2d5d28a24440c5334d98be69fadd9129afe7b63 | 5c4fb3edc23ae4d8c67af73c66ff806760a4f83b | /assignment_3mw/wsgi.py | 02345b5583ee116e784c4fe2f57b4d6b500443bf | [] | no_license | tomhoule/django-assignment | 36b1ab5159e8fd9e577e09c9721902076fac3695 | dfd9a38fd2a70a919dc0d7d503d7cdb8fd071918 | refs/heads/master | 2020-04-17T05:45:30.805835 | 2016-08-21T16:20:36 | 2016-08-21T16:20:36 | 66,184,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | """
WSGI config for assignment_3mw 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/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJAN... | [
"tom@kafunsho.be"
] | tom@kafunsho.be |
259792a2153afb2d2d607239fcc9103a8d25a836 | e767a79412c578da8515fe3dd4797e6915177633 | /scraperBuild | d3e9c47dfefb290004477bd3843e17b9f0d7c062 | [] | no_license | stajama/CodingBatProject | 38686f17aa7db993c3bfc869f6ad70ed5abb2719 | 5bc29c61ba796ad0447d8a0402600368698f5b68 | refs/heads/master | 2021-09-13T03:52:40.537769 | 2018-04-24T17:20:20 | 2018-04-24T17:20:20 | 105,554,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | #!/usr/bin/env python3
def descriptionFormatter(descriptionString):
out = "// "
for i in range(len(descriptionString)):
if i % 79 == 0:
out += "\n// "
out += i
return out
def mainDeal(dictOfInfo):
outFile = open('workfile.txt', "w")
outFile2 = open('testfile.txt', 'w')
... | [
"stajama@yahoo.com"
] | stajama@yahoo.com | |
36eeb74417934b69ae6ab04042a025ddef8be960 | 69624d985735fdb8fa6e4af620c44ca3d5719dc9 | /ethernet_game_picture_tile_library.py | c05885e4815bceadf6172455a6d2d9a0daa2db85 | [] | no_license | DorsaiFeydakin/Ethernet_Pygame_Board | f4162b36d1648e2b0ece6f5ad50b62e796ebb87d | efbb274c9abf32b1e7ae417ac00adac34b76c161 | refs/heads/master | 2022-08-02T15:38:26.868029 | 2020-05-20T06:55:35 | 2020-05-20T06:55:35 | 265,217,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,775 | py | #PyGame_OOPs_Programming_8
# Write your code here :-)
#ethernet_game_image/drawn objects file
import pygame
pygame.init()
window_width=800
window_height=500
WHITE = (255,255,255)
BLACK = (0,0,0)
RED = (255,0,0)
LIME = (0,255,0)
BLUE = (0,0,255)
YELLOW = (255,255,0)
CYAN = (0,255,255)
M... | [
"noreply@github.com"
] | DorsaiFeydakin.noreply@github.com |
35e4c6d766829bc2ef91b3a057c4e81b72a53492 | 142c8772f894ec71e9ca78cb00842e7aaf3f497a | /basic-timer.py | 63c847130e274725338ea06febe1d48b786b4b51 | [] | no_license | iamshanu14/timer | 7e8fe83bdab055a37ce01339cec3a7df3f9921ae | 27050dfe01e8c74dff7121253aff711f77d49c60 | refs/heads/master | 2022-12-07T17:38:46.364147 | 2020-09-01T08:31:23 | 2020-09-01T08:31:23 | 291,774,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | import time
for hour in range(0, 24):
for minute in range(0, 60):
for second in range(0, 60):
print("{}:{}:{}" . format(hour, minute, second))
time.sleep(1)
| [
"66065871+shanu14@users.noreply.github.com"
] | 66065871+shanu14@users.noreply.github.com |
7216b0c7a8159a4c9e828f2233642a74ced03bf0 | 3186db1413e39be886fa0067e102b2addd73f4d8 | /FP/P2_GestiuneLaboratoareStudenti/main.py | a312f20f1510abf858d09828a6c66c4cad3d2134 | [] | no_license | elenamaria0703/MyProjects | 516624425396814b37bfce249d4989aaabbc43a0 | ed8c94a30c1ff9250a7d4ff2f1321b2bb598fdc6 | refs/heads/master | 2021-03-02T05:14:20.427516 | 2020-06-16T14:07:55 | 2020-06-16T14:07:55 | 245,840,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | from repo.Repository import RepositoryStudents,RepositoryProbls,RepositoryAsign
from repo.FileRepositoies import FileRepositoryStudents,FileRepositoryProbls,FileRepositoryAsign
from valid.Validators import StudentiValidator, ProblLabValidator,AsignareValidator
from business.Controllers import StudentiService, ProblLabS... | [
"elenamaria0703@users.noreply.github.com"
] | elenamaria0703@users.noreply.github.com |
6dd73fa6654aafaa3eb2674d985b5cc5983539da | f6a9b8f5aea2a68294e93b396eb9d0bc6755403c | /tests/runTests.py | 00a390aaadeb529599567d6bb4fa00370a42a7bc | [
"LicenseRef-scancode-public-domain"
] | permissive | knu2xs/cmp_version | e6b51c230e6914e5ed0f6d57d801b90f1ec8e674 | bc295e175040684308bcc24c56ee8761825adeed | refs/heads/master | 2022-01-08T22:00:26.290274 | 2018-04-18T00:41:48 | 2018-04-18T00:41:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,768 | py | #!/usr/bin/env python
#
# Copyright (c) 2015, 2016, 2017 Tim Savannah under following terms:
# You may modify and redistribe this script with your project
#
# It will download the latest GoodTests.py and use it to execute the tests.
#
# This should be placed in a directory, "tests", at the root of your project. It ... | [
"kata198@gmail.com"
] | kata198@gmail.com |
9acbe81faeeff0ecc0cb9f08878565903c2b7b02 | b7c994da6d0f9f70e72f6d075e5881fa6dce1300 | /interview-prep/is_balanced.py | 90f76be32b37676bbde3daad4f2437279fd500cd | [] | no_license | sagunji/100DaysOfCode | 8754adc4f3e6b1307795db443356e7b7a308ed69 | 3ad284f46896eaa30d754ee312e15bdd9e8fd9b4 | refs/heads/master | 2021-06-20T13:11:28.966632 | 2021-03-17T15:00:30 | 2021-03-17T15:00:30 | 196,589,092 | 0 | 0 | null | 2019-10-31T18:16:24 | 2019-07-12T14:00:49 | Python | UTF-8 | Python | false | false | 591 | py | def isBalanced(s):
stack = []
top = -1
imbalance = False
for c in s:
if c == "(" or c == "{" or c == "[":
stack.append(c)
top += 1
elif top >= 0 and (
(c == ")" and stack[top] == "(")
or (c == "}" and stack[top] == "{")
or (c =... | [
"karanjit.sagun01@gmail.com"
] | karanjit.sagun01@gmail.com |
945ac396d9fc4880563572cadd72d644c4d95832 | 2c8ab05ba9cbb9307b4efc034054ff4253bb3b9c | /src/tracks/tasks.py | 6a369b2b9aa8a4376d4e0e6975f54141f750fb5b | [] | no_license | La0/runreport | a76bff526b2b0c0474bfee4ec7850ddbbb6bfd9f | 1d40035460ced334313ea1b917532051207e5dcb | refs/heads/master | 2023-04-01T22:01:49.583951 | 2017-05-12T12:37:05 | 2017-05-12T12:37:05 | 8,062,434 | 0 | 0 | null | 2021-04-11T16:00:39 | 2013-02-06T23:18:30 | Python | UTF-8 | Python | false | false | 956 | py | from __future__ import absolute_import
from celery import shared_task, task
import logging
logger = logging.getLogger('tracks.tasks')
@shared_task
def tracks_import(*args, **kwargs):
'''
Import all new Tracks
'''
from users.models import Athlete
from tracks.providers import all_providers
users = Athlete... | [
"bastien.abadie@gmail.com"
] | bastien.abadie@gmail.com |
36ab449c480d65a79c4ea8aa488c9ea9b231d96c | 4e7c57ffe10b144e81084a0cb406ff993338378f | /tests/test_vlde_return_format.py | 8ef0bb895857389356c9a734e2a96238678e8b8f | [
"Apache-2.0"
] | permissive | myjiejie/vlde | 65c876d8b390033b9c5b49063f9db21dfca2b893 | a5b20835639f0c6d42fc2fe1f42cbbe87d776bb2 | refs/heads/master | 2023-05-14T21:22:10.109000 | 2017-08-06T06:20:14 | 2017-08-06T06:20:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | import pytest
from vlde import Validator, ValidateError, RulesError
def test_vlde_return_format_is_object():
'''
测试返回 object 类型的验证信息
'''
v = Validator(return_format='object')
result1 = v.set_rules('string', 'str')
assert result1.status is True
result2 = v.set_rules('string', 'dict')
ass... | [
"xiaojieluoff@gmail.com"
] | xiaojieluoff@gmail.com |
7da4c9aaf732cf34d6211b259aa76793e428ec41 | 4f7bdeb8d601e29d391cbd08eb8d806158f17e15 | /App_Financeiro/apps.py | cc3f28c42391114c1db58bd871a64f14da46599e | [] | no_license | alexandrelalaina/Gestor | cca523fe3e4c5a9475aa5aca30dfa113a2e759db | ed072ed9065354a492079f3502acca9c8384a566 | refs/heads/master | 2020-04-07T13:47:59.162889 | 2018-12-10T01:14:11 | 2018-12-10T01:14:11 | 158,422,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | from django.apps import AppConfig
class AppFinanceiroConfig(AppConfig):
name = 'App_Financeiro'
| [
"alexandre_lalaina@yahoo.com.br"
] | alexandre_lalaina@yahoo.com.br |
eba72bf58c762207a5c09daf614e1c20370299c3 | 3823561c41ad13d8e07b53ecbbc77411160a870c | /haunted/middleware.py | 1e106b833c6857defeedfc145a3da5e399912c75 | [] | no_license | specialunderwear/haunted-wagtail | 1a692b6bbd4417f7b53c3873df663698a5516aae | 807a5c76ae04d3232577820a53ddcb03e35972b2 | refs/heads/master | 2021-09-09T12:58:37.154153 | 2018-03-16T10:53:46 | 2018-03-16T10:53:46 | 125,199,199 | 0 | 0 | null | 2018-03-14T12:23:37 | 2018-03-14T10:59:59 | Python | UTF-8 | Python | false | false | 1,218 | py | import logging
import re
import lxml.html
from django.conf import settings
logger = logging.getLogger('haunted.ghosts')
def insert_haunted_script(response):
try:
html = response.content
content = lxml.html.fromstring(html)
# styles = content.xpath('//style')
# result = toronado.fr... | [
"lars@permanentmarkers.nl"
] | lars@permanentmarkers.nl |
94087984192daa510b8192dc4e86bfd61635aec2 | 387ed452e67aa495a8c237ebed9b5bcc2d5e99c2 | /jhu_helpers.py | f2a535426cf242221dd4fd75644567a108c02182 | [
"MIT"
] | permissive | felixpatzelt/covid-19 | fdbecdbfb93e1f1d74b669141f1ca4d4db540904 | 5ef14e0bf379527258500f7edaf63f741cc5b4f7 | refs/heads/master | 2021-04-01T14:10:18.016201 | 2020-11-06T19:57:03 | 2020-11-06T19:57:03 | 248,192,752 | 1 | 2 | MIT | 2020-03-25T22:50:13 | 2020-03-18T09:50:26 | Jupyter Notebook | UTF-8 | Python | false | false | 3,342 | py | # Helpers for loading and transforming the COVID-19 data provided the John Hopkins University
import pandas as pd
def get_jhu_data(
url_prefix = 'https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/',
confirmed_file = 'time_series_covid19_confi... | [
"noreply@github.com"
] | felixpatzelt.noreply@github.com |
25c0f5149b1b8478dab19786fbd606db7f34aca2 | a3eafb9ed3a53f5dacf01a1805713080b934a4a2 | /oregano_gui/qt/qrwindow.py | f6f3b5f5a4cfc3f8ac6111db7da1544d49b643a4 | [
"MIT"
] | permissive | cculianu/Oregano | d0b071cf5ff3d8f05a16afbf06530dab07e92e79 | cc08f813f9cbdb80d1ac607892f8439ec064ee04 | refs/heads/main | 2023-04-12T19:22:10.080018 | 2021-05-02T11:42:53 | 2021-05-02T11:42:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,104 | py | #!/usr/bin/env python3
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2014 Thomas Voegtlin
#
# 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 withou... | [
"karol.trzeszczkowski@gmail.com"
] | karol.trzeszczkowski@gmail.com |
11018d159b126cd3b9a30102bd66558aeb5831e1 | 6c2fab5a73c666d41bec2087396851f2d0547c2c | /threading1.py | fcc395d1719b33ff67f488ef243bfe9c4fcfd587 | [] | no_license | legendtkl/pypractise | b89717286d14882a520e3b9626f1eb6a94ddd30a | 234b9c3f78ec76d00a1bab3fced4316131227492 | refs/heads/master | 2021-01-18T21:36:46.044055 | 2016-04-06T10:41:33 | 2016-04-06T10:41:33 | 41,008,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | import threading,time
from time import sleep,ctime
def now():
return str(time.strftime('%Y-%m-%d %H:%M:%S', time.localtime()))
def test(nloop, nsec):
print 'start loop', nloop, 'at:', now()
sleep(nsec)
print 'loop', nloop, 'done at:', now()
def main():
print 'starting at:', now()
threadpool=[]
for i in xrang... | [
"taokelu@gmail.com"
] | taokelu@gmail.com |
6c6dbcaf3913d2e2b2b9fc3c5de707c3b2a3ccde | 96fe7cb1495928a9699ade24200b445755e47f3b | /src/structurizr/api/structurizr_client_settings.py | c8752c888dfdcca0a4140292f2c169cca1c36d8a | [
"Apache-2.0"
] | permissive | Midnighter/structurizr-python | ab4a9f71c01d1febde5c6e61a3a961953f1ef440 | 31f1dcadb3ff113d8a77ce132657237ea01c307b | refs/heads/devel | 2023-02-08T19:43:22.344155 | 2023-01-21T10:12:49 | 2023-01-21T10:12:49 | 144,895,441 | 61 | 16 | Apache-2.0 | 2023-01-21T09:53:35 | 2018-08-15T19:35:01 | Python | UTF-8 | Python | false | false | 3,435 | py | # Copyright (c) 2020, Moritz E. Beber.
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | [
"midnighter@posteo.net"
] | midnighter@posteo.net |
191346bd7866002cf2567ce2f66b37874aa9dafc | c5789b6576ac914ce7269834b6a288ad8fe418a0 | /Utilities/native_event_handler.py | 567ecc5b3fb266a59e6c283f91e75acc9a78d53b | [
"Apache-2.0"
] | permissive | utkarsh7236/SCILLA | 3ebdd2cef7dc65061e4ae334a0c6b50efc052aa7 | e11e4d753823ad522a1b3168283b6e6ffe3ea393 | refs/heads/master | 2022-08-03T18:06:01.905309 | 2020-05-27T08:29:07 | 2020-05-27T08:29:07 | 264,383,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | #!/usr/bin/env python
#==============================================================
import os
import time
import uuid
import fnmatch
from Utilities.decorators import thread, process
#==============================================================
class FileEventHandler(object):
def __init__(self, action, patt... | [
"utkarsh7236@gmail.com"
] | utkarsh7236@gmail.com |
47e1d7e513554163a8a70acdbfa11df610694f3d | cea490c99880c5121c20afdb148340a706b4b5c6 | /src/web-interface/capturepic.py | 8243e782722e09aaa8b3de28bb9220e63f52da33 | [] | no_license | sgichohi/sauron | 1bb3be91b94a7c3e124bbed8af83996f1ee2dbf5 | da0ae915e1cf92195d4f3e5be425877e09a7c138 | refs/heads/master | 2021-07-14T11:23:53.437430 | 2019-11-05T20:38:31 | 2019-11-05T20:38:31 | 14,182,504 | 0 | 0 | null | 2021-03-19T22:17:06 | 2013-11-06T19:07:06 | C++ | UTF-8 | Python | false | false | 1,230 | py |
from utils import ensure_dir
import cv2
from models import CameraFrame
from cameraClient import CameraClient
import os
import settings
def saveImage(conn, parent_dir, session):
ensure_dir(parent_dir)
count = 0L
while True:
path = conn.recv()
fileLocation = path
#print "filelocatio... | [
"samuel.kiiru@gmail.com"
] | samuel.kiiru@gmail.com |
1c019cbb6eb7a1ea56e120459e6de533ca6d8b6c | 0fa113c0b5fdacfa3345672a26875ce2699bc81c | /auctions/migrations/0016_alter_whatchlist_auction_list.py | 560897115378dd327a0ca26324875fe96671eee4 | [] | no_license | Fideran/commerce | 5750fa8c259fba536f06f89a0ff731fc9a95600b | f6a65077d2b76c450750d470e654cf61ba16aeae | refs/heads/master | 2023-08-21T15:54:25.070441 | 2021-10-15T15:42:19 | 2021-10-15T15:42:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # Generated by Django 3.2.6 on 2021-09-08 17:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auctions', '0015_alter_whatchlist_user'),
]
operations = [
migrations.AlterField(
model_name='w... | [
"fenofiderana5@gmail.com"
] | fenofiderana5@gmail.com |
61dace6b37d778c0d4a8d5a63ac59129c3ca283b | 7be0540640d6bbbccebf2c956f424527dd77cd55 | /pytest.py | 26db34d2dafc05d3004aceb579e36fc632884917 | [] | no_license | ToonyawatA/Example | 278bb2f2a07294fa5c3e79a5845254bfa28a678d | 9fdd462c4f1e62de9d38bdc4d2930ab4dab5f832 | refs/heads/master | 2023-03-21T11:29:23.825314 | 2021-03-08T23:59:13 | 2021-03-08T23:59:13 | 343,769,540 | 0 | 0 | null | 2021-03-04T00:25:57 | 2021-03-02T12:37:58 | Julia | UTF-8 | Python | false | false | 62 | py | def abc(x, y):
return x+y
def qwe(x, y):
return x*y
| [
"physicstj301136"
] | physicstj301136 |
77f6db07aa43c88970d7844bffed3e7999b5340a | 953c2cdd9a554b90392dc8754546eb914dd68ee9 | /project/asgi.py | 32bd127d5fbf2bd343b2dd813743871df16b6014 | [
"MIT"
] | permissive | kajala/django-jutil | 68d24b99f706b53f9a183978fcd6e7541e7ac8de | b32aeaeeee8cbcb37a8cf241bd7271e7c9e669d5 | refs/heads/develop | 2023-09-02T10:07:53.334084 | 2023-08-28T14:23:45 | 2023-08-28T14:23:45 | 121,220,767 | 7 | 2 | MIT | 2023-07-02T16:43:50 | 2018-02-12T08:35:25 | Python | UTF-8 | Python | false | false | 407 | py | """
ASGI config for project project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application # type: ignore
os.environ.setdefau... | [
"kajala@gmail.com"
] | kajala@gmail.com |
9b44c3a37622560b29530ed836ed10361b1c5473 | c5758c1f4c880f4530df1a5ffb4c30ee2da445ee | /pytracking/tracker/segm_sk_max/__init__.py | a20006a5c97b46f827888b1d0108506ee38ff2b3 | [] | no_license | bfjei2825401/d3s | 6d662fc301181a0e3ad831b0db6111e3cf8f4097 | 32140a3c67252f0e98cbfbf6ad6d2a79267c221b | refs/heads/master | 2023-02-27T09:57:25.692878 | 2021-01-27T14:20:57 | 2021-01-27T14:20:57 | 297,217,521 | 0 | 0 | null | 2020-09-21T03:23:09 | 2020-09-21T03:23:09 | null | UTF-8 | Python | false | false | 83 | py | from .segm_sk_max import SegmSKMax
def get_tracker_class():
return SegmSKMax
| [
"752958525@qq.com"
] | 752958525@qq.com |
3704fbcb4f01956c37fe375541cac714ce70e6ec | 06cf972369c30da9d98b296bcbc26a826aa98126 | /aloisioimoveis/locations/apps.py | a01c82bdc98cf361b23558596a1fe65896a0c146 | [] | no_license | thiagorossener/aloisioimoveis | 2597422af6ac058ed3b8aa6e58f0f8913488a7fe | f9d974440f9a8cc875da8a1d4a5c885429563c1b | refs/heads/master | 2021-06-16T23:02:11.193518 | 2021-02-01T14:17:10 | 2021-02-01T14:17:10 | 94,144,023 | 18 | 17 | null | 2021-06-10T20:35:48 | 2017-06-12T21:55:18 | JavaScript | UTF-8 | Python | false | false | 156 | py | from django.apps import AppConfig
class LocationsConfig(AppConfig):
name = 'aloisioimoveis.locations'
verbose_name = 'Controle de Localizações'
| [
"thiago.rossener@gmail.com"
] | thiago.rossener@gmail.com |
ae9dabdb231bafe65155539cc2eb4064a18766ef | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02391/s357788596.py | 98d6068bc7580b5bf0215d2b95c7e9d07ff5810d | [] | 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 | 141 | py | v=raw_input()
a=int(v[:v.find(" ")])
b=int(v[v.find(" "):])
if(a>b):
print "a > b"
elif(a<b):
print "a < b"
else:
print "a == b"
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4fb2c6fdfd1cff89412f02edfe39d142b07f782d | 9bdc01fddc660053e23eaf89302f9b8e5daaefdf | /scripts/urdf_create/urdf_create_Lshape.py | 22aabaa0a96e6fc830fee1f784b3af2cdc631108 | [] | no_license | hello-starry/MotionExplorer | 51d4ca1a1325567968ac2119de7c96b0345e5b10 | 01472004a1bc1272ce32a433fe6bde81eb962775 | refs/heads/master | 2023-08-14T21:20:22.073477 | 2021-09-07T17:51:20 | 2021-09-07T17:51:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | import os
import numpy as np
from math import cos,sin,pi,atan2
from urdf_create import *
from urdf_create_primitives import *
L1 = 1.7
L2 = 1.2
thicknessx = 0.2
thicknessy = 1.5
robot_name = 'Lshape/Lshape'
fname = getPathname(robot_name)
f = open(fname,'w')
f.write('<?xml version="1.0"?>\n')
f.write('<robot name="... | [
"andreas.orthey@gmx.de"
] | andreas.orthey@gmx.de |
fe8f88f236d3472237c2ee9d9b15bb78a60de4ab | 31476faeaeac0f7ca2821235899b126736f04887 | /waf/trafficshield.py | b167f11e932c4017b9bfa57291b03b98ed1b8f79 | [] | no_license | h3r1C0d3/sqlmap | 4489335963097b62e40b6a4d9197577744a60295 | bdf72b0ffa309d56d697b3fd91ac0388208b9445 | refs/heads/master | 2021-01-21T00:30:16.796660 | 2013-02-22T16:34:53 | 2013-02-22T16:34:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | #!/usr/bin/env python
"""
Copyright (c) 2006-2013 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import re
from lib.core.enums import HTTPHEADER
__product__ = "TrafficShield (F5 Networks)"
def detect(get_page):
page, headers, code = get_page()
return (re.search... | [
"miroslav.stampar@gmail.com"
] | miroslav.stampar@gmail.com |
050189f07fd0a95927415aec2867f1ab52b53362 | a32c2ee4e6b2b1c6f8db02320c4bd50b17940af5 | /modules/EIMCutQQ/EIMCutQQ.py | d1c8bc0e4432ff9e7a5e04f070bb97c7fad19d9a | [] | no_license | wszg5/studyGit | 93d670884d4cba7445c4df3a5def8085e5bf9ac0 | bebfc90bc38689990c2ddf52e5a2f7a02649ea00 | refs/heads/master | 2020-04-05T02:55:17.367722 | 2018-11-07T06:01:03 | 2018-11-07T06:01:03 | 156,494,390 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 18,726 | py | # coding:utf-8
import threading
import time
from PIL import Image
from uiautomator import Device
from imageCode import imageCode
from Repo import *
import datetime, random
from zservice import ZDevice
from slot import slot
import os
class EIMCutQQ:
def __init__(self):
self.type = 'eim'
self.repo =... | [
"you@example.com"
] | you@example.com |
87dcad0d60cbcbc97e6aa81de84ab0345fc6ac0e | 7e9430ab914d75f40850e8a80455a2a7c02a0871 | /download_video.py | c276d917d90a97f60d0202518affad28c9a9bd20 | [] | no_license | kyle8581/YSCEC_video_download | 86d1de7dede6d0a88f3f80b52f9aa2bd435fc4ea | ff8267ee7347a0af7b077dce864f0725dd940cf1 | refs/heads/master | 2022-12-15T23:46:15.197704 | 2020-09-21T07:46:05 | 2020-09-21T07:46:05 | 295,901,708 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | import requests
from download_chunklist import get_chunklist
BASE_URL = input("가져온 URL에서 /media_**.ts 부분을 제외하고 입력해 주세요 : ")
OUTPUT_FILE_NAME = input("생성할 비디오 파일명을 입력해 주세요 (ex. yonsei.mp4) : ")
chunk_size = 256
chunk_list = get_chunklist(BASE_URL+"/chunklist.m3u8")
with open(OUTPUT_FILE_NAME,'wb') as f:
for ts i... | [
"mapoout@naver.com"
] | mapoout@naver.com |
bc1b83d6e902871ab6739786405a1625f4cf20ed | 7ffff207e11464af0c3a61a917a7dd0df09e27a1 | /ceo_compensation/dot_pairs_ceo_compensation.py | d3ebe9dd441efe06cf2143e3eb81a5e6b7c8e818 | [
"MIT"
] | permissive | aaronpenne/data_visualization | 082100f8c401ee3ba403d116f98deada0d4d804a | 8eb84303e5de4ec4b407432a823869cbb9099bc2 | refs/heads/master | 2022-09-16T01:12:27.101444 | 2022-08-02T05:30:22 | 2022-08-02T05:30:22 | 108,087,423 | 356 | 76 | MIT | 2020-11-30T22:23:06 | 2017-10-24T06:42:06 | Python | UTF-8 | Python | false | false | 2,903 | py | # -*- coding: utf-8 -*-
"""
Attempting to improve this: https://www.reddit.com/r/dataisbeautiful/comments/842tvn/highestpaid_ceos_in_america_oc/
Author: Aaron Penne
Created: 2018-03-13
Developed with:
Python 3.6
Windows 10
"""
import pandas as pd
import matplotlib.pyplot as plt
import os
# Set output direct... | [
"aaronpenne@users.noreply.github.com"
] | aaronpenne@users.noreply.github.com |
402912bcb5d4de24217c9ca835f0151bdfa497d1 | 5daebb0caaf282149f0bd0f063f3cf91c0d222b5 | /0x08-python-more_classes/3-rectangle.py | 69774ab43dfd88ea60794d956cbf3e1a6184a04f | [] | no_license | yacinekedidi/holbertonschool-higher_level_programming | 0ad09a6263ccf2a75f5f5e83fb6c219a0935818e | a970ba4e737524f433be6b7654809ffff4d1168e | refs/heads/master | 2022-12-20T10:58:57.770269 | 2020-09-24T12:33:51 | 2020-09-24T12:33:51 | 259,281,605 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | #!/usr/bin/python3
"""module contains a function.
"""
class Rectangle:
"""
Defines a rectangle
"""
def __init__(self, width=0, height=0):
self.width = width
self.height = height
def __str__(self):
s = ""
if self.__width == 0 or self.__height == 0:
re... | [
"kedidiyacine@gmail.com"
] | kedidiyacine@gmail.com |
944d89ed198b9de755b4dfd5d45e7c18ecf79503 | 05881f001e96ecc32013c96cf5d13b0e008c7f4e | /Train/transfer_0826.py | 92cff5e0d343ed07785aca6477c120f51ec3cae6 | [] | no_license | cht619/Domain-Adaption | 0c22b6f1e2f0f5670c41870d8f4096d8ab551f77 | e53d89237c2fc8137b57e7bd11d4cdcb669cd15f | refs/heads/master | 2022-12-09T08:29:26.055453 | 2020-08-26T04:20:11 | 2020-08-26T04:20:11 | 290,379,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,694 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/8/26 9:21
# @Author : CHT
# @Blog : https://www.zhihu.com/people/xia-gan-yi-dan-chen-hao-tian
# @Site :
# @File : transfer_0826.py
# @Function: 主要修改损失函数
# @Software: PyCharm
import numpy as np
import torch
import torch.nn as nn
import torch.opt... | [
"cccht619@gmail.com"
] | cccht619@gmail.com |
f833a0147426e6839d8c6c4b94930e3deef2695a | 014f6b3b5dc7cb79ff76a3dec7251a4845298eee | /openpbp/test/test_asymmetric.py | 3fcda6d873c1e69d0e00fead4dc1b825822ef2bd | [] | no_license | shawa/pretty-bad-privacy | 39f14e19d9e2948c154a2dc4e3691b7d55999e4f | 16cc9a88b91c39f12a8fe472c89bed6bb71563d7 | refs/heads/master | 2021-01-10T03:48:03.384171 | 2016-04-04T12:17:04 | 2016-04-04T12:17:04 | 55,063,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | import unittest
import asymmetric
import os
import sys
from hypothesis import given, settings
from hypothesis.strategies import binary
import cryptography.hazmat.backends.openssl
class TestAsymmetric(unittest.TestCase):
def setUp(self):
self.kp = asymmetric.gen_keypair()
def gen_keypair(self):
... | [
"shawa1@tcd.ie"
] | shawa1@tcd.ie |
916db4106bd8791b8f778270d70db8aec40fd37f | ac388c2af5405284700cf3531f3b711c3974db75 | /main/__init__.py | 4a553f72b8d27e61c39dcae77964fd3ee9fb5a19 | [] | no_license | jimapple/Bitcorn_demo | 1332403b285754996da7b88ca320b155f9a76147 | d93393a61e2bca63d58595921d27a7d11ec164e8 | refs/heads/master | 2021-08-24T00:30:07.214856 | 2017-12-07T08:21:02 | 2017-12-07T08:21:02 | 113,412,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | __all__ = [
'bitcorn',
'u_bitcorn'
] | [
"609127041@qq.com"
] | 609127041@qq.com |
53aa1b185bea2ffed12ea857520aadb1e656777e | 63fb1e770ee4314d02acf14291cf71d466e4997b | /test/integration/autograder-correct/run_autograder | 1b2b8f9eaf187dc834258e8a9e631da1b27c6d26 | [
"BSD-3-Clause"
] | permissive | TylerADavis/otter-grader | 8266f75bbb7ee848bcef143b94b6c67bcae76ad7 | 9f245a13022b15a20a8340140a9084c550cfba80 | refs/heads/master | 2021-01-16T13:56:59.181420 | 2020-02-25T21:14:29 | 2020-02-25T21:14:29 | 243,145,370 | 0 | 0 | BSD-3-Clause | 2020-02-26T02:00:44 | 2020-02-26T02:00:44 | null | UTF-8 | Python | false | false | 2,677 | #!/usr/bin/env python3
from otter.grade import grade_notebook
from glob import glob
import json
import os
import shutil
import subprocess
import re
import pprint
import pandas as pd
SCORE_THRESHOLD = None
POINTS_POSSIBLE = None
UTILS_IMPORT_REGEX = r"\"from utils import [\w\*, ]+"
NOTEBOOK_INSTANCE_REGEX = r"otter.N... | [
"cpyles@berkeley.edu"
] | cpyles@berkeley.edu | |
406885e2bae201a8afd06ed96e97034725edb058 | 904985f94f055f758f1848d791ca0919d0a1854a | /tests/test_conservation.py | 040d99f5193fde4b43003ae22ed481e7c9128778 | [] | no_license | Sigmanificient/XCrypt | b3b8212d41441c5515177e33127668d0f0860da5 | a9d5af9e5d0f8eb93b32e18b1b85fcc826ac1e15 | refs/heads/master | 2023-07-08T19:32:05.299434 | 2021-08-17T23:14:46 | 2021-08-17T23:14:46 | 397,388,757 | 1 | 0 | null | 2021-08-17T21:33:29 | 2021-08-17T20:54:43 | Python | UTF-8 | Python | false | false | 599 | py | import os
import random
import string
import unittest
import xcrypt
class MyTestCase(unittest.TestCase):
def test_conservation(self):
key = xcrypt.make_key()
for _ in range(100):
seq = ''.join(random.choice(string.hexdigits) for _ in range(500))
enc: str = xcrypt.encode(... | [
"edhyjox@gmail.com"
] | edhyjox@gmail.com |
8d2ca06eeba361ebe34feef3996b6e6043773d1a | 53fdf4ae35af6884445929d576869ff6627a8b50 | /manage.py | 6095b2aa60a0a55a9e0ba619d51f9e028e9bc7b9 | [] | no_license | kippum99/Glimpse | bd50a4cdd32ffdeafefdc7a6a894a1c091627c7d | f60b055dc58ab223e9c40463b637588cee1789b1 | refs/heads/master | 2020-03-27T20:43:51.376146 | 2018-10-24T05:54:22 | 2018-10-24T05:54:22 | 147,089,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Glimpse.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are ... | [
"junekim@Junes-MacBook-Pro.local"
] | junekim@Junes-MacBook-Pro.local |
0d297e9b1049c217cc4d0021507feaa54bc8184c | 989936aecaa9304c8aa2dd329fce29c8456a2b2a | /OculusServer/wsgi.py | 8cbf6dd042f21434f2f8473000669be70fc89167 | [
"Apache-2.0"
] | permissive | edisonzhao/OculusServer | ab167163bf8491c01d6b2729d632be934c625d48 | 0337637f27d47991fdaf4e0f0612bac9400ac554 | refs/heads/master | 2016-08-11T09:00:47.434542 | 2015-10-25T04:58:57 | 2015-10-25T04:58:57 | 44,896,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for OculusServer 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/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"edisonzyzhao@gmail.com"
] | edisonzyzhao@gmail.com |
a572021fd04c049baa3315bbf6f3cc257cbe07b2 | 2d8695c2b7f9418b34c4934a5d827079466f26fa | /linkedlist/singly/reverse.py | a27f8b5366a31f399fb0c48b2f6c3c936f9b491f | [] | no_license | obaid147/python_ds_algos | 9dc8fc85ae625c5a39044fd028f4b79d6157921c | 39303908a4462ef285e65043a151ac26b2baa311 | refs/heads/master | 2022-11-26T07:54:37.107871 | 2020-08-03T07:02:11 | 2020-08-03T07:02:11 | 257,626,023 | 1 | 1 | null | 2020-05-13T15:26:01 | 2020-04-21T14:42:31 | Python | UTF-8 | Python | false | false | 710 | py | class Node:
def __init__(self, data):
self.data = data
self.next = None
class SinglyLinkedList:
def __init__(self):
self.head = None
# Time Complexity --> O(n)
def reverseLinkedList(self):
if not self.head:
return
prev_Node = None
current = ... | [
"obaidfayazwani@gmail.com"
] | obaidfayazwani@gmail.com |
f909d3411cd6dc6251fe0b423103760cc9ea7593 | 924763dfaa833a898a120c411a5ed3b2d9b2f8c7 | /compiled/python/params_pass_bool.py | 00502f37c5eb03db1dc7240108d5760495a113e3 | [
"MIT"
] | permissive | kaitai-io/ci_targets | 31257dfdf77044d32a659ab7b8ec7da083f12d25 | 2f06d144c5789ae909225583df32e2ceb41483a3 | refs/heads/master | 2023-08-25T02:27:30.233334 | 2023-08-04T18:54:45 | 2023-08-04T18:54:45 | 87,530,818 | 4 | 6 | MIT | 2023-07-28T22:12:01 | 2017-04-07T09:44:44 | C++ | UTF-8 | Python | false | false | 2,429 | py | # This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
# type: ignore
import kaitaistruct
from kaitaistruct import KaitaiStruct, KaitaiStream, BytesIO
if getattr(kaitaistruct, 'API_VERSION', (0, 9)) < (0, 9):
raise Exception("Incompatible Kaitai Struct Python API: 0.9 ... | [
"kaitai-bot@kaitai.io"
] | kaitai-bot@kaitai.io |
4f8cb442b126c2879d7a39a87916f78e9d53a6c7 | c9169ae263bb28a231d8c6553cc44db12ab08317 | /data_sequence2.py | 649a06a22ea8a255b6e755525bbe9a9b3e9b8ad6 | [] | no_license | alyssum07/MongoDB | 620ea9b3e47dad83d51a972f6aeee98883bd2ae2 | f3db932172ad629c0d9fa39cbb386453e9a0c221 | refs/heads/master | 2022-09-29T14:43:30.056959 | 2020-05-31T14:54:16 | 2020-05-31T14:54:16 | 268,301,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,311 | py | from pymongo import MongoClient
import pymongo
import datetime
date = datetime.date.today()
netq_collec = f'symphonyorder_netquantity_{date}'
# filtered_collec = f'neworders_{date}'
cumulative_collec = f"cumulative_{date}"
all_list_client_collec = f"client"
connection = MongoClient('localhost', 27017)
... | [
"noreply@github.com"
] | alyssum07.noreply@github.com |
a9756b61c8654e0de01fd685e38c66fe80899ec3 | 1298bca44f9304ba13c1f871c727b1517d05d515 | /Audio_Playback.py | b31db5fc852c738d34103ae7df126198f1f8f4bb | [] | no_license | Dpp3a/DJMM | af3f57a301d704704bc15519d1fff1a6772f2f79 | b0c57f4926451fb7e4589bb3e97381a94dbca24e | refs/heads/master | 2020-04-03T04:49:10.380890 | 2018-10-29T22:02:28 | 2018-10-29T22:02:28 | 155,024,917 | 0 | 0 | null | 2018-10-28T01:30:26 | 2018-10-28T01:30:26 | null | UTF-8 | Python | false | false | 2,492 | py | #!/usr/bin/env python3
import sys
import pysynth as ps
from pydub import AudioSegment
from pydub.playback import play
import re
#Script for taking the musical notes and playing them back as audio for project DJMM Prog4Bio 2018
#Using pysynth to make the wav file
#Note names have to be a to g
#sharps = #, flats = b
#f... | [
"jfo@pfb06.cshl.edu"
] | jfo@pfb06.cshl.edu |
3502a01179712906c54bd114904bb556dc9e6add | e5985846ab9f0ad840f260ff5bd99bd006edfd92 | /works/admin.py | 647b4cb7e0355bd0a32de98db4597fb63e098a94 | [] | no_license | Achekeev/Klinika | ff60ffe14887a063622db0939cef2016b819d2d0 | 5893ef7e30d04c32f6ea40c8eea1c174c791ae80 | refs/heads/main | 2023-03-05T06:14:44.189490 | 2021-02-17T11:10:03 | 2021-02-17T11:10:03 | 330,867,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | from django.contrib import admin
from .models import Works, Blogs, Asks, Feedback, Online
@admin.register(Works)
class WorksAdmin(admin.ModelAdmin):
list_display = ['opera', 'beforeopera', 'afteropera', 'name']
list_filter = ['opera']
fields = ('opera', 'beforeopera', 'afteropera', 'name')
# readonly... | [
"bolotbekovtaalay@gmail.com"
] | bolotbekovtaalay@gmail.com |
7282770b17f53bca0b6cafbe04fa6ef625452666 | 79f78f91827953851090b55137fd04bed4596860 | /mmdetection/configs/faster_rcnn_hr50_fpn_1x.py | 1209f48e89eed8f8c185ad032b4194be4d4f24bf | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | matej-ulicny/harmonic-networks | 850c20b45844d77977ade676e98b73fc4e7da7f1 | de2bbc636b0f1b928e3e043d4bd3090d100ff627 | refs/heads/master | 2022-05-04T15:18:43.334953 | 2022-04-22T12:16:05 | 2022-04-22T12:16:05 | 184,291,128 | 52 | 9 | null | null | null | null | UTF-8 | Python | false | false | 4,933 | py | # model settings
model = dict(
type='FasterRCNN',
pretrained='https://github.com/matej-ulicny/harmonic-networks/releases/download/0.1.0/harm_resnet50-eec30392.pth',
backbone=dict(
type='HarmResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
... | [
"mtj.ulicny@gmail.com"
] | mtj.ulicny@gmail.com |
11fca4c271e671c42c6ee613efc83330024896c5 | 9ac2a765ae71dfe2abb18de74bc6e6e58e82f79e | /payment/serializers.py | 828ea3107df65edb0a220922606289859e31a61a | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | skyydq/GreaterWMS | aaa23bfa6894170692648d18110f6684e1dfe9b3 | e14014a73b36ec0f0df03712a229b0931cb388fb | refs/heads/master | 2023-05-26T00:46:52.541912 | 2021-06-10T09:07:40 | 2021-06-10T09:07:40 | 358,170,149 | 0 | 0 | Apache-2.0 | 2021-04-15T07:39:02 | 2021-04-15T07:39:02 | null | UTF-8 | Python | false | false | 4,317 | py | from rest_framework import serializers
from .models import TransportationFeeListModel
from userprofile.models import Users
import re
from rest_framework.exceptions import APIException
def data_validate(data):
script_obj = re.findall(r'script', str(data), re.IGNORECASE)
select_obj = re.findall(r'select', str(da... | [
"4766704@qq.com"
] | 4766704@qq.com |
13a680e7eea292e02a84ad747852bcc285b37918 | 5c5ce13ece5f8a0327fa752d5b1eb9057aae51d7 | /ClassMate/classMateDB.py | 3a5cddc551c230e6afc1c3c358479b4cc34d4c2f | [
"MIT"
] | permissive | GFBryson/myProjects | 1f4c428c9fc68f670c7375a9b40593e9dbb8c892 | e7bb5ba825867eb39e95c7870a5d31a7615ccdb9 | refs/heads/master | 2018-10-10T02:49:59.467386 | 2018-10-09T02:03:59 | 2018-10-09T02:03:59 | 110,400,819 | 1 | 1 | MIT | 2018-06-23T02:47:32 | 2017-11-12T03:15:30 | Python | UTF-8 | Python | false | false | 2,438 | py | import datetime
import sqlite3
class sdb:
connection=None
cursor=None
def __init__(self):#needed to either create to or connect to the strug and maked the events table
self.connection = sqlite3.connect("classMate.db")
self.cursor = self.connection.cursor()
self.create_db()
def create_db(self):
print("in... | [
"gillianfbryson@gmail.com"
] | gillianfbryson@gmail.com |
443ff33e4c6eefa91b9acadff67dba1d7c677efb | 15d2e5a02013aa65b4048795c50235adf9b089df | /kafka_utils/kafka_check/commands/under_replicated.py | 329327d381275b4293903d403777017a750d015d | [
"Apache-2.0"
] | permissive | agentbond007/kafka-utils | 89ab7822826a8135fdff78ea3cd8fe5c49437f17 | 64e8a11c42dbff969f7a8ca89fe7cfa208ed8ddf | refs/heads/master | 2021-01-19T17:03:06.202505 | 2016-09-27T01:28:20 | 2016-09-27T01:28:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,392 | py | # -*- coding: utf-8 -*-
# Copyright 2016 Yelp 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 ... | [
"alp@yelp.com"
] | alp@yelp.com |
fe8a9e471439cab989137c9047a9c494edb0f015 | bf61570b714408206ee89b68c55d9e8041a3328c | /app/models/collection.py | 11a502096824a78c7a0f5dceff707bd83fac29dd | [] | no_license | Mox93/rizzmi | d77c5588eb3434bbfb98850d40da69a2661cc8a2 | f0b1e8194e77abda8a8d54d26d83bd9359f13d0d | refs/heads/test_deploy | 2023-05-11T07:34:26.896546 | 2019-11-28T15:38:39 | 2019-11-28T15:38:39 | 210,208,394 | 0 | 0 | null | 2023-05-02T18:32:27 | 2019-09-22T20:16:19 | Python | UTF-8 | Python | false | false | 1,588 | py | from common.db import db, ExtendedDocument, ExtendedEmbeddedDocument
class Connection(ExtendedEmbeddedDocument):
"""
A holder for information about the database collection
Its main fields are:
- name: the displayed name in the webapp
- dynamic_document: whether the coll... | [
"mohamed.ragaiy.saleh@gmail.com"
] | mohamed.ragaiy.saleh@gmail.com |
896dfb44a55d9dbe50554c7400554f7e7df1b335 | 7aad8a550d134729a311dc8f733266dbee903ebc | /11_Lines_NN.py | ab9bb58c04c67f02874cbae65ee4aea82e213b53 | [] | no_license | PScipi0/11_Lines_NN | 723d0ad1635f5948f4270932be07020efaaf5bc5 | 13ea56c7a4f3c07c193f9fa5a0185e9d4500e415 | refs/heads/master | 2021-04-04T22:33:43.337505 | 2020-03-19T15:02:00 | 2020-03-19T15:02:00 | 248,495,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,974 | py | import numpy as np
# sigmoid function
def sigmoid(x, deriv = False):
if(deriv == True):
return x*(1 - x)
return 1 / (1 + np.exp(-x))
# input data
X = np.array([ [0, 0, 1],
[0, 1, 1],
[1, 0, 1],
[1, 1, 1] ])
# output data
y = np.array([[0, 0, 1, 1]]).T... | [
"mcgiver2@freenet.de"
] | mcgiver2@freenet.de |
5841e045b491f7081df66ceeb5c9175ca8d51e51 | bea1cc36fd6ec0b37a4cda52163689ca7f3910b9 | /파이썬문법/수 자료형의 연산.py | e60370edf63e62baf4a30d20f2cca67da5de291b | [] | no_license | yeongwoojang/CordingTest-with-Python | 13cbfd8945ce7259ab2c00701e1b3ef72d7656c4 | 2430ad506d7373a462f3783d9877e292965d30ec | refs/heads/main | 2023-02-18T18:54:04.236701 | 2021-01-18T12:35:53 | 2021-01-18T12:35:53 | 330,416,427 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | #수 자료형의 연산
a=7
b=3
# 나누기
print(a/b)
# 나머지
print(a%b)
#몫
print(a//b)
# 거듭제곱
print(a**b) # a^b -> 7의3제곱
| [
"noreply@github.com"
] | yeongwoojang.noreply@github.com |
27d5f039d1aac10122c7c5092b85fb85d45a9bd9 | cb54551c71a91318822a15ba57a3a4b0d661ece6 | /lesson4/hometask3.py | d9904d5fdca41ea8cedccdeed6eeab335e13d5fa | [] | no_license | ElenaDolganova/Python-lesson-1 | 2384bf9ae5479e719f49684829fbd2ddce9eb3dc | c529ec9393f5aeee4dd2cd15d707df7a3c57c702 | refs/heads/main | 2023-05-13T17:51:07.981495 | 2021-06-03T15:43:51 | 2021-06-03T15:43:51 | 358,188,602 | 0 | 0 | null | 2021-06-03T15:43:51 | 2021-04-15T08:42:34 | Python | UTF-8 | Python | false | false | 341 | py | # Для чисел в пределах от 20 до 240 найти числа, кратные 20 или 21. Решите задание в одну строку.
# Подсказка: используйте функцию range() и генератор.
new_list = [i for i in range(20, 241) if i % 20 == 0 or i % 21 == 0]
print(new_list)
| [
"elcorplus@mail.ru"
] | elcorplus@mail.ru |
9f50241da8d05157520332ef1b2a8ef56cdff637 | 110f823639b9cdfb70428e33e15c05ff08287db8 | /sla_dag.py | c6c718b9fb6da70cb40e9489718d495228fc8cce | [] | no_license | harish678/airflow | 27cb00f66151e19557cdb99bfc69e2132fb8698d | 5aa325251a01deb1aaa6d5e93a6f9f48b35cf2dc | refs/heads/main | 2023-02-07T21:46:35.257103 | 2020-12-31T10:12:01 | 2020-12-31T10:12:01 | 325,768,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | from airflow import DAG
from datetime import datetime, timedelta
from airflow.operators.bash_operator import BashOperator
from airflow.operators.dummy_operator import DummyOperator
def log_sla_miss(dag, task_list, blocking_task_list, slas, blocking_tis):
print(
f"SLA was missed on DAG {dag.dag_id}s by tas... | [
"harish678@outlook.com"
] | harish678@outlook.com |
9d8168f1cdedf3b05457fefb7d05eff66a698418 | 687db4c321d9e06fe780a2ee444f1e10648e1fc7 | /manage.py | 9c443460c05034eb3af4ea470ccc5845b3e6ae4d | [] | no_license | nanoy42/yogo | e31c1e0f3a61bd9e874b21dd9b55c0e7e19858d9 | d95d07ce65c7bc0491bdb41b9a4e90bf0ed33800 | refs/heads/master | 2021-12-14T22:15:49.430593 | 2018-06-16T16:42:37 | 2018-06-16T16:42:37 | 189,669,485 | 1 | 0 | null | 2021-11-29T18:00:11 | 2019-05-31T23:27:04 | Python | UTF-8 | Python | false | false | 536 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "yogo.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you... | [
"me@nanoy.fr"
] | me@nanoy.fr |
c99227d1c8c33454bf0965a95d3156375bc33b64 | a16bd2d3cd8c103be2c24c801fce92dc453823a1 | /Tutorials/Libraries-Tools-Frameworks/BlockchainDev/SmartContractLottery/src/scripts/__init__.py | bf5cb77189d7e306d48e829f330c2c6fbc57f0ec | [] | no_license | jerryq27/Cheatsheets | d7fb7c17d55e3b51ca349155fbaf13f9f6fda2db | f9afa5ffb7c031cf4b7932678f4686a38c542f27 | refs/heads/master | 2023-03-11T22:45:46.497858 | 2022-11-21T03:16:12 | 2022-11-21T03:16:12 | 168,776,030 | 6 | 0 | null | 2023-03-07T12:16:31 | 2019-02-02T00:07:10 | Solidity | UTF-8 | Python | false | false | 55 | py | # So Python recognizes the parent folder as a package.
| [
"jerryq27@gmail.com"
] | jerryq27@gmail.com |
64576893967d9f80106f384a1dc7489d7cf1e906 | 802bffe032431a25c3239383e125f94a7b3b8c98 | /carro/carro.py | 36d286cfc29f24a96377b95de6bbee73a0d20258 | [] | no_license | JGiron21/Electronica-TICS | 449d2162134cfda1bad041541fc804429bf287cd | c3ad86b626f03742baa30c2d5697d5b2a396d587 | refs/heads/main | 2023-09-03T15:06:17.669758 | 2021-11-11T03:01:13 | 2021-11-11T03:01:13 | 426,851,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,616 | py | class Carro:
def __init__(self, request):
self.request=request
self.session=request.session
carro=self.session.get("carro")
if not carro:
carro=self.session["carro"]={}
#else:
self.carro=carro
def agregar(self, producto):
if(str(pro... | [
"noreply@github.com"
] | JGiron21.noreply@github.com |
06aba7e4a25889799cbd8d45b1a950d67744908b | 170817af6e590bbf185c1a4ed4d4057f5362d5ca | /projects/travello/views.py | f62c75a038122b837c16043d6a1725af3bd57c39 | [] | no_license | MoisesEnrique/travello | a07b39096892c911820898dacd733945bfb00391 | 0b6887ea799b27cda193c8338b4c08ce40fc5fa4 | refs/heads/master | 2023-06-07T09:41:44.151800 | 2021-06-28T16:11:58 | 2021-06-28T16:11:58 | 377,649,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | from django.shortcuts import render
#importamos de models la clase Destination
from .models import Destination
# Create your views here.
# Creamos la funcion index, para que funcione con la creada en travello/urls.py.
def index(request): #recibira la solicitud del cliente
dests = Destination.objects.all()... | [
"moises.mac@gmail.com"
] | moises.mac@gmail.com |
a7587434ee4645c63e4ed7e6554dea102c9d18c0 | 309318310a47631162b4d057db6430f77d0be388 | /server/system/MongoDBManager.py | d9a1247a1453c73e92b40fddeb0d2d7e74ae8dc5 | [] | no_license | 17chuchu/Media-Analytics-Network-based | d76def61c43a722d3c17f6a62e33254205c5241c | 00005aaa5ddd9ffed641918ac340e68b48c8bdf9 | refs/heads/master | 2022-04-18T19:38:09.618458 | 2020-03-23T09:23:57 | 2020-03-23T09:23:57 | 245,896,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,457 | py | import json
import datetime
import uuid
import datetime
import time
import requests
import nltk
import pymongo
import tweepy
from django.db import connection
class MongoDBManager:
client = None
db = None
collection = None
mention = None
timeline = None
user = None
entities = None
r... | [
"17chuchu.guy@gmail.com"
] | 17chuchu.guy@gmail.com |
e4264085a89617c4a9f1e8fa44198720face8196 | e47264a2f227d50b20c86508d145d6c138e9b4fc | /app/config.py | 1a666d0008fa97d8ddd20b0345842806ae36ebfc | [
"MIT"
] | permissive | giantoak/tempus | 5856e86cb5a19fb3b406fb679ef94bd9ae8b8fd1 | f99092e350344b7dee21eeefde659a04b74e7fc6 | refs/heads/master | 2021-04-09T16:59:40.751826 | 2015-04-10T19:03:17 | 2015-04-10T19:03:17 | 33,481,052 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | import os
dburl = os.getenv('TEMPUS_DB_URL', '')
port = os.getenv('TEMPUS_PORT', 5000)
redisurl = os.getenv('TEMPUS_REDIS_URL', 'localhost')
# Environment variables set by Docker Compose
_opencpu_host = os.getenv('OPENCPU_1_PORT_80_TCP_ADDR', 'localhost')
_opencpu_port = os.getenv('OPENCPU_1_PORT_80_TCP_PORT', '80')... | [
"sam.zhang@giantoak.com"
] | sam.zhang@giantoak.com |
e3340e2bb2c4013256a6653332f3108d9cb7307c | 126a699598079c3a9c0a22b7fe663243239f8dcc | /workflows/pbt/models/tc1/tc1_runner.py | 3a0b24b05963389df09089502cbf3197d0a62bf6 | [
"MIT"
] | permissive | andrew-weisman/Supervisor | d255e8edb7541c716f270a264cca123111beba81 | 9110f85c85dcc2593de68db96dbd0f433a476507 | refs/heads/master | 2023-01-24T21:11:41.058642 | 2020-05-08T16:10:26 | 2020-05-08T16:10:26 | 312,182,445 | 0 | 0 | MIT | 2020-11-24T03:33:56 | 2020-11-12T06:01:40 | null | UTF-8 | Python | false | false | 3,148 | py | # tensoflow.__init__ calls _os.path.basename(_sys.argv[0])
# so we need to create a synthetic argv.
import sys
if not hasattr(sys, 'argv'):
sys.argv = ['nt3_tc1']
import json
import os
import numpy as np
import importlib
import runner_utils
import log_tools
logger = None
def import_pkg(framework, model_name):
... | [
"ncollier@anl.gov"
] | ncollier@anl.gov |
d42c24042185989b69058865b037dd56543b4764 | 18a853effa699c8c6b2a83e0e1b47715c591fe2a | /Code/prod/restful_server.py | 647fd701f6b6086cf8d3b54899755054d731962d | [] | no_license | XrosLiang/intkb | b9ef5126ca8272d3be98f4208c65b85036a11154 | 8b627314b109e8b6f8caff9c6d2142e17238511b | refs/heads/main | 2023-01-05T10:34:38.531123 | 2020-11-04T09:19:23 | 2020-11-04T09:19:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | import json
import os
from flask import Flask, request, jsonify
import time
from datetime import datetime
from kbcompleter import KBCompleter
from apis import enhanced_linker
import time
app = Flask(__name__)
kbcompleter = KBCompleter()
@app.route('/test', methods=['GET'])
def test():
return jsonify({
"m... | [
"bernhard2202@gmail.com"
] | bernhard2202@gmail.com |
3dae3b132e8398faebe644036eb7ac6200d2c1d4 | 38c22752a95b94f66d9e7f35709ad417378cd3df | /home/views.py | ea400efa6cb486204ede4482e3a2964220d51ef6 | [] | no_license | mr-engin3er/congator | f71e4cd6469ef3d982a070a3dd209c15fa28931c | 36697f3085d34d4617c6496d3c86c72eb3f2ab5d | refs/heads/master | 2023-02-10T18:15:37.691607 | 2021-01-05T16:39:39 | 2021-01-05T16:39:39 | 327,058,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,408 | py | import requests
from bs4 import BeautifulSoup
from django.shortcuts import render
from .models import Search
# Create your views here.
AMAZONE_URL = 'https://www.amazon.in/s?k={}'
FLIPKART_URL = 'https://www.flipkart.com/search?q={}'
def index(request):
return render(request, 'home/index.html')
def new_search... | [
"dheerajsanadhya@gmail.com"
] | dheerajsanadhya@gmail.com |
f23254a003f62103d9cf0c1daf2d17a5a8661d7c | 9d25e3339c6d964769f02ffe2dcfcbd98d6588b8 | /hul_test - Copy.py | 72ffa9465270a247ddfe6180d1762f9cf445e10e | [] | no_license | LimKaiZhuo/strainsensor | c4e4ae786b51aa0b674860b41eef04acac79b7c8 | 8307e69758c71c46e2496e2f87a844061c8e77e3 | refs/heads/master | 2023-01-14T16:27:16.459520 | 2020-11-17T09:49:00 | 2020-11-17T09:49:00 | 203,913,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,819 | py | from keras.layers import Input, Dense, Lambda, Layer
from keras.initializers import Constant
from keras.models import Model
from keras import backend as K
import numpy as np
from own_package.features_labels_setup import load_data_to_fl
from own_package.models.models import create_hparams
# Custom loss layer
class Cus... | [
"limkaizhuo@gmail.com"
] | limkaizhuo@gmail.com |
7832b91058e738847544b4d63bc17514548576df | 52cc87565521204ad8268bc5cd3bdf8c2e7570a9 | /4.2. Course_Gen/venv/Scripts/easy_install-3.7-script.py | a1b39f1d3cc2e9b08bd73095beaec04de787347f | [] | no_license | WadeShadow/I_S_labs | 07c2837031c84315409bb2c2bf546c84021799d0 | 69b9c0795cd9d3ec268d8ce697b3be198d450606 | refs/heads/master | 2022-10-05T20:38:01.227677 | 2020-05-26T21:15:30 | 2020-05-26T21:15:30 | 258,615,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | #!C:\Users\dsokolovrudakov\Downloads\4\gen_alg\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r... | [
"worldkeeper17@gmail.com"
] | worldkeeper17@gmail.com |
02e7d6dd2c05cd4ab78ac45fd92c316ad971c20e | 8b1be1876f71e71f6adc7819cea94d4b7faf4a17 | /src/demo_poc.py | 6e326142642176dca18735ccca82345026d4243b | [] | no_license | MihaCim/CogloTools | f68528d31045c5bf020ebea143d0da9670478f82 | 43837c69a5858d6400e8d6c39dc9edb9b6ec00cf | refs/heads/master | 2021-06-06T19:10:56.954538 | 2021-05-25T11:24:29 | 2021-05-25T11:24:29 | 169,245,444 | 0 | 0 | null | 2021-01-30T00:24:46 | 2019-02-05T13:27:24 | Python | UTF-8 | Python | false | false | 99 | py | from modules.demo.api_poc import CognitiveAdvisorAPI
server = CognitiveAdvisorAPI()
server.start() | [
"ensidio94@gmail.com"
] | ensidio94@gmail.com |
a29625c84a55b65eac5e4f9564bd2a6e23ba8bcb | cc493f7e3b2fcac999d9d632b394bf1e53a26026 | /eventPlanner/migrations/0008_auto__add_attendee.py | ae9891070e17eff295442fad3311c6e45ad1127d | [] | no_license | SteveKhuu/eventPlanner | 3337c9a1e065f0e405c6f41b029b71df027db1aa | fb260dbdde848eaed9c0b97314162d4d39f530d3 | refs/heads/master | 2020-03-26T17:51:15.044870 | 2012-12-01T14:47:07 | 2012-12-01T14:47:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,389 | py | # -*- coding: utf-8 -*-
import 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 'Attendee'
db.create_table('eventPlanner_attendee', (
('id', self.gf('django.db.m... | [
"Stephen_Khuu@epam.com"
] | Stephen_Khuu@epam.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.