blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
00a2fcb8c398eaefec59b1dd1683a81ba6755463 | 1829259b1d3289d223d23c12c8e73522c8cc604e | /bots/bayes_bollinger_multicoins_simple.py | 9415bca809eeb423f088078b00328251220b8038 | [] | no_license | grassygrandma/trality_code | 4fd54bf76184dc0f13bab24d54311725f9761f32 | f703e8b9880b4da690267e81f65f59c42dacf901 | refs/heads/master | 2023-04-12T06:04:46.231534 | 2021-05-02T08:15:02 | 2021-05-02T08:15:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,240 | py | """
Ported from https://bango29.com/bayesian-probability-as-an-oscillator/
"""
from numpy import greater, less, sum, nan_to_num
def initialize(state):
state.number_offset_trades = 0;
state.bbres_last = {}
state.orders = {}
state.params = {}
state.params["ZILUSDT"] = [0.12, 0.16, 15]
state.par... | [
"francesco.favero@bric.ku.dk"
] | francesco.favero@bric.ku.dk |
e6cdf6bfe6bc7d1c2ad22c9b185bfb7f50e4ee50 | 8d0ad0d028c58d7fc36065253fa5b8a155cd57e9 | /api/serializer.py | b2c69f3ca80024d1838e7c8958973124844cd0e9 | [] | no_license | vikas-vm/django-movie-rater-backend | 2ce36b9064e2d9c65d4f8d4b6a360ad778971f7b | 2f0bc6f523ac5098d7ebe7828ff4e73c1c7fbe9b | refs/heads/master | 2022-12-02T05:16:54.401839 | 2020-08-21T15:04:27 | 2020-08-21T15:04:27 | 286,957,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | from rest_framework import serializers
from api.models import *
class MovieSerializer(serializers.ModelSerializer):
class Meta:
model = Movie
fields = ['id', 'title', 'description', 'no_of_rating', 'avg_rating']
class RatingSerializer(serializers.ModelSerializer):
class Meta:
model =... | [
"vikas.vm788@gmail.com"
] | vikas.vm788@gmail.com |
d82bcff3470d9ecba6e4951c77804232d75f55de | ed451166513a3c7591cc48636b412ec87ea2e349 | /webservice/wsgi.py | 26b2203546f095c63fa71ce898e10eb1a5855b69 | [
"Apache-2.0"
] | permissive | GeoGateway/GeoServer | b2fd8066d32f506580a8752b2d9d63161638534d | 081846ca0fa067f9928d1449d11e1bcae0591313 | refs/heads/master | 2020-12-24T16:07:03.923527 | 2018-04-09T19:36:25 | 2018-04-09T19:36:25 | 35,549,770 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | """
wsgi.py
-- run as flask wrapper as wsgi application
-- run as non-root user: ~/miniconda3/bin/mod_wsgi-express start-server wsgi.py &
"""
from server_debug import app as application
| [
"wang208@indiana.edu"
] | wang208@indiana.edu |
7b3352f8e89be8684f0433bad62048cdf7fabde4 | cd947c65de4aa2c44efa6f3593a7b90f2bba2d5c | /classify.py | b12a3daefaeb90921b5c4ea5ef8d00ed4c980f35 | [] | no_license | sharmarochan/object_classifire_transfer_learning | e8cdfdab7f9a676fc98e558219061a1cef774ca2 | 337bc5485f322e4452f5e0d73ae54b02d38857ac | refs/heads/master | 2020-04-29T03:37:08.548125 | 2019-03-15T12:35:03 | 2019-03-15T12:35:03 | 175,817,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,605 | py |
# set the matplotlib backend so figures can be saved in the background
import matplotlib
matplotlib.use("Agg")
from vgg16 import VGG16
from keras.preprocessing.image import ImageDataGenerator
from keras.optimizers import Adam
from sklearn.model_selection import train_test_split
from keras.preprocessing.image import im... | [
"noreply@github.com"
] | sharmarochan.noreply@github.com |
44992801bfb29625f99e014e69da6198fb02111b | 70b324f576bfd237acd3281d77bb2a7245819e3b | /sound_expansion/Train.py | edf6a5a7ac366f7cb63350c35d3e4585e6e23d58 | [] | no_license | wzm2256/cgCNN | 604e254550c5b0f41d556d4cd105a243770f007e | e446033236e05131097a44d694a0f268b8a6feff | refs/heads/master | 2022-05-05T07:50:27.689704 | 2022-03-14T11:03:40 | 2022-03-14T11:03:40 | 228,800,415 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,993 | py | import tensorflow as tf
import numpy as np
import keras
import Model
import PIL.Image as Image
import argparse
import matplotlib.pyplot as plt
import time
import librosa
import os
import Generator
parser = argparse.ArgumentParser(description='Sound texture expansion. Training phase')
parser.add_argument('image1', typ... | [
"wzm2256@qq.com"
] | wzm2256@qq.com |
414158c1795c03d6c2c3e7b07ca9c71025ad328a | 8582cd964dac0dc70f8cbf78953a531d5b7c33ae | /p4/project.py | 5d32b3735378cfb7628d57d778fec3e9a17ac8d6 | [] | no_license | karimmagdy/udacity-full-stack-web-developer-nanodegree | 748a56c68e05e3c3cdc73492ffaf60c88bf760b7 | 469ffc1df510d192f903cef9a54916ce60b1478a | refs/heads/master | 2021-01-16T18:39:40.097932 | 2017-08-12T12:37:32 | 2017-08-12T12:37:32 | 100,109,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,974 | py | from flask import Flask, render_template, request, redirect, jsonify, url_for, flash
from sqlalchemy import create_engine, asc, desc
from sqlalchemy.orm import sessionmaker
from database_setup import Base, Category, MenuItem, User
from flask import session as login_session
import random
import string
from oauth2client.... | [
"noreply@github.com"
] | karimmagdy.noreply@github.com |
73f95d66ed2b3003de7578df415c1fba1bd660f0 | 61a9e53579abc2692ca2883379d2e5b574392299 | /api_basic/migrations/0001_initial.py | f5a038fc785e9d2bdccf4aabb4f477a2e604e61a | [] | no_license | hamidallah/django_rest_framework | 1f3f1cebdee760f501e51ec42d2fdf6fa58a1b85 | f99e54ab64211ee5b9ce99bea8d42c56b0151bbd | refs/heads/master | 2023-02-13T23:47:28.319562 | 2021-01-04T14:04:54 | 2021-01-04T14:04:54 | 326,643,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | # Generated by Django 3.0a1 on 2020-12-30 11:06
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Article',
fields=[
('id', models.AutoField(... | [
"hamdi001@gmail.com"
] | hamdi001@gmail.com |
61759c7c813dc4b235cc7c11e15acff17aeee1d5 | 5bd5f8b116cc685bd85b8276b5e94b399a3e14f8 | /migrations/versions/b548275df8c5_added_admin_column_in_user_table.py | be801578040c5ba3f90da357ea4173da288dd3ca | [] | no_license | Ngu0210/ASEAN_HUB | 69eee6aeaf83b6a3de66d96e7737ecf52b8a1f6f | fcb5d0d7f92189e5fa0beb24f48babd0229b6395 | refs/heads/master | 2023-02-15T16:44:47.983095 | 2021-01-06T13:23:49 | 2021-01-06T13:23:49 | 321,985,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | """added admin column in User Table
Revision ID: b548275df8c5
Revises: 5d693ca1be8e
Create Date: 2021-01-04 20:50:21.719760
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b548275df8c5'
down_revision = '5d693ca1be8e'
branch_labels = None
depends_on = None
de... | [
"dannynguyen312@gmail.com"
] | dannynguyen312@gmail.com |
b494b3cfe84c7cbc8bc786011cbdf475cdf6b809 | 7aa233ca9112cf2c0c0aa28c9cc769dc86912566 | /BasicSorting/selection_sort.py | ec6e718f9f1e032fbaa1251a344f60a1bd56e3ee | [] | no_license | ositowang/IMooc_introToAlgorithm | e65191964bbcb12b0585ae9a78268d17edf93c67 | 07aa7d4a6d2404bcd16c656f01e12f4a74e2e3e3 | refs/heads/master | 2020-03-26T02:42:35.555413 | 2018-10-26T02:01:23 | 2018-10-26T02:01:23 | 144,420,738 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | """
N平法复杂度的算法
选择排序
我们从第一个开始,从头到尾找一个个头最小的小盆友,然后把它和第一个小盆友交换。 然后从第二个小盆友开始采取同样的策略,这样一圈下来小盆友就有序了。
"""
def selection_sort(array):
for i in range(0,len(array)):
# 假设当前下标的值是最小的
min_index = i
# 从当前下标的下一个开始遍历
for j in range(i+1,len(array)):
#如果值小于当前的最小值,就更新当前最小值的下标
i... | [
"wangren0518@outlook.com"
] | wangren0518@outlook.com |
477bbdbe4751621e12c8baf674c5bfba819a2549 | ef329feffcc5f96e6e7d1d56cae6b96675e18f00 | /multiagent/rendering/shape_creation.py | c01c90e9536d08ac10ae52a214e7aa8b4ebba416 | [
"MIT"
] | permissive | AstridVanneste/multiagent-particle-envs | 57d3bc1f22c1628850fe0371991d2ba3f9287a46 | 2d55925381875dcd87d51b76853773d38f9f82b5 | refs/heads/master | 2020-04-26T09:21:03.852896 | 2019-03-06T12:27:43 | 2019-03-06T12:27:43 | 173,452,514 | 0 | 0 | null | 2019-03-02T13:39:59 | 2019-03-02T13:39:59 | null | UTF-8 | Python | false | false | 1,015 | py | import math
from multiagent.rendering.attributes import Transform
from multiagent.rendering.shapes import *
import pyglet
def make_circle(radius=10, res=30, filled=True):
points = []
for i in range(res):
ang = 2*math.pi*i / res
points.append((math.cos(ang)*radius, math.sin(ang)*radius))
... | [
"astrid.vanneste1@gmail.com"
] | astrid.vanneste1@gmail.com |
ffc4df0d4d6b13b34a7f3725423287ea49b34b58 | 1aa647e53dcac0b55c8dc774bd485cd53fddf818 | /Subscribers/models.py | dfa70d7583a6f0592b02e0d0728b4f76a826e5be | [] | no_license | Kzkshish/150th-kaiseifes-backend | 26468176f1eeeb7c823648d8444f0d9727733ecd | 7c411e4047491cb6876533ec807e8e21f2f24d28 | refs/heads/main | 2023-07-15T10:05:45.830112 | 2021-08-16T00:24:36 | 2021-08-16T00:24:36 | 378,337,892 | 0 | 1 | null | 2021-06-19T06:09:04 | 2021-06-19T06:09:03 | null | UTF-8 | Python | false | false | 203 | py | from django.db import models
# Create your models here.
class Subscriber(models.Model):
name = models.CharField(blank=False, max_length=30)
email = models.EmailField(blank=False, unique=True)
| [
"keigo0827511@gmail.com"
] | keigo0827511@gmail.com |
c32f6acbb51524936fd061fcadbddfa42e266bbe | 5112ea6c473e42d3db48ed3a7d0937c692846cc3 | /parseFileName.py | 569b9dd871d7d2bdda33ba12cbae555476cb3ca1 | [] | no_license | sweetgoofy/scripts | 8be59b518f14f02824c8cef7dbbf812358453093 | fd1c9699e2620c99ffc97939071fdb8861ff4300 | refs/heads/master | 2021-01-23T13:53:26.626790 | 2014-10-03T05:27:58 | 2014-10-03T05:27:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | from pyxll import xl_func
from pyxll import xl_macro
import re
@xl_func("string path: string",macro=True)
def parseFilePath(path):
# C:\Users\uqgzhan3\Desktop\PhD_Exp_Data\Series_B2\20140314\steps8-9\x'=10cm\h=0.1395
sTuple=path.split('\\')
dateRE=re.compile('\d\d\d\d\d\d\d\d')
hRE=re.compile('h=[0.\d*]')
date=""
... | [
"gangfu.zhang@uqconnect.edu.au"
] | gangfu.zhang@uqconnect.edu.au |
b0f33f7fcb55a25559aa9ec6e4005f66fd5f16e2 | 93e8c89c7d83c00280c32ea9f5330d3d4cf9a6d9 | /ch_10_oops/03_instance_class_attributes.py | 15f55e56c13b45b76c5dba6b6df9c1a4364bb31a | [] | no_license | vidhisharma1212/oops | 1d76940d084b3828db6f4bd9093ee18a8e512183 | fb4252683c652a18c818948dd328c8903f2d04ee | refs/heads/main | 2023-07-01T21:28:46.823861 | 2021-08-09T08:40:54 | 2021-08-09T08:40:54 | 393,379,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | class Employee:
company= 'Google'
# salary= 900
vid= Employee()
ron= Employee()
shyam= Employee()
# vid.salary= 300
# ron.salary= 500
Employee.salary= 900
print(vid.salary)
print(ron.salary)
print(shyam.salary)
shyam.salary=100000
print(shyam.salary)
print(vid.company)
print(ron.company)
Employee.company= ... | [
"vidhisharma921@gmail.com"
] | vidhisharma921@gmail.com |
3561464430e2b8e3c091c79133947198d552250e | 804b5a5458e35af94d30da90ec5d998c5cac7db2 | /tests/test_faker.py | 3ac623a5b61fab2dff3d1bbd802c710d2cb4764d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nedbat/scriv | dcaa80a2871f8014ec2b124402e1f412c4e18ab5 | 1f855e1c309c364abfb75b8fa662a3a277c27ef9 | refs/heads/main | 2023-08-15T04:54:28.734933 | 2023-07-26T10:18:15 | 2023-07-26T10:18:15 | 283,308,214 | 227 | 21 | Apache-2.0 | 2023-09-07T23:24:05 | 2020-07-28T19:28:36 | Python | UTF-8 | Python | false | false | 573 | py | """
Tests of tests/faker.py
Mostly error paths, since the happy paths are covered by other tests.
"""
from scriv import shell
def test_no_such_command(fake_run_command):
assert shell.run_command("wut") == (
False,
"no fake command handler: ['wut']",
)
def test_no_such_git_command(fake_git)... | [
"ned@edx.org"
] | ned@edx.org |
6ae5a9e63dbccb8081717ed1509bf13e896b6530 | e5aae0d2ee410e3d5fd17dcb45b8512bd922ef8c | /Algorithms/Labs/LG6/Q1try.py | aac1351492c21958609403489172b8d508035d2d | [] | no_license | Abdullah12has/projects | ef353ce2c087c800b9ae124478650d25af5f5e90 | 5a71cb40a030e2bd03ebe094ac70bafbf447bcb8 | refs/heads/main | 2023-03-30T04:12:36.332617 | 2020-12-15T22:00:35 | 2020-12-15T22:00:35 | 321,737,191 | 0 | 0 | null | 2021-03-25T20:13:58 | 2020-12-15T17:16:07 | Java | UTF-8 | Python | false | false | 443 | py | import time
import numpy as np
def insertionSort(a):
n=len(a)
for i in range(1,n):
v=a[i]
j=i-1
while j>=0 and a[j]>v:
a[j+1]=a[j]
j-=1
a[j+1]=v
return a
for i in range(4):
print("Some part of array",i)
arr=np.random.randint(0,100001,1000)
... | [
"abdullah.hassan@ug.bilkent.edu.tr"
] | abdullah.hassan@ug.bilkent.edu.tr |
eee813bc568246e104455e856e8360de7d16c2cb | 975fb6bf66c878415a880003c2d635163cb664d8 | /qoc/standard/functions/convenience.py | 35ea6b8916c0317e9234a845118aaab8e03ea59a | [
"MIT"
] | permissive | SchusterLab/qoc | 8833628a9b7df3727b982b667310059563dfded7 | 36d615170effc1b705d4543d92f979e511edfec2 | refs/heads/master | 2023-06-07T07:49:33.720205 | 2023-03-12T20:19:55 | 2023-03-12T20:19:55 | 198,457,530 | 12 | 14 | MIT | 2021-05-10T02:23:11 | 2019-07-23T15:24:41 | Python | UTF-8 | Python | false | false | 2,797 | py | """
convenience.py - definitions of common computations
All functions in this module that are exported,
i.e. those that don't begin with '_', are autograd compatible.
"""
from functools import reduce
from autograd.extend import defvjp, primitive
import autograd.numpy as anp
import numpy as np
import scipy.linalg as ... | [
"tcpropson@gmail.com"
] | tcpropson@gmail.com |
96ed3c42b4f2468ce86d3bd31ed26fe569bbaae1 | a8fdfffcf01c1e0d57b5353dda837017e3b3da21 | /al/al-321.py | 8a405b45c07614f551222064ebd741bc87003dc5 | [] | no_license | WoodsChoi/algorithm | 48a3c88d2cc1eb23fa2bbd6099648ba674909ec0 | 9e118421e14f5130b80968d89ed547bc3c84a952 | refs/heads/master | 2023-04-18T03:10:44.448215 | 2021-04-23T09:16:30 | 2021-04-23T09:16:30 | 48,409,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,883 | py | # 拼接最大数
# hard
'''
给定长度分别为 m 和 n 的两个数组,其元素由 0-9 构成,表示两个自然数各位上的数字。现在从这两个数组中选出 k (k <= m + n) 个数字拼接成一个新的数,要求从同一个数组中取出的数字保持其在原数组中的相对顺序。
求满足该条件的最大数。结果返回一个表示该最大数的长度为 k 的数组。
说明: 请尽可能地优化你算法的时间和空间复杂度。
示例 1:
输入:
nums1 = [3, 4, 6, 5]
nums2 = [9, 1, 2, 5, 8, 3]
k = 5
输出:
[9, 8, 6, 5, 3]
示例 2:
输入:
nums1 = [6, 7]
nums2 = [6, 0... | [
"rinchoi000@yeah.net"
] | rinchoi000@yeah.net |
7e9cdd33e3135e36a5792748072eb7311963317b | c2fbf0845e7d334c4340989d472f5cdd8beb90e0 | /Scrapy/ebay/ebay/spiders/search.py | fd228373dbadfa49bcf469fc6359528ca3756981 | [] | no_license | lzxdale/Tiny-Study | 18953f773100f6068590f3ac3d3422b36e7de37d | 032bda6a045b65d769d09851efc2bcf77a414d7b | refs/heads/master | 2020-06-22T09:41:42.437933 | 2019-10-11T03:39:58 | 2019-10-11T03:39:58 | 197,692,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,683 | py | # -*- coding: utf-8 -*-
import scrapy
from ..items import EbayItem
<<<<<<< HEAD
=======
import csv
>>>>>>> df5356f1b627531b9aa88ae782345e3ef3fa439f
# Lenovo Thinkpad T-series
# Lenovo Thinkpad E-series
# Dell Latitude 7-series
# Dell Latitude 5-series
# HP Probook
# HP Elitebook
the_list = ['Lenovo Thinkpad T',
... | [
"dalelin.zx@gmail.com"
] | dalelin.zx@gmail.com |
26f9f6d54db768abd87782cee821114895744b8d | af4108fd21e23ecb5a14d9762b2b7abc2731e594 | /cytoseg/point_set.py | 7cbadf892d71355631ede85e983249b5b1bf1a5e | [] | no_license | rgiuly/celltracer | 3e940f64cabd08e3b41c64b7c280fac3e113d622 | 2de07dd025181c7e1f2d88b5554ebab87c51dc69 | refs/heads/master | 2020-05-29T17:56:18.492733 | 2013-09-19T20:34:18 | 2013-09-19T20:34:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,463 | py | #This software is Copyright 2012 The Regents of the University of California. All Rights Reserved.
#Permission to use, copy, modify, and distribute this software and its documentation for educational, research and non-profit purposes for non-profit institutions, without fee, and without a written agreement is hereby g... | [
"rgiuly@gmail.com"
] | rgiuly@gmail.com |
2b112ccb194f9ad783c20cb17572fb0072f813b1 | 14804b282e567bf45c974b9a55cbdfa1907c5958 | /16_Standard_Library/A_Modules/_turtle_04.py | cd5ff64ebe782eaa5fac54f84e57482e0cd772a7 | [
"MIT"
] | permissive | Oscar-Oliveira/Python-3 | cfdcbcf4548144fb2488625f53f76b20e4d8c5b0 | fa791225a6810b75890d24407b73c5e1b514acbe | refs/heads/master | 2021-09-26T06:27:16.367956 | 2018-10-27T10:42:21 | 2018-10-27T10:42:21 | 101,991,657 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | """
turtle
"""
import turtle
import random
colors = ["blue", "black", "brown", "red", "orange", "green",
"yellow", "beige", "turquoise", "pink"]
wn = turtle.Screen()
turtles = [turtle.Turtle() for _ in range(10)]
for i, t in enumerate(turtles):
t.shape("turtle")
t.color(colors[i])... | [
"oscar.m.oliveira@gmail.com"
] | oscar.m.oliveira@gmail.com |
2d023ce13d42aeef06d982be4b8609792e5496ca | 23fddc940a266c2d1d0e0b1687c36cdbcc9d54d9 | /app/admin/__init__.py | b72f72aeec303c88ed6a8f146eb448e50be15bcf | [] | no_license | Cuick/traversing | 210fcfb1c780037de59343fffeb4fa4d3f2eae32 | c78982580af7f63c8bff4dcb37005b7f7c682b5b | refs/heads/master | 2021-01-10T17:38:37.899460 | 2016-11-18T06:06:55 | 2016-11-18T06:06:55 | 55,397,540 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | #-*- coding:utf-8 -*-
"""
created by server on 14-5-26上午11:59.
"""
import action
def doWhenStop():
"""服务器关闭前的处理
"""
pass
| [
"zxzxck@163.com"
] | zxzxck@163.com |
b19d434781142f37410501430fbe0f4081837f2a | 532a5d955ae56e18b594b7f1a22393b0e2e24c68 | /OAuth_view.py | acf36e93cc6a490c9b2667222f777e80e9a64f3b | [] | no_license | minhquan0902/Restful-API-practice | 1aa35741c3a2436e9e4cd7d5733e290bd7a008ba | d171bf8ca242a22461fc340db1c3d39f26d01de2 | refs/heads/master | 2022-11-29T09:45:53.398879 | 2020-08-03T17:17:38 | 2020-08-03T17:17:38 | 284,760,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,337 | py | from OAuth_model import Base, User
from flask import Flask, jsonify, request, url_for, abort, g, render_template
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship, sessionmaker
from sqlalchemy import create_engine
from flask_httpauth import HTTPBasicAuth
import json
# NEW... | [
"minhquan0902@gmail.com"
] | minhquan0902@gmail.com |
c489db350d660c8d029630cfa423fb320fa3261f | 42d784fa50dba055fbad5d1edd5944e2955bbcdf | /Development/Simulation/source code/debugging code/wsa_debugging.py | d61243ca2680b3ba36afe8c57c22734b475e4ad1 | [] | no_license | AdamPurnomo/Deep-Learning-based-Grasp-Planning | 711150e415493ce86521acc40887b6a3b560c389 | f062daa61119396ea95e9911eb319c082999dcab | refs/heads/main | 2023-08-29T07:28:23.226467 | 2021-11-03T06:08:50 | 2021-11-03T06:08:50 | 336,787,296 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,500 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Mar 16 17:34:58 2020
@author: Adam Syammas Zaki P
"""
import numpy as np
from scipy.spatial import ConvexHull
import matplotlib.pyplot as plt
from itertools import product, combinations
from mpl_toolkits.mplot3d import Axes3D
friction_coef = 0.5
n_cone = 6
t_scal = 1/20
loc... | [
"adamsyammaszaki@gmail.com"
] | adamsyammaszaki@gmail.com |
cc6056f9c2bfd45ecbfd6e0b56945f89b4ee2528 | 49cbc90806e5b3a813b0d87e090d901719067c7c | /imagehub/__init__.py | ceb9ac2734e4776311100da29882e5b9f2f417ea | [
"MIT"
] | permissive | jeffbass/imagehub | 1bddd419cd1106858cc0d30498825583ee7ff712 | 058c2059e643f78391cb526e687586c9213dbd33 | refs/heads/master | 2022-04-26T11:26:32.250284 | 2022-04-08T23:03:55 | 2022-04-08T23:03:55 | 166,520,487 | 22 | 15 | MIT | 2020-08-05T23:19:15 | 2019-01-19T07:46:10 | Python | UTF-8 | Python | false | false | 664 | py | """imagehub: receive and save images and events from imagenodes
Receives and stores event messages and event images from multiple
sources simultaneously. The sources are Raspberry Pi (and other) computers
running imaganode.py to capture and send selected images and event messages.
Typically run as a service or backgr... | [
"jeffbass42@gmail.com"
] | jeffbass42@gmail.com |
839c4e31901e4b13edfbabe7546cc5942dda6fcc | 4517c8e82009df11dc8b20fd1d9c8d20345f8ca2 | /download_raw_updates/routeviews/list_files.py | 9301e99e692b36babc02c07f7f48f74ba15122d4 | [] | no_license | jracker/bgp-convergence | a52767bf6e94540b42838c6e5c6c967fc140d35a | 6ad10a11bc178f9dbfbbb520c28f0e96da792a69 | refs/heads/master | 2022-03-04T15:24:35.830344 | 2019-11-11T01:20:04 | 2019-11-11T01:20:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,524 | py | import glob
import subprocess
import shlex
month = "07"
day = "01"
#files_list = glob.glob("./updates.*")
files_list = ["./updates.2018"+month+day+".0430.bz2","./updates.2018"+month+day+".0230.bz2","./updates.2018"+month+day+".2145.bz2","./updates.2018"+month+day+".1830.bz2","./updates.2018"+month+day+".1400.bz2","... | [
"ricardo.bennesby@gmail.com"
] | ricardo.bennesby@gmail.com |
5c360cd69ec3951d29d1a40ce60ff2c0b30db3fb | a6c516f69b29dfc0b6a82078b9e5e74be856dd94 | /scripts/initialize_db.py | 95448b36be6c4d5058a0a4dfc9d659e0c8a897da | [] | no_license | scottwedge/InfraredSpectraDBApp | 894469b88947de420347bc767661ff057ee00b04 | d451a6613e4669fe09cddc7164913d85320878fc | refs/heads/master | 2021-05-16T19:00:36.065396 | 2019-06-17T10:53:19 | 2019-06-17T10:53:19 | 250,430,443 | 0 | 0 | null | 2020-03-27T03:25:05 | 2020-03-27T03:25:04 | null | UTF-8 | Python | false | false | 2,023 | py | import os
import sys
import transaction
from pyramid.paster import bootstrap, setup_logging, get_appsettings
from sqlalchemy.exc import OperationalError
from pyramid.scripts.common import parse_vars
from .. import models
from ..models import FTIRModel, User, Spectra, Spectra_detail, Graph_experiment
from ..mo... | [
"noreply@github.com"
] | scottwedge.noreply@github.com |
2838032e9f4f84210a99a998fc76a7c5634b40c5 | 357fc6624b1c6863017c8fb19222e2493100c0ef | /dom4.py | b58ede8c20dd6c85671202bdf8ac344e86981381 | [] | no_license | merrouchesarah/tp4 | 6083b8c827be8d4d4a7fe5707e469ecca63daf91 | 689653aaba545b323f69687f8647ae899f84d4b8 | refs/heads/master | 2021-02-26T02:07:28.909147 | 2020-03-06T18:09:03 | 2020-03-06T18:09:03 | 245,487,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | DATA_FILE = "listetudiants.xml"
import xml.dom.minidom as minidom
import sys
def main():
try:
xmldoc = minidom.parse(DATA_FILE)
except:
print("Can't Open the file")
sys.exit()
print (xmldoc.toxml())
return 0
| [
"noreply@github.com"
] | merrouchesarah.noreply@github.com |
4e08653e8a20a6f931eab7622c5e229cd799d960 | 3c7b0493bd72e6335d7a7932f55350694332d2a6 | /script/model/SpiderGen/gui_pydoc.py | 37a331a1463f233114369265084a2a6e862b68f4 | [] | no_license | ChineseCasey/cx_tool_set | 65454f9cb41ae1c0253e2ac0ad297b4ce9da0a92 | 622d2453de7c3d9901a37cd45eb6bffe3825a429 | refs/heads/master | 2020-08-05T18:44:01.586032 | 2019-10-03T19:35:54 | 2019-10-03T19:35:54 | 212,659,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,443 | py | '''
SPIDER WEB GENERATOR
GUI
Joe Withers 2016
This script will create a spiderweb in your scene once the user creates 'anchors' that are used to define the shape of the spiderweb.
NOTE: this script requires assets for the animated spider to work correctly, so please ensure that the SpiderGen folder is located at:
m... | [
"1036707552@qq.com"
] | 1036707552@qq.com |
c3e973a1a819aa73700e15388a1c7d5bc9fab725 | 2f7c0bdf9e2fae01684ce79744b3f23d6182fbcf | /videocap2.py | cd1c1a2a423ecb302775081218736f4965b09d16 | [
"MIT"
] | permissive | agleontyev/EmotionRecognitionRealTime | 298a2c02809e1cadd6c35acf79350a35a3dd40cd | 8d802ab0cbd6ba489eeacf3d509b6b55676b90d5 | refs/heads/master | 2023-06-21T10:36:27.300417 | 2021-08-03T13:33:40 | 2021-08-03T13:33:40 | 267,440,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,515 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 27 15:02:14 2020
@author: agleo
"""
from threading import Thread
import sys
from queue import Queue
import tensorflow as tf
from tensorflow.keras.preprocessing.image import img_to_array
import imutils
import cv2, pafy
from tensorflow.keras.models import load_model
import ... | [
"a.g.leontiev@gmail.com"
] | a.g.leontiev@gmail.com |
eb905dd46d64599308b58106219fd94e874c27af | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_08_01/aio/operations_async/_vpn_server_configurations_associated_with_virtual_wan_operations_async.py | f5c8445e1d311bde344a60cba25058ed763eeb77 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 7,435 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | YijunXieMS.noreply@github.com |
4c36661bdaf9f097617a68f74fd7e9c443e2b16d | b95fa99bb1ba2210b73251614d2613363c37f932 | /deploy/ngram-train/scripts/main-70.py | ce7b6772851d4bcf8747f79598571b1f41cf57ca | [] | no_license | lingxiao/learn-adj-relation | d1a8894fefc776ec0bd414b5f038361ed4b79d16 | dc4285af19e53d7e2d015eb6394f6c601c707da0 | refs/heads/master | 2020-12-30T16:27:51.531268 | 2017-06-07T18:59:48 | 2017-06-07T18:59:48 | 87,714,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | ############################################################
# Module : A series of measures on the graph for experiments
# Date : April 2nd, 2017
# Author : Xiao Ling
############################################################
import os
import re
import networkx as nx
from utils import *
from scripts import ... | [
"lingxiao@seas.upenn.edu"
] | lingxiao@seas.upenn.edu |
90a859a14735edacc8b28c7f1343d70fbdbdd8db | e32c528884444add63e3f2e865af0171eebe3634 | /loon/exception.py | 2a455caa721d0e26f6c618b0c0672da222b39347 | [
"MIT"
] | permissive | joshbode/loon | f8e32183dee182d1ab6e43c05f416616eee02e17 | 49772a5e432e1f2318419b38628c26de4494901f | refs/heads/master | 2020-04-12T19:31:30.199717 | 2013-11-16T07:56:34 | 2013-11-16T07:56:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | """
Exception classes.
"""
__all__ = ['LoonError']
class LoonError(Exception):
pass
| [
"joshbode@gmail.com"
] | joshbode@gmail.com |
73687bc070d5f0a867ecaa764f11fb3fba7ed95d | 28be2173e5590cc5b03119e9b83c57980e6a7e8a | /studygroups/migrations/0064_split63.py | e49732264ba24d1eaa1b270237861d4c1c7c8b63 | [
"MIT"
] | permissive | EdgarOrnelas/learning-circles | cd164f123885ed2079b34ad394c9849b370563b9 | 293c849321d735aebbdcb6c65b7c92f751f9fd89 | refs/heads/master | 2021-01-21T20:56:35.429589 | 2017-06-16T09:20:46 | 2017-06-16T09:20:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import datetime
from django.utils.timezone import utc
def set_meeting_time(apps, schema_editor):
StudyGroupMeeting = apps.get_model('studygroups', 'StudyGroupMeeting')
for meeting in StudyGroupMeeting.obj... | [
"dirkcuys@gmail.com"
] | dirkcuys@gmail.com |
1fa016ff9f3a7768af348bd01c7db7b60543d4de | 1afe3895ae8969ccba6d45e531ab5d59b8a41696 | /confession/user_app/migrations/0012_auto_20190121_1659.py | 673e55aaaef40def26992ea3a95286503b101c0f | [] | no_license | FZTeam/confession | 72e3ca0b2ab6016055b4ad6791f5a69aa3732368 | 7808d2810c65d0be956270f15d8ca489e1a9defe | refs/heads/master | 2022-12-12T08:30:37.603455 | 2019-02-25T15:56:31 | 2019-02-25T15:56:31 | 167,647,099 | 0 | 1 | null | 2022-07-06T19:59:26 | 2019-01-26T03:52:59 | Python | UTF-8 | Python | false | false | 616 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2019-01-21 16:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_app', '0011_auto_20190121_1658'),
]
operations = [
migrations.AlterFi... | [
"2094531487@qq.com"
] | 2094531487@qq.com |
42510f3fa809892d352917ac287a90deb8248350 | 79bf16c9d437cd38a2760889c3097f9a12be8fb5 | /charity_donation/admin.py | a30a47f33bb2dac2152cafc88dddd48cffacf246 | [] | no_license | KarolinaK-14/portfolio-lab-charity-donation | 638043348a5bb48c6d7c0a22a889aa37520cc2ab | ffedb3b5840beaf90a1181c124dd77a45e400dfb | refs/heads/main | 2023-04-01T18:55:11.731370 | 2021-04-10T07:11:50 | 2021-04-10T07:11:50 | 347,203,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,203 | py | from django.contrib import admin, messages
from django.contrib.admin.utils import model_ngettext
from django.core.exceptions import PermissionDenied
from django.template.response import TemplateResponse
from .models import Category, Institution, Donation
from django.contrib.admin import helpers
from django.contrib.aut... | [
"karpinska.karolina.kk@gmail.com"
] | karpinska.karolina.kk@gmail.com |
c6d924a273405d47e1ca7228439de237c16e8109 | 4904acd900496b4883c2f5b4aa6b45d1ef6654c0 | /graphgallery/utils/__init__.py | b41031c08476cf8f7aff25809ca677c95d3ae196 | [
"MIT"
] | permissive | blindSpoter01/GraphGallery | aee039edd759be9272d123463b0ad73a57e561c7 | e41caeb32a07da95364f15b85cad527a67763255 | refs/heads/master | 2023-06-17T11:42:27.169751 | 2021-07-15T03:07:39 | 2021-07-15T03:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | from .context_manager import nullcontext
from .raise_error import raise_if_kwargs
from .tqdm import tqdm
from .context_manager import nullcontext
from .progbar import Progbar
from .misc import *
from .logger import setup_logger, get_logger
from .timeout import TimeOut
| [
"cnljt@outlook.com"
] | cnljt@outlook.com |
c7a335e65318c480be3dea5e517f1ad398bc72ad | 3b77a17e059772662ab1a8c5b67649931a795f5c | /models/unet.py | 79601f6c73a2fc39d9ab526b6899d897865209c7 | [] | no_license | alimottaghi/brain-segmentation | 9fd47d38c84ee216f97b618d48b35f009207e766 | 09e8566a6353c95ada4ca98f6eb454c567498822 | refs/heads/master | 2022-09-01T05:37:48.300838 | 2020-05-17T19:56:57 | 2020-05-17T19:56:57 | 256,860,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,753 | py | import numpy as np
import torch
import torch.nn as nn
from collections import OrderedDict
class UNet(nn.Module):
def __init__(self, in_channels=3, out_channels=1, init_features=32):
super(UNet, self).__init__()
features = init_features
self.encoder1 = UNet._block(in_channels, features, n... | [
"samottaghi@gmail.com"
] | samottaghi@gmail.com |
4e2819515b09c9682206030c243871bcb4e669fb | d3dbb704a2db1c4a5122baeb74af7b47ff373868 | /core/migrations/0006_product_img.py | 1e9d49666e9cfd277858cc4b2dd24211bd2bf4cf | [] | no_license | EslamRM/Eshhnli | 1ff93e6695ffc9b46877edc29194a5c428553d3c | b5cbf1c5ba4e80d98583ed7e22a3d9706a432800 | refs/heads/master | 2023-07-13T05:38:39.800756 | 2021-08-16T12:49:22 | 2021-08-16T12:49:22 | 354,088,289 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | # Generated by Django 2.2.12 on 2020-07-20 09:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0005_auto_20200720_1124'),
]
operations = [
migrations.AddField(
model_name='product',
name='img',
... | [
"eslam4523@gmail.com"
] | eslam4523@gmail.com |
c084ed55fb4af64f15d9fec63aeb6591b17dc2d7 | 65dacf1547d570bd3af76e67b7d1914c7a3e634e | /rotate_face/preprocessing_ear.py | 6a3970933204eea54a927520b90d92bf42e018f1 | [] | no_license | PhiLongDo/Drowsiness-Detection | 9c16f08507c9ac095e28e95e482dc1126978bc0d | 0fa610b3549b5bac548706f0929848d35b1d9cf4 | refs/heads/master | 2020-10-02T11:09:23.583438 | 2019-12-15T03:47:07 | 2019-12-15T03:47:07 | 227,759,306 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,260 | py | import os
import numpy as np
def unison_shuffled_copies(a, b):
p = np.random.permutation(len(a))
return a[p], b[p]
def normalize_blinks(num_blinks, time_open, u_time_open, sigma_time_open, time_close, u_time_close, sigma_time_close, left_max, u_left_max, sigma_left_max, left_min, u_left_min, sigma_left_min, r... | [
"longdo805@gmail.com"
] | longdo805@gmail.com |
6100e9b09b2482c903c39bcdd3c158b109acb5d6 | 081879d1f3910f5419d70020df1fb36e54602f4c | /obj/Release/Package/PackageTmp/JmanOps/InvoiceSettings.py | 14a1125418238da9b56a79b1454e3ae5be68c0d4 | [] | no_license | TimBish61/JmanOps | 0d4e07a67d6972e65e98db020dab8dd145b17170 | 5253fd9fa2a7eaa6bdd006c39412da8acf16414e | refs/heads/master | 2023-01-13T10:56:49.364661 | 2018-07-09T07:28:16 | 2018-07-09T07:28:16 | 140,008,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | # -*- coding: UTF-8 -*-
from os import path
from django.conf import settings
#INV_MODULE = getattr(settings, 'INV_MODULE', 'invoice.pdf')
#INV_LOGO = getattr(settings, 'INV_LOGO', path.join(settings.MEDIA_ROOT, 'static/images/journeymantv_logo_header.jpg'))
INV_LOGO = getattr(settings, 'INV_LOGO', path.join(settings.... | [
"tim.bish61@gmail.com"
] | tim.bish61@gmail.com |
a597a3914ed5e087b0864239edf92aecf61ed3ee | cc0f1c9b6e1f09804561dd1d6a0a7640d93547d6 | /personal/filter_whdload_mantis.py | cf25b334ced6d29d96e77e10f1cbc0eb94289b32 | [] | no_license | jotd666/amiga68ktools | 44b5ba7634d6fa5e75472c9d2d8fa068c06c162e | b53791f16cc4a5a6661d0dc4a17bcda929819444 | refs/heads/master | 2023-08-10T12:23:34.641920 | 2023-08-07T19:56:46 | 2023-08-07T19:56:46 | 250,846,547 | 27 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,797 | py | # This Python file uses the following encoding: utf-8
import csv,os,collections,openpyxl
csv_in = os.path.join(os.getenv("USERPROFILE"),"Downloads","JOTD.csv")
active_authors = {"Psygore","Wepl","StingRay","CFOU","GalahadFLT","Abaddon"}
d = {"retour d'informations":2,"affecté":3, "nouveau":1, "confirmé":5, "suspendu... | [
"jotd@orange.fr"
] | jotd@orange.fr |
f427fdb764bae9f9ee7d6e7a00231d332f4b8d5e | 3f7fd86b19a3a205f3c92dbe8065c0b82a0dcfcd | /jetson_car/scripts/motion_planner/quintic.py | cccef02ad4295401b5c5949ec8f3965300856fae | [] | no_license | kontchenkov/jetson_car | a0288f6f94ff98480353fccb98ffe82290fb6de0 | 50f0242d9135fbafefc8fe1c77a98a9cfc34e433 | refs/heads/master | 2022-01-08T18:20:40.790259 | 2019-05-18T15:17:13 | 2019-05-18T15:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,130 | py | import numpy as np
def calc_coefs(s1, s2, T):
A = np.array([[ 0, 0, 0, 0, 0, 1],
[ 0, 0, 0, 0, 1, 0],
[ 0, 0, 0, 1, 0, 0],
[ T**5, T**4, T**3, T**2, T, 1],
[ 5*T**4, 4*T**3, 3*T**2,... | [
"markovalex95@gmail.com"
] | markovalex95@gmail.com |
7eabe48f91e014ea0b88c898557d4b21f62f256b | 0ddcfcbfc3faa81c79e320c34c35a972dab86498 | /puzzles/maximum_value_of_k_coins_from_piles.py | 61093ea2df9249ea3435755ccc5a997eed57f8bd | [] | no_license | IvanWoo/coding-interview-questions | 3311da45895ac4f3c394b22530079c79a9215a1c | 1312305b199b65a11804a000432ebe28d1fba87e | refs/heads/master | 2023-08-09T19:46:28.278111 | 2023-06-21T01:47:07 | 2023-06-21T01:47:07 | 135,307,912 | 0 | 0 | null | 2023-07-20T12:14:38 | 2018-05-29T14:24:43 | Python | UTF-8 | Python | false | false | 1,536 | py | # https://leetcode.com/problems/maximum-value-of-k-coins-from-piles/description/
"""
There are n piles of coins on a table. Each pile consists of a positive number of coins of assorted denominations.
In one move, you can choose any coin on top of any pile, remove it, and add it to your wallet.
Given a list piles, whe... | [
"tyivanwu@gmail.com"
] | tyivanwu@gmail.com |
548be53503c6090b6d429238a9af72788e4f52a4 | 859f5a6e09cbccd1a49f54539074940af90ec93f | /pro2/pro2/asgi.py | 6e6cc88ce87a64e2861c4e855d2e7e9aacca459e | [] | no_license | Parthiv586/TextUtils-Commpleted | 71329360f9debf66b40bde123757c5886c6d084f | 4f81c8948c7515a77e982499b51b2da401c4d3a9 | refs/heads/main | 2023-04-05T01:52:57.344777 | 2021-03-30T08:41:05 | 2021-03-30T08:41:05 | 352,930,197 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
ASGI config for pro2 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_SETTINGS... | [
"70954547+Parthiv586@users.noreply.github.com"
] | 70954547+Parthiv586@users.noreply.github.com |
d1692daea17155a0953dd3724403945e186bdd1a | 58e8b38c27e24ba1bcfa074e42564fb94c094b7e | /your_project/api.py | 6cf68d461c137eb1e7e2886f977069cc1d43948c | [
"Apache-2.0"
] | permissive | DKilkenny/library_template | 77ce1a334dbd916e6da6e4a500d208400893bc55 | 3f0ae5af55e529711ed13793e2a4c306fc0c5afd | refs/heads/master | 2023-03-29T12:36:47.214268 | 2018-08-31T17:45:57 | 2018-08-31T17:45:57 | 352,726,666 | 0 | 1 | Apache-2.0 | 2021-03-29T17:22:11 | 2021-03-29T17:22:11 | null | UTF-8 | Python | false | false | 118 | py | """Key your_project classes can be imported from here."""
# package
from your_project.package.example import Example
| [
"keith.g.marsteller@nasa.gov"
] | keith.g.marsteller@nasa.gov |
a39c7ff7874061c6046993e0a11fa1f4106e2173 | e62b1e748582584a5c2a05fff970fe09e72752b4 | /bra/sprzedaz.py | 4c4f500857455573c6de7867b4ae8daedbfadd1b | [] | no_license | wlodekf/jpk | 5957b515ecbcded9b4f27d6a0785ee89e3a0d585 | 1c200350f57469e890a124d07f741d836d9a0833 | refs/heads/master | 2023-07-10T20:15:11.111276 | 2021-08-11T12:21:14 | 2021-08-11T12:21:14 | 394,978,461 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,952 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import csv
import re
import datetime
import decimal
import asyncio
import websockets
import traceback
from django.conf import settings
from django.db.models import Max, Q
from fk.models import Kon, MagDok, MagWiersz, MagNumer
from .models import Fakt... | [
"wlodekf@softprodukt.com.pl"
] | wlodekf@softprodukt.com.pl |
f6cfbb1b55ec14f10d8504e6f9cfc2d5e037a025 | 8efe56ee34c455a6b1336897f6d457acbc9c10f9 | /examples/tf/trpo_cartpole_batch_sampler.py | 0123ededecc2bc226c82064afb576a0c3b154b04 | [
"MIT"
] | permissive | neurips2020submission11699/metarl | ab18d11e708bf569d76cb2fab2bcce089badd111 | ae4825d21478fa1fd0aa6b116941ea40caa152a5 | refs/heads/master | 2022-10-15T22:03:09.948673 | 2020-06-11T19:22:55 | 2020-06-11T19:30:58 | 268,410,657 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,140 | py | #!/usr/bin/env python3
"""This is an example to train a task with parallel sampling."""
import click
from metarl import wrap_experiment
from metarl.envs import MetaRLEnv
from metarl.experiment import LocalTFRunner
from metarl.experiment.deterministic import set_seed
from metarl.np.baselines import LinearFeatureBaselin... | [
"neurips2020submission11699@gmail.com"
] | neurips2020submission11699@gmail.com |
5841e9088c2fec8d6e41b56556c20c25cac3d84f | fb9e31653c17a13288f4379072674bf9defb78bb | /hat_motors.py | 7a6d59bdc6424e32469b16faeccda2f0a5fc1299 | [] | no_license | kflmiami420/ee459drone | 81277ee06f1b709cbaedbd3185d3033c5bfb0282 | ce7b76ff0ea3915253276b73315bf6d619a64a64 | refs/heads/master | 2020-07-06T20:05:24.194123 | 2019-04-22T20:13:10 | 2019-04-22T20:13:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | # necessary libraries
import board
import busio
import adafruit_pca9685
class hatservo:
def __init__(self, freq, m1, m2, m3, m4):
#Create the I2C bus interface
i2c = busio.I2C(board.SCL, board.SDA)
#Create a simple PCA9685 class instance
hat = adafruit_pca9685.PCA9685(i2c)
#set board's pwm frequency (LE... | [
"luceno@usc.edu"
] | luceno@usc.edu |
80335ddd1c35ba9b67973f0ced754c282667f8bf | 0b79df2a5f85eeff157db21e1bc7275c1a65baf4 | /post/models.py | ed6285b659b5f7761b7f8a50abd43836f304195d | [] | no_license | cabo121/ProyectoU3Docker | a1bfa6aba84b7df0f60d5c50d7df57a89d934ceb | f742ad5aec26b1ca7b6f8ff85821cb1e02408801 | refs/heads/master | 2023-05-13T17:43:14.475225 | 2021-05-27T22:52:06 | 2021-05-27T22:52:06 | 371,522,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,272 | py | from django.db import models
class electricas (models.Model):
nombre = models.CharField(default = "",null=True,max_length = 200)
modelo = models.CharField(default = "",null=True,max_length = 200)
precio = models.CharField(default = "",null=True,max_length = 200)
fecha = models.CharField(default = "",null=True,max_... | [
"armandocabo@hotmail.com"
] | armandocabo@hotmail.com |
a492c59396a51277e8a8ac4bfa7dcb118fa3644f | 92eb06c4b4854fdd04df20c8b2b1b1bc2d22b335 | /Practice Exercises/Practice Exercises/Practice Exercise 3_5.py | f1086e5ba43c3154e538ba3d5663f2fca70d4c41 | [] | no_license | Dedicationist/TICT-V1-PROG-15 | 9e34c50b97f7689deecc82d8559a6e30fb1aba4a | a6af86864abb4032b37b4fa37aded44c42f051d6 | refs/heads/master | 2021-08-08T02:42:39.809822 | 2017-11-09T11:44:04 | 2017-11-09T11:44:04 | 103,118,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | nummers = [2, 3, 7, 8, 10, 22, 32, 45, 47]
for nummer in nummers:
if nummer %2 == 0:
print(nummer)
| [
"dedicationists@gmail.com"
] | dedicationists@gmail.com |
cdb42972a83af13ed8c7b96770b0a33a56d5d9c3 | 58f2329acdf5fa0cc8016b359617bdf4ddd98785 | /employees/migrations/0001_initial.py | 20e7ff6cc4e8e48b088714a88e8e1e1b355fb42f | [] | no_license | hobyfrezk/danni_web | 0d3358486fe727b575fa0d27d0e44ac7cb8f6f95 | b64cf0f209b009cf9a174fcf15b11a425b7945b8 | refs/heads/main | 2023-07-08T23:24:45.534180 | 2021-08-08T00:50:37 | 2021-08-08T00:50:37 | 303,428,805 | 0 | 0 | null | 2021-08-08T00:50:37 | 2020-10-12T15:08:37 | Python | UTF-8 | Python | false | false | 912 | py | # Generated by Django 3.1.3 on 2021-06-29 16:07
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... | [
"hobyfrezk@gmail.com"
] | hobyfrezk@gmail.com |
080badd7052cd281c96fd89e3ad864bebdde0327 | 18f00dc116a1ac345c6fbf1cba3c28c0b163abeb | /Minecraft Python Scripts/Motion to TP.py | 5dd24bc3bebda7f7d83091f226f521d369f732d3 | [] | no_license | MSpaceDev/RandomPythonProjects | 576bb16848ca25a1e34d025d918fe44786a23520 | dd912c8fd4ce2fa1038065e4e4cb393bd632678a | refs/heads/master | 2020-03-27T11:41:05.674911 | 2018-09-06T01:45:17 | 2018-09-06T01:45:17 | 146,501,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | values = open("E:\\User\\Desktop\\selector.txt", "r").read().splitlines()
i = -180
for string in values:
sel, tp = str.split(string, " ", 1)
print("execute {0} ~ ~ ~ summon armor_stand ~ ~ ~ {{Tags:[\"ice_path{1}\",\"ice_path\"],NoGravity:1b}}".format(sel, i))
i += 1 | [
"mspacedev1@gmail.com"
] | mspacedev1@gmail.com |
3efdb10abb1c9ac9794d849bb1766377862b08e1 | ab4563adec691bc86ed2f7a82dea9831e34ad979 | /Cape1.py | 33d7e250e0632a223b1deec5d0842ed164dec048 | [] | no_license | pippenspips/pythoncode | 39225a74c386c97429629d7f0379cd96d4b2d453 | 5e4139f13cd3eee57ceda61c4e4e30e045f5e99c | refs/heads/master | 2021-01-23T02:48:05.184254 | 2015-08-10T05:35:38 | 2015-08-10T05:35:38 | 39,611,558 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,966 | py | '''
Article is here -- https://pippenspips.wordpress.com/2015/07/28/playing-with-cape-ratios-i/
The data can be pulled from the dropbox link given in the article above
Value rankind strategies are covered in here. Cape2.py will have momentum strategies.
'''
#import packages
import pandas as pd
import pandas.io.data
imp... | [
"pippenspips@uchicago.edu"
] | pippenspips@uchicago.edu |
d6e96b414c7e8f4419cf94dde88c903f31cd6d6a | 327dfffcbfd8ba51565ae7a9586ccbae5fd464da | /rank_driver/rnnve_mm_freeze.py | 25227c5a6406b409615667ac3665c7c47dbf4db2 | [] | no_license | marshimarocj/caption_competition | 318c175de31779e6235e7f26237397a6e199ee89 | fb9766bdcae919215ee118a5c562856e7bccf553 | refs/heads/master | 2020-06-26T04:17:52.325381 | 2019-07-29T21:44:32 | 2019-07-29T21:44:32 | 199,523,586 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,413 | py | import argparse
import sys
import os
import datetime
import cPickle
sys.path.append('../')
import numpy as np
import rank_model.rnnve_mm_freeze
import common
def build_parser():
parser = argparse.ArgumentParser(formatter_class=argparse.RawTextHelpFormatter)
parser.add_argument('model_cfg_file')
parser.add_arg... | [
"jiac@t470"
] | jiac@t470 |
269e2848cee7094ae4059f63358cf8cdd1285a6e | cc48b67de4b6d7763c7242a38afdae921e1ee2e2 | /archive/marker_dataset.py | 6a3b070aa6fd3591a2fb94d1d48f243014224e66 | [
"MIT"
] | permissive | anoop-phoenix/minGPT | 2650ab325d9d2f68a35c12d00544ddfbd2c2c27f | edc4387b6b8a3217a5bc7dcdd1fa74c851f1b5bc | refs/heads/master | 2023-02-09T19:00:27.270367 | 2020-12-22T13:02:49 | 2020-12-22T13:02:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | import random
import numpy as np
import torch
import string
import os
import torch.nn as nn
from torch.nn import functional as F
from torch.utils.data import Dataset
class MarkerDataset(Dataset):
"""
Dataset that only trains right or wrong.
"""
def __init__(self, fname, MD):
self.MD = MD... | [
"w@llner.co"
] | w@llner.co |
d608e570dff12e916caa5aedf63dda75dd309f92 | f175a77c6058e0e6cabc99d2cccc24badf48c489 | /base/base.py | 4c7a5ad5689714e1532388589812862a8d32fd51 | [] | no_license | ckq2018/ck_bnal | eef1a630b7a3dbfcf7cd8d18613f181459723996 | 5334272e99b235bf72836f1fac8ebe056dfcb25d | refs/heads/master | 2020-04-12T02:56:36.188012 | 2018-12-21T03:32:47 | 2018-12-21T03:32:47 | 162,258,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py | from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
class Base():
def __init__(self, driver):
self.driver = driver
# 封装find_element
def base_find(self, loc, timeout=30, poll=0.5):
return WebDriverWait(self.driver, timeout, poll_frequency=p... | [
"123@ckq.com"
] | 123@ckq.com |
84906547b83c68bf3e9273cab4e26b543e04b43f | ffa157221e95aa8925c85fb70a3e30895555312e | /chip_in_cmfs.py | 0ab3191c533c877117cb83a726e9b17940f700b2 | [] | no_license | TMinchington/network_codes | 56e51de5749159378e93201543634d3dde679fb4 | 6bbf8a4576e7fa493b9099b373b74c479e659711 | refs/heads/master | 2022-02-06T14:05:20.848003 | 2022-01-18T14:58:35 | 2022-01-18T14:58:35 | 236,472,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,262 | py | def check_index(crm_file):
from pprint import pprint as pp
o_crm = open(crm_file)
chr_dic = {}
first_line = True
chr_count = 0
for line in o_crm:
split_line = line.strip().split('\t')
start= int(split_line[1])
chr = split_line[0]
try:
chr_dic[chr].... | [
"thomas.minchington@manchester.ac.uk"
] | thomas.minchington@manchester.ac.uk |
ec5ee589299f8dbc8bcd523e7b26e96896864327 | 7949f96ee7feeaa163608dbd256b0b76d1b89258 | /toontown/safezone/DistributedFindFour.py | c6488b8a595e93b2cc893ff46e000b115dd9aba2 | [] | no_license | xxdecryptionxx/ToontownOnline | 414619744b4c40588f9a86c8e01cb951ffe53e2d | e6c20e6ce56f2320217f2ddde8f632a63848bd6b | refs/heads/master | 2021-01-11T03:08:59.934044 | 2018-07-27T01:26:21 | 2018-07-27T01:26:21 | 71,086,644 | 8 | 10 | null | 2018-06-01T00:13:34 | 2016-10-17T00:39:41 | Python | UTF-8 | Python | false | false | 38,816 | py | # File: t (Python 2.4)
from pandac.PandaModules import *
from direct.distributed.ClockDelta import *
from direct.task.Task import Task
from direct.interval.IntervalGlobal import *
from TrolleyConstants import *
from direct.gui.DirectGui import *
from toontown.toonbase import TTLocalizer
from direct.distributed import ... | [
"fr1tzanatore@aol.com"
] | fr1tzanatore@aol.com |
48e9566b0a94d4a772647e44ace2b1b174d92e86 | 4a4acfd145e75ba14b556ff4f4c24c6a36a7ecaf | /pool_simulation.py | 2b2cedc76f461ea4a8a14f3627ac6b06a4dcd183 | [] | no_license | Wanogon/COVID-19-Project | d1269079ca03428a4a2f06ae6b856d3ed3c4c1c6 | 66226a71f0f4bc60cc2dc8be8a7a8a9c472a64a0 | refs/heads/main | 2023-01-06T12:43:40.993077 | 2020-11-01T03:22:16 | 2020-11-01T03:22:16 | 308,847,479 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,764 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Oct 19 18:03:38 2020
@author: ryx
"""
#from closed_form_A2_approximate_10 import *
import matplotlib.pyplot as plt
import numpy as np
from scipy.stats import norm
from scipy.stats import binom
import random
import time
import math
gamma_matrix = np.... | [
"noreply@github.com"
] | Wanogon.noreply@github.com |
13320bfde7dfeaaaf2d876e3253f46ad2a2b4952 | 7768232ad03b8c6f18e9764aee85253bbdc03eaa | /snacks/tests.py | e1387af5d110e9c390d65c09b7d78d09c53b4b3f | [] | no_license | daveeS987/snacks_crud | 6779a8b7d0066e4bc2edcc98fe40c2991e91262a | c62e65749cd2cfd4d76ecfb86cfffaf0c00a00ed | refs/heads/main | 2023-07-14T23:26:53.008321 | 2021-08-28T21:30:24 | 2021-08-28T21:30:24 | 400,875,480 | 0 | 0 | null | 2021-08-28T21:30:25 | 2021-08-28T19:35:14 | Python | UTF-8 | Python | false | false | 2,427 | py | from django.contrib.auth.models import User
from django.test import TestCase
from django.urls import reverse
from .models import Snack
class SnackTests(TestCase):
def setUp(self):
self.user = User.objects.create_user(username="tester", email="tester@email.com", password="pass")
self.new_snack = ... | [
"daveesok@gmail.com"
] | daveesok@gmail.com |
573a8f45b550d34a187ca890d83ceaaa074f9d9a | bca03dfa87e95bdf90fc7c9d52d68570cdb85ca4 | /H27.Вывод.py | bedc13c7e8029f9d8ee036821d9d81c8a4e9ce8c | [] | no_license | MinusD/maximum | 774cf78bab7b8f6cd75ee32fbddb59b73bea4d8e | a6882ee425aaebc42cda876606d89c74364de951 | refs/heads/master | 2023-06-04T07:59:21.898847 | 2021-06-22T10:05:01 | 2021-06-22T10:05:01 | 378,650,441 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | for i in range(1000):
x = i
l = 0
m = 0
while x>0:
m+=1
if x%2 !=0:
l+=1
x//=2
if l == 4 and m == 7:
print(i)
| [
"50549999+MinusD@users.noreply.github.com"
] | 50549999+MinusD@users.noreply.github.com |
5477dcd8e308ebb2b6dc85d43bc6177fb264a20c | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /third_party/blink/web_tests/external/wpt/tools/wptrunner/wptrunner/wptmanifest/backends/conditional.py | 5719a859fa4bc7e4ab4d1e9329ca74b2af6666f7 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-w3c-03-bsd-license",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 11,631 | py | import operator
from ..node import NodeVisitor, DataNode, ConditionalNode, KeyValueNode, ListNode, ValueNode
from ..parser import parse
class ConditionalValue(object):
def __init__(self, node, condition_func):
self.node = node
self.condition_func = condition_func
if isinstance(node, Condi... | [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
65b72f1d92ed2ada86336d0f24ce3e058324afe3 | b197d0d942dd61ce1fafd614b1d0bf5b54d2d8ce | /(06) 기본기 - String/08) 8958 OX퀴즈/김도연.py | 59f5f2cae1ee41ca074597c7e5b7db10393fe809 | [] | no_license | UJHa/Codeit-Study | a5459cd3ae918ca539944cde37ae29be10f5b3b2 | 68b55f1732a699108a4aeeeb3075c4e27ec5a574 | refs/heads/main | 2023-07-16T14:55:00.612697 | 2021-08-14T09:59:26 | 2021-08-14T09:59:26 | 349,135,579 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | N = int(input())
for i in range(N):
a = input()
score = 0
sum1 = 0
for j in a:
if j == 'O':
score += 1
else:
score = 0
sum1 += score
print(sum1)
| [
"noreply@github.com"
] | UJHa.noreply@github.com |
b2b4971f6f115b35ab3d38e85042808deb3e4102 | 5182897b2f107f4fd919af59c6762d66c9be5f1d | /.history/src/Simulador_20200708111002.py | e4355d8041f85f51b628df0e95950022e25c13c9 | [
"MIT"
] | permissive | eduardodut/Trabalho_final_estatistica_cd | 422b7e702f96291f522bcc68d2e961d80d328c14 | fbedbbea6bdd7a79e1d62030cde0fab4e93fc338 | refs/heads/master | 2022-11-23T03:14:05.493054 | 2020-07-16T23:49:26 | 2020-07-16T23:49:26 | 277,867,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,326 | py | import pandas as pd
import numpy as np
from Matriz_esferica import Matriz_esferica
from Individuo import Individuo
import random
from itertools import permutations
class Simulador():
def __init__(
self,
tamanho_matriz, #numero de linhas e colunas da matriz esférica
percent... | [
"eduardo_dut@edu.unifor.br"
] | eduardo_dut@edu.unifor.br |
1846509c1f30e90dfe5f7e702a891c15cf03ee05 | 7709e1a60bf32bcf518dd23f8462c80b22c91c83 | /manage.py | bbc3c1d84591aec97e3dc3c612623b8878318da7 | [] | no_license | jassami/CodingDelights | b007770a93beeeb9a8a825a512218b69e5c0c68d | 21090a292a5ee427951ef067b715c83a0a763b32 | refs/heads/main | 2023-06-30T23:33:26.742312 | 2021-08-09T03:03:19 | 2021-08-09T03:03:19 | 390,903,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'CodingDelights.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise... | [
"jassami1@hotmail.com"
] | jassami1@hotmail.com |
c61037faa496682c9134b039dfac2351abbde3da | 5d025bc7c59b0f9f5d8b6c1577beab0375644e5f | /Polymorph/Empleado.py | 85d389ead6eea86cad4b360e5d0a2c67dbf005f4 | [] | no_license | miguelLopezUlloa/Python-course | 1724dea70e9e278d114b3586bf0ae4bb5133f29f | de20577640b7e89418cdedaa8ce9f61a2a106783 | refs/heads/master | 2022-11-24T06:34:47.607845 | 2020-07-29T18:09:09 | 2020-07-29T18:09:09 | 270,719,675 | 0 | 0 | null | 2020-07-29T18:09:10 | 2020-06-08T15:26:42 | Python | UTF-8 | Python | false | false | 211 | py | class Empleado:
def __init__(self, nombre, sueldo):
self.nombre = nombre
self.sueldo = sueldo
def __str__(self):
return "Nombre=" + self.nombre + ", Sueldo=" + str(self.sueldo)
| [
"miguel.lopez@dowjones.com"
] | miguel.lopez@dowjones.com |
2e6bc7bf3071323ad78a13f046c9630f8ca82f8a | 6780162101205b4178bf04eb28bc1759dbcf31b3 | /Api/admin.py | 1bcf9b11ed6191b77cad68e8f7d06a14407fc2ca | [] | no_license | Rabindratmg/Django-backend | b59a50d230f17610e9882be46a6f0fb7b93e8001 | 1f88c6fc42c8bbc10e964529dbc8d0877d4a7c41 | refs/heads/master | 2023-08-13T10:30:58.930765 | 2021-10-18T02:20:38 | 2021-10-18T02:20:38 | 362,333,510 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from django.contrib import admin
from .models import Menu, Cart
# Register your models here.
admin.site.register(Menu)
admin.site.register(Cart) | [
"rabee.tmg123@gmail.com"
] | rabee.tmg123@gmail.com |
910d451c7df69c064eef6a38a95911c1ae78717e | 15f673551ed04f460ce22298f770d6e801bc56b2 | /paper_scripts/1timestep_sim.py | ecef323b219acfc85d781572eee41d2f59373c78 | [] | no_license | singhbalwinder/perturb_scripts | fc5a09de3c74229420ba589919e093ea0c4457fe | 5ed6d2acec278cb16b89f2490e0a3ef5fe4e2e9d | refs/heads/master | 2020-03-22T18:54:32.810097 | 2019-02-20T22:28:52 | 2019-02-20T22:28:52 | 140,490,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,067 | py | #!/usr/bin/python
#Python version: Load python/2.7.9(default) and python_anaconda3/2.3.0
from netCDF4 import Dataset
from math import sqrt
from sklearn.metrics import mean_squared_error
import pylab as pl
import numpy as np
import sys
###
# NOTE: This script assumes that simulation is run for a few days only and out... | [
"balwindersingh@gmail.com"
] | balwindersingh@gmail.com |
29a8c387549fa1872a5d41ec260ed50dc4ff8c1c | 42443c82b0b088350f37957d6141488e86115a76 | /player_stats.py | 931e7c62f0835fa82b851990a7c09a8596766be0 | [] | no_license | ryantly3/NBA | 686de9d5a6e2ff2a33b87449dc0013a74ada4eaf | 5a748ea6ab967b35b74612b0d5c84d3835ecc119 | refs/heads/master | 2020-03-19T09:05:45.288564 | 2018-09-22T00:51:36 | 2018-09-22T00:51:36 | 136,259,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,157 | py | from selenium import webdriver
import selenium
import collections
import time
import csv
driver = webdriver.Chrome()
driver.get('http://stats.nba.com/players/traditional/?sort=PTS&dir=-1')
driver.find_element_by_xpath('/html/body/main/div[2]/div/div[2]/div/div/nba-stat-table/div[1]/div/div/select/option[1]').click()
... | [
"ryantly3@gmail.com"
] | ryantly3@gmail.com |
707548670fb395ea3352c7f9b44e16abada49f83 | b476fa2d4fce5258075ae25543965f7bd199e924 | /common/migrations/0001_initial.py | 60c736f5f7e87c90f15c08ebc421222d58f6e0f1 | [
"MIT"
] | permissive | AFutureOnWaxenWings/climate_africa | 55f758a91cbc28e164a3be9bb5adceedd2f02b49 | 59baa4769a6077e8d92b85820e0d3793466605fb | refs/heads/master | 2022-11-29T08:36:37.205316 | 2020-08-15T20:00:57 | 2020-08-15T20:00:57 | 287,802,605 | 0 | 0 | null | 2020-08-15T18:25:32 | 2020-08-15T18:25:31 | null | UTF-8 | Python | false | false | 702 | py | # Generated by Django 2.2.11 on 2020-08-08 17:37
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', models.AutoField(au... | [
"rhofvendahl@gmail.com"
] | rhofvendahl@gmail.com |
00939f6d74f528a23ab0e586d52057ea17789070 | ffadf9541d01cf9af20c419759d48b1eb01bfd35 | /pachong/PCdemo1/day15/股市行情定点爬取.py | 842ff30d11cf43f28fc448cc022cde009269ba8e | [] | no_license | 1987617587/lsh_py | b1bb1016eaafcba03bbc4a5310c1db04ae227af4 | 80eb5175cd0e5b3c6c5e2ebb906bb78d9a8f9e0d | refs/heads/master | 2021-01-02T05:14:31.330287 | 2020-06-20T05:18:23 | 2020-06-20T05:18:23 | 239,498,994 | 2 | 1 | null | 2020-06-07T23:09:56 | 2020-02-10T11:46:47 | Python | UTF-8 | Python | false | false | 5,975 | py | # author:lsh
# datetime:2020/4/13 19:56
'''
.::::. _oo0oo_
.::::::::. o8888888o
::::::::::: 8... | [
"1987617587@qq.com"
] | 1987617587@qq.com |
59fecb3751deccbc1893af6d99c785ffb06deb69 | 7fae887c73cc6df8de886897114eb07c28674fa7 | /cs101/unit27/27_4.py | 7f5cedd2fc201fd3745d03708f744ca64942ee95 | [] | no_license | thinkreed/pyf | 24960e3523be3c2e1661608f60f866a5cd7e747f | 04f5e7f46aa95719f848bb64a512458895147da3 | refs/heads/master | 2022-12-10T17:43:49.709946 | 2019-06-13T01:13:00 | 2019-06-13T01:13:00 | 109,550,040 | 2 | 0 | null | 2022-12-08T05:14:52 | 2017-11-05T03:53:51 | Python | UTF-8 | Python | false | false | 972 | py | english = {1: "January", 2: "February", 3: "March", 4: "April", 5: "May",
6: "June", 7: "July", 8: "August", 9: "September", 10: "October",
11: "November", 12: "December"}
swedish = {1: "januari", 2: "februari", 3: "mars", 4: "april", 5: "maj",
6: "juni", 7: "juli", 8: "augusti", 9: "s... | [
"thinkreed2017@outlook.com"
] | thinkreed2017@outlook.com |
51c2c7a7f9e36e4fcf6659ed9b40a375e9531667 | 200e523a47f539b772ad5dd5272822d516120dfc | /Taller 9/ServerMul.py | 4c7ff997124347b4cb1476cb984b052561a5cfbf | [] | no_license | Diegores14/Distribuidos | e902f3535fbe02d9c45613655b73fcdb87c2a91a | c98f781a2ce98908457c9cdf36ab12e8430a26ea | refs/heads/master | 2020-03-26T22:43:16.242507 | 2018-09-19T12:35:10 | 2018-09-19T12:35:10 | 145,482,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | import socket
import math
import sys
import _thread
socket1 = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
socket1.bind(('', 8002))
socket1.listen(10)
print("Taller 8 socket con hilos")
print("server corriendo")
def progr... | [
"noreply@github.com"
] | Diegores14.noreply@github.com |
37fcf80359b548dc94d0a8cbdeaa590cabae932f | 8d1673d8fd104bdf3c4180ddbc0b091164ca2955 | /generator/generation_mapelites.py | 820ae1138c991f35b3b280e2ef63bea1000bdd79 | [
"MIT"
] | permissive | ehauckdo/CityGen | e47b85234ba963d9c41d25e2c20261f5453aa3aa | df370c8bec2ac2b58fdb89ca4afec99e6dd96e56 | refs/heads/master | 2023-03-10T01:28:33.625327 | 2021-02-16T09:23:49 | 2021-02-16T09:23:49 | 260,331,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,746 | py | import optparse
import os, sys
import logging
from lib.logger import log
import lib.mapelites.Individual as Individual
import lib.mapelites.evolution as evo
import lib.helper as helper
import lib.handler as handler
from lib.plotter import plot, plot_cycles_w_density
import lib.trigonometry as trig
import pprint
from li... | [
"eduardohauck@gmail.com"
] | eduardohauck@gmail.com |
945d826d6d9827d0c64389fde947e752af5a19a6 | d12363c837acb1b7d84176661a2538ab577ad900 | /bikeshare.py | 3af25a26017f1812f920327aaa2715dc1f102b94 | [] | no_license | Firius/pdsnd_github | 4edc5c7baad87878eeee87d49f26295bcd520be2 | 203f9f9410508243fc1da0687836058a0f504afe | refs/heads/master | 2021-01-09T14:04:58.443867 | 2020-02-22T13:21:08 | 2020-02-22T13:21:08 | 242,330,196 | 0 | 0 | null | 2020-02-22T11:31:18 | 2020-02-22T11:31:17 | null | UTF-8 | Python | false | false | 8,047 | py | import time
import pandas as pd
import numpy as np
CITY_DATA = { 'chicago': 'chicago.csv',
'new york city': 'new_york_city.csv',
'washington': 'washington.csv' }
def get_filters():
"""
Asks user to specify a city, month, and day to analyze.
Returns:
(str) city - name o... | [
"pkaufmann777@gmail.com"
] | pkaufmann777@gmail.com |
9ec06f7e2751cf047aecded3a7687a957892776e | ce083128fa87ca86c65059893aa8882d088461f5 | /python/flask-mail-labs/.venv/lib/python2.7/site-packages/IPython/terminal/interactiveshell.py | 4119b87698d99d50b6b6c44d195e21abaf2e3faa | [] | no_license | marcosptf/fedora | 581a446e7f81d8ae9a260eafb92814bc486ee077 | 359db63ff1fa79696b7bc803bcfa0042bff8ab44 | refs/heads/master | 2023-04-06T14:53:40.378260 | 2023-03-26T00:47:52 | 2023-03-26T00:47:52 | 26,059,824 | 6 | 5 | null | 2022-12-08T00:43:21 | 2014-11-01T18:48:56 | null | UTF-8 | Python | false | false | 32,119 | py | # -*- coding: utf-8 -*-
"""Subclass of InteractiveShell for terminal based frontends."""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from __future__ import print_function
import bdb
import os
import sys
from IPython.core.error import TryNext, Usag... | [
"marcosptf@yahoo.com.br"
] | marcosptf@yahoo.com.br |
e293eb921939d7fb5914c6a7f11883da7b208df4 | e6535eb6cc33cea05122328ffa930efcd3ab48c8 | /heartext/migrations/0005_playlist.py | 27a2602ec347e90239c1399c945090a9582b00fc | [] | no_license | scottstanie/heartext | 2b822f179308dad342b0ec7f2ef1901a3961d57b | 802ad6833a1f3dffd7b3fac229f1b7e83b307ee0 | refs/heads/master | 2020-05-22T05:13:26.687389 | 2018-11-10T18:37:06 | 2018-11-10T18:37:06 | 84,672,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-03-29 13:00
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('heartext', '0004_snippet_t... | [
"scott@cogolabs.com"
] | scott@cogolabs.com |
57581103a1cc4283238521ca8dda959a6394d6b0 | a25571cfdf33fb7dc67024549215d9731a933078 | /scripts/rootDomainExtracy.py | 5f803baae41253a40b193b2643f249396308124c | [] | no_license | timetology/ecat | 8516042aee8713698e8930282bb8831ac83bf85b | c17723d063ce918e8a78f1d2c0c19c58c89d16be | refs/heads/master | 2023-09-01T07:42:13.375301 | 2023-08-23T13:05:33 | 2023-08-23T13:05:33 | 120,676,782 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | #!/usr/bin/python
import tldextract
import argparse
def main():
parser = argparse.ArgumentParser(description='Root Domain Extractor')
group = parser.add_mutually_exclusive_group(required=True)
group.add_argument('-f','--file', help='File list of Domains', metavar='<file>')
group.add_argument('-u','--url', help='UR... | [
"noreply@github.com"
] | timetology.noreply@github.com |
4b2a55645d68d11f8c8c4f911e8bfa539f82a6a0 | dd92d8aef48d4d76f5c9fc4d9af7911f9e62792e | /fitness/urls.py | f0425431841007fd210fcd6fdf86dd771f0c731c | [] | no_license | Jatin965/Sahirufitness | db9c7ab713a0d2021e5c7159d0a89b15d935cc38 | 928dc700b1fec1404f4ce1664367473f94146d07 | refs/heads/master | 2023-01-14T17:25:42.948169 | 2020-11-26T17:58:33 | 2020-11-26T17:58:33 | 302,004,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | """fitness URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"jatin4762@gmail.com"
] | jatin4762@gmail.com |
251f4b94234d2cacbf822e32f19aae0edea50f0f | 090fd16451ef226f0660d4be797c8a5fbf309f97 | /training_data/whole_image/to_tensors/metadata_to_grid_tensor.py | 4ca081192a85d619c3672f048fe0bd5599b745bb | [] | no_license | philip-brohan/Robot_Rainfall_Rescue | 2cdd20131a1ceae4e4af54059381b815f1cc138b | 4121d69aba6c8d180b57d92a0da11d09cd6843b4 | refs/heads/master | 2023-04-13T10:07:08.160001 | 2021-04-21T10:24:17 | 2021-04-21T10:24:17 | 267,624,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,783 | py | #!/usr/bin/env python
# Make a tensor containing grid-cell corner locations from the image metadata
import os
import sys
import math
import tensorflow as tf
import numpy
import pickle
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--rootd", help="root directory", type=str, required=True)
p... | [
"philip@brohan.org"
] | philip@brohan.org |
7bbd566034bd7d4a1245e54340f88f46c7394990 | 1182670e2ab9127f12135f25c1e02caac73fa5b4 | /Counting Valleys | 5c734132f7920c6fe255a8e55ebe9313ad48df18 | [] | no_license | sohitkumarpatel/hacker-rank-problems | d3fbe8b5346d3f5b67740d36212718c9996ce5a2 | 93969abf9a2c2d7a4fa0e857c8e628eb36229a29 | refs/heads/master | 2022-06-29T09:59:58.313643 | 2020-05-14T07:50:49 | 2020-05-14T07:50:49 | 300,202,076 | 1 | 0 | null | 2020-10-01T08:19:44 | 2020-10-01T08:19:43 | null | UTF-8 | Python | false | false | 548 | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the countingValleys function below.
def countingValleys(n, s):
level=valley=0
for i in range(n):
if(s[i]=='U'):
level+=1
if(level==0):
valley+=1
else:
level-=1... | [
"noreply@github.com"
] | sohitkumarpatel.noreply@github.com | |
d38333c18d45679b62018269967f8c0ac35bdc26 | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/ml/azure-ai-ml/tests/automl_job/e2etests/test_automl_image_segmentation.py | ffccf9eebf789cc84db05ad6812bd7fd5eab6066 | [
"LicenseRef-scancode-python-cwi",
"LGPL-2.1-or-later",
"PSF-2.0",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"Python-2.0",
"MPL-2.0",
"LicenseRef-scancode-other-copyleft",
"HPND",
"ODbL-1.0",
"GPL-3.0-only",
"Z... | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 4,934 | py | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
import copy
import platform
from typing import Tuple
import pytest
from test_utilities.utils import assert_final_job_status, get_automl_jo... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
78ac1d8ab0955e19b6f31f6d9c758f0027b2d9c6 | eef243e450cea7e91bac2f71f0bfd45a00c6f12c | /.history/app/api_service/nlp_processing_20210127230126.py | bde6c9249a1735a48dc000ac6a5ff9b4947ad313 | [] | no_license | hoaf13/nlp-chatbot-lol | 910ab2ea3b62d5219901050271fc1a1340e46a2f | 18cb64efa9d6b4cafe1015f1cd94f4409271ef56 | refs/heads/master | 2023-05-08T04:17:19.450718 | 2021-02-02T02:37:38 | 2021-02-02T02:37:38 | 332,535,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,073 | py | import csv
import json
import numpy as np
import sklearn
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.feature_extraction.text import CountVectorizer
import numpy
from keras.datasets import imdb
from keras.models import Sequential
from keras.layers import Dense, Dropout
from keras.layers imp... | [
"samartcall@gmail.com"
] | samartcall@gmail.com |
146ad723fb4b18704d7d58c5293ac51847215750 | 153e014921c63f8ec2637f56afa0a954d9131c61 | /Layout Containers/flowBox.py | e562fc8508d5a6314f6c245e03cc9707b7bcfc78 | [] | no_license | ajphukan/Gtk_gui_practice | f3ef7e73028c605b95ab29bdb172ac6b4ed229c0 | dfabe6067fa2aa6f025d11667ddc73b6748ead65 | refs/heads/master | 2020-03-23T04:55:29.761710 | 2018-07-25T12:38:43 | 2018-07-25T12:38:43 | 141,113,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,669 | py | import gi
gi.require_version("Gtk", "3.0")
from gi.repository import Gtk, Gdk
class FlowBoxWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="FlowBox Demo")
self.set_border_width(10)
self.set_default_size(300, 250)
header = Gtk.HeaderBar(title="Flow Box")
... | [
"ajphukan@yahoo.in"
] | ajphukan@yahoo.in |
4847c5d9a787afa041be616a2ff144e31b07d5b1 | 6adc166c33bdada82f7509301e25d1c451852d24 | /statistic/tasks.py | 8ea07645a18eb5b98ff7821ccaf1d29af08433f4 | [] | no_license | liushiwen555/unified_management_platform_backend | ab0a92f38be7f68bc1d3c4570560ea89bf8fcb07 | ae1ade20044b59de1e29288fcd61ba0b71d92be3 | refs/heads/master | 2023-06-25T22:45:24.669052 | 2021-07-27T01:08:24 | 2021-07-27T01:08:24 | 389,808,950 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 30,587 | py | import subprocess
import time
from datetime import datetime, timedelta
from typing import Dict, List
import psutil
from django.conf import settings
from django.contrib.postgres.fields.jsonb import KeyTransform
from django.db.models import Count
from elasticsearch_dsl import A
from auditor.bolean_auditor im... | [
"1599932996@qq.com"
] | 1599932996@qq.com |
2f3ff636fb34d745ffaa5ea9b022823502f5d43c | 665455c521cc7cf76c5436337ed545de90976af4 | /cohesity_management_sdk/models/subscription_type_azure_credentials_enum.py | 3089b273d3faa936de0e61a8f028a28e860b1215 | [
"Apache-2.0"
] | permissive | hsantoyo2/management-sdk-python | d226273bc8eedcf9220ea4999a6f0b9a1a30d99c | 0093194d125fc6746f55b8499da1270c64f473fc | refs/heads/master | 2023-03-01T06:09:39.644085 | 2021-01-15T08:23:16 | 2021-01-15T08:23:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Cohesity Inc.
class SubscriptionTypeAzureCredentialsEnum(object):
"""Implementation of the 'SubscriptionType_AzureCredentials' enum.
Specifies the subscription type of Azure such as 'kAzureCommercial' or
'kAzureGovCloud'.
Specifies the subscription type of an ... | [
"ashish@cohesity.com"
] | ashish@cohesity.com |
df712b54956bb8da1ae56146907131f4ca759115 | 227e0a4f11b91251732d90385eed02aa14fc80f0 | /models.py | 3f160f5980fcfc00a2ca098ab72eeb21f1a10b93 | [] | no_license | IsmaTerluk/Progamacion_Orientada_Objetos | 2471d33091716fcbe6fef709bcf4c2989eb2f6f1 | 3846880de64c54ce4703e75db42c2bec839dd974 | refs/heads/master | 2023-08-22T06:56:11.010774 | 2020-10-24T19:01:30 | 2020-10-24T19:01:30 | 306,383,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | from __main__ import app
from flask_sqlalchemy import SQLAlchemy
db=SQLAlchemy(app)
class Productos(db.Model):
NumProducto = db.Column(db.Integer,primary_key=True)
Nombre = db.Column(db.String(120),nullable=False)
PrecioUnitario = db.Column(db.Float,nullable=False)
items_producto = db.relationship('It... | [
"ismaterluk98@gmail.com"
] | ismaterluk98@gmail.com |
48f0854884ecd2500df38b72140371a1a933f8b9 | a80295f0d7d6c6c8ea5c0dce3929206eef2dfa66 | /server.py | ddc0415ff3af2352c792b0766c11232e6c28b67a | [] | no_license | bkodakari/flask2 | 38425ea04d12fcefeb538761ebeb66decc104852 | f17793af004bdd7602b6d7032ab84556a49a1317 | refs/heads/master | 2020-12-31T00:29:37.991325 | 2017-03-16T04:15:12 | 2017-03-16T04:15:12 | 85,152,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,561 | py | from flask import Flask, request
from random import choice, randint
from flask import render_template
COMPLIMENTS = ["smart", "clever", "tenacious",
"awesome", "Pythonic"]
# "__name__" is a special Python variable for the name of the current module
# Flask wants to know this to know what any imported... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
979cf5d9907e1010ad8d0cfbbb24e3376bba766c | 4bb55049e1598cb40085e6f1fcfeaec38a138efc | /src/Ant_Colony/AntCo.py | 695024548c47e35d0360367066d91ebd1ec9e412 | [] | no_license | Aldarme/Ants-Powered-Auto-routing-system | a1b49d4215569b951fc1d7c91a18dac4d86f9434 | 83a37e13d87ecd0b7bd31587b68d22e34f756e66 | refs/heads/master | 2023-06-29T22:20:18.880574 | 2020-05-13T16:44:00 | 2020-05-13T16:44:00 | 259,285,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,575 | py | '''
Created on 4 mai 2020
@author: promet
'''
from Ant_Colony.Ant import Ant, State
from Ant_Colony.CommonKnowledge import CommonKnowledge
class AntCo:
def __init__(self, vtxBegin_p, vtx_toReach_p):
self.antArray = []
self.create_ants(vtxBegin_p, vtx_toReach_p)
def create_an... | [
"rometpierre@gmail.com"
] | rometpierre@gmail.com |
fac51148262a72e92fb8d6a682814016332431b4 | b10e386479bd479eabde66930cb310dcaa58acd9 | /01-webtron/webtron/util.py | 9df96c1975e8b4b2e9cba18303ad032461c8d305 | [] | no_license | laljitsuri/automating-aws-with-python | 2e2c9f6e088f22b959fbe2b421b11e9e75812ef0 | b978d354a9fbdf86a2a51d00cb1e505c9626695e | refs/heads/master | 2022-11-19T04:19:55.509724 | 2020-07-20T12:12:18 | 2020-07-20T12:12:18 | 278,325,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,667 | py | # -*- coding:utf-8 -*-
"""Utilities for webtron script."""
from collections import namedtuple
Endpoint = namedtuple('Endpoint',['name', 'host','zone'])
region_to_endpoint = {
'us-east-2' : Endpoint('US East (Ohio)', 's3-website.us-east-2.amazonaws.com', 'Z2O1EMRO9K5GLX'),
'us-east-1' : Endpoint('US East (N... | [
"laljitsuri@Laljits-MBP.gateway"
] | laljitsuri@Laljits-MBP.gateway |
d7517cc559d493e81faded85998b3172c1f09add | 81d5c8c65dd14ba5fddcdc505488f13455783170 | /twitter/migrations/0002_auto_20190531_1819.py | 16c1152732c366f6179fa1dca8a5c2a0a6f4db0f | [] | no_license | piotr-kalemba/Twitter-like-application | 59df861d376bf82d27eef7afc2ea884ed994b293 | 54a42257af2e3e4377f5c4e75f745a46a5800960 | refs/heads/master | 2023-04-27T23:22:16.621360 | 2019-11-02T21:50:19 | 2019-11-02T21:50:19 | 188,399,382 | 0 | 0 | null | 2023-04-21T20:33:53 | 2019-05-24T10:04:52 | Python | UTF-8 | Python | false | false | 362 | py | # Generated by Django 2.2 on 2019-05-31 18:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('twitter', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='message',
name='content',
f... | [
"piotr-kalemba@wp.pl"
] | piotr-kalemba@wp.pl |
16c21992bf99fa3963ed35d0efe19c8a269d4555 | 76c2792ba72ad946ae112b34b6d0e937c4a256df | /nuclei_segmentation/generate_annotation.py | 787f3b51506ee73eace0da6ce5755ad6f48f8d1b | [] | no_license | journeadrien/autoscoring_centrioles | e12b25e8198dcb04b651e9a8fedf5a9599b8f00e | e32dcb654b3f63ff0776d843abc2662394bbdeac | refs/heads/master | 2023-06-03T18:37:33.735517 | 2021-06-21T15:09:55 | 2021-06-21T15:09:55 | 286,437,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,619 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 3 19:16:21 2020
@author: journe
"""
import numpy as np
import os
import utils
import os.path as op
import cv2
from skimage.io import imsave
from tqdm import tqdm
from skimage.measure import regionprops
import matplotlib.pyplot as plt
factor = {'DAPI':1,
'GFP'... | [
"journe@intranet.epfl.ch"
] | journe@intranet.epfl.ch |
5904178c9ca7077335bc997456f58b891cd2a079 | 52012471e3ab9ad7524ee2574e2f17db42cd381a | /flask1/to_aws.py | f3f67c6b6143ed6010f5ef4b963e82dbe760e8c4 | [] | no_license | U48P/Lambda-Api | f3bb37ad2ee152177612a94cd20ce1df5ed741fc | 54b86c6c1c565d576fd12ed6887afa9897beaee5 | refs/heads/main | 2023-08-22T19:15:49.445756 | 2021-09-22T11:44:04 | 2021-09-22T11:44:04 | 409,143,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | from flask import Flask, render_template, request
import boto3
app = Flask(__name__)
from werkzeug.utils import secure_filename
#import key_config as keys
s3 = boto3.client('s3',
# aws_access_key_id=keys.ACCESS_KEY_ID,
# aws_secret_access_key= keys.ACCESS_SECRET_KEY,
... | [
"noreply@github.com"
] | U48P.noreply@github.com |
a7b7eca7d0f5c8233a6d51aca9502e1841d90194 | e43030f5b3425cf36a58b032c58dc6b2c01dedc8 | /mfdw_root/blog/urls.py | 7f54e7a1e99e0f76fb915258f16b308ae0a9822c | [] | no_license | tomevans1122/First-Django-Site | ecc975b1680297b4ba01cc6131edcbc46e678354 | 8fe660caf4372dc93f585fb7628702860d376cbe | refs/heads/main | 2023-04-30T09:09:33.640575 | 2021-05-20T09:04:07 | 2021-05-20T09:04:07 | 369,140,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | from . import views
from django.urls import path
from .views import AboutPageView # new
app_name = 'blog'
urlpatterns = [
path('', views.PostList.as_view(), name='home'),
#path('about/', AboutPageView.as_view(), name = 'about'),
#path('<slug:slug>/', views.PostDetail.as_view(), name='post_detail'),... | [
"noreply@github.com"
] | tomevans1122.noreply@github.com |
e02f4f80043187d9ca488b04dd1a68527e2c29f7 | 468176baa3169764c4fa9b2e44f90d470fa52673 | /designator/publishers/migrations/0002_auto_20161117_1133.py | 55b80aaf1b7894254a97c2239e56d1b29eeac199 | [] | no_license | iesodias/jwdesignator | 25f2e019db030d2c3e94b8063eadf78c6bfaa726 | 22d414657b56906e7d12d72be9f62ce40319f334 | refs/heads/master | 2021-01-19T00:54:37.086711 | 2016-11-17T15:09:12 | 2016-11-17T15:09:12 | 73,286,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,900 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-17 11:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('publishers', '0001_initial'),
]
operations = [
migrations.AlterModelOptions... | [
"iesodias@gmail.com"
] | iesodias@gmail.com |
10f794876bff9222640ce92abb3e52e1013e1415 | a9fe1b5c320cdef138ac4a942a8b741c7f27de7c | /LC1302-Deepest-Leaves-Sum.py | c6d72946df16cfe5c4125b05fb11adb0f535d37c | [] | no_license | kate-melnykova/LeetCode-solutions | a6bbb5845310ce082770bcb92ef6f6877962a8ee | ee8237b66975fb5584a3d68b311e762c0462c8aa | refs/heads/master | 2023-06-28T06:35:33.342025 | 2021-07-30T06:59:31 | 2021-07-30T06:59:31 | 325,106,033 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | """
Given the root of a binary tree, return the sum of values
of its deepest leaves.
Example 1:
Input: root = [1,2,3,4,5,null,6,7,null,null,null,null,8]
Output: 15
Example 2:
Input: root = [6,7,8,2,7,1,3,9,null,1,4,null,null,null,5]
Output: 19
Constraints:
(*) The number of nodes in the tree is in the range [1, 10^... | [
"forkatemelnikova@gmail.com"
] | forkatemelnikova@gmail.com |
0eb28a0ae61498866bf757b6276dc51da2aa82d2 | 6b901744e198d8883b9295f5eab4bc48c9b2785d | /INSTRUCCIONES/UPDATE/expresion_insert.py | a333eac121e2d94c16d703e6392a89eef5bf24ef | [] | no_license | Juliocotzo/SQL_COMPI2 | f564008e25a4843f24a06decf3da9f87b8a485c9 | 33f3f04e20175834e56b301970c369c2a382910e | refs/heads/main | 2023-03-05T17:30:09.616071 | 2021-02-14T07:21:27 | 2021-02-14T07:21:27 | 320,437,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,130 | py | from enum import Enum
class TIPO_INSERT(Enum):
CON_PARAMETROS = 1
SIN_PARAMETROS = 2
class OPERACION_RELACIONAL(Enum):
MAYQUE = 1
MENQUE = 2
MAYIGQUE = 3
MENIGQUE = 4
DOBLEIGUAL = 5
NOIG = 6
DIFERENTE = 7
IGUAL = 8
class OPERACION_ARITMETICA(Enum):
MAS = 1
MENOS = 2... | [
"Juliocotzo11@gmail.com"
] | Juliocotzo11@gmail.com |
f3e3df18459f25016b7a178b64b5e52b4c0ee2b4 | 23b0cb36ba16017d5b9670bdf1ebef1cc36f1cc9 | /python/samples/tthAnalyzeSamples_2017_base.py | a62be3e928abe455fbce2172aa41fac127eb3e6d | [] | no_license | HEP-KBFI/tth-htt | 9d51b5ef087e62d491e88e387ecd824300552f64 | f95c39d6841058a5d1e36d5a0f806c6d6833952a | refs/heads/master | 2023-04-28T16:17:31.030396 | 2023-04-24T17:35:09 | 2023-04-24T17:35:09 | 45,119,990 | 3 | 19 | null | 2022-11-29T12:05:30 | 2015-10-28T14:58:26 | Python | UTF-8 | Python | false | false | 3,791,195 | py | from collections import OrderedDict as OD
# file generated at 2021-04-23 14:08:59 with the following command:
# create_dictionary.py -m python/samples/metaDict_2017.py -p python/samples/sampleLocations_2017.txt -N samples_2017 -E 2017 -o python/samples -g tthAnalyzeSamples_2017_base.py -M
samples_2017 = OD()
samples_... | [
"karlehataht@gmail.com"
] | karlehataht@gmail.com |
4bbc89f57fd75f317c4b779ed03d2d9b35326b0c | 5e93c898d797f6ab4a3c56147c5a6303e60db3e7 | /05 templates/00_basic_template.py | 0464bed0b2cea4c9a496f19d149d60abbc9c8831 | [] | no_license | anthonychl/python-and-flask-bootcamp-create-websites-using-flask | da56e231f6d373f17d92c8a8a2d9852843dfcb07 | 51b0c2c6348c2813ef0a9c7678c009acbe62f745 | refs/heads/master | 2022-12-11T20:06:16.128162 | 2019-08-11T20:55:23 | 2019-08-11T20:55:23 | 201,813,567 | 0 | 0 | null | 2022-12-08T01:04:52 | 2019-08-11T20:49:05 | HTML | UTF-8 | Python | false | false | 215 | py | from flask import Flask
from flask import render_template
app = Flask(__name__)
@app.route('/')
def index():
return render_template('00-Basic-Template.html')
if __name__ == "__main__":
app.run(debug=True) | [
"anthonychl.dev@gmail.com"
] | anthonychl.dev@gmail.com |
cf54b20e32fbc8f25ddf0dff32ec00b58ae862b0 | 62856e91de30fa5bd0d3411333f1b84ec57b230d | /python-scraper/so.py | 8d36befbe9816c9c2254946738cee11a3fdb0130 | [] | no_license | kangteagu/web-site-scraper | 0865f8817efcc7a8536b76d94115df9f8c82b22d | 8b818dd9b21695e83835785446b0f77798fd2eee | refs/heads/master | 2022-12-05T19:19:39.086036 | 2020-09-02T02:09:02 | 2020-09-02T02:09:02 | 281,337,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,384 | py | import requests
from bs4 import BeautifulSoup
URL = f"https://stackoverflow.com/jobs?q=python&sort=i"
def get_last_page():
result = requests.get(URL)
soup = BeautifulSoup(result.text, "html.parser")
pages = soup.find("div", {"class": "s-pagination"}).find_all("a")
last_page = pages[-2].get_text(strip... | [
"gangtaegu7@gmail.com"
] | gangtaegu7@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.