blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
559e7cf427eed5557dbf2584f0a0122c5073701d | adf84e1c5d2f717e51af53ee4e1141afbe47e53e | /metadata_extractor.py | beb8f97212d73a33b51f9596e7c63a7774525c2c | [] | no_license | Hallec/SAWTools | c955a7383d34fea615add9753dbd0cac1a036c52 | 88e96406b35192e1977d801dfdd722589bebf04d | refs/heads/master | 2021-08-23T02:41:47.027613 | 2017-12-02T16:33:58 | 2017-12-02T16:33:58 | 112,791,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,631 | py | #!/usr/bin/env python3
import os
import re
import time
import json
import secrets
import requests
import datetime
import argparse
import googlemaps
import subprocess
import configparser
from PIL import Image
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
class MetadataExtractor:
... | [
"saw@saw.com"
] | saw@saw.com |
ba4522ad55dbece12e1e1aee2aebbb878afd032c | 4f6b1013e77c9dd909038f0c790d436985bd2a75 | /cifar10_example/wrn_28_10_baseline.py | a14b11c99b72ebf27d1196b4aaeed461efe46ef8 | [] | no_license | joonsang-yu/Network-Recasting | 820fb8cac9a8efbd82cf6dad36a58afda5a77123 | 886a8ac5e7d1f7c884928d97deea34adfd258e75 | refs/heads/master | 2020-04-28T14:51:23.270742 | 2019-06-21T01:19:38 | 2019-06-21T01:19:38 | 175,351,504 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,767 | py | # Import torch and model
import torch
import torchvision
import torchvision.transforms as transforms
import torch.optim as optim
import torch.optim.lr_scheduler as lr_scheduler
from torch.autograd import Variable
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
import sys
sys.path.append("... | [
"shorm21@dal.snu.ac.kr"
] | shorm21@dal.snu.ac.kr |
a819f0bbd31b39542a7f259702d30ca5f646f260 | 391f170a8c61e49fe6fcaea1e5942a02341398de | /appointments_scheduler/app/models.py | 88ab3c404d3b681c75619a95dd2a760b27f1e506 | [] | no_license | bhargavaganti/appointments_scheduler | 5755639ba4d23fd8c3b4a162e1726214bd19d992 | b57ec02827041b504ca2eb38680f953f5350297d | refs/heads/master | 2020-04-10T06:56:22.657184 | 2018-03-05T20:52:32 | 2018-03-05T20:52:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,624 | py | # -*- coding: utf-8 -*-
from django.db import models
class Patient(models.Model):
""" Representative class for the patient table in database. """
SEX_CHOICES = (
('F', 'Female'),
('M', 'Male')
)
name = models.CharField(max_length=250, verbose_name='Nome')
birthdate = models.D... | [
"viniciuschan@hotmail.com"
] | viniciuschan@hotmail.com |
a927158be32566f3165b2f91adcba401db0009e2 | 8439bea3d530d29d83a215f75c495c8720a37acd | /Project/Project/pageslist/reducer.py | 2533d346f0f9ba84c93d8d2c5ef123d8ac5a0c18 | [] | no_license | gfalcone/LogAnalysis | 8599d3b6e5922155ea1b337084a8bae1f87f962c | e6a8258633201dab2a54844432158cd02848cca2 | refs/heads/master | 2018-12-28T07:29:35.108472 | 2015-03-03T12:06:46 | 2015-03-03T12:06:46 | 31,596,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | #!/usr/bin/python
import sys
totalNumber = 0
oldKey = None
for line in sys.stdin:
data_mapped = line.strip().split("\t")
if len(data_mapped) != 2:
# Something has gone wrong. Skip this line.
continue
thisKey, thisNumber = data_mapped
if oldKey and oldKey != thisKey:
print... | [
"paologenissel@gmail.com"
] | paologenissel@gmail.com |
bafa8d6d5390a2c94bf8f17ec808289408d16115 | f70bf7dc7f3eae1bd1f55b2d8400a002762deeed | /main.py | f08f68bf13cceba4e60e62562608489249f646a9 | [] | no_license | ShedrackGodson/spaceInvader | dfb503132a962b61b2d4ba949560ff6bf9f5f334 | 998ac7cc2b44966133512148e3d221a388dc341d | refs/heads/main | 2023-06-10T03:06:31.002709 | 2021-06-22T10:07:42 | 2021-06-22T10:07:42 | 379,758,551 | 1 | 0 | null | 2021-06-24T00:08:52 | 2021-06-24T00:08:52 | null | UTF-8 | Python | false | false | 4,570 | py | import pygame
import random
import math
from pygame import mixer
#initiate pygame
pygame.init()
#create the screen
screen = pygame.display.set_mode((800,600))
#background image
background = pygame.image.load('images/background.jpg')
# backgroound music
mixer.music.load('sounds/background.wav')
mixer.music.play(-1)
... | [
"mgenih914@gmail.com"
] | mgenih914@gmail.com |
9282f0f2d60b06e9b9fc014933fb9d202252282c | ee78f995af759dd5a4358d0c3b25c2b822bd0a9c | /mybapp/views/first_rigs/form.py | f790b51467c0c0816262393ee68e7ade5c900ceb | [] | no_license | Garcia-Julz/mine-your-business | 5d615078b298865e85bfca84a6e1bb049e41b684 | bc7618b164067c48dcbeb188d79c4188618107b2 | refs/heads/master | 2021-09-26T16:47:13.432539 | 2020-08-11T14:35:04 | 2020-08-11T14:35:04 | 246,666,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,429 | py | import sqlite3
from django.shortcuts import render, redirect
from django.urls import reverse
from mybapp.models import Ticket, Rig
# from mybapp.models import model_factory
from ..connection import Connection
# from .ticket_details import get_ticket
from django.contrib.auth.decorators import login_required
# @login_r... | [
"garcia.j.julian@gmail.com"
] | garcia.j.julian@gmail.com |
a2320094d3de4d7a17062ce221f96b8313e02f33 | 520634ca00b12d12cc0952bab04bf3ee55622118 | /python/paddle/v2/fluid/tests/test_sequence_expand.py | 0f22612d3dbe483e4d5a8638636e44e172160156 | [
"Apache-2.0"
] | permissive | LeungGeorge/Paddle | 6d18866cda5e6ce01acdb8061707f42c5852fd54 | b2ade90ec65d0de1c23d4982f6b29485ff68de63 | refs/heads/develop | 2021-09-10T16:25:18.319966 | 2018-03-29T06:30:07 | 2018-03-29T06:30:07 | 115,273,399 | 0 | 0 | null | 2018-03-29T06:34:05 | 2017-12-24T15:57:41 | C++ | UTF-8 | Python | false | false | 2,099 | py | import unittest
import numpy as np
from op_test import OpTest
class TestSequenceExpand(OpTest):
def set_data(self):
x_data = np.random.uniform(0.1, 1, [3, 1]).astype('float32')
y_data = np.random.uniform(0.1, 1, [8, 1]).astype('float32')
y_lod = [[0, 1, 4, 8]]
self.inputs = {'X': x... | [
"wanghaoshuang@baidu.com"
] | wanghaoshuang@baidu.com |
162669ddc7a2cfe7fffd20b2993e22b246593cf8 | cc3e8c5b7912a8289eb1dcbfad50b98ecfea0ccf | /PatrickDandPeterF/FeatureClassTools2.pyt | 7270460b73b22f28dbd45af0744b9b908b9d56c2 | [] | no_license | acgis-fair0089/gis4207-day03 | 6c6a9aeb15c2a1c9e507394f4000538b01c6bd42 | ccac6edca322006600f3ae0f4f200365c62c40ab | refs/heads/master | 2021-05-09T15:23:56.178137 | 2018-01-30T15:04:28 | 2018-01-30T15:04:28 | 119,091,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,435 | pyt | import arcpy
class Toolbox(object):
def __init__(self):
"""Define the toolbox (the name of the toolbox is the name of the
.pyt file)."""
self.label = "Toolbox"
self.alias = "fctoolsPYT"
# List of tool classes associated with this toolbox
self.tools = [BasicDescribe... | [
"fair0089@algonquinlive.com"
] | fair0089@algonquinlive.com |
b8b05646cbff68391707c965423c95ffb1cde81f | 27e74d73ed008532a6827033acac5ff937e846f5 | /test-subject.py | eedf7a63c4d6298bf97d8013c406dc6651964832 | [] | no_license | amitmittal117/bs4-with-multithreading | 0a182774904827da826671fe989db45f02a8dbc0 | dc3c9d4fde4a20176b97c9a30690e5f24fdcdf1c | refs/heads/master | 2020-03-20T00:57:27.172449 | 2018-06-12T20:20:24 | 2018-06-12T20:20:24 | 137,062,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | # from BSFOUR import *
import threading
def retriever_soup(st):
# print (st)
return (st)
# arr =["http://www.facebook.com","http://www.google.com"]
arr =["http://www.google.com"]
arr_of_functions = [retriever_soup,retriever_soup]
def m_thread(arr_of_function):
threads = []
for i in range(len(arr_of_function)):
... | [
"amitarmittal@gmail.com"
] | amitarmittal@gmail.com |
ef35b89dd5410350e58399fe98455e588eb8b924 | 4a95637e59696f783424eb673e60c0cfa82f96ba | /even-fibonacci.py | d7bf4110651932044bd44643f2a030fac292c5b7 | [] | no_license | katiebug2001/project-euler | eca6ee2aaecf914b10c464e79d24a283f289ab9a | c00fe5c9e3c76715f3792549f1c130cc637baa01 | refs/heads/master | 2021-01-20T02:28:40.066880 | 2017-08-15T18:09:56 | 2017-08-15T18:09:56 | 89,411,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | import unittest
def even_fibonacci(up_to):
"""Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
By considering the terms in the Fibonacci sequence whose values do not exceed fou... | [
"katie@honsingerfamily.com"
] | katie@honsingerfamily.com |
c1285be45d4c6b2c73314456eaebe6a127ec96ab | c7f32bfb03559f012daff57991cb977c4a334182 | /Homework/hw2 n-queens/code/submission.py | 12b31f3fa3833cd24d41a5e3cfe626da8d8ebf58 | [] | no_license | reeddotaer/AI-PAs | c26ea0e4d0339ce04f6cc4eabc34249bd2e47735 | 0c367e483bd13cb6cd73a5cadaa9f7e1f2a11572 | refs/heads/master | 2020-09-23T00:36:01.094724 | 2017-06-28T15:14:32 | 2017-06-28T15:14:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,198 | py | import collections, util, copy
############################################################
# Problem 1
def create_nqueens_csp(n = 8):
"""
Return an N-Queen problem on the board of size |n| * |n|.
You should call csp.add_variable() and csp.add_binary_factor().
@param n: number of queens, or the size... | [
"hutianxiao_fdu@126.com"
] | hutianxiao_fdu@126.com |
1eced88ff0f03519808423767eaf750e207e3445 | 3f7caea7eefe154c0a1e41a16f6d2f7679f3083e | /testcase.py | 5bfee1fe7d32bdec03257b7f8eaa782d8138fbde | [
"MIT"
] | permissive | fiber-space/t3 | 42cbb71aa15ace2cd0f77855dfdcd739af8ac39b | 47e38cc956b3da55dde1c22fd71c12477e6a2aed | refs/heads/master | 2021-01-10T11:27:59.937639 | 2016-03-07T03:53:17 | 2016-03-07T03:53:17 | 53,105,782 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | # ======================================================================
#
# Copyright (C) 2016 Kay Schluehr (kay@fiber-space.de)
#
# t3testcase.py, v B.0 2016/03/03
#
# ======================================================================
__all__ = ["T3TestCase", "ExpectFailure"]
import abc
import sys
i... | [
"kay@fiber-space.de"
] | kay@fiber-space.de |
4575374be2e7976e2f336e05ff19aeeef1452441 | f3eeb766d2ef73b696a23cbf44aa27c59d7e758f | /train/train_single_l16.py | f09f4db9d355ff89f409eeb0c00427ffc5143938 | [] | no_license | lazycal/learned-index-tuning | dce3777bf164963fa28edd83b8911fd3a0597448 | 64d814ba5ba802b86f48e759181d57d814e19dae | refs/heads/main | 2023-02-07T09:09:20.325680 | 2020-12-15T03:26:46 | 2020-12-15T03:26:46 | 318,956,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,313 | py | import numpy as np
import torch
import torch.nn as nn
import torch.optim as optim
from operator import itemgetter
import tqdm
import random
import matplotlib.pyplot as plt
# %matplotlib inline
import numpy as np
import argparse
import timer
import struct
import math
from sys import byteorder
assert byteorder=='little... | [
"noreply@github.com"
] | noreply@github.com |
639f16425d3065089d8b72c9284afc0205529c27 | e74148971dad06f0e2541a81bb8581f5caf47002 | /apps/courses/migrations/0002_auto_20180307_1633.py | 4edb24b38e9742ff230aee998762343b783215fa | [] | no_license | hanchaobiao/mxonline2 | f07d643ad57f73b622eb2af5992cf741088307a9 | 62887b2c492d8cb5d2100aa80e879a268580878f | refs/heads/master | 2020-04-07T20:59:44.893558 | 2018-03-07T12:25:27 | 2018-03-07T12:25:27 | 124,231,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2018-03-07 08:33
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0001_initial'),
]
operations = [
migrations.Alter... | [
"1017421922@qq.com"
] | 1017421922@qq.com |
67d39e23e66dfb2ff728bb624916f24b36df5d90 | f64708d12edac4df2899f6de7159d58e79c8127e | /AT_new_version/utils.py | 038d444d30f791ccc5252ba6aba0168d9c354d13 | [] | no_license | pyzeon/Algorithmic-trading | 80312a504666fd00851cecc38e8963b4e3217be4 | b4f2b2a8a8fbccd3591a949e1e1930e259118565 | refs/heads/master | 2023-01-05T18:29:04.946528 | 2020-11-03T20:03:37 | 2020-11-03T20:03:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | import numpy as np
def adjustsignal(signal):
sig=[]
qtite=0
for i in signal:
if i > 0 :
sig.append(i)
qtite+=1
elif i < 0:
if qtite >= abs(i) :
sig.append(i)
qtite+=-i
else:
sig.append(0)
else:
sig.append(0)
return sig
def dietz_court(signal,close):
dat... | [
"noreply@github.com"
] | noreply@github.com |
4477b9fb1695e3b060ea98d5438539eb5f051705 | d8430588f0272f21032646f950e733cb1eee2c88 | /tests/controllertest.py | c0851909643fa22251b4e3a1d8bcc90388c74f93 | [
"MIT"
] | permissive | Global-Biofoundries-Alliance/DNA-scanner | d45be63a96f342deb5f1da12cb5427cb424a1bed | e5be9685b6f3d34057282a59716541f69ad74a87 | refs/heads/master | 2023-03-08T17:02:22.695234 | 2022-02-28T11:04:46 | 2022-02-28T11:04:46 | 218,476,001 | 15 | 6 | MIT | 2023-03-02T07:47:40 | 2019-10-30T08:15:42 | Python | UTF-8 | Python | false | false | 36,529 | py | import unittest
from itertools import combinations
from sys import maxsize
from Controller.app import app
from Controller.configurator import YmlConfigurator as Configurator
from Controller.session import InMemorySessionManager
from Pinger.Entities import SequenceInformation, SequenceVendorOffers, Currency
from Pinger... | [
"eggileierkopf@gmail.com"
] | eggileierkopf@gmail.com |
fa2b2a1158c3ab146b8c8ab6e8951d485ca786ec | d8292f284a5ce2b21eab72f843a760a90f7071d9 | /utils/dataset.py | 3f995a447fe43b780d6217d302c797ac29c79378 | [] | no_license | Dmitrsl/bengali | c017602e63ce7049a47d34d74700dd82fb8d18c4 | 78d70e20bb3c1285c7c560185c03442eee5ad156 | refs/heads/master | 2021-03-24T08:38:01.379960 | 2020-03-23T20:21:04 | 2020-03-23T20:21:04 | 247,534,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,432 | py | from torch.utils.data import Dataset, DataLoader
class DatasetMixin(Dataset):
def __init__(self, transform=None):
self.transform = transform
def __getitem__(self, index):
"""Returns an example or a sequence of examples."""
if torch.is_tensor(index):
index = index.tolis... | [
"daslabuhin@gmail.com"
] | daslabuhin@gmail.com |
85ae3e7423d8300e64ba4d6da39efbbeb00dff83 | 6be0663a30b61f90d1bdfcc19f95360cc5025a8f | /dataset.py | cb73588e6b7106133a438fd12ecafcdcc85c6a62 | [] | no_license | paulo-eusebio/CNN-RD | e191dd97b48ee7c2510c4e2776a7f7f9d7b36013 | d342d584b38814137e8fdd2949f6932284cfbdf5 | refs/heads/master | 2020-09-25T10:29:12.682694 | 2019-12-15T15:56:45 | 2019-12-15T15:56:45 | 225,986,597 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py |
import torchvision.transforms as transforms
import torch
from PIL import Image
import os
#Run dierctory and load images
def get_images_from_path(root):
images = []
for _,_,filename in os.walk(root):
for i, img_name in enumerate(filename):
path = os.path.join(root, img_name)
... | [
"noreply@github.com"
] | noreply@github.com |
a7a7cb295983b8413312ecd07fd113cf47096232 | fb69b8dfa221b21b42ca0e456cfb7d73b10fdf46 | /shadowcraft_ui/models/ArmoryDocument.py | ea7eeda3376aae804a8e55862a55b0e783921dfa | [] | no_license | ShadowCraft/shadowcraft-ui-react | 8a9107d8bb3f828a421f0353b7604720fe694350 | d738618664002f1ad2dac674166554c1eebf4508 | refs/heads/master | 2021-09-20T12:34:01.937359 | 2018-08-09T21:19:05 | 2018-08-09T21:19:05 | 77,808,815 | 6 | 0 | null | 2018-06-09T06:03:55 | 2017-01-02T03:33:50 | JavaScript | UTF-8 | Python | false | false | 2,008 | py | # -*- coding: utf-8 -*-
import re
import os
import requests
USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36'
class ArmoryError(Exception):
status_code = 200
pass
def get(region, path, params=None):
if region in ['us', 'eu', 'kr... | [
"timwoj@ieee.org"
] | timwoj@ieee.org |
74bc86c8f16604ca3cd74876f70d09cfaef95070 | a568e4dc461f71f0ae053fe51e3ddd0fe23bf858 | /development/index_site.py | 1789373a554d1f41d08b10458f9e08a08425dac8 | [
"MIT"
] | permissive | vatlab/sos-docs | 413e344a7581e4e2cef5da3d24345a73f3669c43 | 2b42c280dae0feaeea51161041827c362abe6db0 | refs/heads/master | 2023-06-26T04:30:59.078944 | 2023-06-16T20:26:39 | 2023-06-16T20:26:39 | 105,951,462 | 3 | 15 | MIT | 2023-06-16T20:18:39 | 2017-10-05T23:46:39 | Jupyter Notebook | UTF-8 | Python | false | false | 4,206 | py | #!/usr/bin/env python3
#
# Copyright (c) Bo Peng and the University of Texas MD Anderson Cancer Center
# Distributed under the terms of the 3-clause BSD License.
#
import os
import glob
import re
import argparse
from bs4 import BeautifulSoup
'''
A simple script to create tipue content by searching for documentation
fil... | [
"ben.bog@gmail.com"
] | ben.bog@gmail.com |
3fe9d4678fac3c54f94f97299fb2bdb7ba5d3da8 | 7ae2283953f9a5b9673f7517c1368a0a041ca814 | /Tests/abc.py | 3e3eee2d505c46d45273f72fb229cf5b9f790486 | [] | no_license | pipinyusuf/CS361 | cb871c8bfe7db02dcf677cd3a8aa229a50018af1 | 2ddd9deecd992305baca17c21fba989b5603ac9a | refs/heads/master | 2021-01-24T21:42:29.691594 | 2015-10-20T07:09:30 | 2015-10-20T07:09:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | __author__ = 'PipinYusmar'
print "CS361" | [
"pipinyusuf@std.sehir.edu.tr"
] | pipinyusuf@std.sehir.edu.tr |
067493b7e934150857bb49406f36824818f12fbe | 137daf138aeceeec51b520a3bbc4010047060486 | /user/migrations/0002_auto_20210307_1837.py | 4b66b286cc32aa284ce756492adf7b13cf06940c | [] | no_license | Eif-Hui/dicrunner | fbed92adc9c1c72c579b1f1525c8fff358e9a96b | 9030663e480a3e43739b0abf3778e964a8e1d0b1 | refs/heads/master | 2023-04-12T01:07:02.099697 | 2021-05-05T08:50:53 | 2021-05-05T08:50:53 | 349,745,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | # Generated by Django 2.0.2 on 2021-03-07 10:37
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('user', '0001_initial'),
]
operations = [
]
| [
"a1048946288@qq.com"
] | a1048946288@qq.com |
8cb2e3178a46236934f06608ccab0a3968851124 | e38c7cd23c3971a40a40c8bba0ca5aca97baebbd | /manage.py | 6e47ab5d065a706feaa9dc48aa517260242db7d1 | [] | no_license | trungbom1997/ok | c59bd5e1c37fb8dee86cb05364a57ce638d985f4 | 262f1922320b3f2b2a4b1af6bd9db32a1817568c | refs/heads/master | 2023-03-31T20:48:03.883455 | 2021-04-14T04:03:50 | 2021-04-14T04:03:50 | 357,766,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangoonline.settings')
try:
from django.core.management import execute_from_command_line
except... | [
"trungbom1997@gmail.com"
] | trungbom1997@gmail.com |
09e27f917b5d099dfb19c7fc2e98bf5b871335c1 | 5d5aec6b9790cfebd1ab6175a9c37807e7aba943 | /Sipy_Test/wifiTest.py | ca403fd8faa835a6d9bc041e102bf51c07a5134e | [] | no_license | gjsanchez26/Lantern | 99f2e1a8907d98bb9445bdf3f5e8a90ac95f19f8 | bb82c9490a85a34f7047cfaea2d206991c2c1c00 | refs/heads/master | 2020-03-19T07:11:15.252041 | 2018-06-14T22:56:47 | 2018-06-14T22:56:47 | 136,094,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,468 | py | import network
import time
import socket
import http_client
# setup as a station
def connectWifi(SSID = 'LANTERN', PASS ='electric'):
wlan = network.WLAN(mode=network.WLAN.STA)
wlan.connect(SSID, auth=(network.WLAN.WPA2, PASS))
while not wlan.isconnected():
time.sleep_ms(50)
print(wlan.ifconfi... | [
"erick.cobo@lantern.tech"
] | erick.cobo@lantern.tech |
493d6259c636e88410b4cd0efa0fe9d4c20a1543 | d6918b8b3fb70e67028fd198f88dc48d84f9281b | /timer/migrations/0011_auto_20160825_0935.py | 55f465341651e00fb759fff8847983f60c739982 | [] | no_license | Joepriesto/Dashboard | aa129b7cba30c5d7cba34491591742f1d2a68c9c | f0a337de7408bfb3ea253c03b0165f8525664fa6 | refs/heads/master | 2020-09-18T15:43:03.008895 | 2016-09-02T16:50:22 | 2016-09-02T16:50:22 | 66,042,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-08-25 08:35
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('timer', '0010_auto_20160823_1523'),
]
operations = [
migrations.AlterField(
... | [
"joe.priestman@googlemail.com"
] | joe.priestman@googlemail.com |
ea2793abe07a25467fb61292b764ddc1f7d4ac4c | 68263c011d12b19d6ff17f0f2420fe497ef28fc2 | /api/tacticalrmm/core/views.py | 93d53c22c421640a769e0772dfab93f3222aa002 | [
"MIT"
] | permissive | bradhawkins85/tacticalrmm | 79ec6f003b559c96d15a5bd0621a2e968d2ea53d | 4371f270569a6eb094dda834f2d1b14ed62af5e4 | refs/heads/develop | 2023-05-21T13:19:47.187899 | 2020-09-02T18:52:40 | 2020-09-02T18:52:40 | 292,421,792 | 0 | 0 | MIT | 2021-05-05T05:55:52 | 2020-09-03T00:06:11 | null | UTF-8 | Python | false | false | 1,723 | py | import os
from django.conf import settings
from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework import status
from rest_framework.exceptions import ParseError
from rest_framework.parsers import FileUploadParser
from rest_framework.views import APIView
from .... | [
"dcparsi@gmail.com"
] | dcparsi@gmail.com |
7a0c7d1bbc17334988f6acac5e540b63d9db0355 | 68422192efbc69368fed7e4d92ce46bb85f3356e | /drops.py | c1a14c9250ee0351641ff67f21a8153ec0adf960 | [] | no_license | sodooj777/isepuniversidad | 3f544c8aafae13720775a101e92f197015ac1378 | 236812d8d7584a2a7fb38995165d3d3626373c8b | refs/heads/master | 2023-03-01T17:09:23.735161 | 2021-02-11T06:34:08 | 2021-02-11T06:34:08 | 337,925,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | # lista y se convierte el numero en una cadena dentro de la lista con la funcion string
variable = [(str(39)),str(45),str(546),str(11)]
# se crea un diccionario para las gotas de agua
p1={1:'Plic',2:'Plac',3:'Ploc'}
# imprimimos por pantalla la lista con el numero de la posicion concatenada con el dicionario que q... | [
"carlosed1995@gmail.com"
] | carlosed1995@gmail.com |
c6cf25eb1bcbfe72a8329aee900d3f0232f5d326 | 29b431b04f44cc2e8c3aec80642d1acc537f38d9 | /paddle/fluid/operators/generator/generate_op.py | dad5df7430d477de862c1184468579a0bfc5c9cc | [
"Apache-2.0"
] | permissive | phlrain/Paddle | 0a2fd2275a2484f8f97bf3a5a212c2981821e65b | 55745273a914f5d303fc09e42caee132c693670c | refs/heads/develop | 2023-08-08T01:28:49.413870 | 2023-06-05T03:29:56 | 2023-06-05T03:29:56 | 153,714,070 | 0 | 2 | Apache-2.0 | 2022-11-24T02:11:22 | 2018-10-19T02:15:54 | Python | UTF-8 | Python | false | false | 28,795 | py | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | noreply@github.com |
de8074fe4170e2bd14801b70bceb614046f97b3e | 4b68243d9db908945ee500174a8a12be27d150f9 | /pogoprotos/settings/trading_global_settings_pb2.py | d2d9db44611b0f5eebc2b3e22c3a68f670146ab3 | [] | no_license | ykram/pogoprotos-py | 7285c86498f57dcbbec8e6c947597e82b2518d80 | a045b0140740625d9a19ded53ece385a16c4ad4a | refs/heads/master | 2020-04-20T10:19:51.628964 | 2019-02-02T02:58:03 | 2019-02-02T02:58:03 | 168,787,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 2,630 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pogoprotos/settings/trading_global_settings.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.... | [
"mark@noffle.net"
] | mark@noffle.net |
bca085e398edd382371aeb211b3f719cc7861cb3 | 3f3701e14260f56df52423508975cafe5685ad56 | /systems/admin.py | 44e45a3caa3c5ecd8c8e71932347399ac35277c4 | [
"MIT"
] | permissive | alexhong121/ai_cupboard | 199c09dbe570361de18495d6d667a4ee4b350409 | 50baa791c969b951de5b47d980e19c0df3c04e7f | refs/heads/main | 2023-04-05T22:37:18.568888 | 2021-04-25T09:03:18 | 2021-04-25T09:03:18 | 341,413,625 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | from django.contrib import admin
from systems.models import Configuration,Information
# Register your models here.
admin.site.register(Configuration)
admin.site.register(Information) | [
"atom12342@gmail.cpm"
] | atom12342@gmail.cpm |
6429a80d8b4822fab1dc829284b02d46bbf89cd2 | d7e0e7cfd2ddb9bed1dcacf0eb80f84bf8911863 | /task.py | fe2874f353715dfd7a677c0022d905a0c7630081 | [] | no_license | k1995/github-trending | 468b5d1881bc25b5e567b8aa2e06bc1022efda99 | f03981d80630b06ac32a475bbc48d00177d9094e | refs/heads/master | 2023-04-14T16:44:52.697707 | 2023-04-01T08:10:31 | 2023-04-01T08:10:31 | 221,254,111 | 22 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | import subprocess
import time
import os
from datetime import datetime
from git import Repo
def push2github():
repo = Repo(os.path.split(os.path.realpath(__file__))[0])
remote = repo.remote()
remote.pull()
mod_count = 0
for untracked_file in repo.untracked_files:
if untracked_file.startswi... | [
"k1995328@gmail.com"
] | k1995328@gmail.com |
0e9564a5a20175f0da9657953bf2153785a0027c | adf6efc6323fa2e046813fd383c022262691b8e5 | /generate_galaxy_catalog.py | 167a6c2174f8bc771127de5ba6ce0eb485b6ca62 | [
"MIT"
] | permissive | wdpozzo/bbh_cosmology | 3e30495d7d06921010d36d325f6e6cfcdbafa3e1 | 8c497204829caae08b2542d6396409d7f87e84a2 | refs/heads/master | 2021-01-19T23:20:32.388770 | 2017-04-21T09:27:43 | 2017-04-21T09:27:43 | 88,965,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,889 | py | import numpy as np
import emcee
import readdata
import cosmology as cs
from scipy.misc import logsumexp
from scipy.interpolate import interp1d
import sys
import os
from optparse import OptionParser
def lnprior(theta, DistanceFunction, VolumeFunction):
ra,dec,z,M = theta
if 0.0 < z < 2.0 and 0.0 < ra < 2.0*np.p... | [
"noreply@github.com"
] | noreply@github.com |
f74f7e447d0e2893e7a6107cd1c1c90ba43d92aa | 15760fec2e8ccdc9c654ee685bdae7ca8126935f | /info/modules/wx/views.py | 76eff5aa14e994d187196048f316c8390c2db667 | [] | no_license | Python-Full-Stack-Team1/Multi_dockers_GPU_Visualized_Management | e3e76ac9266e558e6b19db17bf57672d62f2ed36 | a4522be836425d3cccdf2c108f56ba6cbc10e26d | refs/heads/master | 2022-03-31T07:37:50.987119 | 2020-01-14T09:04:08 | 2020-01-14T09:04:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | import os
from flask import render_template, jsonify
from info.modules.wx import wx_blu
@wx_blu.route('/source_data')
def source_data():
# 获取服务器上面的数据
terminal = 'docker stats --no-stream --format "{\\"container\\":\\"{{ .Container }}\\",\\"name\\":\\"{{ .Name }}\\",\\"memory\\":{\\"raw\\":\\"{{ .MemUsage }}... | [
"zhaoxingrong@outlook.com"
] | zhaoxingrong@outlook.com |
3dcc56e34644f42ea06d92fb7188107801b668d2 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/KCB_YCHF/KCB_YCHF_MM/YZYQ/yzyq_144.py | 83432d061fadacfc51640039e13e534672cfe407 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,038 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
b4f24ffaaea2e92ee984aa16bfcbf7e2cb5c2f75 | 1d1d08f15976b1e961f08f89c9f5200cff540972 | /python/lcd/lcd.py | c129cf9775875c5a637e24d441ace9c6bf995b6d | [] | no_license | yamayuu-ics/raspi | a3bcc95948eb63ee73915687eff8f1fdcf0ff89d | 077543764008a70d7abc450af4b5fd46719bfab9 | refs/heads/master | 2021-04-03T10:06:25.718346 | 2019-07-07T04:13:49 | 2019-07-07T04:13:49 | 125,212,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | #!/usr/bin/python3
# config:utf-8
import smbus
import time
LCD_ADDR = 0x3e
LCD_SET_DDRAM_ADDR = 0x80
class i2cLcd:
i2c = ""
addr = ""
reg_setting = 0x00
reg_display = 0x40
col_num = 16
row_num = 2
def __init__(self,bus_num,addr):
self.addr = addr
self.i2c = smbus.SMBus(bus_num)
# LCD init
self.i2c.... | [
"noreply@github.com"
] | noreply@github.com |
52e94929af409e629b58e4f74e3792dea52e1c6e | 6a56d2a22722613ad9f691426195a091c58ce3f2 | /networks/lr_schedule.py | 84ebe67b86483d603d3060bd03da5c8d7c8e9418 | [] | no_license | xungeer29/iMet-Collection2019-FGVC6-Baseline | 673e4f48e8294111ccc4261316dfe9e425e64d9b | 3d250522962c4f313c619d69d81223369d066ca2 | refs/heads/master | 2020-05-15T11:23:04.209876 | 2019-04-19T09:42:11 | 2019-04-19T09:42:11 | 182,225,104 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py |
def half_lr(init_lr, ep):
lr = init_lr / 2**ep
return lr
def step_lr(ep):
if ep < 20:
lr = 0.01
elif ep < 50:
lr = 0.001
elif ep < 100:
lr = 0.0001
elif ep < 150:
lr = 0.00001
elif ep < 200:
lr = 0.000001
else:
ep = 0.0000001
return ... | [
"fuxungao@163.com"
] | fuxungao@163.com |
82e3753314c788b6d6036ebc089b277b3b47233f | d1488b7a6db143cbd131bb2daa9246394828191d | /kodovi/genalg.py | eed937d1d693638b9d072865678e92d7cce40fde | [] | no_license | nynazdravkovic/Evolution-of-population-which-plays-cooperative-games | db4f1eff9c08f6ef9866edc4e6621c14edf91e4a | b01c1f7a195c392903d581ce30e78e6f14e3e339 | refs/heads/master | 2022-07-31T17:46:00.669436 | 2019-07-20T10:47:14 | 2019-07-20T10:47:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,769 | py | # -*- coding: utf-8 -*-
"""
Created on Thu May 10 23:41:01 2018
@author: nina
"""
import random
import numpy
from copy import copy, deepcopy
import matplotlib.pyplot as plt
from math import sqrt
import xlsxwriter
brojJedinki=100
brojCiklusa=100
koeficijentKrosovera=0.05
brojGeneracija=1000
cc=3
cd=2
dc=5
dd=1
razlic... | [
"nyna.zdravkovic@gmail.com"
] | nyna.zdravkovic@gmail.com |
553a4c0b4ef5b63e713ccd759d4de0d80786768e | d4172bf3becd7d0935b4634a20fa0e075ba96516 | /lunar | 50955e9e0c7c2cb01fdd56b1d57ea98ef3ae7652 | [] | no_license | zer4tul/utils | a0b0afb247aa23a9e69b17e086eac9b88d7562e1 | 0f821286bc2fa48e2a58f78fb439a82ecf928298 | refs/heads/master | 2020-05-17T23:50:34.018366 | 2012-12-15T19:13:07 | 2012-12-15T19:13:07 | 5,438,826 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,749 | #!/usr/bin/python2
# -*- coding: UTF-8 -*-
'''
Usage: ccal Month [4-Digit-Year]
or: ccal 4-Digit-Year Month
This Python script is to show Solar and Lunar calender at the
same time. You need to have Python (2.0 or above) installed.
Acceptable date range: 1900/2 -- 2049/12
Output contains Chinese characters (mai... | [
"zer4tul@gmail.com"
] | zer4tul@gmail.com | |
20016baa26d09806a500f854ac0ec23afa286bf3 | c973eaab508bc8c8d73dac9d031b421198dfaa7d | /static/python/main.py | 5824b40e2a3b2dc24201ebc34333eb3af2847aa8 | [
"Apache-2.0"
] | permissive | synbiozis/site | 3862abcd121e9ec230e72a7133db0fcd78a34f4b | 227d062c564f9bde39cc9e1db4aee6b8cfcb1b88 | refs/heads/master | 2016-09-15T20:48:11.415573 | 2014-05-27T12:08:34 | 2014-05-27T12:08:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | #!usr/bin/python
#coding: UTF-8
from time import time
from pop import population
pop = population()
print 'population start with a fittest of', pop.getFitness(pop.getFittest())
gen = 1
vals = []
fitness = 0
popMax = pop.getMaxFit()
while fitness < popMax:
start = time()
fittest = pop.getFittest()
fitness = po... | [
"synbiozisnetwork@gmail.com"
] | synbiozisnetwork@gmail.com |
330610aa83168adce0eca72d95abdabe6dfa1b24 | c0cb5fa9757af4e7ce73950a99c8156f889b3fc9 | /src/impl/convert.py | e3486062645ba3aecc71d568cc3de51d0e9fb366 | [] | no_license | wangpeijian/python_image_compress | 6e6d4771b34d63e83874715791cd036b05dd0b6d | 6c40da328a0cbf865fc71d2a185887781d56f334 | refs/heads/master | 2020-05-16T01:58:56.039423 | 2019-04-22T07:36:42 | 2019-04-22T07:36:42 | 182,615,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | def byte2m(size):
return size / (1024 * 1024)
| [
"wangpj@citic.com"
] | wangpj@citic.com |
271c94deb9f0b01b0ffc2866d015a0c9cf3ce405 | 74405b9d430eb33a76a7f74fdc7c01791553538a | /RangeVisualiser.py | 236e45700bacfd51e0269c658b3156258682e204 | [] | no_license | timmac98/PokerRangeVisualiser | 9416ffadf34af06215484d44ed2f612011cfaee5 | c611266e2b1386db4024e7981259686a853af520 | refs/heads/master | 2022-11-14T09:09:19.326737 | 2020-07-11T13:18:06 | 2020-07-11T13:18:06 | 278,861,045 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,745 | py | import sys
import matplotlib.pyplot as plt
from PyQt5 import QtWidgets, QtCore, QtGui
from PyQt5.QtWidgets import QMainWindow, QSizePolicy, QPushButton
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.figure import Figure
from RangeFunctions import *
clas... | [
"noreply@github.com"
] | noreply@github.com |
166bbf770ff6bda83d03c33605fba8e31f857028 | ba1061443f83d65033347c8e8896618005fbb32e | /236A/236A.py | 77017c03e2dc298d69ed8f4b7933cd0b98e3b6fe | [] | no_license | epidersis/olymps | 9388f690d4cc282bb5af2b8f57094a5bacce77eb | ff22f97d8cc7e6779dc8533e246d0d651e96033e | refs/heads/master | 2022-07-31T01:50:42.950753 | 2022-07-18T21:51:47 | 2022-07-18T21:51:47 | 130,722,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | print('CHAT WITH HER!' if len(set(input())) % 2 == 0 else 'IGNORE HIM!')
| [
"epidersis@gmail.com@"
] | epidersis@gmail.com@ |
9eaffcb6afaae736bde3cf8a5eae7997e0a27763 | d6a8e914bc63dbe836d2ba37d80cf1003dafcf7a | /autoencoder.py | f490e637f195b707de08da77fa20013478e5b01c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | msofiperez/Efficient-Segmentation-Networks-BDD100K | 5601c82f52ebf4928841a7993e5266139eefc5ba | 5e0e23f19e3f893716ffb56c1eb28db17a19f21e | refs/heads/master | 2023-03-16T23:03:25.722363 | 2021-01-06T12:20:59 | 2021-01-06T12:20:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,366 | py | import time
import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
import torchvision.transforms as T
from torchsummary import summary
import numpy as np
from PIL import Image
import matplotlib.pyplot as plt
from skimage.transform import resize
import pickle
from tqdm import tqdm
class ... | [
"noreply@github.com"
] | noreply@github.com |
98ed9deade0bd75c9da1b0f10f1790c75fe07f02 | b96160a6f178d2e2f5b777ed3bc674febd73f764 | /website/movies/migrations/0006_auto_20170701_2355.py | e3bc7bb4f4dbdb6841a3b3db8afca74238dd4af9 | [] | no_license | kotzila/website | d7d6e5d01b695f35d397a7b9e0bd4c7e47dedf52 | 78261e32b5413986dd519a106b032f17d5ab5440 | refs/heads/master | 2020-09-15T13:57:45.924940 | 2017-08-11T22:26:37 | 2017-08-11T22:26:37 | 94,479,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-01 23:55
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('movies', '0005_auto_20170701_2340'),
]
operations = [
migrations.AlterField... | [
"n.kotiuk@levi9.com"
] | n.kotiuk@levi9.com |
3d426320b86cfd35d5ba9c006870dfb9a7fe29d8 | bae212aeaaa962a78fb733e59a1dccb4e5490b17 | /pay.py | d8ecc6f949df39524c2110e5f5270e7d2d31d2f1 | [] | no_license | caicaicmd/42_02 | 6153e6fbd4c57475b62015b293b063a5b24c34cf | 99a5b9e7c935cc448fc2ba35d05da3d68213cf6b | refs/heads/master | 2023-01-24T07:19:06.250492 | 2020-12-08T01:47:04 | 2020-12-08T01:47:04 | 319,214,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | pay = 1
pay =2
pay =3
| [
"317280271@qq.com"
] | 317280271@qq.com |
3b49b64e1dae8135fb4981d0de98b06174694804 | 4313db3203a9b0a7ffbe6210038c16c0ae87c3a1 | /DBMS/o.py | 8a9d023b0969a96f0049fac6339acc6848824173 | [] | no_license | krishna0631/program1 | 761e9b069e502d50a69b06700b0ff413a8ba2a32 | 577fb348d6335456015574c422a8a98e0e134a86 | refs/heads/master | 2023-07-27T21:34:23.004169 | 2021-09-12T12:34:01 | 2021-09-12T12:34:01 | 397,205,955 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | f = open("application.txt" , "w")
f.write("semester")
f.close() | [
"321910306039@gitam.in"
] | 321910306039@gitam.in |
61bc779a1546701f5153a4a6635e4020d619e8cb | 22c5fc7dd52149ebd4338a487ae9ab0db0e43f01 | /tests/test_dynunet.py | 39371c0e1dc31ecb08ea630eefe8443f705fb731 | [
"Apache-2.0"
] | permissive | precision-medicine-um/MONAI-Deep_Learning | 3d3f547dd9815152561a6853f8d4727b0e5ca4c4 | d94c4d3a2c465717ba3fae01b7acea7fada9885b | refs/heads/master | 2022-12-28T07:04:07.768415 | 2020-10-17T13:11:56 | 2020-10-17T13:11:56 | 305,346,962 | 3 | 0 | Apache-2.0 | 2022-12-27T15:44:13 | 2020-10-19T10:30:07 | Python | UTF-8 | Python | false | false | 5,036 | py | # Copyright 2020 MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, s... | [
"noreply@github.com"
] | noreply@github.com |
762eb5522286793c28ee067dc804473cca9f7b95 | 801f367bd19b8f2ab08669fd0a85aad7ace961ac | /project/experiments/exp_025_pns_start_identity/src/tmp_which_nodes_are_slow_results.py | 2b351dbe039f6593b70e34ad3375078ad22ad97b | [
"MIT"
] | permissive | Wendong-Huo/thesis-bodies | d91b694a6b1b6a911476573ed1ed27eb27fb000d | dceb8a36efd2cefc611f6749a52b56b9d3572f7a | refs/heads/main | 2023-04-17T18:32:38.541537 | 2021-03-12T19:53:23 | 2021-03-12T19:53:23 | 623,471,326 | 1 | 0 | null | 2023-04-04T12:45:48 | 2023-04-04T12:45:47 | null | UTF-8 | Python | false | false | 2,040 | py | import pandas as pd
with open("output_data/tmp/which_nodes_are_slow.txt", "r") as f:
grep_results = f.readlines()
for idx, line in enumerate(grep_results):
if "1785959" in line:
print(grep_results[idx-1])
print(line)
break
# exit(0)
l = len("output_data/tensorboard/")
df_results = pd.... | [
"sliu1@uvm.edu"
] | sliu1@uvm.edu |
aea833987932118bb08607201ce8e15b3c3632c2 | 02b0c773bb2c12088e9a8b6f365318d39766f10d | /python/sparkdl/utils/__init__.py | 459489e1357c778f7e6b8074d745eef6d80bb8a0 | [
"Apache-2.0"
] | permissive | mateiz/spark-deep-learning | ad08a3644d49201695f5654f4cbfa263e9b32e99 | dee8fbff74c807bdbf72edf3588d4d5f64f36b0b | refs/heads/master | 2021-01-21T22:05:22.956166 | 2017-06-20T20:29:16 | 2017-06-20T20:29:16 | 95,158,292 | 21 | 4 | null | 2017-06-22T21:32:09 | 2017-06-22T21:32:08 | null | UTF-8 | Python | false | false | 583 | py | #
# Copyright 2017 Databricks, 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 agreed to in writ... | [
"sueann@databricks.com"
] | sueann@databricks.com |
f4a3e0804a70173539fe6532e76bd4f2271b729f | 0ff6b85d089b619ab0e5f4050a899492dfb69a54 | /Shopping/forms.py | 83d9da8bb809e8614a660efb34bba86ece08934b | [
"MIT"
] | permissive | gaybro8777/EarnWhileShop | 06ff5fecac5909c2e2dcff2bdecf5f26165c777d | 87a512c8f222d84c90cb8c934c1588a7d96c9cce | refs/heads/master | 2021-09-15T14:43:22.533176 | 2018-06-04T18:43:49 | 2018-06-04T18:43:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | from django import forms
from Shopping.models import Purchase
class PurchaseForm(forms.ModelForm):
class Meta:
model = Purchase
fields = ['link', 'quantity', 'paytm_number']
def __init__(self, *args, **kwargs):
super(PurchaseForm, self).__init__(*args, **kwargs)
| [
"reetikasingla@Reetikas-MacBook-Pro.local"
] | reetikasingla@Reetikas-MacBook-Pro.local |
98fe52e38140e1691a95e0a3e3e42abfcfd8ead4 | d96289f157e2bbbf6f3560f3cc327e490df84b54 | /exp_configs/__init__.py | c98ed0eabbf9a5cd320bccd9a1242a1ddc6f5ad4 | [] | no_license | IssamLaradji/semantic_segmentation_template | 74e8766ce3265ba7fc9416f9c85811d05dca39f9 | f7286eaafb5d5bc81e2f7d6bb87f6e24db026a08 | refs/heads/main | 2023-08-22T09:53:37.381702 | 2021-10-14T21:45:42 | 2021-10-14T21:45:42 | 417,287,252 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from . import issam_exps, sandra_exps
EXP_GROUPS = {}
EXP_GROUPS.update(issam_exps.EXP_GROUPS)
EXP_GROUPS.update(sandra_exps.EXP_GROUPS)
| [
"issam.laradji@gmail.com"
] | issam.laradji@gmail.com |
afe3a9ba15f4ac055951ce002500dff757f98992 | cca3251c362bbdcd7033c4839466c6afd2c1bbbb | /src/chap13-Serverless/cdk-lambda-dynamodb-fargate/lambda/decimalencoder.py | 192aacfece549673a6b1897f7732e101959f4f29 | [
"MIT"
] | permissive | paiml/python_devops_book | 6dec6929b22042a640b041674b9a07ae271e0262 | 0c8f543aa243d1484deb7f01ffe6876a4176d376 | refs/heads/master | 2023-08-17T01:21:37.838933 | 2023-08-10T12:05:22 | 2023-08-10T12:05:22 | 185,512,695 | 444 | 313 | MIT | 2020-07-20T18:26:14 | 2019-05-08T02:26:06 | Jupyter Notebook | UTF-8 | Python | false | false | 288 | py | import decimal
import json
# This is a workaround for: http://bugs.python.org/issue16535
class DecimalEncoder(json.JSONEncoder):
def default(self, obj):
if isinstance(obj, decimal.Decimal):
return int(obj)
return super(DecimalEncoder, self).default(obj)
| [
"grig@gheorghiu.net"
] | grig@gheorghiu.net |
33324b6f85ce808ce752672c7be977d539d6b991 | 75b0e3f962ad2f2247c0ec663211711446b6f4f4 | /tempotesthaha.py | 4eaff2a135e14f64b4085a04396cadfa12767ae0 | [] | no_license | bomaru83/Diary | 71ee2187da55a39f30fd873cdbf1684a04dc3a93 | ebe1e8fa2df118d51382966e0cd94f7070ebcf2f | refs/heads/master | 2022-12-28T04:00:53.111916 | 2020-09-06T09:02:37 | 2020-09-06T09:02:37 | 380,447,555 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | import os
print() | [
"multirkh@gmail.com"
] | multirkh@gmail.com |
0e5abee4de9cf7ba42739fc0944d99ae5f5e4d29 | 9aef279969fdcede35f6656afb1b0cd2fd3e10e2 | /weather_xml_sax.py | 0dc49400e0983065689ce91d9ce0a97deccca1ac | [] | no_license | namespace123/-Python3Study | 6cd7dfa334157ac67b02279fddbc37ddc78019f8 | b151baa63c4c49ab497cc7bf0de6a841edb97697 | refs/heads/master | 2020-05-04T16:48:29.894204 | 2019-04-11T12:41:32 | 2019-04-11T12:41:32 | 179,288,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,536 | py | # -*- coding:utf-8 -*-
from xml.parsers.expat import ParserCreate
weather_dict = {} # 定义天气字典
which_day = 0 # 哪一天
# 定义解析类 这三个函数在廖雪峰老师xml这一节中介绍了
# 包括三个主要函数:start_element(),end_element(),char_data()
class WeatherSaxHandler(object):
def start_element(self, name, attrs): # 定义start_element函数
global weather_... | [
"2319175156@qq.com"
] | 2319175156@qq.com |
226afbd5b0df5e31e93c21680612dff96643d534 | 0afddba1fff35c8045ad12d08a8818182fd0401e | /maya/plug-ins/mtoa_1.2.7.3_maya2015/scripts/arnold/ai_params.py | 161b97e36105a9b67404db7dab2ef685e1026702 | [] | no_license | zhihuijarr/th_repos | b0e648f2b55389970caa878dddebc2cc90328a6e | 013b6c8d6aa510a13c6fa507a457d5df920558fc | refs/heads/master | 2021-01-23T06:26:05.678942 | 2017-06-03T12:49:45 | 2017-06-03T12:49:45 | 93,022,517 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,073 | py |
from ctypes import *
from .arnold_common import ai, NullToNone
from .ai_matrix import *
from .ai_array import *
from .ai_enum import *
from .ai_color import *
from .ai_vector import *
from .ai_types import *
# Parameter types
#
AI_TYPE_BYTE = 0x00 ## Byte (an 8-bit sized unsigned integer)
AI_TYPE_INT = ... | [
"61692940@qq.com"
] | 61692940@qq.com |
f4bff5cd10b131b2a0d7ac0bf7e2d36014f08278 | 6160586aa239eada16e735d40d57970dedbe1dfc | /modules/app_additional/app_customaction/app_customaction_delete.py | c182fad8429e4802d3dfe6058d3c4d97757f8530 | [] | no_license | showgea/AIOT | 7f9ffcd49da54836714b3342232cdba330d11e6c | fe8275aba1c4b5402c7c2c2987509c0ecf49f330 | refs/heads/master | 2020-07-23T10:19:37.478456 | 2019-09-23T12:25:59 | 2019-09-23T12:25:59 | 207,525,184 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | import requests
from config import readcfg
header_Gary = readcfg.header_Gary
header_Jenny = readcfg.header_Jenny
url = readcfg.url
def app_customaction_delete(customActionId):
url_ = url + "/app/v1.0/lumi/app/customaction/delete"
params_ = {
"customActionId": customActionId
}
proxies = {'http... | [
"tangguobing2011@163.com"
] | tangguobing2011@163.com |
d1361e5603dbcad0458945a81f77ece19988ca14 | 4e59c2444334c67e419dbc97a2fd326115f15555 | /db_orm_models/blocking/presence/browsing_intent_snapshot/methods.py | 64c2c313d23e2bb2069b8e73e40c8bdb2a79cfe0 | [
"MIT"
] | permissive | bbcawodu/nav-online-backend | cebf41fd3373606ac880b1fc4935885d13948c86 | 3085ad686b253ea82478eb2fc365f51dda6d9d96 | refs/heads/master | 2021-01-22T04:44:13.105412 | 2018-08-14T16:40:55 | 2018-08-14T16:40:55 | 102,269,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | def filter_query_obj_by_session_id(query_obj, obj_model, rqst_session_id, list_of_ids):
if isinstance(rqst_session_id, unicode) and rqst_session_id.lower() == "all":
query_obj = query_obj.order_by(obj_model.presence_browsing_session_data_id)
else:
query_obj = query_obj.filter(obj_model.presence_... | [
"awodubradley@gmail.com"
] | awodubradley@gmail.com |
a67f9471dfad52bb32c3cf6d82951add395fd2e1 | 023d1e8996a1df353274ed90ca3d152b769fdba5 | /metrics-collector/utils/send_email.py | 18505be3544bbab101a390c09e77796e8d001fce | [] | no_license | vpineda7/cron-metrics | e158d9f6f1d7fe8d6694ff816ef1950ffd9e39b1 | 5d846d76d6b1612d80aefa9984e1fccaf277b617 | refs/heads/master | 2021-04-15T12:10:09.572258 | 2015-06-04T00:11:41 | 2015-06-04T00:11:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,537 | py | import smtplib
from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIMEText
from email.MIMEBase import MIMEBase
from email.Utils import COMMASPACE, formatdate
from config import get_io_config
env = get_io_config('email')
EMAIL_SERVER, EMAIL_PORT, EMAIL_PASS, EMAIL_USER, EMAIL_DOMAIN = env.EMAIL_S... | [
"manuel.garrido.pena@gmail.com"
] | manuel.garrido.pena@gmail.com |
640bf576ae100bad50a362e33563bbee122794d6 | f7dbe475e882e6bd74242c6ef286c17f1950727d | /logwebserver.py | d21929a738398a1c76155db5d74970e17f9b045d | [
"MIT"
] | permissive | snowytoxa/logwebserver | d1e1c99bd8f625e382c675b6c0dfa23cdd99e336 | d7089707eb45609251efbb00ebcf2ad66077444e | refs/heads/master | 2021-01-24T12:37:16.348497 | 2018-02-27T15:03:17 | 2018-02-27T15:03:17 | 123,143,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,594 | py | #!/usr/bin/env python3
'''
Simple webserver that stores POST requests and let you browse it
'''
from datetime import datetime
import logging
import os
import os.path
import tempfile
import warnings
from flask import Flask, request, make_response # pylint: disable=import-error
from flask.exthook import ExtDeprecationWar... | [
"asapozhnikov@spotify.com"
] | asapozhnikov@spotify.com |
d4557af3b7c995ca54723859be3c135e46354a04 | c5e9a375c56344506fceac680a9f892331a6d3c9 | /flask/venv/bin/easy_install-2.7 | bed0b5ad2f21edf4597cacd4326fa715203b69a2 | [] | no_license | JackyGuo1/python-repos | 7bca293ee0c1ee4c75a0ae97a0d60f1c116aac4d | 4e5ea0ff1479694afb6533e44a2398fe74afea95 | refs/heads/master | 2016-09-05T13:56:19.436035 | 2015-01-04T06:47:20 | 2015-01-04T06:47:20 | 26,110,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | 7 | #!/home/jiaqi/flask/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'distribute==0.6.24','console_scripts','easy_install-2.7'
__requires__ = 'distribute==0.6.24'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('distribute==0.6.24', 'console_scripts',... | [
"leon.k.scott@hotmail.com"
] | leon.k.scott@hotmail.com |
0687859952c1036a7b340e2b2af5c0511016df40 | 9f09ecfed34f5014116a1c7afadec2b9c07e9971 | /example_project/some_modules/third_modules/a53.py | 4271b8389a1366db2940c7006acd0fb466cfcb5a | [
"MIT"
] | permissive | Yuriy-Leonov/cython_imports_limit_issue | a04ce73e8c750f3a61d7aaacaf58665273bf4a49 | 2f9e7c02798fb52185dabfe6ce3811c439ca2839 | refs/heads/master | 2020-09-11T23:57:56.677138 | 2019-11-18T17:48:50 | 2019-11-18T17:51:07 | 222,232,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | class A53:
pass
| [
"tavoseg@gmail.com"
] | tavoseg@gmail.com |
94705d4e2128f06e29bf796bf924325c991c560f | 48b0742def8a12162b272fbf984bc33ec28cb2fb | /magedu/9.上下文.py | 49f327b3a7f767058d17b73d91abc5f7084f8c46 | [] | no_license | AprilJW/python_test | 3e6ddb90827ac6ba9d441861739d04d05cf21813 | 20510c5500d26776e33b101063998776f01f7566 | refs/heads/master | 2020-08-11T00:26:31.141732 | 2019-11-29T14:20:15 | 2019-11-29T14:20:15 | 214,453,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,470 | py | import time
import datetime
def timeit(add):
def wrapper(x, y):
t1 = datetime.datetime.now()
result = add(x, y)
delta = (datetime.datetime.now() - t1).total_seconds()
print(delta)
return result
return wrapper
@timeit #add = wrapper(add)
def add(x, y):
#time.sleep(... | [
"1078059455@qq.com"
] | 1078059455@qq.com |
f9f3ba0f86cb31c0305308331904a6391387ee1a | 523703bf78e0199f1ad63f1a103723f1ba2452aa | /my_debugger_defines.py | 3e25f60628cba64df9ee1ff7efa42fa398628854 | [] | no_license | MaskedFox/GrayHatPython | f1ba154b27b362daa2fec4aa2e6793f1cbc81f6c | 4ab762f79c821454fcc686a5a58f1f8de35a324a | refs/heads/master | 2020-08-27T10:44:28.058881 | 2015-04-28T04:28:35 | 2015-04-28T04:28:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,192 | py | from ctypes import *
# Let's map the Microsoft types to ctypes for clarity
BYTE = c_ubyte
WORD = c_ushort
DWORD = c_ulong
LPBYTE = POINTER(c_ubyte)
LPTSTR = POINTER(c_char)
HANDLE = c_void_p
PVOID = c_void_p
LPVOID = c_void_p
UINT_PTR = c_ulong
SIZE_T = c_ulong
# Constants
DEBUG_PROC... | [
"grazfather@gmail.com"
] | grazfather@gmail.com |
59700c65c91e5ce73f50aa34b200bbc3f41af236 | 93deecf5c4faf15658ec0739d8e8f852d50bb0d9 | /djangosite/djangosite/wsgi.py | eecc35b59cc6a646755cd1af960f27f663fa833a | [] | no_license | nurnabilarzar/task | fe4e70d417e9ed7ad2585c4cdd3d446a290e57f2 | d308d05f37bab2348efd03642af04892e6896282 | refs/heads/master | 2020-06-10T06:42:19.948871 | 2019-06-25T01:49:57 | 2019-06-25T01:49:57 | 174,452,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for djangosite 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/dev/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"nurnabilarzar@gmail.com"
] | nurnabilarzar@gmail.com |
fe67cbd2fbdca0fb9203371b298604412056b63b | c75ec82316ed5322c5844912ce9c528c24360b9f | /nsd1904/py01/day02/game.py | da175d732f5814bc887260e614a5f974e7b8ad95 | [] | no_license | MrZhangzhg/nsd2019 | a94cde22f2e4bd648bb9e56ca63827f558f3c083 | 54f6d2c7b348a69f13ad5f38f2fbdc8207528749 | refs/heads/master | 2021-08-22T17:38:27.697675 | 2020-02-22T08:36:21 | 2020-02-22T08:36:21 | 183,539,489 | 21 | 24 | null | 2020-05-17T12:07:55 | 2019-04-26T02:06:16 | HTML | UTF-8 | Python | false | false | 778 | py | import random # 导入random模块
# random.choice()从一个序列对象中随机选择一项
computer = random.choice(['石头', '剪刀', '布'])
player = input('请出拳(石头/剪刀/布): ')
print("Your choice: %s, Computer's choice: %s" % (player, computer))
if player == '石头':
if computer == '石头':
print('平局')
elif computer == '剪刀':
print('You W... | [
"zhangzg@tedu.cn"
] | zhangzg@tedu.cn |
7470470953c66bdaa8f8188857937ce8f7659290 | 7878fe3b15df39aeeab4b4deb5b123e77c77ad6d | /1. Introduction to Deep Reinforcement Learning/monte-carlo/plot_utils.py | 6efc564210fb9726d2ee90247a525dadedc323fa | [] | no_license | st2yang/udacity-deep-reinforcement-learning | 44902094eb4e8403655699a32408022af700173a | 88775432751d1346d912a256b32446e6863e9b72 | refs/heads/master | 2022-04-24T16:44:18.743421 | 2020-04-23T22:04:04 | 2020-04-23T22:04:04 | 246,714,829 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,309 | py | import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable
def plot_blackjack_values(V):
def get_Z(x, y, usable_ace):
if (x,y,usable_ace) in V:
return V[x,y,usable_ace]
else:
return 0
def get_figure(usable_ace, ax):
... | [
"st2yang@gmail.com"
] | st2yang@gmail.com |
e15797bc9cb101f1d16201755b202b999d36cca0 | a8f91abeeb3898a9fb9525e6c319c500e2f7abba | /Project 5 - Classification/dataClassifier.py | 7ac5c219d40e8f92f71f9f43b5431477ea288a22 | [] | no_license | ThanhThuUet/INT3401-AI1920-Pac-Man-Projects | 28cd954a82c15c9d13b548104c7831bb688c2664 | 8537dae38836ab08468dcfdb1a0b383f9282e854 | refs/heads/master | 2020-07-25T22:59:05.203924 | 2019-11-18T16:47:46 | 2019-11-18T16:47:46 | 208,450,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,090 | py | # dataClassifier.py
# -----------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berk... | [
"thanhthu97uet@gmai.com"
] | thanhthu97uet@gmai.com |
3b9ad6f19a771db88721d9a80879d06260a092fb | 0de146cde9cbbb8c731f5b923025e7087beb3d87 | /chaines.py | ac3dd7142e58a26a3e7754b122faaba9f4842fa7 | [] | no_license | Dante126/learnpython | d0a97c467c5476db328946a331883cf3848fa4aa | b47a695bbda20f8b37e73da54b7790a5e7af6dfd | refs/heads/master | 2021-01-13T21:25:28.791368 | 2020-02-23T11:10:27 | 2020-02-23T11:10:27 | 242,499,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py |
def compte_car(chaine):
compteur = 0
for c in chaine:
compteur+=1
return compteur
def compte_voyelles(chaine):
voyelles = ['a', 'e', 'i', 'o', 'u', 'y']
compteur = 0
for c in chaine:
if c in voyelles:
compteur+=1
return compteur
def compte_espaces(chaine):
... | [
""
] | |
5493b3064d9dd52325a5cf37847a6698fe1676b3 | a079f2221d810291659601c570f87a2a65898404 | /controller.py | d31a870823ad5553540838bb13025ecd966129b5 | [] | no_license | tchatzis/xbox | cad6f8bf33afea6b4089d94905f3260f90ec45d5 | 5bd8960443f8e873a72fba22a8c5d16a2f44972d | refs/heads/master | 2021-01-22T01:05:00.307467 | 2015-01-15T06:04:49 | 2015-01-15T06:04:49 | 29,283,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,044 | py | import ctypes
import sys
import time
from operator import itemgetter, attrgetter
from itertools import count, starmap
from pyglet import event
# structs according to
# http://msdn.microsoft.com/en-gb/library/windows/desktop/ee417001%28v=vs.85%29.aspx
class XINPUT_GAMEPAD(ctypes.Structure):
_fields_ = [
(... | [
"tito.chatzis@gmail.com"
] | tito.chatzis@gmail.com |
f17c25ba0925b314dae43bd4723d1a285cc2c8d4 | 6f8540ba015c224827739ed8f06f3b313be8cda4 | /src/main.py | 493e500cc6b1b7ae21cdc51f65794a992682de0a | [] | no_license | qwteng/Eagle | f84cda7ffb64c5c08029fc807da7892c968633ea | b714ef32c066524c8ee3e561df8237eca40750ca | refs/heads/master | 2020-04-12T19:58:33.447621 | 2016-12-04T09:04:39 | 2016-12-04T09:04:39 | 2,213,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,514 | py | # coding=utf-8
import sys
import time
from pymongo import MongoClient
from util.parser import *
from util import utils
import json
reload(sys)
sys.setdefaultencoding('utf-8')
def get_stocklist():
url_stocklist = 'http://quote.eastmoney.com/stocklist.html'
dt = DataSource()
list_parser = SockListParser()
content... | [
"qwteng@qq.com"
] | qwteng@qq.com |
aa6592a35e47611f56c8d2d3ecc1af822bb35f40 | c33e52d03deb509952e4dfe0ebe8ce535d076113 | /validationservice.py | 34509025b69787d99d7b4127b5e253b28278d9e1 | [] | no_license | timonology/paymentprocess | 246fa3a2aa83a14758b4993fcc3dfa8c2dc638d7 | 96b47c681753ad97239c08c7bb58cc465c8ba217 | refs/heads/master | 2023-02-25T14:15:06.264760 | 2021-01-26T17:25:03 | 2021-01-26T17:25:03 | 333,157,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py | import creditcardvalidator
from datetime import datetime
def creditcard_checker(card_number):
response = creditcardvalidator.ValidateCard(card_number)
print(response)
if response == True:
return { 'Status': 'true', 'Message': "Credit Card Valid" }
else:
return { 'Status': 'false'... | [
"Timothy.Babalola@ubagroup.com"
] | Timothy.Babalola@ubagroup.com |
df5d74665f7e253a5707711a3a7f978bebb10b96 | 50e375bdc8affc1a8c09aa567a740fa19df7d5a6 | /DSBQ/deployment/fixtures_old/test_Oracle_pytest_new.py | cbacf2973495522b4d34ecada22a816bff063a78 | [] | no_license | michTalebzadeh/SparkStructuredStreaming | ca7a257626e251c7b03a9844cfd229fa8ea95af5 | 87ef34ffe52061fcbb4f22fcd97764037717696a | refs/heads/master | 2023-07-13T00:49:10.753863 | 2021-07-12T16:39:50 | 2021-07-12T16:39:50 | 364,826,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | from pyspark.sql import SparkSession
import pytest
from sparkutils import sparkstuff as s
from src.config import ctest, test_url
from src.CreateSampleDataInMysql import extractHiveData, loadIntoMysqlTable, readSourceData, transformData, saveData, readSavedData
"""
@pytest.fixtures_old(scope = "session")
def initParame... | [
"mich.talebzadeh@gmail.com"
] | mich.talebzadeh@gmail.com |
eb2b9cbc7dcb2e45e3686d9f629a4a03d6867c1d | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_Class841.py | 4f84993699cbd099216e52673eb203502687df81 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,341 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=24
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
def make_circuit(n: int, input_qubit):
c = cirq.Ci... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
67711448c51b3aa2c18dbd24c029ab0a57c28569 | 9df89a1652d183d8fc654acd728f9a578d6d1912 | /cli/tests/psym_tests/test_user.py | 400718eaa8635641ddbdad811c5aae5771aba6a4 | [
"BSD-3-Clause"
] | permissive | duranrojasm/symphony | b37d54a134e29093edacb80442e204fc71a37fbe | 55b3d0c20b669374303bafb10e9c96c734647c9c | refs/heads/main | 2023-08-24T02:00:33.433220 | 2021-10-28T20:35:23 | 2021-10-28T20:35:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,707 | py | #!/usr/bin/env python3
# Copyright (c) 2004-present Facebook All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
import random
import string
from unittest import skip
from psym import UserDeactivatedException
from psym.api.user import (
activ... | [
"jcaroper@everis.com"
] | jcaroper@everis.com |
5275bb4a909af270b63538be9fb5d34655c19fe3 | baa69790a09fd017bcac5f8a0efb3b4be0b0984f | /exercises/ex12.py | 3e1e0248ec07d43c957e05c606305e1abe029022 | [] | no_license | dmcxblue/LearnPython3TheHardWay | cbf848fcf49c8e57c52f7bc3ad7affab3fda25cc | 571d7b082f117933f494b506e7fc73920bfb6b85 | refs/heads/master | 2020-05-01T19:43:16.931672 | 2019-05-21T18:24:37 | 2019-05-21T18:24:37 | 177,655,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | age = input("How old are you? ")
height = input("How tall are you? ")
weight = input("How much do you weight? ")
print(f"So, you're {age} years old, {height} tall and {weight} heavy.")
| [
"noreply@github.com"
] | noreply@github.com |
f3f3135e5cae2a247eb3a0c638ef4ee23f51d6d7 | 4105bbc19a6c17e9655a1c6b6d1c926683c505ae | /mission/wizauto.py | 062974754c000c0a4c7b8f721ef85516e1008523 | [] | no_license | lichao20000/mbp | 044ca609d8281b543ac687fe28ec845c8ea1e6b8 | e7dd55a7c320be04b24f6b48d5ec9b506c88ea18 | refs/heads/master | 2021-12-03T17:19:18.535170 | 2014-09-09T02:58:04 | 2014-09-09T02:58:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # coding: utf-8
'''
description:
Created by weibaohui on 14-5-18.
'''
import requests
import time
from datetime import datetime
if __name__=="__main__":
url="http://dyit.org:8806/wiz/autostart/"
while(True):
if (datetime.now().time().hour>6 and datetime.now().time().hour <23):
#r=requests... | [
"zihuxinyu@163.com"
] | zihuxinyu@163.com |
a4a5217a92054490d85cba7f63ef1acb282a4847 | 989bb5d2d3e89db21fcbeac91a1e64967ea6377b | /sagemaker_neo_compilation_jobs/deploy_pytorch_model_on_Inf1_instance/resnet18.py | 9421aea5af6f0bf1ea89a34f99bc2cb5dcbceb35 | [
"Apache-2.0"
] | permissive | araitats/amazon-sagemaker-examples | 7cec9ea5822f0469d5dfabbcf3cab62ce9c0f0d1 | 512cb3b6310ae812c6124a451751237d98a109b1 | refs/heads/master | 2023-04-19T05:54:47.334359 | 2021-04-27T21:04:33 | 2021-04-27T21:04:33 | 338,094,683 | 2 | 1 | Apache-2.0 | 2021-04-27T15:35:14 | 2021-02-11T17:07:39 | Jupyter Notebook | UTF-8 | Python | false | false | 565 | py | def input_fn(request_body, request_content_type):
import torch
import torchvision.transforms as transforms
from PIL import Image
import io
f = io.BytesIO(request_body)
input_image = Image.open(f).convert('RGB')
preprocess = transforms.Compose([
transforms.Resize(255),
transforms.... | [
"noreply@github.com"
] | noreply@github.com |
afec961b7f4d3f04c9086399486a0dd42176e3dd | 53e85505b12ec83917d739369e9ace57222ffd17 | /env/toy_landmark_env.py | 2c0e968ecc0c02ff1bc5f768258ad5df7bef681b | [] | no_license | ashish-kmr/vmsr | b64805e5789d8fd4b150686f9dcac07fb086c4ce | 102a7b12632094d3a81bbc0918676eec7737c693 | refs/heads/master | 2022-04-11T23:50:07.533280 | 2020-03-18T21:48:49 | 2020-03-18T21:48:49 | 241,758,684 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61,512 | py | from __future__ import print_function
import logging
import numpy as np, os, cv2, os, scipy, skimage, itertools, copy
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
from scipy import ndimage
from src import utils
from src import rotation_utils as ru
from src import map_utils as... | [
"ashish_kumar@berkeley.edu"
] | ashish_kumar@berkeley.edu |
9d271bad43590d0385529bc485e0fd4d18fa1faf | e38f7b5d46fd8a65c15e49488fc075e5c62943c9 | /pychron/core/ui/qt/custom_label_editor.py | af48d20e9e521f5da679a7aaf6a049248224d552 | [
"Apache-2.0"
] | permissive | INGPAN/pychron | 3e13f9d15667e62c347f5b40af366096ee41c051 | 8592f9fc722f037a61b0b783d587633e22f11f2f | refs/heads/master | 2021-08-15T00:50:21.392117 | 2015-01-19T20:07:41 | 2015-01-19T20:07:41 | 111,054,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,405 | py | #===============================================================================
# Copyright 2012 Jake Ross
#
# 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/license... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
3a55c09604726ec3ec95a699a4a3521b11473c76 | e9e8c200cb712e68b597875d3b860d0893074f4f | /utility_bills/migrations/0005_auto_20210214_2350.py | f8c859fd946d48f45c54b583ae546d41b8a2d564 | [] | no_license | noolfon/utility_bills | c31fd475dc0a2d1546efb6880dad44dcadc66597 | da919e0d50baaf1190be858b1382ec138e367c19 | refs/heads/master | 2023-03-07T10:49:45.166608 | 2021-02-22T18:14:34 | 2021-02-22T18:14:34 | 340,852,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # Generated by Django 3.1.6 on 2021-02-14 20:50
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('utility_bills', '0004_auto_20210214_2104'),
]
operations = [
migrations.AlterModelOptions(
name='payments',
options={'orderi... | [
"noolfon@yandex.ru"
] | noolfon@yandex.ru |
df62bf280fad0e420569d63af99d4c8a66b7b79c | 9e749ebdcbf0554e895c97e641fd858c0e1ddd5a | /fintech_startup/payment/migrations/0001_initial.py | 93af8c02d1be35a462dbd74e384878ba3b7fd247 | [] | no_license | ericovva/python-test-account-payments | f1b7a0e4b3e611bae14b1b0e5d3638277ea06f08 | 603ce8626434f2093a61d87e1215bd2bd13bc4b9 | refs/heads/master | 2020-05-03T22:52:52.969647 | 2019-04-04T17:18:48 | 2019-04-04T17:18:48 | 178,852,301 | 0 | 1 | null | 2021-02-14T21:32:19 | 2019-04-01T11:51:05 | JavaScript | UTF-8 | Python | false | false | 1,079 | py | # Generated by Django 2.2 on 2019-04-04 17:13
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('account', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"e.ovsepyan@eovsepyan.local"
] | e.ovsepyan@eovsepyan.local |
d9a938d0a99764aa8df2b3e6a4fa0134d103ce25 | eb96fbb3b234eb9a555592795092a27057c3b97e | /tests/tests_redis.py | e536f2bff2bd7e4dcc0a53532bee84478de5985f | [] | no_license | ronething/snap-server | 9a32e175ca9d1d45d45c0b146b90e8b3ba2af340 | 20350e8e1c8a847d23acce33396acd4317ceab42 | refs/heads/master | 2020-11-29T01:42:06.272141 | 2019-12-24T17:45:09 | 2019-12-24T17:45:09 | 229,980,981 | 0 | 0 | null | 2020-11-24T07:47:18 | 2019-12-24T17:36:19 | Python | UTF-8 | Python | false | false | 610 | py | # -*- coding:utf-8 _*-
"""
@author: ronething
@time: 2019-01-27 11:10
@mail: axingfly@gmail.com
Less is more.
"""
from app.utils.conn_redis import ConnRedis
from app.utils.get_config import get_config
import time
snap_config = get_config()
redis_cli = ConnRedis(snap_config=snap_config)
if __name__ == '__main... | [
"axingfly@gmail.com"
] | axingfly@gmail.com |
dff0712580958054035ccdbe31de97a3e8ae818f | fb43bcc0a95d88e23d425dd3b8eb5aecfdaa2e29 | /Classification/SVMClassifier.py | be9ea0b9cb9913d2dcdbced45ab1a33e4af4be98 | [] | no_license | sarathspillai11/All_Machine_Learning_Algorithms | 6f4dc43e8c71dce1497528a6e3a1a9e1d325cf98 | 06223d024ece64f8a1413ff9ad721969a1658ca6 | refs/heads/master | 2023-05-15T02:32:28.189317 | 2021-06-05T03:01:25 | 2021-06-05T03:01:25 | 373,810,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,596 | py |
import pandas as pd
import numpy as np
from sklearn.model_selection import GridSearchCV
from sklearn.model_selection import train_test_split
# Fitting SVM to the Training set
from sklearn.svm import SVC
from savemodel import saveas_sav
def svmClassification(dataframe,x_train, y_train, x_test,ticketId,cList,gammaList... | [
"sarathspillai11@gmail.com"
] | sarathspillai11@gmail.com |
3cb486ec73cbcd31ee29a67e9891a012efe50a48 | 13d3f1f4508e0c74f9db7d8fd418a7bcfa954bc9 | /preprocess.py | 94db9b867d8416c0c60dc1a4ec2635019b91487e | [
"MIT"
] | permissive | Simenglv/HetGT | 03e026623730fb4aea1e3662b486578c1b3b2386 | 8f29ffa86a40b09261092726b87608661139eec0 | refs/heads/master | 2023-01-10T19:27:54.082689 | 2020-11-07T07:22:37 | 2020-11-07T07:22:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,705 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Pre-process Data / features files and build vocabulary
"""
import codecs
import glob
import sys
import gc
import torch
from functools import partial
from collections import Counter, defaultdict
from onmt.utils.logging import init_logger, logger
from o... | [
"noreply@github.com"
] | noreply@github.com |
46605b75b0b45618bf617cab05f1b68b03b6d0c9 | 9833f3a70637d4e3cb848423c9bd34694dab2bd7 | /formularios.py | 53bfc976c5ebe50f298fd5500c1d0f5d349b375a | [] | no_license | AlemanLucas/LucasAleman | 970ce1fe9c7ac0028629d9d8c608e55a73715fcd | 6be8c84791c9f9af9646621901e91c145db247d4 | refs/heads/master | 2021-08-27T20:14:54.382953 | 2017-11-28T06:41:39 | 2017-11-28T06:41:39 | 112,295,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,050 | py | from flask_wtf import FlaskForm
from wtforms import StringField, IntegerField, PasswordField
from wtforms.validators import DataRequired,EqualTo,Regexp,Length
#Acá se encuentran todas las clases que se utilizaron para el proyecto.
#Estas clases sirven para validar campos y tener los parametros.
class SearchCliente(Fla... | [
"lucas.h.aleman@gmail.com"
] | lucas.h.aleman@gmail.com |
90cde6d32a8640fa14a55510dc8681a377c7fdcc | f15ed6c14059a8fb810f06f68f339ecdbeef67b7 | /map_list.py | 154ff69dcf7a3e65a1ceb85042ccebbefe3b4dba | [] | no_license | Arjunb79/arjun_futura | 2babb6c179afcc263e3457a8409549fd39c6881f | e2cd6150263f3f9b538995c9fef2f5ec20749c17 | refs/heads/main | 2023-01-05T07:47:34.363497 | 2020-11-07T16:20:21 | 2020-11-07T16:20:21 | 310,884,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | keys = ['red', 'green', 'blue']
values = ['amal','gopal', 'manu']
color_dictionary = dict(zip(keys, values))
print(color_dictionary) | [
"arjunb0320@gmail.com"
] | arjunb0320@gmail.com |
547dc2c51cd7e4130340b227393dc5244bbb1f95 | 281eb7745511fc68a6f5342b5fc20af1d0864533 | /Calculations and Plots_Ho Wing Wong.py | 39b725190ecca82fd3aa905ac29f19d5ab0f9399 | [] | no_license | Karagul/Financial_Market_Index_Analysis | d85cdda1124a7fa929df7cdfff3160da33568175 | d3513d4175257e66c7316df79ad3a48e0c229eda | refs/heads/master | 2020-05-25T12:25:58.446864 | 2017-09-20T22:09:24 | 2017-09-20T22:09:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,879 | py | #==============================================================================
# Lists of stock index values
#
# By Johnny Lin
#
# There are three lists defined here:
# * nasdaq: Close of index at the end of each trading day in trading_days.
# * sp500: Close of index at the end of each trading day in trading_days.
#... | [
"louiewhw@gmail.com"
] | louiewhw@gmail.com |
dbee63b54c7ff57f5bd7606d871b0a192dba6f78 | 51c37cc30c8a5bf3d2cb04f8eadde248ea431154 | /meiduo_mall/meiduo_mall/apps/verifications/views.py | 404518200600e01ff319b76fe42d06aa99626718 | [] | no_license | kkx001/meiduo_admin | b548ed8255c73863ad1917719a6ce2b82ac9a75a | 84dc7a76b6253a78e2d8f03e3066f52497c9d32d | refs/heads/main | 2023-02-16T00:51:22.121120 | 2021-01-11T06:51:21 | 2021-01-11T06:51:21 | 328,567,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,733 | py | from django.shortcuts import render
from django.views import View
from .libs.captcha.captcha import captcha
from django_redis import get_redis_connection
from . import constants
from django import http
from django_redis import get_redis_connection
from meiduo_mall.utils.response_code import RETCODE
from verifications.... | [
"40197330+kkx001@users.noreply.github.com"
] | 40197330+kkx001@users.noreply.github.com |
43988ddab4e642d7ffb5838eee6a82751456edd5 | 2a62d9376e381ed7b08fcc61a99b5dc96bd6f331 | /Ships.py | 4ac52f8cafce2d5b6dbaa2afac9c913bc775d811 | [] | no_license | dexterland99/space-control | 6a6f58b85953019572c30eb9383ae80a9d1b687b | 985fdcb5053654ebab88ce090edf5c4fe14461e2 | refs/heads/master | 2020-03-29T10:34:08.596011 | 2018-10-04T16:48:59 | 2018-10-04T16:48:59 | 149,811,602 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | '''
Ship Classes
'''
import pygame
class Ship(pygame.sprite.Sprite):
'''
Ship Class
'''
def __init__(self,width,height,screen):
super().__init__()
self.image = pygame.image.load("Ship.png")
self.rect = self.image.get_rect()
| [
"noreply@github.com"
] | noreply@github.com |
37ba1aa162d25931444ba005344100537f2992fa | 4dfc7fc9b84f76d690e33414610bc59a9b07001a | /bds/views/municipality.py | f7a746ad648d09ab470d311aed22e6dbf6fdd580 | [] | no_license | pythondev0101/-j-natividad-web-billing | e62da9ac943a74d2e1e9416d553fd3baafd3937f | 39f7b0d60d86a08d1c5d40cacf9904b28dc2355c | refs/heads/main | 2023-08-28T00:34:43.435674 | 2021-05-24T12:37:54 | 2021-05-24T12:37:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | py | from datetime import datetime
from flask import redirect, url_for, request, current_app, flash
from flask_login import current_user, login_required
from app import db
from app.admin.templating import admin_table, admin_edit
from bds import bp_bds
from bds.models import Municipality
from bds.forms import MunicipalityFor... | [
"rmontemayor0101@gmail.com"
] | rmontemayor0101@gmail.com |
cb4bec1c5c9f2e7faae17939c77ca7c5189da426 | 7ede001485ce68aebcd185f9f7b01b1196e8900d | /forex/env-python2/lib/python2.7/site-packages/v20/user.py | 32388c147cd659635b7adaa22c68fbd120b48212 | [
"MIT"
] | permissive | phroiland/forex_algos | 971f04ebceb579a761dca6c1184fc14d1e78f9d1 | 055f51e55c52d6dd5cfd38550a48892a0fb09b0d | refs/heads/master | 2023-05-29T00:28:19.350350 | 2022-05-12T21:16:35 | 2022-05-12T21:16:35 | 92,301,496 | 1 | 0 | null | 2023-05-22T20:44:39 | 2017-05-24T14:28:29 | Python | UTF-8 | Python | false | false | 8,342 | py | import ujson as json
from v20.base_entity import BaseEntity
from v20.base_entity import EntityDict
from v20.request import Request
from v20 import spec_properties
class UserInfo(BaseEntity):
"""
A representation of user information, as provided to the user themself.
"""
#
# Format string used wh... | [
"jon.froiland@gmail.com"
] | jon.froiland@gmail.com |
94bfa0658cfe9f7260b5af4a419628a7876e5df1 | 363da960114de5c1397ff223c5a0c22945e5a924 | /src/streamlit_web_application.py | 5813ce9764f40fc4caf996f2e758b6b6ae4b308d | [] | no_license | saumith/twitter-hashtag-recommendation | 6a1f5d9cfeea280e103749d2e0621a0159252386 | 350c4eb13e0e5b1caf6883ea2348d5ed5c1f9075 | refs/heads/main | 2023-06-29T23:56:24.942026 | 2021-08-07T17:50:22 | 2021-08-07T17:50:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | import streamlit as st
from nltk.tokenize import sent_tokenize, word_tokenize
from nltk.corpus import stopwords
import nltk
import tweepy
import re
import pandas as pd
from textblob import TextBlob
import csv
from collections import Counter
from tweet_api import *
from extract_keywords import *
from model import *
impo... | [
"dpoudel18@earlham.edu"
] | dpoudel18@earlham.edu |
f20fff98b3f5558fa62679cc38213bfe8b3fd252 | 03271803f9cdb665104788d00d1d2cc4eab27f38 | /views/htmltext.py | 58d52972011c19f7300b640f790b89c0bebc0e90 | [] | no_license | bancaldo/auction3 | 6a89166023fe8585e73c8153da5b6df5cf819089 | ae87e53d6631c84bf33259bdf58a06f090d02dca | refs/heads/master | 2022-12-20T12:09:46.648249 | 2020-10-24T16:02:41 | 2020-10-24T16:02:41 | 306,648,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | # -*- coding: utf-8 -*-#
ABOUT = """
<html>
<center><h1>Auction</h1> versione 2.0<br>
by Bancaldo</td></center><br><br>
<b>Auction 2.0</b> is a simple app to manage a 'FantaLeague Auction'.<br>
At the auction End it is possible to export on a csv file<br>
<br>
<b>pacchetti utilizzati:</b><br>
- Python 3.7.1
- wxPython ... | [
"bancaldo@gmail.com"
] | bancaldo@gmail.com |
2ba938b829b5293d85393bdbabcce4e6f8a94016 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/client/gui/game_control/AOGAS.py | d7b1cef8d85ccd796edb079ec9bcef0a8e803485 | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 8,091 | py | # 2017.05.04 15:21:37 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/game_control/AOGAS.py
import time
import weakref
import BigWorld
import Event
from constants import AOGAS_TIME, ACCOUNT_ATTR
from debug_utils import LOG_ERROR, LOG_DEBUG
from enumerations import AttributeEnumItem, Enumeration
from... | [
"info@webium.sk"
] | info@webium.sk |
327914a84e501df8aa4e30d0ab286a73a37f1b35 | dc75370390e821b857b327100f0d2e9a60f34f89 | /chat/migrations/0001_initial.py | 477def66b7a7e08f361a5435958dcb17e478690a | [] | no_license | DontTouchMyMind/OnlineChat_Udemy | 018e24f6dfe7c1c2d1f37540f219f7b652987666 | 77ee36d89adbf71d07b6f73f9b6757aacabde939 | refs/heads/master | 2023-01-28T16:56:40.070478 | 2020-12-07T11:40:11 | 2020-12-07T11:40:11 | 315,873,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # Generated by Django 3.1.3 on 2020-11-25 07:44
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Online',
fields=[
('id', models.AutoField(a... | [
"tobigface@gmail.com"
] | tobigface@gmail.com |
e4b50200cdcfab029ada56611d23bd13fb829714 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/42e441b34ef3b68f657a5e36027aaa21ff0b4d84-<run_bottleneck_on_image>-bug.py | 8ad0925041a855fb4f37bc20e4557601749d4a45 | [] | 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 | 615 | py |
def run_bottleneck_on_image(sess, image_data, image_data_tensor, bottleneck_tensor):
"Runs inference on an image to extract the 'bottleneck' summary layer.\n\n Args:\n sess: Current active TensorFlow Session.\n image_data: Numpy array of image data.\n image_data_tensor: Input data layer in the graph.\n ... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
49be6f19af78663962e559d4140c0414b52e4836 | b5644b71eade9abd62e3cd8747808b8edeea8ee1 | /movies/admin.py | 25365dac1ee29104521aa3d036714f35d6767529 | [] | no_license | HSx3/project_UBD | 68aa8dd1a3a2bf9c3523967a3c489a51c4bdac04 | fcc2b035dac07376ddb0e6c1eceb4544e3415455 | refs/heads/master | 2020-05-24T06:09:14.730903 | 2019-05-17T00:34:29 | 2019-05-17T00:34:29 | 187,133,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | from django.contrib import admin
from .models import Movie, Genre, Actor, Director, Cast, Score
# Register your models here.
admin.site.register(Movie)
admin.site.register(Genre)
admin.site.register(Director)
admin.site.register(Actor)
admin.site.register(Cast)
admin.site.register(Score) | [
"hs.ssafy@gmail.com"
] | hs.ssafy@gmail.com |
17b2457239c0753f00d775c707faee923df59847 | 0e76cdc762ce938e1b8e458722f7efd6ecc3a11f | /modules/eb/MapEventModule.py | b8a5a482c6b60dc8f038ad5c7d99735bcb4dd814 | [] | no_license | NichtJens/CoilSnake | 878a2d975ca6b2e3e8616fbdec694d2f7bacf3cd | 843daf0245e9d68ed8aeca422564f377ef182568 | refs/heads/master | 2021-01-21T00:36:25.741872 | 2013-02-28T14:23:21 | 2013-02-28T14:23:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,702 | py | import EbModule
from EbTablesModule import EbTable
from EbDataBlocks import DataBlock
from modules.Progress import updateProgress
import yaml
from re import sub
class MapEventModule(EbModule.EbModule):
_name = "Map Events"
_PTR_LOC = 0x70d
_PTR_BANK_LOC = 0x704
def __init__(self):
self._ptrTbl... | [
"arewereally@gmail.com"
] | arewereally@gmail.com |
94b1fde9f448d75e37bbbfe1ee2754a031bc206b | daebdc3a9c236c82f1be0ec480f19ebc29f4a23c | /pdfcrawler/spiders/llnl.py | 4131776eba62022a3e3a673288f52308ef04287a | [] | no_license | jwendyr/pdfcrawler | 8c1f3e51e139f6131eb41eb71fe609388dac0874 | 6725bef4cd7ee2cd83f9f7e63446a1c9294af1a2 | refs/heads/master | 2020-03-13T10:34:04.884461 | 2018-04-26T02:20:37 | 2018-04-26T02:20:37 | 131,085,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,827 | py | # -*- coding: utf-8 -*-
import scrapy
import re
import sys
import json
import os
#import urlparse2
from scrapy.http import Request
from scrapy.conf import settings
class LlnlSpider(scrapy.Spider):
name = 'llnl'
#allowed_domains = ['github.com','arxiv.org','cv-foundation.org']
start_urls = ['https://www.researchg... | [
"jwendyr@yahoo.com"
] | jwendyr@yahoo.com |
68e40e88264e8b1809d47877f41a6d0cb8c43f90 | 4f837a0ebab53ef8a438268c38c7f9790f50c3b2 | /flask_app.py | 64a116124caf089fc3b534d66069a06dda19962a | [] | no_license | RomanRodionov/GeoFinder | a000e062678ce4b7d9f235d3e52c4f090dd710f0 | aeb86980e4a2cc8e631183e497c77f7d576372b0 | refs/heads/master | 2020-05-04T22:06:03.310759 | 2019-05-08T14:46:10 | 2019-05-08T14:46:10 | 179,499,509 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,497 | py | from flask import Flask, request
import requests
import logging
import json
from geo import is_address, find_coords, find_object, get_image_id, path
from random import choice
app = Flask(__name__)
logging.basicConfig(level=logging.INFO, filename='app.log', format='%(asctime)s %(levelname)s %(name)s %(message)s')
sess... | [
"rodionovv22@gmail.com"
] | rodionovv22@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.