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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e4d24d1aeb029c08878f95b3963c5fba6d712982 | e77681c2fed1087fe93cbeee2a5f38bce03853a9 | /ojBE/submission/serializers.py | 08e0c755331e7812bc5e66fbf4512174c3235834 | [
"MIT"
] | permissive | BattleJudge/BattleJudge | 54661cbf6d018f0811dad34f3126b15109a06d77 | 382f791056da76643bce662fd76a37c38b13ddce | refs/heads/main | 2023-05-07T17:50:18.823412 | 2021-05-30T14:14:24 | 2021-05-30T14:14:24 | 372,203,117 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | from rest_framework import serializers
class UserSubmitCodeSerializer(serializers.Serializer):
pro_id = serializers.IntegerField()
code = serializers.CharField()
language = serializers.CharField()
class UserGetSubmissionResultSerializer(serializers.Serializer):
submission_id = serializers.IntegerFie... | [
"747527651@qq.com"
] | 747527651@qq.com |
ddf77f67a03df183fd98ab68891c9ee01a769add | fdfae9eddfadbd46534a2df4fd0145d3fee3c10b | /lista6/xor.py | be25c7d23cb33260f597e807d7a8888f6a6289b2 | [] | no_license | arturpazurkiewicz/Python | b5e656a2a2b6b5278feffa3c2a6352ab57d821aa | 60289058c692166dc8155d0a424b322fd4a6a97c | refs/heads/master | 2022-11-01T23:09:00.830766 | 2020-06-14T11:39:22 | 2020-06-14T11:39:22 | 272,189,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,989 | py | #!/usr/bin/python3
from neural_network import *
def create_all_models(x, y):
return [NeuralNetwork(x, y, xor=True, layer1='sigmoid', layer2='sigmoid'),
NeuralNetwork(x, y, xor=True, layer1='sigmoid', layer2='relu'),
NeuralNetwork(x, y, xor=True, layer1='relu', layer2='sigmoid',
... | [
"pazurkiewiczartur@gmail.com"
] | pazurkiewiczartur@gmail.com |
0740e35a6b556b7ac7642513dab2e256c0d38cc1 | 62fbd696b03988377621f7c022336c92abfe552f | /enlarge.py | 1a4a6375f0e03be5b874ead48a439472095575ad | [] | no_license | neikopete/mcedit-filters | 6f9406da638e6be09ee8d39e17ad4e7a89418281 | e9b05715167542f418dcedc66a433d24ac8d8a1e | refs/heads/master | 2021-01-19T06:55:31.685074 | 2012-06-28T21:05:03 | 2012-06-28T21:07:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,502 | py | # Enlarge Filter by SethBling
# Feel free to modify and reuse, but credit to SethBling would be nice.
# http://youtube.com/sethbling
inputs = (
("Scale Factor", (4, 1, 256)),
("Center on", ("Exact center",
"Bottom center",
)),
)
def perform(level, box, options):
sf = ... | [
"maxorq@hotmail.com"
] | maxorq@hotmail.com |
17974e51b23e9caa920b046146ffab23094d3281 | aa61524932eb811d711ec9f63f504caab487e239 | /SGAESIRD/EMPAQUES/migrations/0014_auto_20190918_0436.py | 1c8db3f0c4032f8414b51230993750d1f559c354 | [] | no_license | NicolasITC/Sistema_de_gestion_AESIRD | e429c0562bb15b59ff39dde367fb68d96178274c | 914f247c5d6599fad3b48f9e4a4a0d0dbb9ba25e | refs/heads/master | 2020-06-27T12:51:08.112026 | 2020-04-01T08:22:36 | 2020-04-01T08:22:36 | 199,957,939 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # Generated by Django 2.2.2 on 2019-09-18 07:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('EMPAQUES', '0013_usuario_foto'),
]
operations = [
migrations.AlterField(
model_name='usuario',
name='foto',
... | [
"cristianeddie@hotmail.cl"
] | cristianeddie@hotmail.cl |
de78cb2b64d8667287713e5d008b1b12f9ef6cbf | 43d22ff70489b0d11b61408c53aae319fb3e2f34 | /text_QuestionAnswering/myRetriever/build_tfidf.py | 9b9d33e1992183cb8c31087f6c5ad0904501f0f0 | [] | no_license | demeiyan/nlp_project | 1932426f1951589e08c8bff39ae2f9ca69400346 | 41e32171424e0af01a38dcba2c8cc317c815d44d | refs/heads/master | 2021-07-21T09:52:09.792518 | 2019-01-17T13:14:05 | 2019-01-17T13:14:05 | 109,779,034 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,589 | py | # -*- coding: utf-8 -*-
"""
Created on 18-10-15 上午11:22
@author: dmyan
"""
import numpy as np
import scipy.sparse as sp
import argparse
import os
import math
import logging
from multiprocessing import Pool as ProcessPool
import multiprocessing
from multiprocessing.util import Finalize
from functools import partial
fr... | [
"1312480794@qq.com"
] | 1312480794@qq.com |
abe20ca33ef90c8b4016c4797dd19edd7d8d9e03 | 1e18dff627494faf7a658b6e64c02bdea3a366a6 | /pollsapi/polls/serializers.py | b1e4b07b509aa0be17eda401c32d6b7222ad10e6 | [] | no_license | MaryBagratunyan/Django-projects | f8da207ab444b2cb919275b99501622a466bb6c2 | 75f45b6c5f18a650ba6c251715ed3af04c06b918 | refs/heads/master | 2021-01-25T23:03:58.158370 | 2020-04-02T14:15:08 | 2020-04-02T14:15:08 | 243,219,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | from rest_framework import serializers
from django.contrib.auth.models import User
from rest_framework.authtoken.models import Token
from .models import Poll, Choice, Vote
class VoteSerializer(serializers.ModelSerializer):
class Meta:
model = Vote
fields = '__all__'
class ChoiceSerializer(seria... | [
"mari.bagratunyan@gmail.com"
] | mari.bagratunyan@gmail.com |
776bf7fb6f911d845177d05116d5b1572b991fcb | 53ece77caf86a28a08734e24993d774f40ee09d7 | /katas/04.webAccessPoint/socket_stub.py | 5cd9e78fd04e9d790314a7a4f2078a1254e633d7 | [] | no_license | tflander/Esp32IotKata | 8b3a68b617d0a4ee4fd6fdbf46b0c2ee562e4f78 | 273dc06ac1cfd64bc931b19ec6917bed6ce6f078 | refs/heads/master | 2020-06-04T16:06:18.268513 | 2019-08-09T11:58:27 | 2019-08-09T11:58:27 | 192,095,754 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,081 | py | # def bindHttpLocalHost():
# s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# s.bind(('', 80))
# s.listen(5)
# return s
class socket:
AF_INET = "IPv4 addresses"
SOCK_STREAM = "TCP"
class socket:
addressTypeForTesting = None
protocolForTesting = None
hostAnd... | [
"toddflanders@Todds-MacBook-Pro.local"
] | toddflanders@Todds-MacBook-Pro.local |
449b9eef3e9b50f492229e7755b2bf33d725739a | 75ec3dafe1b3d3d2522a872164c14980f19f141e | /scripts/create_folder-Standard_path.py | 28e4e0172df2aa82529a8097d30f1d1d0234bfbb | [] | no_license | HelderGualberto/Python | 07fcaff7b6006fb444e0185500874118872f85ef | 1e42e054e2ad7ea3e966910c925cc91d318ed494 | refs/heads/master | 2021-01-01T16:23:43.395072 | 2018-03-26T15:52:47 | 2018-03-26T15:52:47 | 97,824,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | import os
def build_std_path(name,_id):
size = len(_id)
path = _id
while size < 5:
path = "0" + path
size += 1
return path
name = "Ator qualquer"
path = "c:/" + name
_id = "50"
path = build_std_path(name,_id)
print path
try:
os.makedirs(path)
except: ... | [
"helder.garjunior@outlook.com"
] | helder.garjunior@outlook.com |
f49fee36b70aff2d0919440a14d92dd39f24d34f | 2bf1dc0e1bd70d3d211e39540e7530c65aacc397 | /methods.py | 8f93a71f94a0dc15cace87782986797a09ef0118 | [] | no_license | IbraLM/Approximate-resolution-of-differential-equations-Modeling-of-dynamic-systems- | 9a4f09ce26558abd2ba10e0180e3ef2000150208 | 81ee770f9c1a8b73aebbb6365227b536f3ed156f | refs/heads/master | 2023-03-12T19:02:16.630313 | 2021-03-01T13:39:38 | 2021-03-01T13:39:38 | 343,428,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,064 | py | #!/usr/bin/python3.7
import numpy as np
from math import *
def meth_n_step(y0, t0, N, h, f, step_method):
"""
Given a point (t0, y0), this function computes an N
number of steps (evenly distributed), of size h, using the right
method, for the Cauchy problem, with y(t0) = y0, and
y'' = f(y).
y0... | [
"ibrahim.lmourid@bordeaux-inp.fr"
] | ibrahim.lmourid@bordeaux-inp.fr |
ad0204c58539514ac30daab92ddf9c5e97cfa7ad | d49390f27ee954ddf5f7f1a9876320e1adec8ad4 | /tests/test_utils.py | 7e47d12b47398cef00ccd93ae15f60caac575053 | [
"MIT"
] | permissive | ssato/pytest-data-from-files | 431e83827d4a2e14dd029089c8fa020b821b0683 | deca8e3ae50351299f90bfe1561e5a32474812fa | refs/heads/main | 2023-08-19T06:32:59.056406 | 2021-10-13T15:15:07 | 2021-10-13T15:15:07 | 412,952,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | #
# Copyright (C) 2021 Satoru SATOH <satoru.satoh@gmail.com>
# SPDX-License-Identifier: MIT
#
# pylint: disable=missing-docstring
"""Test cases for tests.utils."""
import pytest
from . import utils as TT
def test_get_basename():
assert TT.get_basename(__file__) == 'utils'
@pytest.mark.parametrize(
('xss', ... | [
"satoru.satoh@gmail.com"
] | satoru.satoh@gmail.com |
13cbbd807347a35006a954f6c03de7d23fc84914 | 0bb666ba8e72b5056d2caf993388911f22568a2c | /stop.py | 8be1dc007fa55573cb2e98fa06fd363f82a29f13 | [] | no_license | phungsylinh/datn_dh | 9cb86d4e699e5f97456fffd5010ad6ddc0b893c5 | 2d25b83a3f246b49053c650b9a1a7c4a5c345792 | refs/heads/master | 2023-07-19T09:51:46.285749 | 2021-09-05T00:27:47 | 2021-09-05T00:27:47 | 402,970,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,627 | py | def digital_assistant(data):
global listening
if "how are you" in data:
listening = True
respond("I am well")
if "what time is it" in data:
listening = True
respond(ctime())
if "where is" in data:
listening = True
data = data.split(" ")
location_... | [
"phungsylinh1998@gmail.com"
] | phungsylinh1998@gmail.com |
3728cd815264bf8b0d7ebcd14c595658fe2bcce2 | 757a5219501ce9303d53cfb8be4c528a008c6b0e | /src/cbb_to_nba.py | fb709d20d9b4ebcd2b6b58c208b99229f55f74fd | [] | no_license | RetepAdam/bimfs | 8ff115fce3de8d19f935ac8d7e5cf37716686e07 | 514832ef812f2e4b7b6fb25d4e84ebda64a26e62 | refs/heads/master | 2021-01-21T20:24:06.097909 | 2018-03-09T19:50:52 | 2018-03-09T19:50:52 | 92,230,334 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,336 | py | import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestRegressor
import statsmodels.api as sm
from sklearn.linear_model import LinearRegression
from matplotlib import pyplot as plt
import forestci as fci
import pickle
from xgboost import XGBR... | [
"peter.a.nygaard@gmail.com"
] | peter.a.nygaard@gmail.com |
a59342015429a8fe98d84c3688d5f300989c9754 | ef158af9d47fb1f0c974b49405174ba5b34e4721 | /polu/prediction_site/incendie.py | 7d9797880c7e7d88bf9c409c3146b094c9c89755 | [] | no_license | LeGrosLezard/bobo | 1227bcae22d9eb7d9e0423009cae154df5466994 | 7c50de512fb22c8bdf1a1127307fc4fd2f371152 | refs/heads/master | 2020-07-01T17:38:14.145955 | 2019-07-01T21:29:49 | 2019-07-01T21:29:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | import os
import cv2
import json
import requests
import datetime
import urllib.request
from bs4 import *
import datetime
PATH_LYON = 'https://www.lyoncapitale.fr/?s=incendie'
PATH_MARSEILLE = 'https://www.20minutes.fr/search?q=incendie+marseille'
PATH_PARIS = 'https://www.20minutes.fr/search?q=incendie+pari... | [
"noreply@github.com"
] | noreply@github.com |
c4fb9f34b70bef2237799b588ce93dc951e20c0d | 15749ac3e1b4e915ace52958f75b2ee906839b18 | /django_token/tokenApp/urls.py | 762fd6aa31c981f18bca411ff9fa6173c5eb1f9f | [] | no_license | KimJangHyeon/django_tuto | 3d10e725f74e44e5bc71bf7cecd08c7a43f9a4bb | 6ee4a75364513e55bdf5731de013c00acbaa2d20 | refs/heads/master | 2021-08-17T09:36:17.885624 | 2018-11-30T18:38:07 | 2018-11-30T18:38:07 | 138,526,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from django.urls import path
from tokenApp.views import SignUp, SignIn
urlpatterns = [
path('SignUp', SignUp.as_view()),
path('SignIn', SignIn.as_view()),
] | [
"rlawkdgus75@gmail.com"
] | rlawkdgus75@gmail.com |
301e49dbb4d7faa407729ff514dd2a4fecdb2b45 | 540dbf1622959cc1b3a6853379f6f1f502bdbc24 | /offers/urls.py | 4ea3e242310521d73bca6bf928f385ece1bf7173 | [
"ISC"
] | permissive | pmaigutyak/mp-shop-offers | a5031af2827cee34e671793164ea786d2c4ee016 | 6f3d0934193c7d727d41481b0ebb164b03e34808 | refs/heads/master | 2023-08-02T23:02:09.498271 | 2023-07-19T11:01:34 | 2023-07-19T11:01:34 | 148,797,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py |
from django.urls import path
from offers import views
app_name = 'offers'
urlpatterns = [
path('modal/<int:product_id>/', views.get_price_offer_modal, name='modal'),
path('send/<int:product_id>/', views.send_price_offer, name='send'),
]
| [
"pmaigutyak@gmail.com"
] | pmaigutyak@gmail.com |
e25ddff5aa34b72565bc385ac6ef18adc040fc3f | f06b6d896d3ad0ea45fd78894d0c4d7023fc93b5 | /combo_box.py | 00087c412943f868b0eaa4475fa78e581e146c48 | [] | no_license | Yamini2001/GUI-Project | 6ed8986bd32aa2b2991803fae97a2cf337db8987 | 8755b9c756fac162752270536fdbedaee758a2a4 | refs/heads/master | 2023-07-16T16:34:01.377325 | 2021-09-07T13:40:29 | 2021-09-07T13:40:29 | 403,990,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
class MainWindow (QMainWindow):
def __init__(self,*args,**kwargs):
super(MainWindow,self).__init__(*args,**kwargs)
self.setWindowTitle("Checkboxes yayy")
self.resize(1200,720)
layout = QVBoxLayout()
... | [
"your@email"
] | your@email |
d4463bf4294cc8e7a53b279ed1a1db4d15f79dcf | 3a62ea1fbc8656ddeb73ee75bd31e79e2ecda200 | /Galery/asgi.py | 14c3967b9518d0dd91810868534380a90cc3ac68 | [] | no_license | AristokratM/Galery | 2e6d55767054fa9c1d5f6ac34148bb0bf62f4ee6 | c30546cad7165b150216fba12d35111f9c9693fa | refs/heads/main | 2023-01-10T16:29:27.338813 | 2020-11-06T00:42:03 | 2020-11-06T00:42:03 | 309,489,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
ASGI config for Galery 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"61250102+AristokratM@users.noreply.github.com"
] | 61250102+AristokratM@users.noreply.github.com |
1be5652f360a576c7b6c45e2a3d1d53f4f727fbc | 1ac60cbdfa153f3e1eea3fdf89a623d803fdb42a | /mysite/QCtool/Item/PMNs.py | 07a1e77634e9f9f79cdd1cc9aa2d2c5f26a7e11c | [] | no_license | mayhjx/Data-Processing-Evaluation-Tool | 2ad76e18182838e9bd7dd0844c282a46987ec5d3 | f8e3f36dcdff002e6e3192ce7fec54af22b76bdd | refs/heads/master | 2021-05-19T17:01:44.317748 | 2020-04-01T03:30:37 | 2020-04-01T03:30:37 | 252,039,883 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,307 | py | from statistics import mean, stdev
from datetime import date
from QCtool.main import Evaluation
from QCtool.models import QCframe, QCrecord
class PMNs(Evaluation):
def __init__(self, f, instrument_num, instrument_type):
self.f = f
self.instrument_num = instrument_num
self.instrument_type ... | [
"mayangjie@kingmen.com.cn"
] | mayangjie@kingmen.com.cn |
68980d40d11605653255550db4b77e4bc8a3260a | ca836ce5c95a25d89f839a9bafaae7f6c69b33af | /countnoofdigit.py | e3b1ef9a98c781ac42132dfc2e6483b69d283dea | [] | no_license | abhij936/guvitask | 5f53c2d67923d89ad0d7f7ff19973deae7c73f02 | 6c175067cbe9d25054c6d3d0eb25d5b9ce5d4c3d | refs/heads/master | 2020-06-13T21:04:37.141719 | 2019-07-19T05:37:35 | 2019-07-19T05:37:35 | 194,786,790 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | a=int(input(""))
count=0
while(a!=0):
a//=10
count+=1
print(count)
| [
"noreply@github.com"
] | noreply@github.com |
92fba81237dc64081fb8c2a1925de04f68ef5759 | df5028c4e5858e1e10799b19f75bfb8f1033b69a | /adoptme/pet_record.py | 8dd21be718ed37ad29a76a4412b4347bd9a56aba | [] | no_license | penguinencounter/adoptme | fc6e1085a94b2e70237e4de28f67032312e7132c | a9697b2f85865994f34c2769555dd472c881a5f3 | refs/heads/main | 2023-04-01T19:00:50.929837 | 2021-04-04T21:11:16 | 2021-04-04T21:11:16 | 354,415,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,983 | py | #
# Copyright 2019 Andrew Lin. All rights reserved.
#
# This software is released under the BSD 3-clause license. See LICENSE.txt or
# https://opensource.org/licenses/BSD-3-Clause for more information.
#
import datetime
import logging
import re
import typing
class NameId(typing.NamedTuple):
"""Name, Identifier pa... | [
"miles.h.lin@gmail.com"
] | miles.h.lin@gmail.com |
06edade029fcaecb22d8a144ca67efcb9491ff17 | 16c093344afa71ac72ac63d2b5b4e54f21787611 | /allViral/pipelines.py | 329a9c1fec0ff74abb360570499b0735e88bfa40 | [] | no_license | edouardyonga/allViral | 9f4ffaa5ddf622418ed4688d820dc6cdc7ad5c3c | d7adffaec673ef59e7a075a6c6167a5064b60c86 | refs/heads/master | 2021-02-06T19:22:11.630621 | 2020-03-29T02:36:21 | 2020-03-29T02:36:21 | 243,942,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://docs.scrapy.org/en/latest/topics/item-pipeline.html
class AllviralPipeline(object):
def process_item(self, item, spider):
return item
| [
"yonga@wazahub.com"
] | yonga@wazahub.com |
f0272683f3edfbcf1f9c2e00b91bf63b2b057c61 | a9e051485379fb7e569a7c8458045e9eb56d4cf8 | /docker/water/sph/tags/pysph/pysph/sph/tests/test_acceleration_eval.py | b17fee871d6139baca63491dc96ca7de83677b09 | [
"LicenseRef-scancode-public-domain",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | liujiamingustc/phd | 7634056500c481d39fa036bf0ed744c1d13b0035 | 4f815a738abad43531d02ac66f5bd0d9a1def52a | refs/heads/master | 2020-05-17T07:02:56.000146 | 2019-04-24T15:04:19 | 2019-04-24T15:04:19 | 183,567,207 | 4 | 0 | null | 2019-04-26T06:04:37 | 2019-04-26T06:04:37 | null | UTF-8 | Python | false | false | 17,647 | py | # Standard library imports.
try:
# This is for Python-2.6.x
import unittest2 as unittest
except ImportError:
import unittest
# Library imports.
import pytest
import numpy as np
# Local imports.
from pysph.base.config import get_config
from pysph.base.utils import get_particle_array
from pysph.sph.equation... | [
"quanpan302@hotmail.com"
] | quanpan302@hotmail.com |
4390189135fc6282e342904609063be15f19052c | 6cea4f9be2d8f43fa4f41f965e8dbe24bafe2274 | /Examples/example_13.py | 9d649a96367745c7780628967dfa4723ca28f9ae | [] | no_license | MustafaHalimehHH/DeepLearning | 17de92f43f8031858fd685e066e885ae18885645 | e6466aa0b2d2646e1577ea8704f05789053495b7 | refs/heads/master | 2020-11-26T12:08:16.123875 | 2020-02-24T15:47:38 | 2020-02-24T15:47:38 | 229,067,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,249 | py | # https://www.tensorflow.org/tutorials/generative/pix2pix
from __future__ import print_function, division, absolute_import, unicode_literals
import os
import numpy
import pandas
import keras
import tensorflow
import matplotlib.pyplot as plt
import pydot
_URL = 'https://people.eecs.berkeley.edu/~tinghuiz/projects/pix2... | [
"mustafa.halimeh@hhi.fraunhofer.de"
] | mustafa.halimeh@hhi.fraunhofer.de |
7797a0b69b16b363d5ed4fb2e1dbcd52ae1bf7a3 | 9948ec96c038e16da3734e6aef5a317390ee33e7 | /tests/03B.py | 553230148502e80544d7c8d10cb67621ad6b8ce7 | [] | no_license | Kevin-Arias/PlantsVsZombies | a517eedee011e9e4d7579a04b141c77efca7c5e6 | 48bf3f3f450c8e83b006a711c4460dfbb7607622 | refs/heads/master | 2020-04-16T12:53:01.167013 | 2019-01-14T07:11:20 | 2019-01-14T07:11:20 | 165,600,531 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,544 | py | test = {
'name': 'Problem 3B',
'partner': 'B',
'points': 2,
'suites': [
{
'cases': [
{
'answer': 'random_or_none, defined in ant.py',
'choices': [
'random_or_none, defined in ant.py',
'random.random(), defined in the "random" module',
'ge... | [
"kevin.arias@berkeley.edu"
] | kevin.arias@berkeley.edu |
b7243813f8bf290dd27c60441ca3c453a67e225f | 024214bff5cdd43874d30143ee90131a985c5ce3 | /vycontrol/interface/urls.py | 0c3aaab513ffb0106d0732d02cc9e8dd19f611e2 | [
"MIT"
] | permissive | KennethEhmsen/vycontrol | c20e2d793bd03005ddfd314abc62b4ca3fd292e3 | 5dbebfa1b299ad20b60131d95291ee91c3b9df5c | refs/heads/master | 2023-08-10T11:43:36.001119 | 2020-05-23T05:03:47 | 2020-05-23T05:03:47 | 267,380,513 | 1 | 0 | MIT | 2021-09-22T19:40:01 | 2020-05-27T17:13:06 | null | UTF-8 | Python | false | false | 388 | py | from django.urls import path
from . import views
app_name = 'interface'
urlpatterns = [
path('', views.index, name='interface-list'),
path('interface-show/<slug:interface_type>/<slug:interface_name>', views.interfaceshow, name='interface-show'),
path('interface-firewall/<slug:interface_type>/<slug:interf... | [
"roberto.berto@gmail.com"
] | roberto.berto@gmail.com |
0504217ad5f00f0b37bd0a28234798bc76bcac1d | f878092866ab3e963b28ea50cb74107174d109af | /run_WeiboCrawler.py | 1337289a774624d9d3c967983f4aa32ae644baf3 | [
"MIT"
] | permissive | hhy5277/weibo-crawler | 70d2fa2f431ce287b3669644a96baa8bdf1fe316 | 4c0200aa0348ccce576ea1ff60ac3e945fa09319 | refs/heads/master | 2020-05-17T23:02:57.538461 | 2019-04-26T17:41:28 | 2019-04-26T17:41:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,507 | py | '''Crawl Weibo data of one Sina Weibo user.
The Weibo data include: Short text, JPG/GIF images, live photos, and videos.
The crawler simulates the login of Sina Weibo by using a session (not cookie)!
Author: He Zhang @ University of Exeter
Date: 16th April 2019 (Update: 20th April 2019)
Contact: hz298@exeter.ac.uk zha... | [
"noreply@github.com"
] | noreply@github.com |
7f0a5b1b270b7e230361b6f791d4e0774ca6ed98 | dbe7e1d9fe2457c26f83095d941e4392e7d30f8c | /django_dashboard/api/test.py | 81e1e97da6599b88239c60f04be0a535b2b26525 | [
"MIT"
] | permissive | keepexploring/smartbiogas | 51e124735ec04bc6b87a8ac75c66c83de6865001 | ca663435b05666113e3c0cb55e6f087c61497208 | refs/heads/master | 2022-12-12T10:42:37.412038 | 2018-07-18T15:29:04 | 2018-07-18T15:29:04 | 111,402,799 | 0 | 0 | MIT | 2022-12-08T00:56:54 | 2017-11-20T11:39:05 | JavaScript | UTF-8 | Python | false | false | 1,051 | py | class Container(models.Model):
pass
class ContainerItem(models.Model):
blog = models.ForeignKey('Container', related_name='items')
# For testing purposes only
class ContainerResource(ModelResource):
class Meta:
queryset = Container.objects.all()
authorization = Authorization()
class Conta... | [
"joel.c@scene.community"
] | joel.c@scene.community |
c10c1e59816f57785fd6424ef34de1c943bc598a | 32e34b818af9766e1192ab32b3d1c5a4f0e50705 | /manage.py | f9fccb9e9b6f5dfe26b4ac4bf6f06de84432ab35 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | tiravata/getting-started-django | 12fe51df43ffcad5e6d23112bff6db3ef55121e3 | c462bb801286f249510d4a31b71b95be52b2f1c5 | refs/heads/master | 2020-03-21T06:00:10.936084 | 2018-04-17T17:11:47 | 2018-04-17T17:11:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | #!/usr/bin/env python
# Copyright 2015 Google 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 ... | [
"waprin@google.com"
] | waprin@google.com |
b0e33358f8b3b43b4b15d258d7501fe53c05fbd9 | 3572489512745bb16580c1f198e53feb21a3a105 | /gameplay/migrations/0001_initial.py | fbda280a217e50213f20642c06f6c75622bdf81d | [] | no_license | Raj725/tic-tac-toe | c33e284661718c52072b91fdacb23288080737f2 | be89927a02ee9cf6393e6f107cae26e32c6e381a | refs/heads/master | 2020-11-28T01:48:52.956105 | 2019-12-24T18:45:47 | 2019-12-24T18:45:47 | 229,672,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,582 | py | # Generated by Django 3.0.1 on 2019-12-21 17:54
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"raj.725@outlook.com"
] | raj.725@outlook.com |
9bb45dce5437f1e93e2b628ba074e1688621f60a | cc1f7825d36e992accf235fd4ea9bde1547d78a5 | /mc-core/mc/extract_params.py | 21d72077874b641ed69f253ddb1ae848bdae6a68 | [
"Apache-2.0",
"CC-BY-4.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | o-ran-sc/ric-app-mc | c21c96539ff8a9f122863a9727e86f79f84c1236 | bb056430307c0edebd3fbac8adc168ca379d3101 | refs/heads/master | 2021-12-29T16:21:16.972806 | 2021-09-17T19:54:57 | 2021-09-17T19:54:57 | 222,767,974 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | # -------------------------------------------------------------------------------
# Copyright (c) 2018-2019 AT&T Intellectual Property.
#
# 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 a... | [
"vshkap@research.att.com"
] | vshkap@research.att.com |
4aa7846c32a3e5e2178f059d00efa3ce03c9b037 | ff066014d893696a217ccd006feb4993cfc43bfa | /robojam/sample_data.py | 2a421ce81d28c224f03e10074d4c4cfeadd08eb1 | [
"MIT"
] | permissive | benediktewallace/robojam | 3888ab58174fbca6c8900ccde9bfea42ee7a6a29 | 69b5662a1c9ba072dfd065eca06eae729dfc4e4e | refs/heads/master | 2020-03-20T05:38:13.603255 | 2018-06-11T11:49:20 | 2018-06-11T11:49:20 | 137,221,643 | 1 | 0 | null | 2018-06-13T13:46:33 | 2018-06-13T13:46:33 | null | UTF-8 | Python | false | false | 3,289 | py | """ Arranges sequential data in batches and epochs for applying to an RNN. """
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import pandas as pd
def generate_synthetic_3D_data():
"""
Generates some slightly fuzzy sine wave data ... | [
"cpm@charlesmartin.com.au"
] | cpm@charlesmartin.com.au |
66e91170f91b53463dfa8fee46abb75bf13dfbb4 | ac55064554014d342eeee4b5da9c07117dedaac3 | /synthesize_data.py | 004bd3b41b6e416bd524bdc27b06786034b7bdd9 | [] | no_license | that-recsys-lab/pfs-gen | 01778e0935bbd38c38a27b77bb9a2ead130404ce | 55b8da07cde1e32896f53911d58babc438c65154 | refs/heads/master | 2022-03-13T04:54:26.540845 | 2021-09-24T16:05:06 | 2021-09-24T16:05:06 | 183,504,349 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,946 | py | import argparse
from scipy.stats import ks_2samp
from datasets import load_movielens_ratings, load_amazon_reviews
from generator.torch_model import TorchDataGenerator
import os.path
import pickle
import numpy as np
configs = [
(x, True, [0.1] + list(np.arange(1.0, 30.0, 3.0))) for x in [0.25, 0.5, 1.0, 2.0, 4.0, ... | [
"vlad.grozin@yandex.ru"
] | vlad.grozin@yandex.ru |
0303a6e6b6986246375f6c587add09fe5bba6749 | 9af6b1eaaebf59207e8703d4097eb1b3da35fc8c | /opencv/Loading Video Source.py | 1129ba93d5b513805e5c119b5cdd3f3f8817340b | [] | no_license | keenborder786/DeepLearningAlgorithms | 79a5745746e0dec5dad88815755d6aa9edd76127 | 6854a2c605984f5e0e3bf868d98b7df851ac62e4 | refs/heads/master | 2020-04-29T08:12:05.989416 | 2019-06-20T20:19:12 | 2019-06-20T20:19:12 | 175,978,485 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 17 12:35:15 2019
@author: MMOHTASHIM
"""
import cv2
import numpy as np
cap=cv2.VideoCapture(0)
fourcc=cv2.VideoWriter_fourcc(*'XVID')
out=cv2.VideoWriter("output.avi",fourcc,20.0,(640,480))
while True:
ret,frame=cap.read()
gray=cv2.cvtColor(frame,cv2.COLOR_BGR2G... | [
"21110290@lums.edu.pk"
] | 21110290@lums.edu.pk |
de95ee25eea93f871b7b75dd613b38224a6be6a4 | 50ee60c2d6c6e2a6e7bb6c65dfc2169363a8dead | /train_mcdo.py | 3f025c9db567c6ad76055117a5d5020a17f632d6 | [] | no_license | ccchai1/LAIDD_GNN | 758111cf4eab97c749ee4da18082f206972ef80f | 8cbc3846200c27de74505fe4eadd39e0c5bc11a4 | refs/heads/main | 2023-08-03T15:22:37.892478 | 2021-09-17T01:19:32 | 2021-09-17T01:19:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,835 | py | import time
import argparse
import numpy as np
import torch
import torch.nn as nn
from torch.utils.data import DataLoader
from libs.io_utils import get_dataset
from libs.io_utils import MyDataset
from libs.io_utils import my_collate_fn
from libs.models import MyModel
from libs.utils import str2bool
from libs.utils ... | [
"noreply@github.com"
] | noreply@github.com |
6f0db22e4d431de67b5c51ffdb7d56148c3f854a | a99f5a259ffb37aae38608c1d70c217ac21032c9 | /unsupervised_helper.py | 30e3c570495ce508c23cd0b7d637b24eec88eef5 | [] | no_license | nyutandononline/MachineLearning_and_Finance_Teacher | dce2929464fd4008e4ba6d20527ad82a0f7b6a78 | 93df7c61e8ba493898672786964ecc8a956ca1d7 | refs/heads/master | 2023-02-02T11:02:56.088758 | 2020-12-08T19:32:53 | 2020-12-08T19:32:53 | 288,833,326 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,672 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
import pickle
import math
import os
import time
from sklearn.datasets import fetch_openml, load_digits
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split
from sklearn... | [
"ken.perry@nyu.edu"
] | ken.perry@nyu.edu |
2db860eb5d24587ad067f5f5f7ff6723aec5a0f8 | 4557dc304772f7b0a221c8246f38da2b711b8a79 | /addressbook/admin.py | 0e705cf957911b4716374ff52d95964d4373f90b | [] | no_license | oladimillion/address-book | 4e0e8f8edc67d8355b55f2549f4239d73c87d5ad | 602e4957d68588f3e9dc908458921f4510c19baf | refs/heads/master | 2021-08-18T20:05:42.967686 | 2017-11-23T19:16:25 | 2017-11-23T19:16:25 | 111,450,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | from django.contrib import admin
# Register your models here.
from .models import Models
admin.site.register(Models);
| [
"akandeoladimeji9@hotmail.com"
] | akandeoladimeji9@hotmail.com |
bd71f6630b174a7c443beb913517d8c5ab5e1426 | 4f699a10b173541301f4f1eba77476523152f3c5 | /src/data/preprocess_dataset.py | fd17d10ada14972543e4ccc0ca9366374fa6222b | [] | no_license | ROAD2018/Audio-Enhancement-with-Deep-Learning | 4b072bbf89c61b67de504f9e1854ee588af5273d | a139b0ab19f08f9699dd8844bb9d98386ecb0d89 | refs/heads/master | 2023-01-31T17:56:46.352623 | 2020-12-15T21:49:55 | 2020-12-15T21:49:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | import os
from argparse import ArgumentParser, Namespace
from random import seed, shuffle
import torch
from tqdm import tqdm
from constants import PREPROCESSED_DATASET_DIR, RAW_DATASET_FILELIST
from data.utils import load_file
def parse_args() -> Namespace:
parser = ArgumentParser()
parser.add_argument(
... | [
"fszatkowski96@gmail.com"
] | fszatkowski96@gmail.com |
8ab9e537bf3671637d4a6dd480b2884adc5762ef | 64b6a658dd6eee18d529ff2e922d7e369620dbd3 | /code.py | 1fb65dcc296072e243d238f56ef7c9b459c0b6a3 | [] | no_license | kamaleshnneerasa/PacketTraceAnalysis | 1148942e097643889c1a98f0f57d7ae9df3f37d2 | 3b74776f4fc7e20afde71c1739888d91bf371525 | refs/heads/master | 2022-08-04T06:31:32.831597 | 2019-10-13T19:09:24 | 2019-10-13T19:09:24 | 212,342,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,722 | py | import math
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import sys
def readCSVfile(inputFile):
tb = pd.read_csv(inputFile)
tcp = tb[tb['Protocol']=='TCP']
tcpsyn = tcp[tcp['Info'].str.find('SYN')>-1]
tcpsyn = tcpsyn[tcpsyn['Info'].str.find('[SYN, ACK]')==-1]
tcpsyn1 = ... | [
"kamaleshneerasa@gmail.com"
] | kamaleshneerasa@gmail.com |
0d16ef88291c87aad85f8dc63db5bd989ca53e9c | 14310bc25219a1c63ae15a908dfe206742163b89 | /python/types_pb2_grpc.py | e61132dbf41c7034030eb1bb5e497778f184c0b6 | [
"Apache-2.0"
] | permissive | khudiakov/api | 6caf94fb11d37c2e26e97d6776c9944730c6e4f6 | cdc052a140eacc35afba12468a82907926a89ca7 | refs/heads/master | 2020-06-14T02:19:48.988407 | 2019-06-26T08:12:46 | 2019-06-26T08:12:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,935 | py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
import types_pb2 as types__pb2
class MessagesProxyStub(object):
"""*
Service for pub-sub message model
"""
def __init__(self, channel):
"""Constru... | [
"ondrej@turing-technology.com"
] | ondrej@turing-technology.com |
e9cf467c3d893ac5370b5a7cf6551221532195b6 | b11078d149e04de7aed319f32b1617ce7dd6a501 | /core/admin.py | b3a4d4899bbe30df154102ab0a58d82b198ac76c | [] | no_license | ericzorn93/qandu_app | 9585625f78e72cb993717f882b828c1d3bb9cab7 | 4000ea2d238d49a125e6d3766f88d8fe2132fa4a | refs/heads/master | 2021-01-19T13:31:09.095355 | 2017-02-21T04:11:19 | 2017-02-21T04:11:19 | 82,420,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | from django.contrib import admin
from .models import *
# Register your models here.
admin.site.register(Question)
admin.site.register(Answer)
admin.site.register(Vote) | [
"eric.zorn@quinnipiac.edu"
] | eric.zorn@quinnipiac.edu |
270166ede0ea9aa8ef6cdedfbe9dc16ea08db746 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/RADLAN-GVRP-MIB.py | c9e0c0b6e626f01b902af3235250ea18cac1799f | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 11,809 | py | #
# PySNMP MIB module RADLAN-GVRP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RADLAN-GVRP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:38:27 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
42d4cf4e04f8023ca2ea386d80ce1f065a8df2ea | 9e4192d6d092d10d8f39b3ad7bf258044cf7d624 | /src/geo/migrations/0001_initial.py | f3c5040eb76a89f1ecfd3d64bcffe746c18cb0b9 | [] | no_license | yajmliecah/Bike | 35a01a9286906764fd0795eb6e1f34c8941e7a9e | 4da1ed6e50e7f8b6d1f482ee1591ce00d1f47397 | refs/heads/master | 2021-01-20T16:56:09.570798 | 2017-12-07T08:37:00 | 2017-12-07T08:37:00 | 82,935,133 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-28 11:13
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"michaeljay.santome@gmail.com"
] | michaeljay.santome@gmail.com |
2c981e6154573f1a90cbe17b3e08b4d1bc8d80d3 | 2cba25ac9c147ba7a364fad4255dca163dc6f5e2 | /handrecog.py | 80e111e66e1b539013c6491efde97e55c5590dc3 | [] | no_license | greenm8rix/hand-gestures-to-navigate | 8e2034cb117ce797595508c5380ff71826aaacce | 862e26b64b5edb6038e2a2b19844a3a451e348da | refs/heads/main | 2023-07-31T11:18:37.579045 | 2021-09-06T16:09:57 | 2021-09-06T16:09:57 | 403,685,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,090 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Jun 19 18:44:59 2021
@author: nawafsheikh
"""
# IMPORTING LIBRARIES
import numpy as np
import cv2
import math
import os
import signal
import time
hand_cascade = cv2.CascadeClassifier('Hand_haar_cascade.xml')
counts=1
count=0
capta=0
zad=0
cap = cv2.Vid... | [
"nawafsheikh10@gmail.com"
] | nawafsheikh10@gmail.com |
98d67adeb2aa151c263faa61a4956cb8f620a667 | fa76cf45d7bf4ed533e5a776ecd52cea15da8c90 | /robocorp-python-ls-core/src/robocorp_ls_core/libs/robocop_lib/robocop/exceptions.py | a5d30bd12b3f4d63a76dca5367602c808aafd756 | [
"Apache-2.0"
] | permissive | martinRenou/robotframework-lsp | 8a5d63b7cc7d320c9fed2372a79c8c6772d6481e | 5f23b7374139e83d0aa1ebd30675e762d7a0db86 | refs/heads/master | 2023-08-18T22:26:01.386975 | 2021-10-25T13:46:11 | 2021-10-25T13:46:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,180 | py | class RobocopFatalError(ValueError):
pass
class ConfigGeneralError(RobocopFatalError):
pass
class DuplicatedRuleError(RobocopFatalError):
def __init__(self, rule_type, rule, checker, checker_prev):
msg = (
f"Fatal error: Message {rule_type} '{rule}' defined in {checker.__class__.__na... | [
"fabiofz@gmail.com"
] | fabiofz@gmail.com |
a5d9530e7e2c433a8c273464a8ecdcb3adcf75bb | 83bc896da622c584fbd36f848d978da4a7be3ed8 | /data/a2b_transfer_dataset.py | 2d4febe99977af01b8c4e47f262d416b34829e97 | [
"MIT"
] | permissive | bob80333/DMIT | 433d86bd4410658ea3474a293041ffa9fc31cdcb | 34edd301819e338bd713404afb139f9338107ae1 | refs/heads/master | 2020-09-21T21:17:18.348278 | 2019-12-09T03:48:26 | 2019-12-09T03:48:26 | 224,932,930 | 0 | 0 | MIT | 2019-11-29T23:06:08 | 2019-11-29T23:06:07 | null | UTF-8 | Python | false | false | 2,764 | py | import os
import random
from glob import glob
import torch
from PIL import Image
from torch.utils.data import Dataset
from torchvision import transforms
class A2BTransferDataset(Dataset):
def __init__(self, opt):
self.image_path = opt.dataroot
self.is_train = opt.is_train
self.d_num = opt... | [
"bob80333@gmail.com"
] | bob80333@gmail.com |
79985d06428626ec68832f5b872636183ae7367d | dbcc56e38985796b2f423ff97321e35746fd6fad | /siyanwang_safety_skeleton/cmake-build-debug/catkin_generated/pkg.installspace.context.pc.py | 527807874a4c3a76fa71ce3f544065bf466b5b35 | [] | no_license | siywang/f1_10 | 53db9b4571be346636279f8f4a902d8fd4faa332 | a69a5672140c4cc954dccd25b5732ba31bf7b961 | refs/heads/master | 2020-08-02T12:10:31.678061 | 2019-11-15T04:14:21 | 2019-11-15T04:14:21 | 211,345,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "siyanwang_safety_skeleton"
PROJECT_SP... | [
"siyan541@gmail.com"
] | siyan541@gmail.com |
9ed5b3bc5724d7112169335ad6c324593e9606b8 | a0c6702e2dd333a7969dc08470f118cfcdd30d4c | /ex9.py | 132d28d679db0bdff57a0e21bb7c491323d88178 | [] | no_license | hbish/learn-python-the-hard-way | 42f41ea24da86d2de1335892ded3f3c5e19e3fec | ef5b071017cf2f196673facbcd6aef98be62288e | refs/heads/master | 2020-05-09T13:51:03.388211 | 2019-04-13T12:51:02 | 2019-04-13T12:51:02 | 181,170,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | days = "Mon Tue Wed Thu Fri Sat Sun"
months = "Jan\nFeb\nMar\nApr\nMay\nJun\nAug"
print "Here are the days: ", days
print "Here are the months: ", months
print """
There's somehting going on Here
With the three double quotes.
we'll be able to type as much as wel like
even 4 lines if we want or ...... infinite
"""
| [
"ben@hbish.com"
] | ben@hbish.com |
b2dfe4f6063df36b2656fa9ee711b64b11d5044a | d8fa06c668bc06190e814fd2ad60f4e7de768656 | /src/Fonctions/FinPartie.py | b1bf35f66f9254e0100b269823dc930b18edabf3 | [
"MIT"
] | permissive | ProgBiss/Sudoku | 0dbcb5f8445bb12826ef776e55d2c6624180a1b4 | d583e2f389dc08af4a907d81ce7d6adfe2e12211 | refs/heads/master | 2021-01-11T20:09:54.268607 | 2017-01-15T20:36:03 | 2017-01-15T20:36:03 | 79,054,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,644 | py | '''
Module qui contient les fonctions qui placent chaque ligne, colonne et carrée (9x9) pour ensuite les vérifiés et détermier s'il y a une victoire.
'''
def VerifierCases(cases): # Vérifie chaque ligne, colonne et carrée (9x9) pour qu'il n'y ait pas 2 (ou plus) chiffres identiques.
int_nombre = 0
for i in ran... | [
"niclas035@hotmail.com"
] | niclas035@hotmail.com |
ee7e418fdcbae486ecdd75a3ec5794393760dcda | 972700bc931f4e01e0b66d0a9a63928cb2d03080 | /materials/CannonBullet.py | 7b366361e7a4532b3f840a55b881016e15c0f604 | [] | no_license | patrykbilka/game | 15edd8f158ddf78d96e836ae2e53d0d277aba153 | 8d64c4b45a75b61fc6b2418fa5aea66cc5747597 | refs/heads/master | 2020-03-21T10:50:51.618577 | 2018-06-27T12:20:28 | 2018-06-27T12:20:28 | 138,474,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | import os, pygame
from static.resolution import WIDTH, HEIGHT
image = pygame.image.load(os.path.join('assets', 'cannon_bullet.png'))
class CannonBullet(pygame.sprite.Sprite):
def __init__(self):
super().__init__()
self.image = image
self.rect = self.image.get_rect()
self.speed = 10... | [
"patryk.bilka@gmail.com"
] | patryk.bilka@gmail.com |
af2208aab51a655605a7d800189d0ced90fe2709 | 34d88082307281333ef4aeeec012a3ff5f8ec06e | /Runood_100/R048.py | f1206ba36ee2dabd3566bd2a2b35e2a30c35bb34 | [] | no_license | JKChang2015/Python | a6f8b56fa3f9943682470ae57e5ad3266feb47a7 | adf3173263418aee5d32f96b9ea3bf416c43cc7b | refs/heads/master | 2022-12-12T12:24:48.682712 | 2021-07-30T22:27:41 | 2021-07-30T22:27:41 | 80,747,432 | 1 | 8 | null | 2022-12-08T04:32:06 | 2017-02-02T17:05:19 | HTML | UTF-8 | Python | false | false | 101 | py | # -*- coding: UTF-8 -*-
# R048
# Created by JKChang
# Fri, 12/05/2017, 11:30
# Tag:
# Description:
| [
"jkchang2015@gmail.com"
] | jkchang2015@gmail.com |
3ef8668068c91c2364df3a6f2a86c29965475cc6 | e384f488817061aa5c3434c8ce2e5f5d412d73e5 | /demo.py | d6cf07b4339e9aa45ac5152b1357f0bdfb619e18 | [] | no_license | enjoystar/oxyfacebookalbums | 455885a5d46cbffed9eea920030b6f30871541e9 | 85d41d4294dfa2e21a782a9e33718f045016bc26 | refs/heads/master | 2016-09-16T09:43:45.100634 | 2014-05-08T05:56:28 | 2014-05-08T05:56:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
import os.path
from google.appengine.ext.webapp import template
class MainPage(webapp.RequestHandler):
def get(self):
#self.response.headers['Content-Type'] = 'text/plain'
#self.response.out... | [
"nileshmorepict@gmail.com"
] | nileshmorepict@gmail.com |
687928bd5cbae74126e216d9917663a800029e25 | 3c5b82c2920785e11014d670cf5cc2705061894c | /Fizz Buzz.py | 9c826a533faee2fee496c1464d44c436e8b591cb | [] | no_license | wwshadow/leetcode | 8fe35c0afd7ef5e1229e4a55564f2595e29a6d37 | 5de0dd9f9faa549fe880a261b47c5b7006aecf5f | refs/heads/master | 2020-03-28T01:42:13.914184 | 2018-11-15T17:45:12 | 2018-11-15T17:45:12 | 147,275,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py |
def fizzBuzz():
"""
:type n: int
:rtype: List[str]
"""
n=1
lists=[]
for i in range(1,n+1):
if i%3 == 0 and i%5 == 0:
lists.append('FizzBuzz')
elif i%3 == 0:
lists.append('Fizz')
elif i%5 == 0:
lists.append('Buzz')
else:
... | [
"hww_957@163.com"
] | hww_957@163.com |
583dc81b58076cf124dd0d34acbc683ce062c18b | 2f5ff496d48542e231be12a53c51b7ff99f4ed21 | /Tools.py | b7da0acee632fe44b8f34c779e1923dab05a1c92 | [] | no_license | Joojina/test_git | fe98365b1dfe66f145289b31af0bb2d8f38a9b21 | e56fffda1d172bc765a35beba2e550ea355f7115 | refs/heads/master | 2021-02-16T20:04:10.730190 | 2020-03-05T08:43:45 | 2020-03-05T08:43:45 | 245,040,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | def replaceSRC(str1, srcList) :
#str1 = """$#@#aa<img src="aaa">@@@<img src="bbbb">@@@<img src="cc">@@@"""
#srcList = ["img/aa.jpg","img/bb.jpg","img/cc.jpg"]
if len(srcList) == 0 :
return str1
newList = []
findWord = 'src="'
str2 = str1
i = 0
while len(srcList)!=0 and str2.fin... | [
"joojina1108@gmail.com"
] | joojina1108@gmail.com |
4a6c127e11f77fef064cd6c080ef8f541b4ba12b | 10ec999d273b9a75b3cc5c3e353d611ea7f163b6 | /grappa/operators/attributes.py | 7748bfdcbeb82c4d1d8d8cbe054f6887bb88da79 | [
"MIT"
] | permissive | jcassee/grappa | 721bec7ee2d21fc3fc857f77b9ff6d58b941bfd9 | b128da8aef67501c310701c47508e7318241aa8b | refs/heads/master | 2020-05-05T02:24:30.106837 | 2018-10-02T10:29:16 | 2018-10-02T10:29:16 | 179,636,623 | 0 | 0 | MIT | 2019-04-05T07:24:31 | 2019-04-05T07:24:31 | null | UTF-8 | Python | false | false | 690 | py | # -*- coding: utf-8 -*-
from ..decorators import attribute
@attribute(
operators=(
'to', 'has', 'have', 'satisfy', 'that', 'that_is',
'satisfies', 'include', 'do', '_is', 'which', 'which_is'
)
)
def be(ctx):
"""
Semantic attributes providing chainable declarative DSL
for assertions... | [
"tomas@aparicio.me"
] | tomas@aparicio.me |
206353f2de68251edd5d3d3d54d1a1b84e61ad48 | ed12fadc85edd1a36a45ab3281c352c7211ff63c | /method/WindowFileParser.py | ea7f8d321ffe3f449ae1b4bc4c2776d7dfe0a9b1 | [] | no_license | wjs09211/YEEasy_Portal | 15aa84cd809f5fcbf50b7bced623c8be15d1849e | 57447136219fcb3681937550167dae8a3900c0cc | refs/heads/master | 2021-01-21T04:55:41.273492 | 2016-06-16T09:58:44 | 2016-06-16T09:58:44 | 54,488,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,918 | py | # -*- coding: utf-8 -*-
from pptx import Presentation
import urllib
import chardet
import os
from docx import Document
import PyPDF2
import subprocess
from Info.TextColors import Color
def get_unicode(key):
encode = chardet.detect(key)['encoding']
if encode == 'windows-1252':
encode = 'Big5'
retu... | [
"wjs09211"
] | wjs09211 |
f5da135134b4553f217f25562f07f99d70331f53 | 5b87e0cf2b4266faf06bbd28f86c4e524f29bab0 | /scan_one_new.py | 1247744afe90b1d63c4c2a54c8f0ff0e13fedbe2 | [] | no_license | cdelieto1/Live-Project | 6f0fe0eef119885689f36e2e6e95e53f16a83d24 | 720c9b8dc0f3ce1010c61dcb031fd81eb8b52ad1 | refs/heads/master | 2020-11-29T12:10:18.449161 | 2017-04-07T03:14:22 | 2017-04-07T03:14:22 | 87,494,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,650 | py | # Import all required modules
# Written in VS2015
from bs4 import BeautifulSoup
import requests
import json
import re
def find_between( s, first, last ):
try:
start = s.index( first ) + len( first )
end = s.index( last, start )
return s[start:end]
except ValueError:
... | [
"cassandradelieto@gmail.com"
] | cassandradelieto@gmail.com |
38f0bbf4d9ddecf7fb700d0eb91b54e7fd695f29 | 040a842ac7f4155cab3c23d399e1b99abc33bdee | /Tyrion/Fields.py | 85f8d90deeeda73d925da4b883720380a16e066e | [
"MIT"
] | permissive | mossonli/Tornado_Form | d5c3d8bc2242639dd482aae5d9353dada65d2c7a | 41a5530529a407f31ecb296f93dac7b980068bc0 | refs/heads/master | 2021-01-13T07:31:36.293757 | 2016-10-20T11:44:27 | 2016-10-20T11:44:27 | 71,456,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,190 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import re
from Tyrion import Widget
from Tyrion.Framework import FrameworkFactory
class Field:
"""
所有Form字段的基类
"""
def __init__(self, widget):
self.status = False
self.name = None
self.value = None
self.error = None
... | [
"mc136782643@gmail.com"
] | mc136782643@gmail.com |
647c137facd838ac6488a092188e30f81a6926b1 | 82aace1431e0af949b1294d979a16f8dc18f48c2 | /Python-Web-Basics-Softuni/recipes/venv/Scripts/django-admin.py | a220eda67fd73b94ee6387a63bff85b7b9484757 | [
"MIT"
] | permissive | borisboychev/SoftUni | 6778450417f889f8e89c709897b9e26c7129dbf6 | 22062312f08e29a1d85377a6d41ef74966d37e99 | refs/heads/master | 2023-03-27T13:11:17.378197 | 2021-03-26T09:14:25 | 2021-03-26T09:14:25 | 295,463,442 | 1 | 0 | null | 2020-10-12T12:54:13 | 2020-09-14T15:46:12 | Python | UTF-8 | Python | false | false | 717 | py | #!C:\Users\boris\SoftUni\Python-Web-Basics-Softuni\recipes\venv\Scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
... | [
"borisboychev007@Gmail.com"
] | borisboychev007@Gmail.com |
ea40ed6295681837fd215142ac699771de30cb3b | f0f1b461b6c01f45b6c07f42c1aaeb3dbf319f7e | /code/scrape.py | 5e1f1cc9d09de678db47532e496026ec7324d9db | [] | no_license | aousabdo/crypto | ebe7d888ea7c4f7a9664d1155ae6f036ae0627aa | 93e9a55a53a8cc3cbec1443221481ef67e4338b6 | refs/heads/master | 2020-03-08T16:55:28.556508 | 2019-06-27T02:01:42 | 2019-06-27T02:01:42 | 128,254,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,038 | py | """ Core scraper for coinmarketcap.com. """
import argparse
import db
import logging
import coinmarketcap
import sys
import time
import traceback
# Parse min market cap argument
parser = argparse.ArgumentParser(description='Scrape data from coinmarketcap into local database.')
parser.add_argument('min_marke... | [
"aousabdo@gmail.com"
] | aousabdo@gmail.com |
3fb014ee68a3c9ecfae5cb30edeff0c98164168f | 084dbf346279ea98b2c453db5772ac61d679500e | /Payloads/ServerListeners/server_class.py | e127da523910d86e70c647dd1fa631315f2cb030 | [] | no_license | pyCity/Malware | 87b124302be54711fdc8197f0c43f7ceb4b65eb3 | 06be43a7046e2a4b5021ba2d2926ab200b0e8056 | refs/heads/master | 2020-05-15T06:56:00.016181 | 2019-04-18T17:44:02 | 2019-04-18T17:44:02 | 182,113,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | #!/usr/bin/env python3
"""
Author - pyCity
Date - 1/22/2019
Version - 2.0
Usage: - python server.py --enc 127.0.0.1 4444
- Run setup.sh to generate certs
Description: - Handler for client.py Supports TLS encryption using
- a DHE-RSA-AES256-SHA256 cipher.
"""
import s... | [
"dwf1421@jagmail.southalabama.edu"
] | dwf1421@jagmail.southalabama.edu |
3a9e4f92085e755aa3e85445bf48abb902e2c0a1 | df560dde5ffbae51187041f422c87f7d1544cbe9 | /leetcode/python/841_keys_and_rooms.py | f8f42bb5c92c2b5c43d5bc8fa4770db223f3a8f4 | [
"MIT"
] | permissive | VVKot/coding-competitions | 61c97dbc4fdaeb0a35ff7fa8e55529b579fd1ebb | 7d6e599b223d89a7861929190be715d3b3604fa4 | refs/heads/master | 2021-07-04T17:47:34.246535 | 2020-09-23T20:28:30 | 2020-09-23T20:28:30 | 174,696,391 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | class Solution:
def canVisitAllRooms(self, rooms):
stack = [0]
visited = set(stack)
while stack:
curr = stack.pop()
for room in rooms[curr]:
if room not in visited:
stack.append(room)
visited.add(room)
... | [
"volodymyr.kot.ua@gmail.com"
] | volodymyr.kot.ua@gmail.com |
a41399d9088591b7563480657389d9cc185b5400 | 87d3167816397d3dfa13669fa280ce61680df089 | /tugasS.py | b09ebae185420c29923fa6e01739360a8e923ba7 | [] | no_license | ekifebriyan/tugas-GIS | c065fc1c101baff65b2ba8e17d8ca819e5160e75 | a396d3c1d03a414114237f684f5ee75ebdd15593 | refs/heads/master | 2020-03-06T19:42:28.521013 | 2018-04-04T15:16:29 | 2018-04-04T15:16:29 | 127,035,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,303 | py | import mapnik
m = mapnik.Map(3840,2160)
m.background = mapnik.Color('steelblue')
# MAP 1 INDO DESA
s = mapnik.Style()
r = mapnik.Rule()
polygon_symbolizer = mapnik.PolygonSymbolizer()
polygon_symbolizer.fill = mapnik.Color('#7FFF00')
r.symbols.append(polygon_symbolizer)
line_symbolizer = mapnik.LineSymbolize... | [
"noreply@github.com"
] | noreply@github.com |
7aeedccc00312e85273d529c9ef36be8bea1d596 | 44516b0ce08070cd51a59784ae60baea6ec094c3 | /lista1.py | 2c766881d5f4504d5d324bcb053430d059047057 | [] | no_license | samir28/Proyectos- | 0992da1aed2e0f5f1de69c367bd914217267b9a7 | 3d48cd350b7963dad542cbdd9e24655757ce5ab6 | refs/heads/master | 2021-04-28T15:11:20.729332 | 2018-02-19T16:54:54 | 2018-02-19T16:54:54 | 121,982,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | lista = [1, 2, 3, 4, 5]
print(lista)
lista.pop(0)
lista.pop(1)
lista.pop(2)
print(lista)
| [
"samirallegrucci@gmail.com"
] | samirallegrucci@gmail.com |
3220bd1f17c200a98746cb70561e90121aea45b3 | 0d50730572f27edd0a6cc6f0313f7172584ef46e | /venv/bin/easy_install-3.7 | 7e7b275b2729c2d97b960e76b00b6d7097c99a87 | [
"MIT"
] | permissive | EdgarMoncloa/Algorithm_Genetic_Gecademica | 0ea8742c2d9a23065d5a1657ac81dc4e11e4c7ff | befb95b43a4e6cfe6a1333805970196ec6ad9aa8 | refs/heads/master | 2020-05-22T09:54:14.914911 | 2019-05-20T05:24:04 | 2019-05-20T05:24:04 | 186,298,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | 7 | #!/home/edgarmoncloa/Documents/test/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"edgarmoncloa@gmail.com"
] | edgarmoncloa@gmail.com |
4638c9405aaa352867fc800df564d82c6287db7a | 23f2b3dec8854a6d1d87f0cef3299c1bf693f9c5 | /programmers-basic/p10_doublyLinkedListConcat.py | cd254abe7f87e8568983756516ea9ffe9b8bd293 | [] | no_license | wldnjszz1/algorithm-study | b6c8101affe408fd45410b8e65a3364293b7b806 | 1b7c95bfd7126cb5a25cbd40b96e6860349d3cec | refs/heads/master | 2020-07-10T09:33:44.453167 | 2019-10-13T12:05:08 | 2019-10-13T12:05:08 | 204,232,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,725 | py | class Node:
def __init__(self, item):
self.data = item
self.prev = None
self.next = None
class DoublyLinkedList:
def __init__(self):
self.nodeCount = 0
self.head = Node(None)
self.tail = Node(None)
self.head.prev = None
self.head.next = self.ta... | [
"wldnjszz1@naver.com"
] | wldnjszz1@naver.com |
74be617890dd0349384631bd45697dc0ff7eb7e1 | 604b070eb21f3b7a8fd1a95576347e8884e8df44 | /examples/docs_snippets/docs_snippets/overview/modes_resources/database_resources.py | 9773014e9f5db670446f493464c9de8c8c3c56be | [
"Apache-2.0"
] | permissive | danieldiamond/dagster | 8831533406f89f9dd840be1913fad4c048bbf18b | d8de290f2ac6fa59d4e69a7e88d7703c31fcd3ea | refs/heads/master | 2022-11-16T19:07:54.639983 | 2020-07-10T19:07:48 | 2020-07-13T21:59:09 | 279,456,254 | 1 | 0 | Apache-2.0 | 2020-07-14T02:01:35 | 2020-07-14T02:01:35 | null | UTF-8 | Python | false | false | 1,269 | py | from sqlalchemy import create_engine
from dagster import IntSource, StringSource, resource
@resource
def sqlite_database(_):
class SQLiteDatabase:
def execute_query(self, query):
engine = create_engine('sqlite:///tmp.db')
with engine.connect() as conn:
conn.execute... | [
"sandy@elementl.com"
] | sandy@elementl.com |
6191704701c888d20e639aa55c78b27928c75ddc | 90fdb3999e5599e4f5c3a35c503aff2566b18c56 | /importTool.py | 76a3bfda394112a5eac259e2b6ef526e0b01f235 | [] | no_license | Oliver022/BestRecipe | 090b947ae4acc98e4bd5954b4775e44236dc7736 | 27d38329533cb855921e5c6554f20a5192f250a3 | refs/heads/master | 2020-04-28T00:07:12.414848 | 2014-05-07T03:45:52 | 2014-05-07T03:45:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | import pickle
import redis
from bestrecipe.models import Recipe
def add2DB(self,fileName):
with open(fileName,"rb") as infile:
cookbook=pickle.load(infile)
for i in cookbook:
dict={}
for key, value in i.items():
dict[key] = value
p = Recipe(title=dict['title'],summa... | [
"alexlee022@gmail.com"
] | alexlee022@gmail.com |
2ce6302758b39eeb9593bfed87110360f9bea9b6 | 6d54a7b26d0eb82152a549a6a9dfde656687752c | /scripts/tools/memory/memdf/__init__.py | fa0e1070112ae4544ccf65b7e5fe3cdafc2d8467 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | project-chip/connectedhomeip | 81a123d675cf527773f70047d1ed1c43be5ffe6d | ea3970a7f11cd227ac55917edaa835a2a9bc4fc8 | refs/heads/master | 2023-09-01T11:43:37.546040 | 2023-09-01T08:01:32 | 2023-09-01T08:01:32 | 244,694,174 | 6,409 | 1,789 | Apache-2.0 | 2023-09-14T20:56:31 | 2020-03-03T17:05:10 | C++ | UTF-8 | Python | false | false | 886 | py | #
# Copyright (c) 2021 Project CHIP Authors
#
# 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 i... | [
"noreply@github.com"
] | noreply@github.com |
dd4e5116fd1f9eecb02b439401c88eaef08b236e | 603a54e14440fbe1c8aaab34c54aedff83489ca5 | /violate_ratio/without_batching/edge_serving_resnet/server.py | 28b9ec0e0aff9025b90bc2aaecb24a34f9b54f54 | [
"MIT"
] | permissive | fkh12345/ICE | 211fdbc62211e6df6c3d90b6ff309bc8c854e01f | f6ed4933c85b541fb971f5e1bfaa814e4e613c32 | refs/heads/main | 2023-04-12T02:05:57.478650 | 2023-03-01T18:08:55 | 2023-03-01T18:08:55 | 500,040,223 | 51 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,093 | py |
import grpc
import time
from concurrent import futures
import inference_pb2 as data_pb2
import inference_pb2_grpc as data_pb2_grpc
from serving import Serving
import io
import torch
import torch.nn as nn
import numpy as np
import torchvision.models as models
import argparse
from dnn_model.lapsrn import Net
from dnn... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
28f6cd21d9f663f7608dea0324a75ca23bda2201 | b4c28049f1e3bc367d523f84f3816178e9e1d468 | /ex7.py | 8ead926952c50a8e96d6c7fa640c4b277e63f261 | [
"MIT"
] | permissive | JaeGyu/PythonEx_1 | 5f602274727722ddc352fcdd7b5f41b73d8aa784 | e67053db6ca7431c3dd66351c190c53229e3f141 | refs/heads/master | 2020-05-22T05:43:59.902893 | 2017-09-02T06:54:57 | 2017-09-02T06:54:57 | 50,916,308 | 0 | 0 | null | null | null | null | UHC | Python | false | false | 346 | py | #_*_ coding: utf-8 _*_
print "마리에겐 꼬마 양이 있지."
print "양털은 %s처럼 새하얗네" % "눈"
print "그리고 마리가 가는 곳마다."
print "."*10 #어떻게 될까요?
end1 = "맛"
end2 = "있"
end3 = "는"
end4 = "치"
end5 = "즈"
end6 = "버"
end7 = "거"
print end1 + end2 + end3,
print end4 + end5 + end6 + end7 | [
"jpmlyr@gmail.com"
] | jpmlyr@gmail.com |
933bcaa20d4e347f811ae71388ddb4c071ba5196 | a796865c5ff4dcb7c6a0c848364bd6f7cb3d7a29 | /tests/test_newsgroup20.py | 108161cf2027bfb2e2fbd7932f31709c2db1dccc | [
"Apache-2.0"
] | permissive | yk/chazutsu | d625f6f7f682d713910ce59953841e507ad27262 | ecc42c9ff0f8d47632ba4b4c7385a5fdf4386c10 | refs/heads/master | 2020-03-18T19:43:40.016170 | 2018-05-28T14:52:00 | 2018-05-28T14:52:00 | 135,173,517 | 0 | 0 | Apache-2.0 | 2018-05-28T14:41:16 | 2018-05-28T14:41:16 | null | UTF-8 | Python | false | false | 1,716 | py | import os
import sys
import shutil
import unittest
import requests
sys.path.append(os.path.join(os.path.dirname(__file__), "../"))
import chazutsu.datasets
DATA_ROOT = os.path.join(os.path.dirname(__file__), "data")
class TestNewsGroup20(unittest.TestCase):
def test_extract(self):
r = chazutsu.datasets... | [
"icoxfog417@yahoo.co.jp"
] | icoxfog417@yahoo.co.jp |
ac50a4c0848483888e701bde386569bf1d4e1e3a | f9e8cea444cab62901371f8bf9c1bdf3f4613297 | /UsernotesPruner.py | 0c64905a154f4e4ee784a7124ec45524b85925ef | [
"MIT"
] | permissive | green-flash/reddit-modteam-tools | cfafe3eb59a2a59107293442e7cf80b67a95e2aa | c844f802e4674fe754f51000b96ff03c5bfb1750 | refs/heads/master | 2021-09-06T09:58:49.827048 | 2018-02-05T08:31:35 | 2018-02-05T08:31:35 | 113,380,369 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,294 | py | import logging
import logging.config
import praw
import usernotes
def is_ban_related_note(user_note):
return 'ban' in user_note['n'].lower()
def prune_very_old_notes(username, entry, cutoff_days):
user_notes_after_pruning_very_old_entries = []
for user_note in entry['ns']:
age_of_user_note = u... | [
"greenflash@arcor.de"
] | greenflash@arcor.de |
fdea34f96ed8a6b3c21609b1afcbfee5884bcf4b | 5e576b77421fc9dcb8ac00b1a9a91831be2d5dbb | /newsroom/evaluate/tables.py | b006bb5b4eb97685f2a939240cfdd3fd67f11e8e | [
"Apache-2.0"
] | permissive | lil-lab/newsroom | d4df6e6aea89a3350d0db247e1899316d94e1be5 | 545391bb1f164c115e2df4c2977adda70db1b463 | refs/heads/master | 2023-08-24T20:08:26.079930 | 2023-08-08T16:53:11 | 2023-08-08T16:53:11 | 131,306,570 | 63 | 13 | NOASSERTION | 2019-11-04T20:12:00 | 2018-04-27T14:24:50 | Perl | UTF-8 | Python | false | false | 1,932 | py | ################################################################################
import json, bz2, click
from newsroom import jsonl
import pandas as pd
################################################################################
scores_file = click.Path(
exists = True,
dir_okay = False,
rea... | [
"grusky@users.noreply.github.com"
] | grusky@users.noreply.github.com |
db29d868c7cef2a5f0eb8f726c564ab89e68e09f | 50b1d745bed697e029bf01d7b3b89b60df57f2da | /app/main.py | ea5d53e8abe27556f30100e62d7a3551f5bf006f | [] | no_license | sharpdressedcodes/als2cue_web | 9236baf8186e6e7aca44da867a6ac279b89b7a51 | cb71eed43bbef6e7b4bb0655236536b339fe3ea4 | refs/heads/main | 2023-01-31T19:26:38.238254 | 2020-12-15T18:50:46 | 2020-12-15T18:50:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | #!/usr/bin/env python3
import os
from flask import Flask, render_template, request
from als2cue import getChapters
app = Flask(__name__)
@app.route("/")
def uploadForm():
return render_template("upload.html")
@app.route("/upload", methods=["GET", "POST"])
def handleUpload():
if request.method == 'POST':
... | [
"luca@lucazorzi.net"
] | luca@lucazorzi.net |
712218687c136fdd5e64c477b57d87b279c616bf | 3540af1d9c7209182ce9e495b34d0c9e726dfc48 | /Cogs/Clippy.py | 8b7248b4570a5099ba3c777798a5e716ec6f4f02 | [
"MIT"
] | permissive | sahadikr1/sahadikr1sasa | 35662a99084d2852d483abfb952eeeee01f0506c | d6c3e77803c433329b5270f92f45cfb18fa7f77c | refs/heads/master | 2021-06-13T22:05:39.170246 | 2020-04-09T20:02:26 | 2020-04-09T20:04:22 | 254,455,437 | 0 | 0 | MIT | 2020-04-09T20:04:24 | 2020-04-09T19:02:06 | Python | UTF-8 | Python | false | false | 3,891 | py | import discord, os, random
from discord.ext import commands
from PIL import Image, ImageDraw, ImageFont
from Cogs import DisplayName
def setup(bot):
bot.add_cog(Clippy(bot))
class Clippy(commands.Cog):
def __init__(self, bot):
self.bot = bot
def text_wrap(self, text, font, max_width):
# ... | [
"noreply@github.com"
] | noreply@github.com |
bff90fec95c43505f0f07489ba654464da826388 | aec4eaad5bcfe98fdef38f57afeadd170370827b | /test/test_create_release_option.py | 9dce56da83210c4156e42b4fbb7099ce34eb4e91 | [] | no_license | mastermanas805/giteapy | d2d0810a45ba4ab2c15711eae62cc66698bafbc2 | 001e9b66795a6d34146c8532e9d8e648d5b93e59 | refs/heads/master | 2023-06-02T07:33:01.136554 | 2020-01-14T11:53:36 | 2020-01-14T11:53:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | # coding: utf-8
"""
Gitea API.
This documentation describes the Gitea API. # noqa: E501
OpenAPI spec version: 1.1.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import giteapy
from giteapy.models.create_release_o... | [
"rajesh.p.hegde@gmail.com"
] | rajesh.p.hegde@gmail.com |
e53ac2c5a6412b5645596a5395cde4ce47552fb2 | d7e8a68a2713ad98e1f3ff13ebc4e847e3555b4e | /IDigit/Drawpad2.py | 5164f39ef135d648ebaed947d0b7c6e7a5b85122 | [] | no_license | vitoupen/CST205handwritingRecognition | 3d766c75832730a4da8bba10030615bf32900441 | eb84866706723edd00e55ede747ca08cbd6324b9 | refs/heads/master | 2021-01-18T10:26:51.177171 | 2016-04-01T22:34:01 | 2016-04-01T22:34:01 | 52,313,576 | 0 | 0 | null | 2016-02-22T23:20:56 | 2016-02-22T23:20:55 | null | UTF-8 | Python | false | false | 1,072 | py | class DrawPad():
def __init__(self, size, color):
self.pad = pygame.display.set_mode(size)
self.pad.fill((255,255,255))
pygame.display.flip()
def draw(thickness):
drawing = False
last_post = (0, 0)
while 1:
event = pygame.event.wait()
if (event == pygame.QUIT):
... | [
"azielinski@csumb.edu"
] | azielinski@csumb.edu |
0a4a92c67fb5701c6c3c5097679555c742daee3e | f2068366af6ee30e08f2944a8f8f06f99bb874db | /Consumos.py | ec13615cd047c1390130d7ce779ccd3e78cd6a18 | [] | no_license | AgustinPardo/ObraSocial | c1669dd13e7d59535a538a9fd0a7e886899e1de2 | e5e87eb1e3920da0065bda4f282265d2f10d26c0 | refs/heads/master | 2020-05-25T23:23:39.366049 | 2017-05-30T19:32:32 | 2017-05-30T19:32:32 | 84,978,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | class ConsumoBasico:
def __init__(self,hora,dia,mes):
self.hora=hora
self.dia=dia
self.mes=mes
self.prestacionBasica = None
def tipo(self):
return("Basico")
def valorBasico(self):
Monto=0
desde=8
hasta=20
fueraHora=0.35
finde=0.5
if self.dia != "Domingo" and self.dia != "Sabado":
i... | [
"noreply@github.com"
] | noreply@github.com |
0e08ec06eb83878fcd438529bee41717fb58684d | 59c7302470c29b98722c2fa1580e3117072487c0 | /.config/gunicorn.py | d4d0095c1c067890b8ca0dd0d9d60461f903cd58 | [] | no_license | Dabang-Clone-FinalProject/WPS_DabangAPI | f45c8c622c6f97061224c8ef6a2dae62aa92f820 | 7f51f7a37d68f493d275292f0a735f00913fcd81 | refs/heads/master | 2021-03-26T08:44:02.879452 | 2020-05-12T06:57:40 | 2020-05-12T06:57:40 | 247,690,187 | 1 | 3 | null | 2020-05-12T05:52:49 | 2020-03-16T11:56:10 | Python | UTF-8 | Python | false | false | 219 | py | daemon = False
chdir = '/srv/WPS_DabangAPI/app'
bind = 'unix:/run/WPS_DabangAPI.sock'
accesslog = '/var/log/gunicorn/WPS_DabangAPI-access.log'
errorlog = '/var/log/gunicorn/WPS_DabangAPI-error.log'
capture_output = True | [
"moonpeter@kakao.com"
] | moonpeter@kakao.com |
0c85ab80cd94eac7f33ae00e1573e08cedcbbd2b | 2557157fadbcd99d33769f913f9bf45a4f1d8c64 | /MxOnline/apps/organization/__init__.py | fb8721db9ca810437141e20675d8d88567fff72e | [
"MIT"
] | permissive | 764420453/MxOnline | 77da535cb4050a250dbace1a77d5804dda8efb1a | 3d08962f3bd51bc763e66972e7b56968915b0182 | refs/heads/master | 2022-04-23T16:21:24.750003 | 2020-04-19T07:25:33 | 2020-04-19T07:25:33 | 256,894,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | default_app_config = "apps.organization.apps.OrganizationConfig"
| [
"764420453@qq.com"
] | 764420453@qq.com |
a6cdc1e51da55bb4298536a804dbb7eb2605ffe4 | 1cec8afab42c7ed104d414089e30c647b1c79974 | /bubble_sort/main.py | e580cdb2e530946fa2fc46e6f50df54592bcdd83 | [] | no_license | yerassyl94/problems | ea84572aa89178a30fb030a16b2e4e23df3529b9 | c5f3b391c2d94445d96726aaa8572580c4c662bc | refs/heads/master | 2020-08-27T23:57:44.672878 | 2019-11-11T11:35:55 | 2019-11-11T11:35:55 | 217,526,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | def bubble_sort_list(_list: list):
length = len(_list) - 1
for x in range(length):
for y in range(length-x):
if _list[y] > _list[y+1]:
_list[y],_list[y+1]=_list[y+1],_list[y]
return _list
list_=[32,5,3,6,7,54,87]
print(bubble_sort_list(list_))
| [
"you@example.com"
] | you@example.com |
394d7e0d7b74408b115b57976a177c04136d5cc7 | 32a8fec883f1e6fcbcafafd02216dd5b2a0fe53a | /0802/03.py | d58feb4622205de027b32d70c433cfee4b21984f | [] | no_license | rcj654020445/python-learning | 6096cdfb017d6f4136ffee2d6e6ac663bf600e2b | 0e9017698fd46cf99ad44c780cd0ce5712a34ccd | refs/heads/master | 2021-06-24T21:12:51.727502 | 2017-08-18T11:45:37 | 2017-08-18T11:45:37 | 100,258,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | '''
decorator define
'''
def log(func):
def wrapper(*args,**kw):
print 'call %s():'%func.__name__
return func(*args,**kw)
return wrapper
@log
def now():
print '2015-3-25'
now()
print now.__name__#wrapper
'''
decorator define with args
'''
def log(text):
def decorator(func):
... | [
"540054895@qq.com"
] | 540054895@qq.com |
a924168280d311c5857dd20789fe375d42263e19 | 7cc074f8e13fd5a2cee4fd0db57a664d5849b245 | /Alineacion_y_costura_de_imagenes/Costura_R.py | 6e7da58ba72c6df361b93dda5e364c1cf0a0feca | [] | no_license | castilloj32/Vision_Computadora | 0f2bb45dbfed1a0d6c27f43dcf4b597cc0bc872a | eb1769d481ffa6897fc9d7385eb2a4e0488d29aa | refs/heads/master | 2022-09-19T06:14:04.504673 | 2020-06-04T06:38:12 | 2020-06-04T06:38:12 | 257,551,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,313 | py | from Operaciones_R import *
import imutils
from imutils import paths
import cv2
#########################################################################################
################################Costura de imagenes######################################
###########################################################... | [
"62526393+castilloj32@users.noreply.github.com"
] | 62526393+castilloj32@users.noreply.github.com |
4907ff9f5eed63e7bf8afaa1986c4f74d7dbe1e9 | 6456b0e80f7530ccd6546a7ad31bcac3ac00d41c | /model.py | 923766258697736adc1ff9d989924183fa6f4369 | [
"MIT"
] | permissive | gpzhang7/LogoDetection_POC | 93e570a75cb28094a85e86804c279e0acd1e720b | 01c3f282d6af28b3cd69ea52a67e27d5cc09a15a | refs/heads/master | 2020-09-10T07:28:31.700402 | 2018-01-01T10:33:01 | 2018-01-01T10:33:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,457 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# The MIT License (MIT)
# Copyright (c) 2016 satojkovic
# 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
# witho... | [
"noreply@github.com"
] | noreply@github.com |
c82a3e03bf55d608e3c42b98c26484346d260228 | 7f8082a1a88ad6895d1e4b5cf9f3952fe8951ec3 | /miniProject/bookcoversearch/search.py | 1ded489e624618a5a884f2ce23c3e41bfed477d3 | [
"MIT"
] | permissive | matiji66/opencv_study | a33e3fed3e320598d8b3612b387b63658539176d | 9b6354907609c9841915f6300ee5915a9d80906f | refs/heads/master | 2020-03-11T03:34:28.198825 | 2018-01-15T14:04:08 | 2018-01-15T14:04:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | from __future__ import print_function
from pyimagesearch.coverdecriptor import CoverDescriptor
from pyimagesearch.covermatcher import CoverMatcher
import argparse
import glob
import csv
import cv2
ap=argparse.ArgumentParser()
ap.add_argument('-d', '--db', required=True,
help="path to the book database")
ap.add_arg... | [
"scotthuang1989@163.com"
] | scotthuang1989@163.com |
6be2ebc883ddd79714458f084018f96786b70556 | 14dff159e8a0a5c6fa42252d562a0f64532eba8f | /src/Rover5_ROS/msg/__init__.py | 1dd3565b079e561a4f9cd9ff0929393a3fe08094 | [] | no_license | travisrideout/Rover5_ROS | cd8761ec83ec3689bc1c57e980e80d6549756716 | 9fc8a59dff06ea118142109779658d5e73e56e72 | refs/heads/master | 2021-01-22T08:53:01.117002 | 2015-08-10T03:33:12 | 2015-08-10T03:33:12 | 32,184,465 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | from ._rover_out import *
from ._rover_in import *
| [
"travis@ubuntu"
] | travis@ubuntu |
df5b88679010c301cb83b4e9016836f077a9bd83 | 9021fcaf8cb46629169da45bf78a38d8eaa10abf | /profiles_api/migrations/0002_profilefeeditem.py | ba5b0378c7c714d54985112ae614b8de1ddeeb73 | [
"MIT"
] | permissive | joyikpotor/profiles-rest-api | d70382a771810268aa96ce7af11c7c0354882621 | b748485636629c1738601ebbcedc0b029e99220d | refs/heads/main | 2023-03-09T21:21:37.792536 | 2021-03-01T10:20:30 | 2021-03-01T10:20:30 | 337,445,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | # Generated by Django 2.2 on 2021-02-25 11:37
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('profiles_api', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"joy.ikpotor@gmail.com"
] | joy.ikpotor@gmail.com |
83d7fc9253ee2cb0396a0315ed154dabcc0928ab | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/KCB_MM/YW_KCB_HASPRICELIMIT_GPMM_SHSJ_WDZC_129.py | d6747c9ad8bfc225ae04ed5405c0247a043c057c | [] | 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,273 | 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("... | [
"418033945@qq.com"
] | 418033945@qq.com |
5a2f008cd063d6c768470c2831af932cd38c4520 | 5dc7fd5cc4079a317db6a8470a0cf14dc2c1d911 | /wise.py | 306f6aee3652ed84d0c3f26bd6c542fe3c1c33c9 | [] | no_license | Wheatwizard/Wise | 25492217e960be371dabd5c7c50efe74bf8f7e59 | da6161e2f7b436d5c27242ca54c75604d671c119 | refs/heads/master | 2021-01-11T03:42:29.046612 | 2017-05-31T20:04:42 | 2017-05-31T20:04:42 | 71,416,653 | 8 | 2 | null | 2016-12-08T14:01:43 | 2016-10-20T02:09:57 | Python | UTF-8 | Python | false | false | 1,205 | py | import optparse
from Interpreter import Interpreter
if __name__ == "__main__":
parser = optparse.OptionParser()
parser.add_option(
"-b",
"--binary",
dest="OUTPUT",
action="store_const",
const="b",
default="i",
help="Formats output as binary"
)
parser.add_option(
"-a",
"--ascii",
dest="OUTPUT",
... | [
"olivee3@rpi.edu"
] | olivee3@rpi.edu |
552a01edda469068db151fa38b9fbc7ee28d8cba | 280894ab47586f530a28b02d6024a3835b61bbab | /classes/Notification.py | 7941af2f060bfe7a42a20dc7e133d159f8907c30 | [
"MIT"
] | permissive | fdekruijff/TICT-V1PROG-15-Miniproject | c2a12f76ac72059a031825bd345bb662e4bb2803 | 2285243a2fba2ce4470373773a8a3b2674c1359a | refs/heads/master | 2021-09-02T12:20:59.257167 | 2017-11-09T12:09:06 | 2017-11-09T12:09:06 | 104,774,431 | 0 | 1 | null | 2017-11-08T10:34:58 | 2017-09-25T16:25:15 | Python | UTF-8 | Python | false | false | 284 | py | """
Programming
University of Applied Sciences Utrecht
TICT-V1PROG-15 Project
"""
class Notification:
""" Class for Notification instances. """
def __init__(self, time, message):
self.time = time.strftime("%d-%m-%Y %H:%M")
self.message = message
| [
"fdekruijff@users.noreply.github.com"
] | fdekruijff@users.noreply.github.com |
59cf38cd9a277a3713adf1c84a9d00f0b9904b52 | 3cd6cbc88ef57409a6a7866461b4889048bd5940 | /simplest_gan.py | 9ca57775cd0bb89ff196f3380f7d14ab9f3be429 | [] | no_license | jihobak/simple_gan | e6cf3f8b16cb93a0eb097cc967707b5e8aa8410d | 161971e68c45816a613e96a500696166deadcaca | refs/heads/master | 2021-05-05T09:49:32.418396 | 2017-09-18T09:16:10 | 2017-09-18T09:16:10 | 103,914,079 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,815 | py | import os
import numpy as np
from matplotlib import pyplot as plt
from keras.models import Model
from keras.layers import Input, Dense, Dropout, LeakyReLU
from keras.optimizers import Adam
from tensorflow.examples.tutorials.mnist import input_data # load mnist
from tensorflow.contrib.learn.python.learn.datasets impor... | [
"deepiper@deepiperui-MacBook-Pro.local"
] | deepiper@deepiperui-MacBook-Pro.local |
de5e29ae1e4e20124d8e6c8de7a937ea961d92c8 | 3546657fd8bab7b213c55e071cfc48544643277b | /influenza_modeling/I_Coupled model run - multiprocessing.py | 783451ac6915b76c4eb011245810a45143313a7c | [] | no_license | kahanad/influenza_modeling | edbbd78458faca33a2016be4470bd66927658ffc | 2484d1f1ab5e1450fb31c34affbbf69c7d004ec9 | refs/heads/master | 2023-02-10T01:02:44.382421 | 2020-12-30T20:00:59 | 2020-12-30T20:00:59 | 293,857,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,759 | py | import numpy as np
import pandas as pd
# import model
import model
import itertools
import multiprocessing as mp
import pickle
# Prepare network and data
prep_data = model.data_and_network_prep()
# Create data for the fit
data_for_fit_i = model.create_data_for_fit_influenza()
data_for_fit_v = model.create_data_for_f... | [
"dorkahan@intel.com"
] | dorkahan@intel.com |
be429b60e2b7e978353df9577446dc39528720d0 | 4cbe3a5dfc11227ac85e77980e3f9eb0cc20aa13 | /models/__init__.py | 41086f0263e0aa2eef79dc0a640619e78f407227 | [] | no_license | ritwikbera/GazeAtari | 42e36ab90b1b3fd9943fa5ad2e1b051731827666 | 7d9840474e91e41422dd551e20c752afe82edd10 | refs/heads/master | 2022-08-21T07:04:14.542815 | 2020-05-26T01:51:36 | 2020-05-26T01:51:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | from .gaze_model import *
from .policy import *
| [
"ritwikbera12@gmail.com"
] | ritwikbera12@gmail.com |
7aa66c5a2b58c497cde78be45ff0e4005d0682fe | 048216da3dcf3b509c270940c0715023d78c5d11 | /test_thread.py | 840f7c0449166440f77bc460be17a22bc3b1c7b4 | [] | no_license | genti/PyBomb | 242ac0229e70358529f5741ffc8914ab31993d1a | deeca8bca8cfb81cc3980fbb8aeff6b077ba3035 | refs/heads/master | 2020-03-19T01:50:32.207523 | 2018-06-15T12:56:14 | 2018-06-15T12:56:14 | 135,576,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,168 | py | # Questo codice e' stato realizzato per l'asd GUARDIANI DEL PO
# non si tratta di un vero ordigno ma bensi' si un giocattolo
# atto a ricreare funzionalita' di un vero ordingno a tempo con
# possibilita' di essere disinnescato tagliando dei fili in
# ordine specifico. Davide Gentilucci, l'asd NARCOS e l'asd I GUARD... | [
"davide.genti@gmail.com"
] | davide.genti@gmail.com |
aeefe61a87ef6ba0c279e27c6265f352ccbec0d0 | 79c0b1ed8aff76df7ea783e0f290576e48f52a29 | /competitions/hackWithInfy/Round2Q1.py | 83a916069c45cdcd62bc64d739fa377f58d70b47 | [] | no_license | meghnavarma0/DSA-Python | 8e57f145c4bba1e786457b0a1f68009a4750d42f | 6b584ffc3c6d8cf4a66e373d723506647b81cc9b | refs/heads/master | 2021-05-22T14:51:51.102164 | 2020-08-21T03:27:09 | 2020-08-21T03:27:09 | 252,970,237 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | # Given an array, find the maxium position where the sum of array elements ca exist.
# any two elements depicted by a, b can contain sum if 2a >= b, where a < b
# arr = 1 3 4
# -1 4 4
# -1 8 -1 -- 1
# -1 -1 8 -- 2
# return 2
def check(arr, n):
arr.sort()
brr = []
s = 0
for i in arr... | [
"meghnavarma0@gmail.com"
] | meghnavarma0@gmail.com |
a757418f6ddf8e7675ef47658b0381be8f8ab2c4 | 4a1b61cf551db7843050cc7080cec6fd60c4f8cc | /2020/백준문제/IM대비/14696_딱지놀이.py | b574a887a21deac01c3a3e0c4ea705dd1508157c | [] | no_license | phoenix9373/Algorithm | 4551692027ca60e714437fd3b0c86462f635d8ff | c66fd70e14bb8357318e8b8f386d2e968f0c4d98 | refs/heads/master | 2023-08-24T10:01:20.798430 | 2021-10-15T07:57:36 | 2021-10-15T07:57:36 | 288,092,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | # 별4 > 동그라미3 > 네모2 > 세모1 / 무승부
# 무승부: D
N = int(input()) # 1~1000
for _ in range(N):
a = list(map(int, input().split()))[1:]
b = list(map(int, input().split()))[1:]
for i in range(4, 0, -1):
a_cnt = a.count(i)
b_cnt = b.count(i)
if a_cnt > b_cnt:
print('A')
... | [
"phoenix9373@naver.com"
] | phoenix9373@naver.com |
e39e80a3d0d2249ee2429dea68adca8c3437f2a5 | 186c01d937b17e9211bdf1dcc2ea3fdca5bd720e | /cabric/bridge.py | e21540583bf4b1f2f41e40b8585ce8ab9b82d2d1 | [
"MIT"
] | permissive | nextoa/cabric | 71546260c80929a9f94011a9c58e21b10da0e08b | 586f951a25ef16dff579a199b5ca73262b72874e | refs/heads/master | 2021-01-17T14:02:17.842502 | 2018-06-04T10:19:59 | 2018-06-04T10:19:59 | 34,240,487 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,780 | py | # -*- coding: utf-8 -*-
"""
Most of them copy form `cabric.main` directly.
`import cabric.main` will make script work not right.
some error like:
..code-block::
Usage: fab [options] <command>
[:arg1,arg2=val2,host=foo,hosts='h1;h2',...] ...
main.py: error: no such option: --skip-enable-services
"""
... | [
"wangwenpei@nextoa.com"
] | wangwenpei@nextoa.com |
24b16f94a69236486ed70dfa26914474e1bcacdc | 67082a307e73eae76a5f1f74ee29c3c8884bd3da | /cmake/support/parser/serializable_xml_ns.py | f52478a55feda52c675a621f3a4ef10c8d1d0811 | [
"Apache-2.0"
] | permissive | LeStarch/lgtm-fprime | 290df45f33bb9bc80ab5bf105eb3dfaa2e8a01ce | 904b0311fe647745b29075d44259d1dc1f4284ae | refs/heads/master | 2022-12-25T22:41:29.477002 | 2020-10-09T01:08:47 | 2020-10-09T01:08:47 | 284,097,817 | 0 | 0 | Apache-2.0 | 2020-10-09T01:08:48 | 2020-07-31T17:54:09 | C++ | UTF-8 | Python | false | false | 571 | py | #!/usr/bin/env python3
import os
import sys
import xml.etree.ElementTree as ET
def get_serializable_qualified(input_file):
tree = ET.parse(input_file)
root = tree.getroot()
spath = (
root.get("namespace").replace("::", "/").replace(":", "/")
+ "/"
+ root.get("name")
)
# ... | [
"Michael.D.Starch@jpl.nasa.gov"
] | Michael.D.Starch@jpl.nasa.gov |
4904f72e7f28cd4d9fbcb7e63ba60586bd7334e2 | 2d85e4580323dc6dcd48b70c12a83d99bd5c5b82 | /echarts.py | 53a176c4162f2b0935a1de1dc9c43704e63269ba | [] | no_license | ivanzhangbo/echarts | df40d8446721639dea4ca68a9d50b177d37fe8f0 | e1ddd77607ade8495c72f3d497d09b794a1a47c0 | refs/heads/master | 2023-04-30T15:26:17.405509 | 2023-04-22T01:07:04 | 2023-04-22T01:07:04 | 181,172,272 | 0 | 0 | null | 2019-04-13T13:04:51 | 2019-04-13T13:04:51 | null | UTF-8 | Python | false | false | 9,476 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 22 16:25:50 2019
@author: wialsh
"""
colors = ['#f7acbc','#ef5b9c','#feeeed','#d71345','#987165','#f26522','#c63c26','#853f04','#840228','#53261f','#8e3e1f','#deab8a','#845538','#dea32c','#b2d235','#5c7a29','#7fb80e','#1d953f','#73b9a2','#008792','#494e8f','#8552a... | [
"noreply@github.com"
] | noreply@github.com |
afc76a90851e462bc7ca657d02f415433f5bb6fb | a9b00d610fa5b248a54282156e072d3dc531b480 | /tracklater/timemodules/interfaces.py | 6f7b63f620f132e4845bd4134acee8ee39de83a9 | [
"MIT"
] | permissive | Eerovil/TrackLater | 53d979df8c65d7290422c6055ab7ef216508cc9a | e19f3d3081e8329eb440967f122b4a3eeff8a18d | refs/heads/master | 2023-09-01T15:41:50.817755 | 2022-09-04T05:51:27 | 2022-09-04T05:51:27 | 146,804,943 | 121 | 6 | MIT | 2023-08-11T19:50:20 | 2018-08-30T20:47:29 | Python | UTF-8 | Python | false | false | 6,046 | py | from typing import List, Optional
from datetime import datetime
from abc import ABCMeta, abstractmethod
from dataclasses import dataclass
from tracklater import settings
from tracklater.models import Entry, Issue, Project
@dataclass
class CachingData:
start_date: Optional[datetime] = None
end_date: Optional[... | [
"eero.vilpponen@gmail.com"
] | eero.vilpponen@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.