blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
33fa1f4b99a1258ca7464dad27008d7d33f81f0c | 75d258d0cc8b07134a3db656a16e8c27557e3572 | /n42_m14/circuit_n42_m14_s1_e6_pEFGH.py | b795237a2e1f2c51ab0b0c43db3ac209a29f512b | [] | no_license | tonybruguier/martinis_et_al_data | 7c5acee8cb18586607c0ffdc25bc9b616e0847be | 1a35e6712c5bd4b48ef0027707b52dd81e5aa3f3 | refs/heads/master | 2023-02-23T09:36:24.179239 | 2021-01-24T20:23:04 | 2021-01-24T20:23:04 | 332,266,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138,500 | py | import cirq
import numpy as np
QUBIT_ORDER = [
cirq.GridQubit(0, 5),
cirq.GridQubit(0, 6),
cirq.GridQubit(1, 4),
cirq.GridQubit(1, 5),
cirq.GridQubit(1, 6),
cirq.GridQubit(1, 7),
cirq.GridQubit(2, 4),
cirq.GridQubit(2, 5),
cirq.GridQubit(2, 6),
cirq.GridQubit(2, 7),
cirq.Gri... | [
"tony.bruguier@gmail.com"
] | tony.bruguier@gmail.com |
cec7c19376dd2dd84269594743f4ce3fc83a2cda | 45712328b046b5c5ea8a28e76d77ce353d43b94e | /in_Python/02-week/Efficient Algos/08-Last digit of sum of squares of fibonacci number-Efficient Algo.py | e5b745c223dfdeef19e417c19d71dcc0c850daee | [] | no_license | abdulwahid40/Data-Structures-and-Algorithms | 6259a67811da51c0691e3b0d7e2b678f636ab059 | 5823ac2c4018960ccf4b00ced4a92b35838017ee | refs/heads/master | 2022-11-25T23:26:34.594058 | 2022-11-14T16:48:27 | 2022-11-14T16:48:27 | 251,221,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 6 00:46:56 2020
@author: Abdul Wahid
"""
def pisano_period(m):
previous = 0
current = 1
for counter in range(0, m*m):
previous, current = current, (previous + current) % m
if previous == 0 and current == 1:
return counter + 1
... | [
"abdul.wahid1257@gmail.com"
] | abdul.wahid1257@gmail.com |
a9eca2d20dd542ef6aa215bdf112c85e1995dacc | 604402249f2ceb44153492e39959afc6dcd1e5d3 | /TextEdit.py | 888da59938d21aa50a3a0db4fd01f52bbde17c3a | [] | no_license | Sreeram2006/My-Python-Projects | 512ed03b8f9c2bbf24329394b053266d78d6c45a | 5b3365004597809e1319c1b30dc5d1f82d266bda | refs/heads/main | 2023-05-22T15:23:58.343964 | 2021-05-26T12:52:58 | 2021-05-26T12:52:58 | 371,031,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | from tkinter import *
from tkinter import filedialog
from tkinter import font
root = Tk()
root.title("TextEdit")
root.geometry("1200x660+0+0")
def new_file():
my_text.delete("1.0", END)
root.title('New File- TextEdit')
status_bar.config(text="New File ")
def open_file():
my_text.d... | [
"noreply@github.com"
] | Sreeram2006.noreply@github.com |
57c5c07684f1156339e34ede349eefac95e8db9e | 88ed4cedb817f94a7ae907e6a671befc89de4bdc | /nbr/views.py | 24e59a5f6cecf6850bc1e7b1dfff3481307c80ed | [
"MIT"
] | permissive | johnmwangi/Nbr_Hood | 0f2ac0a3177b6164c06d29694774a5743a68a6c9 | 7a4be73db001560a2a17f37166a544381fe07581 | refs/heads/master | 2022-12-03T07:27:40.465021 | 2019-06-03T07:07:29 | 2019-06-03T07:07:29 | 189,603,564 | 0 | 0 | MIT | 2022-11-22T02:56:59 | 2019-05-31T14:02:48 | Python | UTF-8 | Python | false | false | 7,355 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.http import HttpResponse, Http404, HttpResponseRedirect, JsonResponse
from django.contrib.auth.decorators import login_required
from .models import *
from .forms import *
from django.contrib.auth import login, authenticate
from django.contrib.... | [
"jonesmwas356@gmail.com"
] | jonesmwas356@gmail.com |
cabbb422a3ca7bc2796e7304b97b475d7a2b5d6b | a8a8d889e640c16eaccca3f813d9600c678fec50 | /tail_weight_comp.py | 408f398114b1499777b2996e43e8f97de16f6a29 | [] | no_license | nmohdkha/triton_eye | dee1370e294ff71f83689f9989cfe87fc33d5a85 | 79daba711db834c2261e5d03c891f889c8cea9c2 | refs/heads/master | 2020-05-23T09:04:07.071119 | 2019-05-25T20:19:31 | 2019-05-25T20:19:31 | 186,701,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | import numpy as np
from openmdao.api import ExplicitComponent
class TailWeightComp(ExplicitComponent):
def setup(self):
self.add_input('S_t')
self.add_output('W_Tail')
#self.declare_partials('W_LG','W_0)',method='cs')
def compute(self, inputs, outputs):
S_... | [
"noreply@github.com"
] | nmohdkha.noreply@github.com |
31e556001e587936a0ac18a2f7b0b4c686c3554e | f4713505e4647059cdfce9c1a7958ca823c763e8 | /Evaluacion/settings.py | 4dd3da306597120783da47d8b166ec623a367a39 | [] | no_license | iv-castrom/mi-primer-blog | 8591e38c6cf85f3a90dd5ae46c63959b2e29948e | d07bb0f55e5c529b9b2ce00e2808512875e14163 | refs/heads/main | 2023-02-03T04:38:17.820041 | 2020-12-10T21:04:03 | 2020-12-10T21:04:03 | 320,385,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,930 | py | """
Django settings for Evaluacion project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import o... | [
"iv.castrom@alumnos.duoc.cl"
] | iv.castrom@alumnos.duoc.cl |
da9eb822f0f6cf4952572b117f55847e834f20fe | 20c3dd44dd972ee30b497f56cad323149a9d858e | /app/migrations/0001_initial.py | ce6a4c502b9182a080d8e7daa5aab0e7da409481 | [] | no_license | DiegoIDSUP/EcommerceBack | 7e05b0620edfb9d255db423a048c1f17b3eb459c | e13866cedb5242c115032cdb9ad5abb89a2ce1f3 | refs/heads/master | 2023-01-31T16:38:06.703807 | 2020-12-07T14:36:05 | 2020-12-07T14:36:05 | 319,347,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,385 | py | # Generated by Django 3.1.1 on 2020-12-04 10:40
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... | [
"153241@ids.upchiapas.edu.mx"
] | 153241@ids.upchiapas.edu.mx |
48e1529066f8dbe0f7cb66b9ea9b63486d1af790 | 1350e9518c6f86f38b926482524f4d841cbff9cb | /src/train.py | 0a760468cb83c24af424875a2792494e7610849f | [
"MIT"
] | permissive | popcornell/SLOCount | 1f6d66a457c8aad25c857350a9b95821ba889076 | 62d52c9141ba8def92408d54ba6a644b9df7f910 | refs/heads/master | 2020-09-12T13:38:56.819755 | 2019-11-18T12:23:22 | 2019-11-18T12:23:22 | 216,560,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,651 | py | import os
import math
import numpy as np
import torch
import traceback
from .assets import Binarymetrics
from .eval import validate
from .architecture import get_SLOCountNet
from torch.nn.parallel.data_parallel import DataParallel
from tqdm import tqdm
def train(args, pt_dir, chkpt_path, trainloader, devloader, writ... | [
"cornellsamuele@gmail.com"
] | cornellsamuele@gmail.com |
86a9f5d001803a950a30cb45d165d8bdf3b2c778 | 4b5cbd729da144a8160819c7f1462d8fd2669278 | /next_higher_number.py | a943da59d5f7197709d098ef599da91e569457cf | [
"MIT"
] | permissive | DavidEnciso/tests | 0f15fc3115bb4374745a247479cbbb728a92e328 | 414c0dd2dec8ace46dc50f07eccf8ebde0ee6be0 | refs/heads/master | 2021-01-01T18:01:04.991360 | 2017-07-24T19:36:52 | 2017-07-24T19:36:52 | 98,227,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | a='12345'
def flip(s, p1, p2):
#print('b:',s)
sd = dict(zip(list(range(len(s))), s))
#print('dict:', sd)
i1 = s[p1]
i2 = s[p2]
sd[p2] = i1
sd[p1] = i2
ret = ''.join(sd.values())
#print('a:',ret)
return ret
def nx(r):
#flip first
o = r
l = len(r)-1
print("back")
... | [
"noreply@github.com"
] | DavidEnciso.noreply@github.com |
de3776c915a726bc67fd41a7bfba4a7611cdb4b0 | 804bcf4e04aba101440786cdc42db5fa8b818f76 | /new_api/api/article.py | e4502a844769e7bd7091bc757389d90b24d33a1a | [] | no_license | guateam/LabGuide | 481d962139ba182db47faab0f013f8f9e6eefdcf | 75a1162bac10742e7c0d88f85b4ea8acf658753e | refs/heads/master | 2022-11-21T19:08:25.054258 | 2020-04-14T07:01:29 | 2020-04-14T07:01:29 | 186,096,911 | 2 | 0 | null | 2020-07-30T15:01:16 | 2019-05-11T06:33:44 | Vue | UTF-8 | Python | false | false | 6,946 | py | from flasgger import swag_from
from flask import Blueprint, request
from new_api.db import database
from new_api.rights_control.models.AddAllArticle import AddAllArticle
from new_api.rights_control.models.AddAllArticleTag import AddAllArticleTag
from new_api.rights_control.models.AddArticle import AddArticle
from new_... | [
"zhangyu199946@gmail.com"
] | zhangyu199946@gmail.com |
1528c695e6d9d88403930b883ec3be56309b17c3 | 86f99a5835a7dda2f80d951bfee77000686274df | /lib/python/invenio/bibauthorid_webapi.py | 59fbbf98fb5984957e1c50042b2dc0af6412eeaf | [] | no_license | tomas44444/augustsedlacek | e8e99ac591f3d85d7bb5c20d08686682d6e1a859 | a47084a0ef7aa6c5dd8d34a9322b2b97528db904 | refs/heads/master | 2021-01-10T02:39:26.089821 | 2013-02-26T13:07:16 | 2013-02-26T13:07:16 | 8,431,012 | 0 | 1 | null | 2020-07-26T09:14:50 | 2013-02-26T11:19:50 | Python | UTF-8 | Python | false | false | 37,101 | py | # -*- coding: utf-8 -*-
##
## This file is part of Invenio.
## Copyright (C) 2011, 2012 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your opt... | [
"root@tomasp-AMILO.(none)"
] | root@tomasp-AMILO.(none) |
51b714d6e10f7256f6b381c9426b24b34e89579b | 9214105eb9e1622f49093b48400955e8cda7bee8 | /assignment1/cs231n/classifiers/softmax.py | d17ec60b37f45a7a1a9c34b07a7e1668ab14e98a | [] | no_license | beefinbj/CS231n | 5ea5798bf5b9e9e202e4ec09e2f3098ec389a7cf | e133f27ff114d7a2da3298c242a5a47e71a76c88 | refs/heads/master | 2021-08-29T04:41:45.691756 | 2017-12-13T12:07:11 | 2017-12-13T12:07:11 | 114,067,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,206 | py | import numpy as np
from random import shuffle
def softmax_loss_naive(W, X, y, reg):
"""
Softmax loss function, naive implementation (with loops)
Inputs have dimension D, there are C classes, and we operate on minibatches
of N examples.
Inputs:
- W: A numpy array of shape (D, C) containing weights.
- X:... | [
"angus.ning@yahoo.com"
] | angus.ning@yahoo.com |
3242f88ecdf9093acc3e2f8932964d234244f5dc | 0c83546e55b8e3a0f0ce28e69541d2f79d093909 | /transfer.py | 0f14e40f75b60d8d745039d14d6ae66d0acc9882 | [] | no_license | monaanvari/Neural-Style-Transfer-Reddit-Wallpaper | e6a579e7afebe6d60ee77c3feec60b063f18cd2c | 859eecad6f0cbc4f95a1017005b3c8f937c5fcd8 | refs/heads/main | 2023-02-09T01:37:53.686299 | 2020-12-29T22:31:07 | 2020-12-29T22:31:07 | 325,150,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,146 | py |
'''built using tensorflow's style transfer tutorial'''
import os
import time
import PIL.Image
import matplotlib.pyplot as plt
import matplotlib as mpl
import numpy as np
import tensorflow as tf
from os.path import expanduser
home = expanduser("~")
content_layers = ['block5_conv2']
style_layers = ['block1_conv1',
... | [
"mona@DN0a1e4bc1.SUNet"
] | mona@DN0a1e4bc1.SUNet |
76e33f62e127998784a07731521e6ef615bc9c7e | df432760949b3e64bd73f363b92f82871c51ab4f | /sem15-code_clube-porta_da_fortuna-desafio03-perdendo_o_jogo.py | 738ac379fdf4222413059a5979583f8ee2c79805 | [] | no_license | AzzyOxx/pec-atividades | d3a37ecc2156e8682f90941bdf89da8b5dda435c | 3a89c1135de3caf0a19cffbf6142ca28ca012295 | refs/heads/master | 2023-05-31T15:26:29.938246 | 2021-07-06T23:48:27 | 2021-07-06T23:48:27 | 370,512,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | from random import *
def desafio_perdendo_o_jogo():
#imprime as três portas e as instruções do jogo
print('''Porta da Fortuna!
=========
Existe um super prêmio atrás de uma dessas 3 portas!
Adivinhe qual é a porta certa para ganhar o prémio!
_____ _____ _____
| | | | | |
| [1] | | [2] | ... | [
"catce.2021111mtds0316@aluno.ifpi.edu.br"
] | catce.2021111mtds0316@aluno.ifpi.edu.br |
38d9677de9ff7235b683e4a76b6e63e57c6f331d | 6ec824faaf74373f659f6066855780ae875b6e43 | /cs234/assignment3/tests/test_basic.py | 54ce6d641eb803b11168e96a2e89a41d98d17017 | [] | no_license | Felipebpm/stanford | 3a0c5c29010bf8e2fe7ef177eac13f8fdd010e69 | 50063ed6cb81633b9f7eaba815f445c4c5581550 | refs/heads/master | 2023-04-06T04:33:14.984324 | 2020-02-25T23:31:00 | 2020-02-25T23:31:00 | 232,892,974 | 0 | 0 | null | 2023-03-25T00:07:34 | 2020-01-09T19:54:32 | JavaScript | UTF-8 | Python | false | false | 6,605 | py | import unittest
import code
from code.baseline_network import BaselineNetwork
from code.policy_network import PG, build_mlp
from code.config import get_config
import gym
import tensorflow as tf
import numpy as np
import builtins
# Suppress unnecessary logging
# gym.logging.disable(gym.logging.FATAL)
builtins.config =... | [
"fbommfim@gmail.com"
] | fbommfim@gmail.com |
7fe6f3939974f57cf54ee1ec2edd52ceee019a19 | 1a559ace834d300aca6cde608ac9351032d4cd2e | /populate_rango.py | b3a91a7ecc126bedb52b90155a01ca50008142ec | [] | no_license | akilud/TangoTest | d9af5976c47e18056588c641c1aba8d249118a52 | 759cf7567318645f42e07c13c4e52874a7c164cd | refs/heads/master | 2021-01-01T05:05:22.712421 | 2016-04-22T03:12:40 | 2016-04-22T03:12:40 | 56,822,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Tango.settings')
import django
django.setup()
from rango.models import Category, Page
def populate():
python_cat = add_cat('Python',views=128,likes=64)
add_page(cat=python_cat,
title="Official Python Tutorial",
url="http://docs.pyth... | [
"akilud@gmail.com"
] | akilud@gmail.com |
6484c408d3f3b2c47a03d92785378350e8552ecb | f8ac9081d4bfcb5ae0ed4d7e194a023805541d34 | /accounts/tests/test_models.py | 06adb66d899e641874b5a812eda1ff4ff76971e7 | [] | no_license | cmermingas/tddbook | 9327a2710c3d678bd1645b2f1d8cd711580cddd0 | a957c5be16a408ecba326550d4564b8987de6dbe | refs/heads/master | 2020-12-24T19:46:55.455074 | 2016-05-14T19:03:03 | 2016-05-14T19:03:03 | 58,326,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | from django.test import TestCase
from django.contrib.auth import get_user_model
User = get_user_model()
class UserModelTest(TestCase):
def test_user_is_valid_with_email_only(self):
user = User(email='a@b.com')
user.full_clean() # Should not raise
def test_email_is_primary_key(self):
us... | [
"cmermingas@gmail.com"
] | cmermingas@gmail.com |
0fd7fb6a397224ee474e35019801fe163bad38be | 41e9702da8b5d5eba67b4df1a31cdf072bdf99c5 | /Basic_Python/EighthClass_Lambda.py | fb22b5a532a750a424dd4149081274a2e2ad0533 | [] | no_license | Rapha-Y/My_Python_Studies | b72badc3f02ca80e6e57556cee13066a9630baa0 | 8c45fed56eb8ab9b3e38ba05a19d3c2008b256e3 | refs/heads/master | 2022-09-26T00:31:36.104303 | 2020-06-01T17:38:29 | 2020-06-01T17:38:29 | 267,406,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | word_counter = lambda item_list: [len(i) for i in item_list]
fruits = ["Caju", "Morango", "Melão", "Pêssego", "Pitaya"]
print(word_counter(fruits))
sum = lambda a, b: a + b
print(sum(5, 10))
calculator = {
'sum': lambda a, b: a + b,
'sub': lambda a, b: a - b,
'mul': lambda a, b: a * b,
'div': lambda ... | [
"raph.yuki@gmail.com"
] | raph.yuki@gmail.com |
cd5826257d8650a010bad89f2914a65cba719f9e | 5c019f5d465436a752cfc29f33353453e79c7e76 | /backend/mall/goods/goods_model.py | 55016886eba8f0016ad3173cef6e0404ad42613e | [] | no_license | mminhou/mall | 262110bcd802cadaa234758f192bffd15dfdb5c8 | 6261a15efa9a1ecba70263e17991e1f30608257d | refs/heads/master | 2021-09-12T13:21:13.552284 | 2018-04-17T07:39:55 | 2018-04-17T07:39:55 | 100,087,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | from django.db import models
from mall.category.category_model import HighCategory, LowCategory
class Goods(models.Model):
style_num = models.IntegerField(primary_key=True)
high_category = models.ForeignKey(HighCategory, related_name="Goods", on_delete=models.CASCADE)
low_category = models.ForeignKey(LowCa... | [
"alsgh1003@hanmail.net"
] | alsgh1003@hanmail.net |
cafd16de8f3a991bc1f93e7117a77c4e815657f0 | ea2bb35913e63c8a54b53a050c2ffe8067ab52e1 | /panepinto/collect.py | 42938746c2c7df6a986d4e6bf33d89cfc17363c8 | [] | no_license | jamesaoverton/obi-panepinto | 25250dfe809422423af5470126108f6eebfeea58 | 5a81d856ab4189b1b0bfcd2bed86476947b02d18 | refs/heads/master | 2021-01-01T03:44:33.641612 | 2016-05-13T14:57:27 | 2016-05-13T14:57:27 | 58,749,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | #!/usr/bin/env python3
import argparse, csv, re
def main():
# Parse arguments
parser = argparse.ArgumentParser(
description='Collect labels and terms from a HOWL file')
parser.add_argument('howl',
type=argparse.FileType('r'),
help='a HOWL file')
parser.add_argument('table',
type=argpar... | [
"james@overton.ca"
] | james@overton.ca |
8bd3e7c8d668cfc74846117b6febfca47c28fc71 | 3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be | /google-cloud-sdk/lib/googlecloudsdk/shared/source/git.py | ee124d0731c0133d6e31483c44d56b4db9f1f8c3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | twistedpair/google-cloud-sdk | 37f04872cf1ab9c9ce5ec692d2201a93679827e3 | 1f9b424c40a87b46656fc9f5e2e9c81895c7e614 | refs/heads/master | 2023-08-18T18:42:59.622485 | 2023-08-15T00:00:00 | 2023-08-15T12:14:05 | 116,506,777 | 58 | 24 | null | 2022-02-14T22:01:53 | 2018-01-06T18:40:35 | Python | UTF-8 | Python | false | false | 9,823 | py | # Copyright 2015 Google Inc. All Rights Reserved.
"""Wrapper to manipulate GCP git repository."""
import errno
import os
import re
import subprocess
import textwrap
from googlecloudsdk.core import log
from googlecloudsdk.core.util import compat26
from googlecloudsdk.core.util import files
from googlecloudsdk.core.ut... | [
"joe@longreen.io"
] | joe@longreen.io |
2a653c6e01d45ec49bc2116acff021a462af90df | 5c4f7d36cfb3fe1791dfefa5a679bcc5e784490d | /tp2/tabla_5_zotenko_analisis.py | a205b6fdf2e72601f0133370340bd72f88d7f15c | [] | no_license | CarlosAndresRiosChavez/ProyectoRedes | 1ac43dbfe380ef696594c1dd1dab59bd98888914 | eb91bbf1f64e886664799d3d28e2d9facba95ae4 | refs/heads/master | 2020-03-27T05:38:34.377184 | 2018-12-05T15:52:12 | 2018-12-05T15:52:12 | 146,036,730 | 0 | 0 | null | 2018-09-24T16:18:48 | 2018-08-24T20:26:50 | HTML | UTF-8 | Python | false | false | 4,617 | py | from __future__ import division
import networkx as nx
import numpy as np
def ldata(archive):
f=open(archive)
data=[]
for line in f:
line=line.strip()
col=line.split()
data.append(col)
return data
# archivos de redes
file_y2h = "./dataset/yeast_Y2H_curado.txt"
fil... | [
"noreply@github.com"
] | CarlosAndresRiosChavez.noreply@github.com |
3cb04f968561e9aa25f6ab04a58640de1dca4fd9 | 5797109b344053721f354b8cd8bd654307068527 | /a4/loop-same-line.py | 30c645cc04e0a9633c40591edc1b20d47963eead | [] | no_license | susanphone/csci107-assignments | 9135b87fac8ef74f105e5aa87be6898e16a5075c | 0f2f0173d26e52667a48940c1b30a31b5b90e87b | refs/heads/master | 2021-08-17T11:46:21.814547 | 2020-01-12T03:31:42 | 2020-01-12T03:31:42 | 219,920,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | string_asterisks = input("Ener the number of asterisks: ")
asterisks = int(string_asterisks)
asterisks = int(input("enter the number of asterisks"))
print("*" * asterisks)
#same as above.
"""
line_of_asterisks = ""
for asterisk in range (asterisks):
# line_of_asterisks += "*" <----- same as one below
line_of... | [
"susan.a.mccartney12@gmail.com"
] | susan.a.mccartney12@gmail.com |
a95ad2492276f677f3e6732dccda73ecd536c253 | 040a669f8d27bcf62374e8ae5ce2a2b93a55f681 | /tests/test_new_user.py | ff99bb5887702db7ae3a47122187c770bc4c034d | [] | no_license | Pietertjie000108/Coding-Clinic-Booking-System | 5f31e6b48a15c2c82139c1960419c7903ee70795 | d1ad0a57b52b086b3ffd110c0a99dbe72e8c5afd | refs/heads/main | 2023-01-29T06:45:46.338705 | 2020-12-12T20:21:04 | 2020-12-12T20:21:04 | 309,633,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | import sys, os, inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0, parentdir)
import unittest
from authenticator.new_user import new_username, password, validate, user_and_pass
class Test_new_user_creation(unittes... | [
"67334887+Bubbles1206@users.noreply.github.com"
] | 67334887+Bubbles1206@users.noreply.github.com |
6b55598316455e43f008e4b6dad8851ba4ed3aa7 | e9a3f4a6f8828597dae8af8ea318b444af1798ba | /mag_ng/users/migrations/0003_auto_20200818_0517.py | f4d959172de433cee25454c2887bbea24208b12e | [] | no_license | kinsomaz/Online-Magazine-Website | c4a0b3b067a28202763a3646e02db9355e2e98a7 | dbb02225af2202913ea7dcc076f5af0052db117c | refs/heads/master | 2022-12-04T00:46:31.619920 | 2020-08-21T12:53:58 | 2020-08-21T12:53:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | # Generated by Django 3.1 on 2020-08-18 04:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0002_auto_20200818_0506'),
]
operations = [
migrations.AlterField(
model_name='customuser',
name='username',
... | [
"alameenraji31@gmail.com"
] | alameenraji31@gmail.com |
86926e47b54c38a35829cb0b930686dcdfe099c0 | c5a5bcdbb63869465107156cfe2f03da2c7fb8f7 | /Smoke_test_automated/features/pages/student_unenroll_page.py | b75c3bf4c809235adaafe0bc66b72eef1c12e0fb | [] | no_license | Jogues/SmokeTest | dbebadd57fc65f7cd93fbdac0c87b8a4ac5ca875 | 615363199eada0af6503d6dac9465d4445e19481 | refs/heads/master | 2021-04-09T10:20:23.488841 | 2018-03-15T07:00:55 | 2018-03-15T07:00:55 | 107,356,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.select import Select
import time
#locators
settingButton = (By.CSS_SELECTOR, '#actions-dropdown-link-0 > span.fa.fa... | [
"noreply@github.com"
] | Jogues.noreply@github.com |
4dac548217bff8aa8e8c3333e5616a4dec3b1b16 | e04183c57141b34a4b82aa94542bb5b6e5c666db | /f04_python_code/pyvista_learning/pyvista_01_uniform_grid.py | c247c816a182d8e532f70f5204b6c01225585930 | [] | no_license | ivandudkov/dynamic-surface-class | ac32758e7ea057bc451f24ea0c7831c11efeef8b | 6e58beefe884f312f55ea9460a629568529994ee | refs/heads/main | 2023-07-15T02:15:14.606915 | 2021-08-30T14:41:49 | 2021-08-30T14:41:49 | 386,748,171 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | # PyVista tutorial
# https://www.youtube.com/watch?v=FmNmRBsEBHE&ab_channel=SoftwareUnderground
# https://github.com/banesullivan/transform-2021
import numpy as np
import pyvista as pv
# 1. Let's create 3D numpy array
# To do that, firstly we create 1D array of values
values = np.linspace(0, 10, 1000)
# And after co... | [
"72301964+Spood-UR@users.noreply.github.com"
] | 72301964+Spood-UR@users.noreply.github.com |
e47531fea5a7ce4506ea4da759be3bf3eac25158 | b99f3fc079b092aae8c58438ea5ff3d5517619f7 | /DailyProgrammer/AnagramDetector.py | 3ab27179b41fc2fcd4f1631f75abffad1b5cec90 | [] | no_license | billykeyss/CodingQustions | 46eeced13275cd9e98c0c7eb91f31bc07f43f688 | f64427287e7497af6dd1b8481ab70c71913f174e | refs/heads/master | 2022-05-10T05:24:32.089050 | 2022-05-06T01:50:00 | 2022-05-06T01:50:00 | 59,133,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,361 | py | # You'll be given two words or sets of words separated by a question mark. Your task is to replace the question mark with information about the validity of the anagram. Example:
# "Clint Eastwood" ? "Old West Action"
# "parliament" ? "partial man"
#
# "Clint Eastwood" is an anagram of "Old West Action"
# "parliament" i... | [
"billhuang@live.ca"
] | billhuang@live.ca |
664508da8d95fe0b4e34ddd2e210b0035ce7fab8 | 1e0203f40d4cffed0d64449edeaea00311f4b732 | /minimum-cost-to-move-chips-to-the-same-position/solution.py | 88a9a03183306b9e7d560942705966f3b87e3842 | [] | no_license | childe/leetcode | 102e87dd8d918877f64e7157d45f3f45a607b9e4 | d2e8b2dca40fc955045eb62e576c776bad8ee5f1 | refs/heads/master | 2023-01-12T01:55:26.190208 | 2022-12-27T13:25:27 | 2022-12-27T13:25:27 | 39,767,776 | 2 | 1 | null | 2020-10-13T01:29:05 | 2015-07-27T10:05:04 | Python | UTF-8 | Python | false | false | 698 | py | #!/usr/bin/env python3
"""
https://leetcode.cn/problems/minimum-cost-to-move-chips-to-the-same-position/
1 <= position.length <= 100
1 <= position[i] <= 10^9
"""
class Solution:
def minCostToMoveChips(self, position: list[int]) -> int:
"""
>>> s=Solution()
>>> s.minCostToMoveChips(positi... | [
"rmself@qq.com"
] | rmself@qq.com |
7acc20e556f673db572b0311c98a3a3398d490bd | f8cc4185ae04a926b05eaa6ff1c77d36f082dfae | /Python/Fundamentals Practice/MultiplesSumAverage.py | 0de0d4b18f6216bf6bd8a6cb6f45cbacff0fd15e | [] | no_license | KMA91/DojoAssignments | 9a51edcb2eec224ea8e7f73e3789ce791b464865 | c7b06b059e397c280fe17e341dc35c4123502344 | refs/heads/master | 2021-01-22T23:27:02.908845 | 2019-04-11T08:04:29 | 2019-04-11T08:04:29 | 85,640,158 | 0 | 0 | null | 2017-08-22T19:11:54 | 2017-03-21T00:13:20 | null | UTF-8 | Python | false | false | 221 | py | #Part 1
for count in range(1, 1001, 2):
print count
#Part 2
for count in range(5, 1000001, 5):
print count
#Sum List
a = [1, 2, 5, 10, 255, 3]
sum = 0
for i in a:
sum+=i
print sum
#Average List
print sum/len(a) | [
"kevinma91@yahoo.com"
] | kevinma91@yahoo.com |
d42d791d901f6b9f7548b186742945a2cd24936b | 8d90cdd61cfb7f42b8ba90c0cf284add19922781 | /project/infrastracture/make_dockerfile.py | a6aaf0da60828b82ba9398b103847736e5b4f033 | [
"MIT"
] | permissive | MCYP-UniversidadReyJuanCarlos/19-20_dalobe | e64b9ce3d19fbfaceb1398884bff49790babf62f | 43b64744d8011af6ccd62fee394d6af2b11cac68 | refs/heads/master | 2021-06-28T19:59:31.794342 | 2020-08-31T16:16:25 | 2020-08-31T16:16:25 | 230,571,914 | 4 | 0 | MIT | 2021-05-06T20:22:20 | 2019-12-28T06:57:09 | CSS | UTF-8 | Python | false | false | 1,766 | py | import uuid
class Make_dockerfile:
def write_docker_file_from_dynamic(container, dockerfile_fixes):
image = container.image
f = open('output/Dockerfile', mode='wt', encoding='utf-8')
f.write("FROM " + str(image.attrs.get('RepoTags')[0]) + "\n\n")
[f.write(o['content']) for o in do... | [
"d.lopezb.2019@alumnos.urjc.es"
] | d.lopezb.2019@alumnos.urjc.es |
d8aa1cf989be9f934534f4189d386207d403ad6d | 12101c4a2c3aeb8eca88c3db89af2aed69208190 | /stream_test.py | 698e377c1c98591f36d05601127cd6987d8f45ad | [] | no_license | BitFloyd/VisBiz | 8085d7f9e32c8fd9b9b66d309f62a889d87f778a | 9b0bcb99091b9845dbaaf3be1b4cd6e8bb2b2c67 | refs/heads/master | 2021-05-09T15:16:21.786198 | 2018-01-31T20:31:32 | 2018-01-31T20:31:32 | 119,087,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | import cv2
from classico.faces import FaceDetector as FD
import os
cap = cv2.VideoCapture(0)
fd = FD(face_cascade=os.path.join('..','data_folder','haarcascades','haarcascade_profileface.xml'),
face_profile_cascade=os.path.join('..','data_folder','haarcascades','haarcascade_frontalface_default.xml'),
ey... | [
"sby.jcub@gmail.com"
] | sby.jcub@gmail.com |
821692c00f4beae20681d0ca24a85d51f8daeaff | fda2cc97a3f0cb5598ff4d53f599cd5eedca6dc5 | /src/models/ml_model.py | 05a9f8f0f25b2a5f3c1f472ba37aa36768eba9b9 | [
"MIT"
] | permissive | sboomi/cp1 | a1f16e1c617708b9bc453137ccf485d253938c87 | 7f7aa96e8ba9cfe00802028a61bfba5e90c999f6 | refs/heads/main | 2023-04-27T14:30:09.093654 | 2021-04-30T20:56:05 | 2021-04-30T20:56:05 | 344,061,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,729 | py | import numpy as np
from typing import Dict, Any, Tuple
from sklearn.base import BaseEstimator
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.svm import SVC
from sklearn.pipeline import make_pipeline
from sklearn.model_selection import GridSearchCV
from sklearn.naive_bayes import MultinomialNB
... | [
"shadi.boomi@gmail.com"
] | shadi.boomi@gmail.com |
f16bb51a8835137aba50c21bb060c677a7604e02 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_musses.py | b1ce3e681289e77be9498786f527b925bf9b01de | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py |
#calss header
class _MUSSES():
def __init__(self,):
self.name = "MUSSES"
self.definitions = muss
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['muss']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
fa254f89e3eb04376c18b0fd50454b35cf755972 | 1ba0a95bc4369a581c7c42a1ee076768149cd201 | /shuffle_file.py | 805b085a4c3e1990c12c72ca84f1fc932f05b0a6 | [] | no_license | bhorkar/kaggle_ctr | 29122ceaa9cae0bdd9c65464bf833e7ab2f1808c | 6dc2bf413fb1bc9605462159728ad766c76b925e | refs/heads/master | 2021-01-19T08:10:38.570563 | 2014-12-24T15:06:31 | 2014-12-24T15:06:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py |
def shuffle_file(path, buff=10000000, has_header=True):
import random
from datetime import datetime
start = datetime.now()
header = ''
with open(path) as f:
for linecount, line in enumerate(f):
if linecount == 0 and has_header:
header = line
f.clos... | [
"abhijeet.bhorkar@gmail.com"
] | abhijeet.bhorkar@gmail.com |
30dbf2c9ddf45492b2c4906ac69c6fdaf6cf3b0c | 9547f82dc5a81bdc19ba5442d41518a81b518825 | /consecucion_traspaso/models.py | e3468724b015cae28f71774b7f879788abe68b5d | [] | no_license | luisfarfan/capacitacion | 12784f95564eda1dc38dc22aa518b99d4b315c75 | c93e4502476c02bb3755a68d84404453b2c2dd81 | refs/heads/master | 2021-01-11T04:17:15.476849 | 2017-02-14T01:13:27 | 2017-02-14T01:13:27 | 71,189,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,823 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class PersonalCapacitacion(models.Model):
id_per = models.IntegerField(primary_key=True)
dni = models.CharField(max_length=8, blank=True, null=True)
ape_paterno = models.CharField(max_length=100, blank=True, n... | [
"lucho.farfan9@gmail.com"
] | lucho.farfan9@gmail.com |
ef769a8b18d70bdc17a21f8b9b959edcf4ea4e8c | be74e1dbaab580a7e4024a595958d1893469863a | /Python/LetterTilePossibilities.py | 4b6263e334207669ea238fa51c1426960635c806 | [] | no_license | super0xie/Solution | 0392b2577c31415c60ebcbeedb3dedcb01c66f02 | d028c2d076b1136ee30673faae5844954674961d | refs/heads/master | 2021-06-21T12:34:40.968649 | 2020-12-06T05:27:34 | 2020-12-06T05:27:34 | 130,928,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | class Solution:
f = [1, 1, 2, 6, 24, 120, 720, 5040]
def numTilePossibilities(self, tiles: str) -> int:
map = {}
for i in range(len(tiles)):
if tiles[i] in map:
map[tiles[i]] += 1
else:
map[tiles[i]] = 1
count = []
for i in... | [
"sxie@alpine-la.com"
] | sxie@alpine-la.com |
81393b9d2b45da22c82c2041e6d293d0eea36740 | eb5663b38eb39e80bdb8291c445c7bb14dfcebff | /ipl/ipl/apps/matches/migrations/0005_auto_20191102_1208.py | 6dd442ae775c93ce3f8d9fe9ce9294ec561cae05 | [] | no_license | aadil-reckonsys/ipl-statistics | d8e04b320f89fc6cefc6997334beba8453ee4ba2 | fc59268bfc1e3330aa49125a2d5fe010d34645a9 | refs/heads/master | 2020-09-03T07:40:50.906479 | 2019-11-04T04:41:33 | 2019-11-04T04:41:33 | 219,418,756 | 1 | 0 | null | 2019-11-04T04:42:34 | 2019-11-04T04:42:34 | null | UTF-8 | Python | false | false | 381 | py | # Generated by Django 2.2.6 on 2019-11-02 12:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('matches', '0004_auto_20191102_1206'),
]
operations = [
migrations.RenameField(
model_name='delivery',
old_name='dismissed_ki... | [
"aadil@reckonsys.com"
] | aadil@reckonsys.com |
0c05978dfc7d7959566cd156f4599852862564c0 | 0745879ee221b431784478085ec17869fc8e87f1 | /if_else_control.py | 4d5c5ffbbb0c8e3526189d81f5c1f4a5ab510ea6 | [
"MIT"
] | permissive | joeysal/astr-119-hw-2 | 96c08c3330c4e96ce4a9d9284c2eaf897db28c1e | cb63f577370e5835c8ae027e624ad2459e71c3cb | refs/heads/main | 2022-12-26T00:26:57.474671 | 2020-10-11T23:16:09 | 2020-10-11T23:16:09 | 302,715,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | #define a subroutine
def flow_control(k):
#define a string based on the value of d
if(k==0):
s = "Variable k = %d equals 0." % k
elif(k==1):
s = "Variable k = %d equals 1." % k
else:
s = "Variable k = %d does not equal 0 or 1." % k
#print the variable
print(s)
#define a main function
def main():
#... | [
"noreply@github.com"
] | joeysal.noreply@github.com |
fb1d4bb2df0be442fc7945067e0d14571cdc9dd6 | 6a1601d01e9ff7dbc6eeff9964ccdb8b182b5fb4 | /elections/views.py | a3698d33ae21468251a84b03523936788ab2908a | [] | no_license | Devourchoi/0902 | 41d55b41b16db467cd07693669c752fef3ba7436 | 9e63fc85cb9e4e9301c874dcdc8e6fed9a5e36e3 | refs/heads/master | 2022-12-16T23:15:00.625899 | 2020-09-05T00:56:20 | 2020-09-05T00:56:20 | 292,975,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | from django.shortcuts import render
from django.http import HttpResponse
from .models import M1Question
def index(request):
m1questions = M1Question.objects.all()
context = {'m1questions':m1questions}
return render(request, 'elections/index.html', context)
def M1QDs(request, M1QD):
return HttpResp... | [
"cih9144@naver.com"
] | cih9144@naver.com |
994e88ad0fb61fca619824198737c810bcf2abc8 | b4d84e260df6df98dd20087ef28b185f1e232515 | /climate.py | 039303c2437813220aa84bacf5384e6d15a87d2d | [] | no_license | DanBoulden/Homework_06_in_progress | e3d6a9574b42462c548b27e165a3f691d517aa7a | 9daea3d46d50dd17d88849db5fe3db40cfe277eb | refs/heads/master | 2020-04-15T01:03:24.990030 | 2019-02-06T01:58:53 | 2019-02-06T01:58:53 | 164,262,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,093 | py | import numpy as np
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
from flask import Flask, jsonify
#################################################
# Database Setup
#################################################
eng... | [
"noreply@github.com"
] | DanBoulden.noreply@github.com |
e860c0e792bd935c6f3dca00e8a1702e2609fa78 | 6f3a4ec0cb18aea374d130d4d2af4ccaad59f508 | /label_prop_tab1.py | 32dc81a42aaabb82784fc022be6048a787740368 | [] | no_license | AlessiaWent/Community-detection | a2786ce795b70bfc40f3202233f72ef3fdc4a906 | e4b12d7b6418f88b50a7a774e1c6677cbf97b0f8 | refs/heads/master | 2021-01-17T20:35:29.959860 | 2016-12-15T17:33:18 | 2016-12-15T17:33:18 | 68,443,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,357 | py | #The program reads a file containing the edges and corresponding weights, performs label propagation and outputs Table 1
#Usage: ./label_prop_tab1.py cftable nproc edges_file output_file
import codecs
from igraph import *
import time
from point_mix import Point
import random
import multiprocessing
from multiprocessing ... | [
"alexwent91@gmail.com"
] | alexwent91@gmail.com |
f2f48e85360e44d5a3443a9845dae958b88ac7b3 | abf87dce5b4a0799a619a5b80b078536671bc4de | /wenet/utils/cmvn.py | d262143210dde2c73b7dabd67eba87ecdbc2a7b4 | [
"Apache-2.0"
] | permissive | fanlu/wenet | 0b784831a3cc741538c8e31680d6774163d55656 | 8c5f79449d4ab1bd31ed75814f1ea56050670a5d | refs/heads/main | 2023-07-09T07:30:00.817172 | 2021-08-23T10:36:58 | 2021-08-23T10:36:58 | 333,722,807 | 12 | 2 | Apache-2.0 | 2021-01-28T10:24:21 | 2021-01-28T10:24:20 | null | UTF-8 | Python | false | false | 2,991 | py | #!/usr/bin/env python3
# Copyright (c) 2020 Mobvoi Inc (Binbin Zhang)
#
# 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 a... | [
"noreply@github.com"
] | fanlu.noreply@github.com |
15732a57f132ed2f8ccbd8946e4896179e207627 | 84bd3c9ae988defff60b8a8bb080ddfe983dd03e | /code/misc.py | 0a44427a3cde1a53e9da8d133d1f8ee5dc3ba2bf | [] | no_license | ashwanikhemani/CRF | de5fed8e99db72c412710fabc2323874b3358034 | 568eb654db2fd08e1b30fb2078288e01a3afccc9 | refs/heads/master | 2020-03-22T08:32:00.435747 | 2018-09-23T17:58:09 | 2018-09-23T17:58:09 | 139,772,256 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | #the orphaned functions that don't belong anywhere
def print_image(X):
#prints an image, if it is in a list
for i in range(16):
print(X[8*i:8*i+8])
| [
"gmarat19@gmail.com"
] | gmarat19@gmail.com |
473e17e63cc27ca761242cf6b609a7acca46f363 | 26fae5c7fb11bffecbab2d5ddcd34cd4cec0cea1 | /PMDM/misitio/polls/serializers.py | 21c24e6fbfdadcfb3809168a5f0cfaafc65aae5a | [] | no_license | JorgeDuenasLerin/desarrollo-web | 75879d4a5bbc2ce3bab3b34016b970a1636dd53b | 2367a9be4af1c8e8e9c21700b9f70d20d6273718 | refs/heads/main | 2023-05-28T05:51:25.627808 | 2021-06-17T09:25:24 | 2021-06-17T09:25:24 | 314,196,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | from django.contrib.auth.models import User, Group
from rest_framework import serializers
from .models import Question, Choice
class QuestionSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Question
fields = ['question_text', 'pub_date']
class ChoiceSerializer(serializers.H... | [
"jorge.duenas.lerin@gmail.com"
] | jorge.duenas.lerin@gmail.com |
b5f225109cb48bec4a6038fd921fb471c7247f55 | 01fd020808e9bb2af4f47ca081c73f8328aab8b0 | /Mancala/Testselbstspielen.py | 27dabba8c13c1090e6674d6e65ca55fdad1ab61a | [] | no_license | JojoB96/Neuronale-Netze | 0d077e87510c3b13ea15bd7c3cf652e6bf3566f1 | 3401e3bd10d8ffd0d4fde6c3053fdd7669747949 | refs/heads/master | 2022-12-08T10:36:45.423260 | 2020-09-04T11:36:45 | 2020-09-04T11:36:45 | 271,476,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,213 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 15 14:15:22 2020
@author: johanna
"""
import numpy as np
import mancala as m
ma = m.Mancala(exploration_rate = 0.2)
print("Start")
print(ma.net.biases)
print(ma.spielfeld[0:12])
#ma.train_net(500,25,1)
print("trained")
#print(ma.play())
print(... | [
"johbeier@hotmail.de"
] | johbeier@hotmail.de |
b49b688fcabbaedc2a8bfc477ba05c6aa46b4a66 | d4d3a649bd66315d8b273a6b473c5ed024d2e86e | /searchkeyws/serializers.py | 4fa9b6362347c0f2b20f43d056ccc963deaa30be | [] | no_license | Leanwit/gisiaws | 934e5ef4b3fd42346927847d44af17d219a51c77 | 8863bfcb03a00ee343968746a4f7902592d8099f | refs/heads/master | 2021-01-14T10:03:51.648179 | 2016-04-24T15:34:06 | 2016-04-24T15:34:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,263 | py | from rest_framework import serializers
from searchkeyws.models import *
class SearchKeySerializer(serializers.ModelSerializer):
class Meta:
model = SearchKey
fields = ('id', 'clave')
class SearchUrlSerializer(serializers.ModelSerializer):
class Meta:
model = SearchUrl
fields ... | [
"luislezcair@gmail.com"
] | luislezcair@gmail.com |
f54412f85eb9a15ea9f8d417b06cf52653f0ab70 | afcad0132386caba80237f09280c649dd793f6db | /services/scraper/export.py | 284ab29423be231e7ec7defba1235d3742fe6e35 | [] | no_license | chimano/happy-bnb | 8b3bce7495a8dd8781cb6099b89b793f6feedf41 | e0ce7f8d4d1ae93746ebc01a3fe350c44602f5a5 | refs/heads/master | 2020-04-17T13:21:36.003284 | 2019-01-21T05:06:51 | 2019-01-21T05:09:21 | 166,612,324 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | from sys import argv
from ast import literal_eval
import pymongo
URL_FORMAT = 'mongodb://{}/'
def categorize(entry):
return 'high' if float(entry[0]) > 4 else 'low'
if __name__ == '__main__':
if not argv or not len(argv) == 5:
print('Usage: python export.py HOST:PORT DATABASE COLLECTION IMPORT_FILE... | [
"lucas_turpin@hotmail.com"
] | lucas_turpin@hotmail.com |
ba44833508e64f5a05861a52410e91f082a08777 | bb0094791dd4c6f19bfbdfc342bfaec58f4ee04a | /SurfOnVpn/surfOnVpn.py | 540d3721e6afefc20184973be5650b454692c66f | [
"MIT"
] | permissive | prabhakar1998/SurfOnVpn | 6e74866cda22b12f940bd653ff0f806189fca5f5 | 74b8e28255e85a073300680475c9053407865904 | refs/heads/master | 2021-09-13T04:48:26.623150 | 2018-04-25T04:28:37 | 2018-04-25T04:28:37 | 115,930,770 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,089 | py | """Application File, This file is the main file to run.
Usage python3 surfOnVpn
Dependencies in setup.py file
"""
from threading import Thread
from os import system, popen
import subprocess as sub
from vpn import Vpn
from kivy.config import Config
from kivy.uix.popup import Popup
from kivy.uix.label import Label
fro... | [
"findmebhanujha@gmail.com"
] | findmebhanujha@gmail.com |
c7f7dc9027e7c74dc467b0c29e884e7db7d62e4f | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_1_01a/brocade_mpls_rpc/show_mpls_lsp_name_detail/output/lsp/show_mpls_lsp_detail_info/show_mpls_lsp_instances_info/lsp_instances/lsp_rsvp_session_rro_hops/show_mpls_lsp_hop_list/hop/__init__.py | 96131278f35a517493f7e62b5cba8e2907096906 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,501 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
6f8a8a50c61f791fef940b294a8727acd288d83c | 87a45d33ec91923fa2d299ca60e62cc48692241b | /mysite/settings.py | 5fb92d3ca47006ee609df4aaad2d72f1d181f68f | [] | no_license | reda-z/tutorial-project | 2b16348a21e50c85eb74f75be5bb209c00ed942f | 7fc776ba052ed265cd4e3148ee08fc4f8ffab2c3 | refs/heads/master | 2021-01-12T02:29:53.333570 | 2017-01-04T18:17:44 | 2017-01-04T18:17:44 | 78,040,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,107 | py | import os
gettext = lambda s: s
DATA_DIR = os.path.dirname(os.path.dirname(__file__))
"""
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.8.17.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and t... | [
"reda.zejli@gmail.com"
] | reda.zejli@gmail.com |
cf1dd697de86f1bd9befeb47c8cb1caa88300d4e | 35823cfdaebca1364f0cfd0993c4e0c3b5dcf762 | /assignment3/cs231n/data_utils.py | 7a5e5d79a6a0ff754fca40361b812d22da6905c0 | [] | no_license | Richardyu114/CS231N-notes-and-assignments | b072e693a6766694fe7a2642de50a52c11fbfe0d | 25b9dac4834fabebc6d9453722bef6e5bea66b0c | refs/heads/master | 2021-03-07T06:53:18.840432 | 2020-07-08T13:33:00 | 2020-07-08T13:33:00 | 246,252,293 | 1 | 0 | null | 2020-11-18T22:43:24 | 2020-03-10T08:58:02 | Jupyter Notebook | UTF-8 | Python | false | false | 9,179 | py | from __future__ import print_function
from builtins import range
from six.moves import cPickle as pickle
import numpy as np
import os
from scipy.misc import imread
import platform
def load_pickle(f):
version = platform.python_version_tuple()
if version[0] == '2':
return pickle.load(f)
elif versi... | [
"noreply@github.com"
] | Richardyu114.noreply@github.com |
77160378e0aff096aa646eaca4addb171b24a317 | 59de7788673ade984b9c9fbc33664a7cbdba67d3 | /res_bw/scripts/common/lib/encodings/hz.py | fc3d801e512648fcedb54a7c040b1b2914c9941b | [] | no_license | webiumsk/WOT-0.9.15-CT | 3fa24ab37a6c91b7073034afb2f355efa5b7fe36 | fbd194fbaa6bdece51c7a68fc35bbb5257948341 | refs/heads/master | 2020-12-24T21:27:23.175774 | 2016-05-01T13:47:44 | 2016-05-01T13:47:44 | 57,600,180 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,131 | py | # 2016.05.01 15:29:55 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/encodings/hz.py
import _codecs_cn, codecs
import _multibytecodec as mbc
codec = _codecs_cn.getcodec('hz')
class Codec(codecs.Codec):
encode = codec.encode
decode = codec.decode
class IncrementalEncoder(mbc.MultibyteIncr... | [
"info@webium.sk"
] | info@webium.sk |
6fae34308cd664decc0ad86974d5ad045c8d9d68 | 7af5288111965b8bbcdfcd21fcf9db1f2e886741 | /point_to_path_measurement.py | 742e4e4ebcc00750b26d9257ebc1950227237cc5 | [] | no_license | GeoTecINIT/CyclingPathAnalysis | fc65b506da5f9365ed1fa7595fa3e16a3e54c581 | fb54af19b6dd217ffd224b4ec87e18ab8045c35e | refs/heads/master | 2020-03-14T02:39:14.968754 | 2018-04-27T17:11:56 | 2018-04-27T17:11:56 | 131,403,393 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,722 | py | """
This script allow us to convert a list of coordinates into a string geometry
It does not consider the information of trips
It just considers location, distance and time
Author: Diego Pajarito
"""
import datetime
import data_setup as data
import geojson
from LatLon import LatLon, Latitude, Longitude
from geojson i... | [
"diegopajarito@gmail.com"
] | diegopajarito@gmail.com |
9f191ec4a9cd5f99bda20cd89210ad2823c881a6 | b7cb29e3d4ec89f294695a4405df322455bfdb62 | /Exercise13ParametersUnpackingVariables/ex13.py | 297af801f679508fc21acb1e1535d0a8c1483e10 | [
"MIT"
] | permissive | CaptShaw/learn-python-the-hard-way | 0e86e88615e60d6dddd189f87556cf30f844883e | 48328a126ab47fdac371c82b79dc2047541a4dd7 | refs/heads/master | 2020-04-10T08:39:20.580479 | 2018-12-08T10:00:22 | 2018-12-08T10:00:22 | 160,910,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | # -*- coding: UTF-8 -*-
from sys import argv
#script, first, second, third = argv
script = argv
#从用户输入中获得参数
first = raw_input(),
second = raw_input(),
third = raw_input()
print "The script is called:", script
print "Your first variable is:", first
print "Your second variable is:", second
print "Your third variable ... | [
"remember_m1@qq.com"
] | remember_m1@qq.com |
83c9387d3bb198cf419d2f3ec2dff2bcd9a76c86 | 6209990e3e90f8ca6d0b6cf737b96ad5e9317253 | /my_utils.py | 5b257efb3d417704b07dff888789a21ca633ff42 | [] | no_license | oxnoctisxo/JamGame | cb44e4abc46a19a9e3d4ac67a04d90ee7d979c6d | 3fd5a66ce95dc5ea233201dad7b299d2032517eb | refs/heads/master | 2020-05-01T05:08:25.210226 | 2019-03-24T14:39:29 | 2019-03-24T14:39:29 | 177,293,135 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | from parametters import *
import pygame
| [
"tip.hon@hotmail.fr"
] | tip.hon@hotmail.fr |
256c5f55fe05774426ef35b4325026001409ec73 | b33c52cba0eb0bb2d205c7ccd0df4bc8bfe2eb97 | /laravalidation/validation.py | f2b79aa8d18c098391379e73de9526c1ee808cc2 | [
"MIT"
] | permissive | kristopherchun/laravalidation | 718cad923f8f9b6b6b03d2018fb415d27256ed3e | 2a68a0b132428759954dfed7404e45d3841f51b7 | refs/heads/master | 2020-05-20T00:40:35.291042 | 2019-05-07T18:33:57 | 2019-05-07T18:33:57 | 185,278,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,169 | py | import re
import datetime
import sys
import json
import os
class Validation():
# List to store the error messages in
response = {}
errors = {}
error_message_templates = {}
def validate(self, data, rules, custom_messages=None):
"""Validate the 'data' according to the 'rules' given, return... | [
"kristopher.chun@dataq.ai"
] | kristopher.chun@dataq.ai |
3fa9a93f57ccc1bf4090937e244429eb7f71e4a5 | 51386da3c244c1182a4e414ce1401d699c235fa2 | /mainapp/migrations/0003_auto_20210319_2321.py | c763d5a4e92f2019cfaa02b649656a806698e3bc | [] | no_license | bad-us/geekshop | dd134fc47e378d2fc5637b3ad17dfd263429dd0a | e11b9aa3f874eb5ec92b2bbf3e09a463848b120c | refs/heads/Lesson_2 | 2023-07-15T08:45:00.054415 | 2021-08-31T07:57:49 | 2021-08-31T07:57:49 | 393,031,273 | 0 | 0 | null | 2021-08-31T12:05:04 | 2021-08-05T12:19:12 | Python | UTF-8 | Python | false | false | 618 | py | # Generated by Django 3.1.7 on 2021-03-19 20:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0002_product'),
]
operations = [
migrations.AddField(
model_name='product',
name='is_active',
... | [
"bad-us@rambler.ru"
] | bad-us@rambler.ru |
f666007ac359fe79e9a2e479632c88e69a740821 | f061602595a78bdbdbf32e2dfdcfe623db5b8efd | /graph/migrations/0002_auto__add_field_overviewstat_money.py | 7f104131f6fd659ce917758a30319a93e5f569c5 | [] | no_license | NorbertMichalski/utilities | b9e0643d4b8e0097e0c774d63adbeaa66d3da06b | da27a23add9c42d62ae21a5e74eef920bbd3d839 | refs/heads/master | 2020-05-14T19:04:23.262384 | 2014-01-27T13:45:28 | 2014-01-27T13:45:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'OverviewStat.money'
db.add_column(u'graph_overviewstat', 'money',
self... | [
"Norbertmichalski16@gmail.com"
] | Norbertmichalski16@gmail.com |
8f5bee079852dc9e9cd1c52553ced73e436572ca | e433c8e129234e41454a3f029e41251f17920fc0 | /home/migrations/0006_auto_20181120_1245.py | 87229c2304b061262c08f0d9675937947e094487 | [] | no_license | exabyteso/wagtail-demo | ab25cbfa2f9857190273ab952d4ab24f14fef214 | 1fbef9e4703902b1c50962d6f50bf0c814367cca | refs/heads/master | 2020-04-07T12:47:19.050913 | 2018-11-20T11:57:07 | 2018-11-20T11:57:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | # Generated by Django 2.1.3 on 2018-11-20 09:45
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0040_page_draft_title'),
('wagtailforms', '0003_capitalizeverbose'),
('wagtailredirects', '0006_redir... | [
"infoptwo@gmail.com"
] | infoptwo@gmail.com |
3cd9816aa15459e15cbade31bc4234a1e433e840 | bc84258382756f5a2e1382813ce68f6148acc33a | /cntrd.py | 0444e1056807de47433cc38ceda157eea2bf8888 | [
"MIT"
] | permissive | dragozzine/hstfakes | 6604978c4a78a19936c3e5192b3917558b2d7f67 | a73971686a9189106b0e6a8039e581f649a1acf0 | refs/heads/master | 2021-05-28T08:57:41.402475 | 2014-07-24T17:41:49 | 2014-07-24T17:41:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,657 | py | #!/usr/bin/env python
# D. Jones - 2/13/14
"""This code is from the IDL Astronomy Users Library"""
import numpy as np
def cntrd(img, x, y,
fwhm, silent=False,
debug=False,
extendbox = False,
keepcenter = False):
""";+
; NAME:
; CNTRD
; PURPOSE:
... | [
"steve.rodney@gmail.com"
] | steve.rodney@gmail.com |
19fd98493afa75d8472719a61a2fb2a168e3a8e0 | f948811d028d7b4313b38877d383e9920a4fdb25 | /codegen.py | 214594ca7d0334690567a44c8d15bb3f573dbc94 | [] | no_license | silencewwt/Psyduck | fdf8a286dd233fca3c15d7e3ccd9a26e53376c5a | 0635a63941e0e0f342b55367f5a8a8fd12d7e4b6 | refs/heads/master | 2020-03-25T08:19:43.514746 | 2018-08-06T16:37:04 | 2018-08-06T16:37:04 | 143,607,165 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,555 | py | # -*- coding: utf-8 -*-
import json
import re
import click
REGEX = re.compile('((?:[A-Z]?[a-z\d]+)|(?:[A-Z\d]+))')
class Generator(object):
def __init__(self, output, swagger):
self.file = open(output, 'w', encoding='utf-8')
self.indent_level = 0
with open(swagger, mode='r', encoding='... | [
"silencewwt@gmail.com"
] | silencewwt@gmail.com |
d90b17e4a307a458615f340144ef6ae834bd9bd4 | 4dbf96a46d754e79d3e4893dbef036acab2c19a2 | /config/settings.py | d8fdd70facf0d49e07547534682cc46058548f38 | [] | no_license | noellehamberis/fullstack-newsapp | 0c2536698ca22ea91d30e5c31e08874de8c86b29 | 7d6769c5b100b39093ebff23c6fe4ed5dc35fc8a | refs/heads/main | 2023-01-04T11:53:24.555522 | 2020-10-30T20:41:49 | 2020-10-30T20:41:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,307 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
impo... | [
"noellehamberis@gmail.com"
] | noellehamberis@gmail.com |
5375777a1964677416c8a6d7877ffd6f6a3704fd | 8dedd4fe372a350dbf016a309c7ddd142257611e | /conejo/lib/tts.py | 189c935042d968b788b7841934a8c829e0116423 | [] | no_license | castrofernandez/raspberry-pi | 034b5277ca6a96ce3e6b03afbdd1f7a085a570b4 | f9af19c2a8e1459c5e002b10cb5de781035a98bf | refs/heads/master | 2016-09-05T18:51:21.472457 | 2015-02-08T16:31:06 | 2015-02-08T16:31:06 | 16,258,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,026 | py | #!/usr/bin/python
#-*- mode: python; coding: utf-8 -*-
import urllib, urllib2
from os import path
#from pydub import AudioSegment
def obtenerMP3(idioma, mensaje, nombre = None, ruta = None):
base = "http://translate.google.com/translate_tts"
valores = { 'q': mensaje, 'tl': idioma }
data = urllib.url... | [
"castrofernandez@gmail.com"
] | castrofernandez@gmail.com |
e94d85abd6706eef8bb60e86ee3dcc66668f2edf | 3c943b9d0117bd9e06dde1ea8370ccb9582fb0c5 | /bwp/participant/models.py | a26cdaa339fd442a2606ad967a5431c5255d8665 | [] | no_license | lbt/boss-web-participant | e4f013bb13cd09e4c953b83922308d2ea57e2e76 | b2f89109f677c49f80333fecf2a1a31c5c1916b9 | refs/heads/master | 2023-04-28T01:48:01.230173 | 2021-04-29T13:09:08 | 2021-04-29T13:09:08 | 359,830,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | from django.db import models
# class BOSS(models.Model):
# """The BOSS instance a Participant is connected to.
# """
# name = models.CharField(
# help_text="Name of the BOSS instance",
# max_length=80)
# config_name = models.CharField(
# help_text="Section name of the BOSS conne... | [
"david.greaves@jolla.com"
] | david.greaves@jolla.com |
758e384b3a6911b45061fc77173d87ce769d5074 | e8775c4c2df37b87cf1581d258310084d74b01f3 | /contribucion.py | ca163d5ae42d3cae74e0800d235ee7e5a232ae9b | [] | no_license | Gabospa/OOPexample | 1b547aed215cb73f1bf5c1fe2c8c1fcf54ac80d9 | 1c7d584a10623db593ee849a600d7ce430050f4d | refs/heads/master | 2022-11-25T04:48:51.325169 | 2020-07-31T16:18:13 | 2020-07-31T16:18:13 | 282,141,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | class Contribucion:
""" Clase Contribución """
def __init__(self, idNum, titulo , idAutor , calificacion):
self._idNum = idNum
self._titulo = titulo
self._idAutor = idAutor
self._calificacion = calificacion
#id getter
@property
def idNum(self):
return se... | [
"gabospa@gmail.com"
] | gabospa@gmail.com |
a4d8f83509a7a69fa49cef14a93d2cb7220dbe9d | 2c5de2a2748a4418800a0aceff2444e1c3a8d72d | /ilsp/common/auth.py | 25b29000eae9bd6138d713cc0af7ba4547c859d9 | [] | no_license | fmfi/infolist-editor | 9fbd60139e03c06ed465452faf8ff7b7c5e48f6d | 4aa613fac74e4648f2640f8a086e7953296d56fc | refs/heads/master | 2021-01-13T02:06:37.745620 | 2018-02-19T09:54:51 | 2018-02-19T09:54:51 | 13,423,385 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,198 | py | from functools import wraps
import os
from flask import Blueprint, request, redirect, Response, render_template, current_app, url_for, g, abort
from itsdangerous import URLSafeSerializer
blueprint = Blueprint('auth', __name__)
@blueprint.before_app_request
def before_request():
username = request.remote_user
if c... | [
"martin.sucha@fmph.uniba.sk"
] | martin.sucha@fmph.uniba.sk |
3c2f173df59757b124d49841d2ebabfcab8e6a8e | f7ee7727dcf87140b509a8b11db8a118bf7b10ee | /api/app/tags/tests.py | cfabdc5626e2a7fbd8ab6110200e297cba93d0b3 | [
"Apache-2.0"
] | permissive | hamzzy/Baobab | 874fc0e25d2b4428fb4d3204566a061f895cb185 | 91151fa25c49d4d66b527678fd768906dbc55053 | refs/heads/master | 2023-06-07T00:02:52.804996 | 2021-06-17T20:58:19 | 2021-06-17T21:02:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,038 | py | import json
from app.utils.testing import ApiTestCase
from app.tags.models import Tag, TagTranslation
from app import db
class ReviewsApiTest(ApiTestCase):
def seed_static_data(self):
self.event1 = self.add_event(key='event1')
self.event2 = self.add_event(key='event2')
self.user1 = self.add... | [
"avi@avi-net.co.za"
] | avi@avi-net.co.za |
0e20409c8fcd44abf8a545914efe38451ae3111a | 748133ddbca64674b0a1c3f3453f1abf1b3e8523 | /Biof309_project/modules/.ipynb_checkpoints/test_Clearnulls-checkpoint.py | 5224baf6fd465d560f9437a089b6f4149fcbae33 | [] | no_license | sarahfa-por/Biof309 | 2043a55a56117b5e68c62e730c074cb6b19479a6 | a586a6d6fd7142a8c93283dd1c406210d5ea0af1 | refs/heads/master | 2020-10-01T23:13:23.819511 | 2019-12-12T23:07:40 | 2019-12-12T23:07:40 | 227,643,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,064 | py | {
"cells": [
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [
{
"ename": "NameError",
"evalue": "name 'null' is not defined",
"output_type": "error",
"traceback": [
"\u001b[0;31m-----------------------------------------------------------------------... | [
"sarah.andrews2@nih.gov"
] | sarah.andrews2@nih.gov |
bef9b323e645e5c7ef9d02812aa2e7372a98a288 | 1bb98607ddc47884bfe6b2f8e874699e63b528e1 | /main.spec | 98c5705f4febeba77a2fdae29b50d63685420cf2 | [] | no_license | 15011283031/HumanResourcesAss | eacce2c8a165f86c8feef7b5e26b0e8ceb34bc21 | 11e3533335e21dcf770aa60894e3714ba41bcb2c | refs/heads/master | 2021-01-25T09:09:41.548439 | 2018-02-17T07:59:11 | 2018-02-17T07:59:11 | 93,790,201 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 849 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['main.py'],
pathex=['e:\\KM\\GITPROJECT\\HumanResourcesAss'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_p... | [
"peterchenhra@hotmail.com"
] | peterchenhra@hotmail.com |
6c5e8cedaeaf654434fed411879ce389caf2ef64 | 7a48e285f1466716c6c7a3a729fadcf6c1a3d95f | /clean.py | f612c1619ba45b8f8fcf8f22946a99b39e1a1603 | [] | no_license | Bunty9/GPT | 5af356b67d808c14c4007575ba3d95ac3c0c7183 | eca0c828e6afd505b4303b8a6e68cd31e9b1eecd | refs/heads/master | 2023-08-13T07:59:43.312877 | 2021-09-26T13:04:53 | 2021-09-26T13:04:53 | 410,554,350 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | import os
from curtsies.fmtfuncs import red, bold, green, on_blue, yellow, cyan
import time
from tqdm import tqdm
d = "repos"
for dirpath, dirnames, filenames in tqdm(os.walk(d)):
for f in filenames:
fullpath = os.path.join(dirpath,f)
# print(fullpath)
if fullpath.endswith(".py"):
... | [
"cbipin2000@gmail.com"
] | cbipin2000@gmail.com |
7ac936ecd5083f62b8a3b206f7e560a01d51ac58 | e0a9dcd4f53aa6bf4472efe451e226663212abda | /core/execute.py | d8d444c3f1a16fa7af00f3de0f4f8ca5d7541d09 | [] | no_license | dilawar/ghonchu | f0505dce8ba76402e7c58c7fc4efd0412ce3503a | 5527b4d444f113b0ab51f758fc809e8ab81c5a72 | refs/heads/master | 2016-09-02T05:33:07.167106 | 2014-12-12T12:07:50 | 2014-12-12T12:07:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py |
"""execute.py: Execute core action.
Last modified: Sat Jan 18, 2014 05:01PM
"""
__author__ = "Dilawar Singh"
__copyright__ = "Copyright 2013, Dilawar Singh and NCBS Bangalore"
__credits__ = ["NCBS Bangalore"]
__license__ = "GNU GPL"
__version__ = "1.0.0"
__maintainer... | [
"dilawars@ncbs.res.in"
] | dilawars@ncbs.res.in |
7a93ea17532155af61fa6a4e41ee4610814e7864 | aaaa16d4de4d3a1291d2abcf0d749302474eb28a | /ex40(3).py | 7d1b164829f9a50300fbdf507cbbef8dd5d4a284 | [] | no_license | A-lPha/-python- | 6f2ae557919db3dc87cce398c4800fadf4c24c2c | f9996781e9198d75c2ff1dbaa0bc508b0446e046 | refs/heads/master | 2021-01-12T08:25:03.622928 | 2016-12-15T14:58:02 | 2016-12-15T14:58:02 | 76,568,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | while True:
cmd = raw_input("""
1.User information
2.Setup
3.Exit
""")
print "您输入的是",cmd
#帮群里一个新手解决的问题
| [
"noreply@github.com"
] | A-lPha.noreply@github.com |
ac1d8d944c5f717513c16db9d6c67f9b7c3dbdf2 | 2176a24055451d189e1c1a9a87ef4eeefea681ec | /parlai/agents/fid/fid.py | 3e0e65079659d4846dedd5a7d66d649c96fb19f5 | [
"MIT"
] | permissive | khanhgithead/ParlAI | c4b7f9288702b20093a1821cfd6b48ab1b26b1ba | 598cd8cfb46f831c52237da97600d7849f2b711b | refs/heads/master | 2022-02-15T12:07:37.428392 | 2022-01-14T18:01:33 | 2022-01-14T18:01:33 | 157,932,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,924 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Leveraging Passage Retrieval with Generative Models for Open Domain Question Answering.
See https://arxiv.org/abs/20... | [
"noreply@github.com"
] | khanhgithead.noreply@github.com |
b5d2e30fd0fca25810593302a2d6220183c9a7f6 | 26bd175ffb3bd204db5bcb70eec2e3dfd55fbe9f | /exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/netapp_e_facts.py | 3be087a3abae3dc321f1d89f31e54067f0ed841f | [
"MIT",
"GPL-3.0-only",
"GPL-3.0-or-later",
"CC0-1.0",
"GPL-1.0-or-later"
] | permissive | tr3ck3r/linklight | 37814ed19173d893cdff161355d70a1cf538239b | 5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7 | refs/heads/master | 2021-04-11T04:33:02.727318 | 2020-03-25T17:38:41 | 2020-03-25T17:38:41 | 248,992,437 | 0 | 0 | MIT | 2020-03-21T14:26:25 | 2020-03-21T14:26:25 | null | UTF-8 | Python | false | false | 27,071 | py | #!/usr/bin/python
# (c) 2016, NetApp, Inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | [
"joshuamadison+gh@gmail.com"
] | joshuamadison+gh@gmail.com |
9116fbcd17562627c4d5504fdc5b28015b3d830d | 6fe2d3c27c4cb498b7ad6d9411cc8fa69f4a38f8 | /algorithms/algorithms-python/leetcode/Question_111_Minimum_Depth_of_Binary_Tree.py | 20e53e489f88b9f32c07604bd8be49b4895f2660 | [] | no_license | Lanceolata/code | aae54af632a212c878ce45b11dab919bba55bcb3 | f7d5a7de27c3cc8a7a4abf63eab9ff9b21d512fb | refs/heads/master | 2022-09-01T04:26:56.190829 | 2021-07-29T05:14:40 | 2021-07-29T05:14:40 | 87,202,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | #!/usr/bin/python
# coding: utf-8
from TreeNode import *
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def minDepth(self, root):
"""
:type root: Tree... | [
"lanceolatayuan@gmail.com"
] | lanceolatayuan@gmail.com |
e76c6838f7e87301d6e09a08741750b7f783d361 | 023d045733bb30b2c0cc501908c0dd3de4d2945f | /standssubmission/standsreview/admin.py | 5242b9d5140b17255896969bd652b374065828cd | [] | no_license | pieterdp/fosdem-stand-submission | 3da4a2158935fb54f9a6edeff124050efed3738e | 3bd6355e53014160fbdd15970f142c24adb040cd | refs/heads/master | 2023-01-28T04:38:50.037785 | 2020-12-06T19:58:13 | 2020-12-06T19:58:13 | 307,077,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | from django.contrib import admin
from .models import Review, Decision
# Register your models here.
admin.site.register(Review)
admin.site.register(Decision)
| [
"pieter.de.praetere@helptux.be"
] | pieter.de.praetere@helptux.be |
4f8fa08437a586f911ad3dfd31be2c934da9fe01 | a6dff3b91e0b335621c682d68605ccb91478abf7 | /day9.py | 229f88cad4549125dc28e3c4a466266a9bb3effd | [] | no_license | prasansabhagat/python | b088e7d67ab388cbee5acbf987d1ee780204123b | 323c5e5f0544042fb175faad8be99969301575c3 | refs/heads/main | 2023-07-13T02:28:13.993340 | 2021-08-15T16:45:41 | 2021-08-15T16:45:41 | 393,764,787 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | #ctrl + ] -- for indentation
bid_dictionary = {}
bidding_finished = False
while not bidding_finished:
name = input("What is your name? ")
bid = input("How much amount do you want to bid? Rs")
bid_dictionary[name] = price
question = input("Is there other person who wants to bid? yes or no ")
if que... | [
"75807786+prasansabhagat@users.noreply.github.com"
] | 75807786+prasansabhagat@users.noreply.github.com |
3544578b5eba352958bb896b645b4312ea39834f | 769c8cac5aea3c9cb1e7eeafb1e37dbe9ea4d649 | /TaskScheduler/hotel_list_task.py | 0bee18d0d9cf36192d1c2f1f2dd5ddf676443a6a | [] | no_license | 20113261/p_m | f0b93b516e4c377aaf8b1741671759822ee0ec1a | ca7713de005c4c10e5cae547851a38a13211b71d | refs/heads/master | 2020-03-20T01:03:29.785618 | 2018-03-17T11:06:49 | 2018-03-17T11:06:49 | 137,065,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2017/7/11 下午5:30
# @Author : Hou Rong
# @Site :
# @File : hotel_list_task.py
# @Software: PyCharm
import Common.DateRange
import dataset
from Common.DateRange import dates_tasks
from TaskScheduler.TaskInsert import InsertTask
Common.DateRange.DATE_FORM... | [
"nmghr9@gmail.com"
] | nmghr9@gmail.com |
f415d23be4af1035d4cbc400cd5f475a7c165207 | 9bd29c69d1d65954e6594a8b371a9aa67f010a81 | /conftest.py | 9c6f052141d35eddc85238884bea5afdcb35ed99 | [] | no_license | jhunkeler/asdf | 0bb11701b64075d714add13061e85fc1ccbaa8aa | 1b41c6d04f657940c3fc02443dd3bdfd78619ba8 | refs/heads/master | 2022-03-06T04:31:18.237751 | 2019-10-22T16:22:00 | 2019-10-22T16:22:00 | 109,301,360 | 0 | 0 | null | 2017-11-02T18:07:26 | 2017-11-02T18:07:26 | null | UTF-8 | Python | false | false | 798 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
import os
import pytest
from _pytest.doctest import DoctestItem
@pytest.fixture(autouse=True)
def _docdir(request):
"""
Make sure that doctests run in a temporary directory so that any files that
are created as part o... | [
"ddavella@stsci.edu"
] | ddavella@stsci.edu |
004867de305d55875c7b5d8dc93e22bff54fff86 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/restore-the-array-from-adjacent-pairs.py | 91aa1ba0ebb1c185e6625d0352c4f6985e14a576 | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 571 | py | # Time: O(n)
# Space: O(n)
import collections
class Solution(object):
def restoreArray(self, adjacentPairs):
"""
:type adjacentPairs: List[List[int]]
:rtype: List[int]
"""
adj = collections.defaultdict(list)
for u, v in adjacentPairs:
adj[u].append(v)... | [
"noreply@github.com"
] | kamyu104.noreply@github.com |
95ae8d1b15002d3d3c3c64d60796b3909dd9c81b | cc6d94c5f0c066abdfa68c70766ed67901d2a60a | /.ipynb_checkpoints/app-checkpoint.py | b8c70774cfd1e1566a3961176091da8907a1b77f | [] | no_license | ThinhNg/MissionToMarsScrape | 82d85318bb9c82a6cd9190b946e5ae763647fd3a | ba5ff4fcc933d91f250458da5d114f97d4cba2d8 | refs/heads/master | 2020-04-23T08:59:59.660423 | 2020-03-28T03:42:47 | 2020-03-28T03:42:47 | 171,054,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | from flask import Flask, render_template, redirect
from flask_pymongo import PyMongo
import mission_to_mars.py
# Create an instance of Flask
app = Flask(__name__)
# Use PyMongo to establish Mongo connection
mongo = PyMongo(app, uri="mongodb://localhost:27017/Mars_Data")
# Route to render index.html template using d... | [
"thinhnguyenns@gmail.com"
] | thinhnguyenns@gmail.com |
105947379a933fb3d9c7594e0f9ee5edef5ec989 | 659836ef3a9ac558538b016dbf4e128aa975ae7c | /backend/ingredient/models.py | ba8262719d98f47795c66d3d2646c01dcfba676b | [] | no_license | zzerii/save_your_ingredients | fda1c769d158bca9dfd3c28ac9ff34ed7ae4e6a3 | 5ebde82255c1a6edf0c19d9032015d05c9d0abc9 | refs/heads/master | 2023-02-21T22:19:28.954594 | 2021-01-22T11:39:16 | 2021-01-22T11:39:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from django.db import models
# Create your models here.
class Ingredient(models.Model):
name = models.CharField(max_length=255)
info = models.CharField(max_length=255)
trim = models.CharField(max_length=255)
| [
"jinsoo941010@naver.com"
] | jinsoo941010@naver.com |
ab2ba507d79c1f6cd39af6514a155a35cc16393b | 18b452faa903176e5f0414aa1ae8b99097cc89b8 | /main_app/forms.py | 3549de084218a6587ea84d952a77617bf2a2837e | [] | no_license | th3dougler/collectorcollector | a6c237ed2ebb94d0f4ae8bb7aa4046893b90b1c0 | b0b815b010557e447cc0cec3bb9af78ebe4ef7bf | refs/heads/main | 2023-04-08T15:09:40.823298 | 2021-04-02T02:15:18 | 2021-04-02T02:15:18 | 352,772,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from django.forms import ModelForm
from .models import WhatGoesIn, Common_Feature
class WhatGoesInForm(ModelForm):
class Meta:
model = WhatGoesIn
fields = ['name', 'colour']
class CommonFeatureForm(ModelForm):
class Meta:
model = Common_Feature
fields = ['name'] | [
"th3dougler@gmail.com"
] | th3dougler@gmail.com |
81f995d260348ae063f7f2e60b454ad287d540e5 | 28871da79ccc0e0200a69fd629ff71de48d5b8ac | /read_log_xml_permission_file.py | 1ca06476423eb600e8d974e8193cde711b4aac98 | [] | no_license | maijaz01/django_blog | 2ffbf2537871e8da5c317d085bbc8570fa76431f | ebd91b868ebca56f1d5224ba279c706a47f98888 | refs/heads/master | 2016-09-06T02:49:43.044275 | 2015-09-07T15:12:02 | 2015-09-07T15:12:02 | 32,886,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,739 | py | import os
import pickle
import xml.etree.ElementTree as ET
class Permission(object):
def read_file(self):
""" This method will read file extention and call to respective method to get result
"""
cur_dir = os.path.dirname(__file__)
permissions_log = os.path.join(cur_dir, "permission... | [
"maijaz@zeomega.com"
] | maijaz@zeomega.com |
b278b96f504d47d06290fc42b8a90ffd778ef32f | 86e1614bc5908cee4cf4a3ca90b6177cbe94cf50 | /DocumentScannerMain.py | bb550d4bc0c1a55935af4036e57ac08020eeafe8 | [] | no_license | aryamanjain036/imageprocessingproject | 0ee4e24e9153174b2a07509db37dfe7357b33cbc | f4ed8e64f102fd2251c831a115a80a4d2e0dbf04 | refs/heads/master | 2023-03-22T11:13:03.817091 | 2021-03-26T04:36:28 | 2021-03-26T04:36:28 | 270,027,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,320 | py | import cv2
import numpy as np
import utlis
import pytesseract
webCam = True
imageLocation = "5.jpeg"
cap = cv2.VideoCapture(1)
cap.set(10,160)
heightImg = 480
widthImg = 480
utlis.initializeTrackbars()
count=0
while True:
imgBlank = np.zeros((heightImg,widthImg,3),np.uint8)
if webCam:suc... | [
"noreply@github.com"
] | aryamanjain036.noreply@github.com |
8d953f282b7786cb90d112bd8b7f8fd2757af599 | b064696e34a31d2f23eb5da4f364a09542428b44 | /tf_agents/bandits/agents/examples/v2/trainer_test.py | d9117e9018d28a7092aa409817daa2ffa23575b0 | [
"Apache-2.0"
] | permissive | vraoresearch/agents | affead659efd3b5ac232d3d9ff60a1fabe74250e | 58ffe1eec6e38a2cddcf34834d795b37e3b8843b | refs/heads/master | 2022-11-19T10:01:54.906271 | 2022-10-27T14:41:56 | 2022-10-27T14:42:23 | 293,401,771 | 0 | 1 | Apache-2.0 | 2020-09-07T02:23:54 | 2020-09-07T02:23:53 | null | UTF-8 | Python | false | false | 11,646 | py | # coding=utf-8
# Copyright 2020 The TF-Agents 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
a07da680c32548d6d654f4d01f59d3f272342446 | 6e2dcf256edb612c76e734ced750285d8fcc3233 | /FirstProject/urls.py | ed0bdf1c26ceec833f9828075af4f3c449c0b58b | [] | no_license | ShubhamWorks78/DjangoFirst | 2a49f4372caed0208959281143c25fdcf2a1cb84 | 6f853d305bb7fa645f6d3817b33b53de151b29e6 | refs/heads/master | 2021-05-02T15:57:17.979561 | 2016-11-01T20:07:08 | 2016-11-01T20:07:08 | 72,571,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | """FirstProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cla... | [
"2014UGEC@nitjsr.ac.in"
] | 2014UGEC@nitjsr.ac.in |
420f08dd3e3e41f5242c270cc9e6a957d4aeaa38 | 47a8b678c8a9b8105a4462253c84a2aad9eb5705 | /test.py | 6b32f8183fc5f34f8e4bdc7d9915b143965a838e | [] | no_license | megdailey/test | 5b7e8692557730081d2c7221d0ccb2858eaf1676 | 504ff9e2bf46b78ebd3bad3eea1670c9c6749658 | refs/heads/master | 2020-05-15T12:27:31.035264 | 2019-04-19T13:49:32 | 2019-04-19T13:49:32 | 182,264,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | print(2+2)
print(1+1)
print(1+1)
| [
"mmd0130@gmail.com"
] | mmd0130@gmail.com |
754d441707341b8ba8d827ed526ecce1b52c54ed | fd4dd0ce51eb1c9206d5c1c29d6726fc5f2cb122 | /src/kafka_consumer.py | 2c15842317f104c1081a9e44920ee8bec1234986 | [] | no_license | kbaseapps/relation_engine_sync | 0a9ae11326245b98bd173d77203ff49ccd222165 | def99d329d0d4101f3864e21a3e1a6ecb34fa6e0 | refs/heads/master | 2020-04-12T13:07:27.771094 | 2019-08-05T23:53:50 | 2019-08-05T23:53:50 | 162,512,534 | 0 | 0 | null | 2019-08-05T23:53:51 | 2018-12-20T01:56:13 | Python | UTF-8 | Python | false | false | 3,996 | py | """
Consume workspace update events from kafka.
"""
import json
import traceback
from confluent_kafka import Consumer, KafkaError
from src.utils.logger import log
from src.utils.config import get_config
from src.utils.workspace_client import download_info
from src.utils.re_client import check_doc_existence
from src.im... | [
"jayrbolton@gmail.com"
] | jayrbolton@gmail.com |
346858d357244e5d68bd63d2933ad76895e0112c | 5f4cb8907900ebb740b5bd22c932ef7bbb847eb9 | /train.py | 0239e8b311f96c5390e162302512fb6528de344a | [] | no_license | DeeperCS/distillation | b3c13965142683324ae7846c7442f3da0f2739ac | a42a34ee17ccce8fc9319231d86a0ffd7f3d013d | refs/heads/master | 2022-12-20T21:36:02.750087 | 2020-09-28T09:53:40 | 2020-09-28T09:53:40 | 299,263,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,141 | py | from __future__ import print_function
import argparse
import numpy as np
import os
import shutil
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torchvision import datasets, transforms
from torch.autograd import Variable
from models import resnet
from models import ... | [
"zy3381@vip.qq.com"
] | zy3381@vip.qq.com |
cccac8d820d9d534647989e6cfc573f5a94e1876 | 5c15aba2bdcd4348c988245f59817cbe71b87749 | /src/trial.py | 00cd0826415c55ab5e87e90071586c86ffae075a | [] | no_license | chengshaozhe/commitmentBenefits | f7db038333ee95217713d1d4b2a1fb3d0c295fdd | 0388803960bc9995ffbcfb6435c134e488a98b63 | refs/heads/master | 2023-03-27T02:31:01.522997 | 2021-01-12T10:18:12 | 2021-01-12T10:18:12 | 310,592,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,356 | py | import numpy as np
import pygame as pg
from pygame import time
import collections as co
import pickle
import random
def calculateGridDis(grid1, grid2):
gridDis = np.linalg.norm(np.array(grid1) - np.array(grid2), ord=1)
return int(gridDis)
def creatRect(coor1, coor2):
vector = np.array(list(zip(coor1, co... | [
"shaozhecheng@outlook.com"
] | shaozhecheng@outlook.com |
be0e8fe88af319157a3e763aa35b275b56f17d8c | 3d794e38aca224f80e1af0eb3536e031cd784c6d | /_posts/some_other_code.py | b731d9cc9d295b6e99c54236ca7d3b64885d7f17 | [
"MIT"
] | permissive | PhilStem/PhilStem.github.io | ffe785683f7b0cbcacef24bc2eaf8441c21dbd7b | cfa3f0a4fc306117e06c24ad8f3999317ef59884 | refs/heads/master | 2022-10-17T21:28:49.895524 | 2020-09-11T18:34:16 | 2020-09-11T18:34:16 | 236,303,734 | 0 | 0 | NOASSERTION | 2022-10-06T09:07:08 | 2020-01-26T11:38:24 | HTML | UTF-8 | Python | false | false | 91 | py | from sklearn.utils.estimator_checks import check_estimator
check_estimator(LinearRegressor) | [
"philipp.stemberger@gmail.com"
] | philipp.stemberger@gmail.com |
3c6a173d531bdd508f51562417c45192f91fcba7 | 9319dddcfded4150ca9ee7b2a08c6ad993f20005 | /model/BmeEntity.py | d55aa036a247ded4e7388e58dcea2d10d946c445 | [] | no_license | agrdan/bme_test_1 | 5567a06d71b6ad39b7c2d439657c465e390af6fd | e5715589ee4972bed762581dc4b85ddd7f505455 | refs/heads/master | 2023-03-08T00:16:02.166894 | 2021-02-16T07:27:51 | 2021-02-16T07:27:51 | 339,308,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | from helper import db
class BmeEntity(db.Model):
__tablename__ = 'analytics'
id = db.Column(db.Integer(), primary_key=True)
temperature = db.Column(db.Float())
gas = db.Column(db.Integer())
humidity = db.Column(db.Float())
pressure = db.Column(db.Float())
time = db.Column(db.String(20)) | [
"Andreas.Grdjan@emilfreydigital.hr"
] | Andreas.Grdjan@emilfreydigital.hr |
aa893b07c3613f505969019869fe7e5913d60a10 | 8634b4f7f2293bf431ba8ed59e95f80abc59483f | /Homework/10/orderdict.py | fae771bb2e90cba4047e19dc516c8e03b0f7b948 | [] | no_license | TitanVA/Metiz | e1e2dca42118f660356254c39c7fadc47f772719 | e54f10b98226e102a5bb1eeda7f1e1eb30587c32 | refs/heads/master | 2020-12-22T11:44:58.746055 | 2020-02-10T14:41:16 | 2020-02-10T14:41:16 | 236,770,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | from _collections import OrderedDict
favorite_languages = OrderedDict()
favorite_languages['jen'] = 'python'
favorite_languages['sarah'] = 'c'
favorite_languages['edward'] = 'ruby'
favorite_languages['phil'] = 'python'
for name, language in favorite_languages.items():
print(name.title() + '\'s favorite language i... | [
"viktorbezai@gmail.com"
] | viktorbezai@gmail.com |
d86da89a7837039de5cc9432332391c1929d6f86 | d2e8ad203a37b534a113d4f0d4dd51d9aeae382a | /django_graphene_authentication/django_graphene_authentication/signals.py | 47adcc189eddf36fa915f1ac41f05cdf7b2ebd8f | [
"MIT"
] | permissive | Koldar/django-koldar-common-apps | 40e24a7aae78973fa28ca411e2a32cb4b2f4dbbf | 06e6bb103d22f1f6522e97c05ff8931413c69f19 | refs/heads/main | 2023-08-17T11:44:34.631914 | 2021-10-08T12:40:40 | 2021-10-08T12:40:40 | 372,714,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | from django.dispatch import Signal
# providing_args=['request', 'refresh_token']
refresh_token_revoked = Signal()
# providing_args=['request', 'refresh_token', 'refresh_token_issued']
refresh_token_rotated = Signal()
| [
"massimobono1@gmail.com"
] | massimobono1@gmail.com |
f8b009384d048023c27af00144f2eed20a7e0cf7 | 64363c8f80d760045996cbda1e0f578c07378c5b | /1-50/problem12/problem12.py | fce34ccd85da4c311a28f9a29d21512305111dbb | [] | no_license | ducngtuan/euler | ad1dd05cb044a067d0ab029ea7531128260b0d11 | c362d134dff02f639eae1c38508bc0f5cfdba07b | refs/heads/master | 2020-12-24T15:58:56.125110 | 2013-02-03T12:22:10 | 2013-02-03T12:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | def generate(n, acc=0):
if n == 0:
return acc
if n % 2 == 1:
return generate(n - 1, n + acc)
return acc + n * (n + 1) / 2
def divisors_count(n):
sqrt = int(n**0.5)
count = len([x for x in range(1, sqrt) if n % x == 0]) * 2
if sqrt * sqrt == n: count +=1
return count
i = 1... | [
"duc.ngtuan@googlemail.com"
] | duc.ngtuan@googlemail.com |
beb5f16630c055d23a39b70cb7f9dc6234831038 | c3b3b20b0a6d1a22857011b3d93e9090f270b536 | /service/routes/bookinghistory.py | 248752e92fc2b51d6714c6408cf1a298f46316e0 | [] | no_license | mindmedia/thecage-booking-backend-admin | ea105b61801a299ab1fe568ebcf2299157bb3b7a | a0169aaa7e5a42d6b6a9a245a5393fa3712e3d65 | refs/heads/master | 2022-04-12T04:22:58.450042 | 2020-02-28T15:47:25 | 2020-02-28T15:47:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,359 | py | from service.models import (
PurchaseLog,
PurchaseItem,
Pitch,
Product,
Field,
purchase_log_schema,
purchase_logs_schema,
purchase_log2_schema,
purchase_log2s_schema,
purchase_item_schema,
purchase_items_schema,
)
from flask import request, jsonify
from service import app
fro... | [
"XINGHAN.17@ichat.sp.edu.eg"
] | XINGHAN.17@ichat.sp.edu.eg |
9eb53df032e3c06138e6c43f5b306169140d64a0 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part006719.py | 42aa4358fcc37db511e0345b6fdde91a2bd9246d | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
1d8bc9d7b9f1f8b71aaa271d97fd4d185b45f925 | 8bb086072e203a802bb2e8a34ca611a7daaa3ce2 | /subject_selection/select_3T_subjs_with_short_scans.py | 05a709a416819ee2033cf26a9d12cca22a2ea8b7 | [] | no_license | Washington-University/HCPpipelinesXnatPbsJobs | b4826af8f35561be56538b45eef138df51ff6490 | 9658c6dd487064cc6184c819911fe1fdf1b7aca9 | refs/heads/master | 2021-06-28T11:40:53.092452 | 2020-11-13T18:29:52 | 2020-11-13T18:29:52 | 154,562,056 | 0 | 1 | null | 2019-05-06T15:13:57 | 2018-10-24T20:03:47 | Shell | UTF-8 | Python | false | false | 2,579 | py | #!/usr/bin/env python3
# import of built-in modules
import os
import sys
import subprocess
# import of third party modules
pass
# import of local modules
import hcp.hcp3t.archive as hcp3t_archive
import hcp.hcp3t.subject as hcp3t_subject
# authorship information
__author__ = "Timothy B. Brown"
__copyright__ = "Copy... | [
"junilc@wustl.edu"
] | junilc@wustl.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.