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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
023f8af1473e4b26b26918a3f4baac47e3c12473 | 7de9d5c8ca5bd65cc5322a96537c88d0389bc5c9 | /apps/main_app/views.py | 0219dfc2c8e6166c15a9fe498bc9f55a6f0b9c8d | [] | no_license | SeattleAmy/deploy | f3cb6f89bc4e0cdfe234d8b80acdef109d90072f | bf549dffb468913c6daba896acefb69dad03b835 | refs/heads/master | 2021-01-12T08:12:05.262309 | 2016-12-15T00:13:45 | 2016-12-15T00:13:45 | 76,500,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | from django.shortcuts import render, redirect
from .models import Email
from django.contrib import messages
# Create your views here.
def index(request):
return render(request, 'main_app/index.html')
def create(request):
if request.method =="POST":
result= Email.objects.register(request.POST['email'])... | [
"Amy@Amys-Air.hsd1.wa.comcast.net"
] | Amy@Amys-Air.hsd1.wa.comcast.net |
c9c28327fb58a3aa98aeddba5412a1cc8b720423 | 6aa85c2b0cd13c5f1f7bd94a7901baa5c074565e | /PycharmProjects/TCGA_w_bed/1create_mutation_bed.py | 328109e7dea956cc1c73602c8a22049e3d0f3790 | [] | no_license | rrawat/TCGA_w_bed | 204da76115acb6229dfc1dc39a1ceb847a06943c | d09043895a2092611a2d3cee68b6b83910999d7e | refs/heads/master | 2021-01-09T20:57:35.884731 | 2016-07-07T15:43:46 | 2016-07-07T15:43:46 | 62,512,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | #ene name Accession Number Gene CDS length HGNC ID Sample name ID_sample ID_tumour Primary site Site subtype 1 Site subtype 2 Site subtype 3 Primary histology Histology subtype 1 Histology subtype 2 Histology subtype 3 Genome-wide screen Mutation ID Mutation CDS Mutation AA Mutation Description Mutation zygosity LOH GR... | [
"rawat.radhika@gmail.com"
] | rawat.radhika@gmail.com |
cd4c7e6854eef7d83740ba16570aec3b7664d4ef | 0606f6af48d8e20c5231f3205d692f6a3943807f | /plot_hist.py | dd3b3b0b569537b8560a0ec250e48b02964f8d9f | [] | no_license | pahbs/HRSI | 9c95833ff89c2d4a72f8cf063781425892875fff | f83b790a04ad448589576f54bc5251781962831d | refs/heads/master | 2021-12-11T10:11:26.684339 | 2021-11-29T23:17:53 | 2021-11-29T23:17:53 | 75,756,652 | 4 | 1 | null | 2017-02-23T20:21:00 | 2016-12-06T17:51:32 | Python | UTF-8 | Python | false | false | 2,325 | py | #!/usr/bin/env python
#
# Utility to plot a histogram of a raster
import sys
import os
import argparse
import numpy as np
from pygeotools.lib import iolib
from pygeotools.lib import malib
from pygeotools.lib import geolib
from pygeotools.lib import filtlib
from pygeotools.lib import warplib
from dem_control import... | [
"paul.montesano@gmail.com"
] | paul.montesano@gmail.com |
0a53f26329b7e8f590b399d677a12e83e6704b2e | 28a124b6a2f22a53af3b6bb754e77af88b4138e1 | /DJANGO/companytodo/reports/migrations/0006_auto_20191209_0121.py | a29feb60b3e3cadd0f868274c2f14a8a99ef6f0e | [] | no_license | mebaysan/LearningKitforBeginners-Python | f7c6668a9978b52cad6cc2b969990d7bbfedc376 | 9e1a47fb14b3d81c5b009b74432902090e213085 | refs/heads/master | 2022-12-21T03:12:19.892857 | 2021-06-22T11:58:27 | 2021-06-22T11:58:27 | 173,840,726 | 18 | 4 | null | 2022-12-10T03:00:22 | 2019-03-04T23:56:27 | Python | UTF-8 | Python | false | false | 350 | py | # Generated by Django 2.2.7 on 2019-12-08 22:21
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('reports', '0005_auto_20191209_0120'),
]
operations = [
migrations.AlterModelOptions(
name='report',
options={'ordering': ('-... | [
"menesbaysan@gmail.com"
] | menesbaysan@gmail.com |
7d083c582e9faa973f538fd894def8a7c80648f6 | 29754007ad2fe1d8b5f029bc5fa1f9462170bb1a | /Day1to10/Day10/dayten.py | b240bb54fdef107bba341677f2d42b52ddf161c4 | [] | no_license | ivymorenomt/100daysofPython | 97a934a8789fcd9209cc0e2a9a3283ab66b99ced | 93517ff10bbac50441c9c18ed09e39da2157da02 | refs/heads/master | 2023-03-20T11:03:35.604992 | 2021-03-01T03:50:21 | 2021-03-01T03:50:21 | 339,278,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | ##### For Loop
numbers = [1,2,3,4]
doubled_numbers = []
for num in numbers:
doubled_number = num*2
doubled_numbers.append(doubled_number)
print(doubled_numbers) #[2,4,6,8]
##### List Comprehension
numbers = [1,2,3,4]
doubled_numbers = [num * 2 for num in numbers]
print(doubled_numbers) #[2,4,6,8]
name = 'col... | [
"morenomt27@gmail.com"
] | morenomt27@gmail.com |
e66a3429fba0505d6bd22ffa8a883b2d373757e7 | e06bd7bc83b9990702afb2bac9e1b8df4f7cc578 | /record.py | 8da7a9551aa1b98213dec677c74cc9941c0f0d83 | [] | no_license | sohamlanke/Automation | 7a4c649ad05edcae6afd0be9c33a2c1a52b296b1 | 2b00342ada47fdd61c334f9a2ca2ffcb7f7ac768 | refs/heads/main | 2023-07-17T16:30:15.872150 | 2021-08-16T16:44:49 | 2021-08-16T16:44:49 | 396,882,076 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py |
from pynput import mouse
from pynput import keyboard
from pynput.keyboard import Key
import json
import sys
import time
f = open("mouselogs.txt", "w")
clicks = []
pressTime = 0
releaseTime = 0
def on_click(x,y,button,ispressed):
global pressTime, releaseTime
isdoublepress = False
if ispressed:
pr... | [
"sohamlanke@gmail.com"
] | sohamlanke@gmail.com |
08b41d7233c27bcbd3ff46bae419f401ad35f9e4 | a67263ccde6de5d18de409a8924b64c38c8a71c1 | /djangosample/main/middlewares.py | 99578eeab540c0ba43bedc6888aeeac7c53cecb0 | [] | no_license | annshress/Demo | 8613437e7d626f7df4786e4d8b3297edb5e75286 | a73d064d9092d2764e873a208f61ceec1e93f62a | refs/heads/master | 2022-12-07T08:33:09.621364 | 2020-07-02T09:49:26 | 2020-07-02T09:49:26 | 239,692,452 | 0 | 0 | null | 2022-11-22T03:17:32 | 2020-02-11T06:28:28 | JavaScript | UTF-8 | Python | false | false | 3,316 | py | import jwt
from channels.auth import AuthMiddlewareStack
from django.contrib.auth import get_user_model
from django.contrib.auth.middleware import get_user
from django.contrib.auth.models import AnonymousUser
from django.db import close_old_connections
from django.utils.functional import SimpleLazyObject
from rest_fram... | [
"ann.shress@gmail.com"
] | ann.shress@gmail.com |
45e7ad2daa08b47300fc90982729d3862f4652cb | b806560b367d420bf413d7bac002199741e151c9 | /24pro.py | b14d92381fb1bef0388380f391eb1bc9dc2d64e7 | [] | no_license | umadevic/pro.py | dca7beadc62aa042779b165bc73dabb8647dde19 | 5e521aa8591593e56315500b224d2c15c8794fad | refs/heads/master | 2020-06-23T16:08:36.430856 | 2019-07-24T17:42:30 | 2019-07-24T17:42:30 | 198,673,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | #a
mi=int(input())
n9=2**mi
list1=[]
for i in range(0,n9):
l=bin(i)[2:].zfill(mi)
if(len(l)<len(bin(2**mi-1)[2:])):
list1.append([l.count("1"),l])
else:
list1.append([l.count("1"),l])
list1.sort()
for i in range(len(list1)):
print(list1[i][1])
| [
"noreply@github.com"
] | umadevic.noreply@github.com |
c421acb76a5856f072bae09257a60d9442f0928d | b7d435bbd9780eaaeb559c3969eb010506a10bdf | /dhis2_core/src/dhis2/core/metadata/models/system_info.py | f3d03bcca46fcd5203cafe4e403e1346bc5e650f | [
"BSD-3-Clause"
] | permissive | dhis2/dhis2-python | 29e3377e5bef52789b937a2337a69aa4619dd1d8 | d5ec976a5c04e6897756e3be14924ec74a4456fd | refs/heads/main | 2021-12-16T09:15:35.727187 | 2021-11-29T06:27:52 | 2021-11-29T06:27:52 | 308,135,669 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py | from typing import Optional
from pydantic import BaseModel
class DatabaseInfo(BaseModel):
name: Optional[str]
user: Optional[str]
url: Optional[str]
databaseVersion: Optional[str]
spatialSupport: Optional[bool]
class SystemInfo(BaseModel):
contextPath: str
userAgent: str
calendar: st... | [
"mortenoh@gmail.com"
] | mortenoh@gmail.com |
c0300915f88b4cbb234193be8a08ceb789f7fd55 | c24b28c0dc4ad8f83845f4c61882f1e04d49b5cd | /Plotly_Graphs/Plotly_Introduction/plotly_charts.py | d17cd6a9de3a549f8ebb82ff2712db48bbb76398 | [] | no_license | Coding-with-Adam/Dash-by-Plotly | 759e927759513d96060a770b1e0b0a66db13f54f | 9f178f1d52536efd33827758b741acc4039d8d9b | refs/heads/master | 2023-08-31T17:23:02.029281 | 2023-08-08T05:12:50 | 2023-08-08T05:12:50 | 234,687,337 | 1,293 | 1,822 | null | 2023-07-31T15:47:07 | 2020-01-18T05:36:28 | Jupyter Notebook | UTF-8 | Python | false | false | 370 | py | import pandas as pd
import plotly.express as px
dfb = pd.read_csv("bird-window-collision-death.csv")
df = px.data.tips()
fig = px.pie(dfb, values='Deaths', names='Bldg #', color="Side", hole=0.3)
fig.update_traces(textinfo="label+percent", insidetextfont=dict(color="white"))
fig.update_layout(legend={"itemclick":False... | [
"noreply@github.com"
] | Coding-with-Adam.noreply@github.com |
a81f1658dd871e8e403dcf6b4e512ae458767a2f | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /HBKAGJZ62JkCTgYX3_15.py | 5c5665b4393c00c704f2eb04cb3ee08dfe0d3464 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py |
def last(l,n):
if n>len(l):
return 'invalid'
elif n==0:
return []
else:
return l[len(l)-n:]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
6b90cca26ffb65e7c70dea2a4bb236f579e6791d | 948ce56cc061db1cd67a9ce6aee1619604dce1fb | /Code_Kinder/elias_02.py | 2198dda1fe82d2056b19e6e552b3972ad221e481 | [] | no_license | tomobones/hort | 3bde6e61e9b47b65b8e06be903470d2d348878ee | 3c5ffe0f861221de738334f0919424be4f1d1e38 | refs/heads/master | 2023-05-29T18:07:33.967243 | 2021-06-21T14:26:28 | 2021-06-21T14:26:28 | 316,201,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | import turtle
stift=turtle.Pen()
turtle.bgcolor('navy')
for x in range(999):
stift.forward(x)
stift.left(200)
stift.pencolor('green')
stift.forward(100)
stift.left(200)
stift.pencolor('white')
stift.forward(100)
stift.left(200)
stift.pencolor('purple')
stift.forward(100)
stift.left(200)
stift.pencolor('cya... | [
"thomas.vogg@posteo.de"
] | thomas.vogg@posteo.de |
7be5aa773f2e343fd4b8b491a4269fdf9fff5719 | ca609a94fd8ab33cc6606b7b93f3b3ef201813fb | /2017-feb/1.python/5.data-frames.py | 959658216b9ad8cb6baf46f1063d69277bcff50f | [] | no_license | rajesh2win/datascience | fbc87def2a031f83ffceb4b8d7bbc31e8b2397b2 | 27aca9a6c6dcae3800fabdca4e3d76bd47d933e6 | refs/heads/master | 2021-01-20T21:06:12.488996 | 2017-08-01T04:39:07 | 2017-08-01T04:39:07 | 101,746,310 | 1 | 0 | null | 2017-08-29T09:53:49 | 2017-08-29T09:53:49 | null | UTF-8 | Python | false | false | 726 | py | import pandas as pd
col1 = [10,20,30,40]
col2 = ['abc','def','xyz','pqr']
col3 = [0,0,0,0]
#creating data frame
df1 = pd.DataFrame({'pid':col1,
'pname':col2,'survived':col3})
df1.shape
df1.info()
df1.describe()
df1.head(2)
df1.tail()
df1['col4'] = 0
#access frame content by column/columns
df1.pid
df1['pid']
df1[['p... | [
"info@algorithmica.co.in"
] | info@algorithmica.co.in |
57ed8dfd72a02f6d165108493f9b836bd6aaa42f | e019891f24aa7ad9494a74b58cd6ab3ec04e9053 | /archive/migrations/0010_auto_20170609_1109.py | 7e6c06a873009d62e7125b560bee0a2a1e6b2464 | [] | no_license | MicrobesNG/StrainArchive | b34ede9779148ea9e87efcfb2025a9088ed81fcc | 789ea7a13ad94c80f79c1c203a1a27945fccb57e | refs/heads/master | 2020-07-15T04:58:23.400489 | 2017-07-17T14:22:00 | 2017-07-17T14:22:00 | 94,303,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-09 11:09
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 = [
('archive', '0009_auto_20170... | [
"microbesng@bio1187.bham.ac.uk"
] | microbesng@bio1187.bham.ac.uk |
b06eb71cc9b0e6f69810dbb952c651d089030934 | 0983849ea9c59263bdf500764473f766bdafd5e4 | /auxiliary_functions.py | 0778df0b613f9e33df055cbaa6d7d4652762e0e6 | [] | no_license | YuenyongPhookrongnak/01_TradingSeries | 34e61c0aab368c35d1a0b383ec8a397bd9c29acd | a29d01b30e5906ff40cea0036bb34ea11d56128f | refs/heads/main | 2023-09-03T18:19:44.198538 | 2021-11-08T05:48:12 | 2021-11-08T05:48:12 | 428,158,778 | 1 | 0 | null | 2021-11-15T07:11:34 | 2021-11-15T07:11:34 | null | UTF-8 | Python | false | false | 3,313 | py | import pandas as pd
from binance.client import Client
from binance_keys import api_key, secret_key
from datetime import datetime, timedelta
import time
import math
from binance.exceptions import *
client = Client(api_key, secret_key,tld='us')
def truncate(number, decimals=0):
"""
Returns a value truncated to ... | [
"leeschmalz@gmail.com"
] | leeschmalz@gmail.com |
dd831f71086ba26f6e526a01c435b01b2c54ac27 | 7fc24b36564f348298acac77cf4900b2204be283 | /scr_capture.py | e9ae16c23f21c4e041eb1d1eb93a3dea38226618 | [] | no_license | shadow-identity/screen_capture | ee7e41a4b754b2de2c732f66205b86454f8c0c90 | 4e4c5c3b41dfa6e445a3f1bf8a4b78e7f4145a3b | refs/heads/master | 2016-08-05T07:11:03.131181 | 2014-01-13T16:19:44 | 2014-01-13T16:19:44 | 12,612,290 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | #!/bin/python
# -*- coding: utf_8 -*-
import subprocess
import sys
# U can simply change fps
fps = 25
# get resolution
res = subprocess.check_output("xrandr | grep \*", shell=True).split()[0]
# ffmpeg command
command = ("ffmpeg -f x11grab -r {fps} -s {resolution} -i :0.0 -vcodec libx264 "
"-preset ultrafa... | [
"pavel.nedr@gmail.com"
] | pavel.nedr@gmail.com |
2ce930a77f53d08bd7633bac3cdee86c6e5cdd88 | f7327136419a3b895fb185bdc0af7a08256f8aed | /python/paddle/nn/layer/fused_transformer.py | 0084f7ff339df3e185dbe727d4632f758e7e9255 | [
"Apache-2.0"
] | permissive | paddlelaw/Paddle | 45a7598535d6a4b9dd0cfb9bbc61540ff9c1c21e | 12865234fe1e28fe5df50a43901845ceaea42c2d | refs/heads/develop | 2023-08-28T01:19:16.786973 | 2021-10-09T14:39:35 | 2021-10-09T14:39:35 | 331,300,511 | 0 | 0 | Apache-2.0 | 2021-10-09T14:39:36 | 2021-01-20T12:29:27 | Python | UTF-8 | Python | false | false | 19,928 | py | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | paddlelaw.noreply@github.com |
dc30cb6c2b1ae28d96b3d07b74b0dd419ceb9c5b | 34a2bad3033faba30cfa21d604291e5856020ee3 | /polint/q7.py | 72d0782862c0843707631d69f1ea58bc0a85eef0 | [] | no_license | karnatyrohit/computer_methods_assignment | 79b063935381b9e2406935fd8fbc1bbc7995ebed | bed9782f956c94f11ee37e47fbbc5cffad992436 | refs/heads/master | 2021-01-10T09:40:28.324788 | 2015-12-13T15:37:17 | 2015-12-13T15:37:17 | 47,776,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | from scipy import *
from matplotlib.pyplot import *
from q1 import *
def f(x):
y = zeros(x.shape)
y = sin((pi) * x) / sqrt(1-x*x)
return y
x = linspace(0.1,0.9,17)
#y = [f(x1) for x1 in x]
y = f(x)
figure(3)
plot(x, y)
max_exact=zeros(21)
max_est=zeros(21)
#n=3 # order of interpolation
#xarr=linspace(0,1,30)
#ya... | [
"karnaty.rohit@gmail.com"
] | karnaty.rohit@gmail.com |
927ca15778a1bf9acbf23fb2734e6a222231aeb2 | 7404a76d7c9820c77db6f73e6b37f81f6d7e40e4 | /preprocess_dreambox_ts_file.py | 23d9df49d12f5c69a4e6112aceb8d7374b09e998 | [] | no_license | svenXY/video_stuff | 2638eeb7d97890ec701b7c47cfdc8d7fb4931765 | 711d1f9a150b288c8cb5b5dfa6b2bf4c7a6ef9a7 | refs/heads/master | 2021-01-13T01:36:17.323282 | 2013-09-27T14:08:35 | 2013-09-27T14:08:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,554 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
# Name : preprocess_dreambox_ts_file.py
# Description : rename a ts and ts.meta file according to it's metadata
and place them in a properly named subdirectory for
further processing
# Author : Sven Hergenhahn
'''
import os
imp... | [
"sven@hergenhahn-web.de"
] | sven@hergenhahn-web.de |
f5792eceda5ffb1389886679e52cd15a6aa98aec | 8161e5820ff5ce6d780ff58b428b760559c68838 | /py_bing_search/httputil.py | 5bf4f083276f517a2481001f038230da07b7524b | [
"MIT"
] | permissive | trusty/py-bing-search | 02f8e4760e72d75ae33985a140344986e6e25efc | 9e65adb1dfb24969e3ba90bfb259fa07c85fce5a | refs/heads/master | 2021-01-15T13:05:57.868091 | 2016-06-30T07:58:12 | 2016-06-30T07:58:12 | 49,337,988 | 0 | 1 | null | 2016-06-30T07:58:12 | 2016-01-09T19:23:28 | Python | UTF-8 | Python | false | false | 373 | py | import requests
import threading
def get_requests_session():
"""Returns a new (or existing) requests.Session object for current thread"""
try:
ret = get_requests_session.tld.requests_session
except AttributeError:
ret = get_requests_session.tld.requests_session = requests.Session()
ret... | [
"asj@vulcantechsoftware.com"
] | asj@vulcantechsoftware.com |
4cecb1fdea73ca9f39f2bdf440f6840a5f57c2f2 | 7aebfaec6957ad67523f1d8851856af88fb997a6 | /catkin_ws/build/robotiq/robotiq_3f_gripper_control/catkin_generated/pkg.develspace.context.pc.py | 472d6f1b90073d4764f3841493bb27694a2f8bfa | [] | no_license | k-makihara/ROS | 918e79e521999085ab628b6bf27ec28a51a8ab87 | 45b60e0488a5ff1e3d8f1ca09bfd191dbf8c0508 | refs/heads/master | 2023-01-28T06:00:55.943392 | 2020-11-26T05:27:16 | 2020-11-26T05:27:16 | 316,127,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/mslab/catkin_ws/devel/include".split(';') if "/home/mslab/catkin_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "controller_manager;diagnostic_updater;dynamic_reconfigure;hardware_inter... | [
"makihara@ms.esys.tsukuba.ac.jp"
] | makihara@ms.esys.tsukuba.ac.jp |
db3a22f33075fc3cfdd60234dff8c37f23410c54 | 6026aa86f6854f8ed1c81687408a78a07279b696 | /script/PCA.py | 16cf373a3208780d25cf81a3a1a6701346d0605c | [] | no_license | Zchristian955/Telecommunication_Challenge | db3adeeb1404963fd50c3f0b24ad9c3de856dd35 | 5e99188e53d1e1e6faccebdff8657c122ca500a3 | refs/heads/main | 2023-08-16T10:39:04.293660 | 2021-09-16T23:19:52 | 2021-09-16T23:19:52 | 386,347,978 | 0 | 0 | null | 2021-09-16T21:44:02 | 2021-07-15T15:59:55 | Jupyter Notebook | UTF-8 | Python | false | false | 1,759 | py |
import numpy as np
import pandas as pd
import warnings
warnings.filterwarnings('ignore')
pd.set_option('max_column', None)
df = pd.read_csv("df", na_values=['?', None])
from sklearn.preprocessing import scale #data scaling
x = scale(df)
#PCA
from sklearn import decomposition #PCA
pca= decomposition.PCA(n_compone... | [
"zchristian955@gmail.com"
] | zchristian955@gmail.com |
138d463273707cc372256d3eec3ca9c5d5fe1e11 | 590ca008f00869276f29ac6d3e1da6d82778584b | /api/migrations/0029_auto_20200914_0235.py | 4a0c74b45fc6b6bf5a3ddb60b84a2c1120fb68ac | [] | no_license | sali73/Donuts_App | 92b1226cf97968481c7be15588204c3aee6151e3 | 75911b8523cbe0792c7550466f1cedeba7ae01a6 | refs/heads/master | 2023-01-13T07:43:25.681619 | 2020-11-26T01:51:39 | 2020-11-26T01:51:39 | 293,178,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | # Generated by Django 3.0.7 on 2020-09-14 02:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0028_auto_20200914_0231'),
]
operations = [
migrations.AlterField(
model_name='product',
name='qty',
... | [
"sally.elgendy@hotmail.com"
] | sally.elgendy@hotmail.com |
9a6cfcf00b74e17e98d8ab6cc2bd547aeb55651e | 73d67a4fa7991ba429506c2da9e5712e1bc80963 | /Curso-em-video-Python3-mundo3/ex095.py | 2f40d7f2efe3244df50bd1c52d9cfdd58e7c4c18 | [
"MIT"
] | permissive | bernardombraga/Solucoes-exercicios-cursos-gratuitos | 454f9926c42989b2f513f877b1454b38fe621faf | 0347a8325443fce84e0a753c96f523a22858537b | refs/heads/main | 2023-01-19T07:23:10.258846 | 2020-12-01T01:13:27 | 2020-12-01T01:13:27 | 308,421,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | time = []
jogador = {}
while True:
jogador['nome'] = str(input('Nome: ')).strip().capitalize()
nPartidas = int(input(f'Quantas partidas {jogador["nome"]} jogou? '))
jogador['gols'] = []
for i in range(0, nPartidas):
nGols = int(input(f' Quantos gols na partida {i+1}? '))
jogador['gols'... | [
"73315353+bernardombraga@users.noreply.github.com"
] | 73315353+bernardombraga@users.noreply.github.com |
9ff2f22cb931ef1b4b6f3de6cb5ba468dace744c | ae613a880eecf783ba23e7ca871f9e165ec2ce6e | /calculate_root.py | f6e918aef989a07665376a59101b386c993edc8e | [
"MIT"
] | permissive | h-mayorquin/capacity_code | 52d7e81026cd804677d5a5a6312b434bdff6ed32 | f885f0e409d3f9c54b8e20c902f7ef28584ca8a2 | refs/heads/master | 2020-08-28T00:30:14.760936 | 2020-01-31T17:26:29 | 2020-01-31T17:26:29 | 217,534,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | import warnings
import pickle
import pandas as pd
import numpy as np
import random
from math import ceil, floor
from copy import deepcopy
from functions import *
warnings.filterwarnings('ignore')
minicolumns = 10
hypercolumns = 5
sequence_length = 2
number_of_sequences = 20
pattern_seed = np.random.randint(0, 20)
de... | [
"h.mayorquin@gmail.com"
] | h.mayorquin@gmail.com |
b1b669b81b3b3af232520b452ae2ec8d589ea9bc | 2104153bfc138b7e677aba0da9da376c38b7dcd0 | /apps/extensions/db.py | cfe285977011e170da1d102d9769b0ee4dfad351 | [] | no_license | lucassimon/flask-api-users | 992c75491cf577f74649097e49a04fbc74ea50e1 | 510443d481486f09a09398a5225ace82320477f3 | refs/heads/master | 2023-06-09T16:17:39.873516 | 2023-06-05T04:24:56 | 2023-06-05T04:24:56 | 137,128,845 | 22 | 16 | null | 2018-11-20T18:00:53 | 2018-06-12T21:18:41 | Python | UTF-8 | Python | false | false | 71 | py | # Third
from flask_mongoengine import MongoEngine
db = MongoEngine()
| [
"lucassrod@gmail.com"
] | lucassrod@gmail.com |
c1337933143e4be73f495569475dbf98d651bfac | f0b52a3ae5115b9a839d6bd3e765de83ecb21a28 | /Payload_Type/Apollo/mythic/agent_functions/net_localgroup_member.py | 6b2fad53fcf068ef12c142ebdcfed4c9d96d878c | [
"BSD-3-Clause",
"MIT"
] | permissive | bopin2020/Apollo | ad98f1cb872bd2134509df55ee67a79c51e6d316 | 7660439cbc8d4f18af2b564a5b7a0ac4f8f3765a | refs/heads/master | 2023-01-12T23:50:01.266984 | 2020-11-12T07:03:13 | 2020-11-12T07:03:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,699 | py | from CommandBase import *
import json
class NetLocalgroupMemberArguments(TaskArguments):
def __init__(self, command_line):
super().__init__(command_line)
self.args = {
"computer": CommandParameter(name="computer", required=False, type=ParameterType.String, description="Computer to enu... | [
"djhohnstein@gmail.com"
] | djhohnstein@gmail.com |
7c12f5d4d292eebf97006f379c6face0c50cdb10 | 6bf00ba9925e4c846f4f3bdb1bd39f02461d4bcc | /SISR_bachelor_project/SRCNN/test.py | fc4e756f4b11d2d9ce0214a6044c47fa495d7fb5 | [] | no_license | teouw/SISR_bachelor_project | b898172683db706dcf9d139ebe7d1e3ab7e43cb1 | 47aed6300d4c52b0574c552b21f0efcfd29d6f2c | refs/heads/master | 2023-07-12T12:43:48.530067 | 2021-08-27T18:06:16 | 2021-08-27T18:06:16 | 398,080,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | import os
from model import SRCNN
from lib import *
import cv2
import numpy as np
import matplotlib.pyplot as plt
import time
scale = 3
c_dim = 3
dirname = './output/'
image_size = None
if __name__ == '__main__':
#create the srcnn model
srcnn = SRCNN(
image_size=image_size,
c_dim=c_dim,
... | [
"teo.kaltrachian@etu.hesge.ch"
] | teo.kaltrachian@etu.hesge.ch |
27889d659fe45c001298a48e6f24daf50af2c223 | 66871d8baaabcb3bebbf32f5c4207e6eadef9d81 | /instance/config.py | dfb67f53cb5ae44213709b851a2d9b257b29363c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Roney-juma/News_app | 2f19c1b5458de703bf1ca2cbd4b0bf2656fac8e5 | 5d0e1a6de2d1cb50759b4ab2f51a397e640a9b35 | refs/heads/master | 2023-05-29T15:56:26.165348 | 2021-06-09T11:52:47 | 2021-06-09T11:52:47 | 374,165,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | NEWS_API_KEY = '384e999ffb31459da519c72d9c8f6ba2'
SECRET_KEY = '384e999ffb31459da519c72d9c8f6ba2' | [
"ochirone10@gmail.com"
] | ochirone10@gmail.com |
d24bb4698a8a5f9fed82640a66867981f43abc05 | 037b8c568181045fc33ba0922d2b3831ed5736d5 | /scripts/rdf/github.py | db2c1f842a000c66976098132037e48ba507d3e4 | [
"Apache-2.0"
] | permissive | avullo/ensembl-production | b20aaec17f66e997f37500062021a0be46448bc0 | 4c1b898ecdb7803916a5b79a406c3707669f3400 | refs/heads/master | 2020-04-05T00:11:45.591933 | 2018-11-01T10:56:53 | 2018-11-01T10:56:53 | 156,387,224 | 0 | 3 | Apache-2.0 | 2018-12-24T14:04:02 | 2018-11-06T13:23:41 | Perl | UTF-8 | Python | false | false | 2,304 | py | #!/usr/bin/env python
"""Module providing a function which allows to push a project (i.e. Ensembl, EnsemblGenomes)
VOID file to the respective branch in the EBI SPOT GitHub repository."""
import requests
import base64
import json
import datetime
def push_to_repo_branch(gitHubFileName, fileName, branch, user, token):
... | [
"avullo@ebi.ac.uk"
] | avullo@ebi.ac.uk |
df173b09e52bcebac847d81f36209822a42c1363 | ee84ead460e1af5711114ea07ad6cbe70a8107e2 | /project/project/urls.py | ef57ff8a25b379a2839b4b0e6cc5a12f1ea6e1dd | [] | no_license | TrellixVulnTeam/senproj_93I4 | a576d08572561e980ec96091a39c21b33eb95ad3 | 4c1102461d8d2c67abfdc7a80ba3eb6ff9048d8c | refs/heads/master | 2023-03-16T14:35:24.657546 | 2018-05-01T19:31:46 | 2018-05-01T19:31:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/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')
Class-bas... | [
"hk@LAPTOP-ERRNQLE4.localdomain"
] | hk@LAPTOP-ERRNQLE4.localdomain |
0b132d3ff7fa0c5fde1128588d8259239264b31d | 50575fd3465ac749d520036cdfecf1cebdfcd414 | /metaflow/metaflow/plugins/conda/__init__.py | 2535ea25ad99d2c8fa6605f679a5425d04f97807 | [
"Apache-2.0"
] | permissive | UesleiJf/Netflix-Metaflow | 5fb442ed2645ee626bd4c27a320587fac8ab31e7 | 2c164afbf875b5d63c030f6d4cab15c54bcf646b | refs/heads/master | 2023-01-04T16:58:09.372588 | 2020-01-19T19:16:51 | 2020-01-19T19:16:51 | 227,640,463 | 2 | 1 | Apache-2.0 | 2022-12-21T02:41:29 | 2019-12-12T15:42:04 | Python | UTF-8 | Python | false | false | 1,210 | py | import errno
import os
import json
import fcntl
CONDA_MAGIC_FILE = 'conda.dependencies'
def get_conda_manifest_path(ds_root, flow_name):
return os.path.join(ds_root, flow_name, CONDA_MAGIC_FILE)
def read_conda_manifest(ds_root, flow_name):
path = get_conda_manifest_path(ds_root, flow_name)
if os.path.e... | [
"uesleijf@gmail.com"
] | uesleijf@gmail.com |
109e032b250691b3bf5f5ea34a9982e509cbd868 | 3d9825900eb1546de8ad5d13cae893eb0d6a9b14 | /AutoWorkup/SEMTools/setup.py | 94c4428d8e6622b3e676c76f782d87775210107d | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | rtkarcher/BRAINSTools | 20d69f96e6d5ca92adaeb06aa4fe6556b5e7b268 | 961135366450400409cece431423ed480855d34c | refs/heads/master | 2021-01-15T08:53:48.961607 | 2013-06-26T19:09:34 | 2013-06-26T19:09:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
def configuration(parent_package='', top_path=None):
from numpy.distutils.misc_util import Configuration
config = Configuration('SEMTools', parent_package, top_path)
config.add_data_dir('dif... | [
"hans-johnson@uiowa.edu"
] | hans-johnson@uiowa.edu |
30bcffde3d4ff50bd5b5f4ea7c1cec217c2fc340 | 7b73c2ea792f4b00add3391040cd67cd4a11cc4c | /admin_lalo/clients/forms.py | e1ab8ae6e34eddb3463b2969c128d99a10435ac6 | [] | no_license | LaloAR/Administrador-con-DJANGO | bffd18d77875c7d378bac7bf074c571148f2018d | 3940d232b5aaf3f523338ed47677606acf9f54c2 | refs/heads/master | 2020-03-19T23:38:29.866643 | 2018-06-11T16:20:20 | 2018-06-11T16:20:20 | 136,948,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,940 | py | # -*- coding: utf-8 -*-
from django import forms
from django.contrib.auth.models import User
from .models import Client
from .models import SocialNetwork
'''
Constants
'''
ERROR_MESSAGE_USER = {'required' : 'El username es requerido', 'unique' : 'El username ya se encuentra registrado', 'invalid' : 'Ingresa un usern... | [
"eduardo.alcantara.rios@outlook.com"
] | eduardo.alcantara.rios@outlook.com |
ef7f5dea2b7f0cf33e446cecaaa9707330e93d6b | e3365cc72f7bfbc7d95066a1b84e332544f41803 | /Http_network_crawling.py | 4c50279a5ae078c3d3a4119a86b0fd11b2333834 | [] | no_license | webshell520/My_Python_Tools | b419a11bff15f965a6b99b165ee5bbdce0c18e40 | 1a04a6f1e4181f2cc588c8745b69c09620fd24c3 | refs/heads/master | 2020-03-14T06:36:12.842354 | 2017-10-20T09:04:01 | 2017-10-20T09:04:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,582 | py | #!/usr/bin/env python
#-*-coding=utf-8-*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import re
import sys
import Queue
import threading
import argparse
import requests
from IPy import IP
printLock = threading.Semaphore(1) #lock Screen print
TimeOut = 5 #request timeout
#User-Agent
heade... | [
"noreply@github.com"
] | webshell520.noreply@github.com |
5b22e465d6bfea324c4799ed5375f66ac7654f7f | 4283c553bea803fc9ca7544ee43654c180e4bfe1 | /app.py | 3797b799b9c27726443620e95a099aa873cdf9db | [] | no_license | Sarellerchy/wuhan2020_coronavirus_NCP_dashboard | 8b0f84d1e556bce4b268c4cb2d74aa92cba3f756 | 8f4aad774349ca235c6b879a68d087f1f003791a | refs/heads/master | 2021-01-01T11:15:20.379390 | 2020-02-15T10:32:21 | 2020-02-15T10:32:21 | 239,254,628 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | from flask import Flask,render_template
from spider import data_total,news_data
import json
app = Flask(__name__)
@app.route('/')
def hello_world():
return render_template("index.html",confirmtotal = '{:,}'.format(data_total.gntotal),suspecttotal = '{:,}'.format(data_total.sustotal),
h... | [
"mandybear319@163.com"
] | mandybear319@163.com |
2b9cbaa72278d4ee2b17c60d3fc5d1436d85591a | 5df21c11a43f0ecf4347ff880742a2135ad48e53 | /scripts/dataslicer/Slicer.py | 14787afcb2d2af8c65daec11730a9d682535815d | [] | no_license | DrGilion/DataVisualization | 2c372b7b213e35a0b06b23d2158b0393c91fadba | 0d0ce8c9956f89585e22d225af1247f404a9f857 | refs/heads/master | 2020-03-11T02:44:32.150980 | 2018-06-11T11:16:36 | 2018-06-11T11:16:36 | 129,727,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,331 | py | import json, collections, csv, os
class Slicer:
def __init__(self, dump_file, output_dir='data/'):
self.dump_file = dump_file
self.output_dir = output_dir
self.data = None
def init(self):
if not self.data:
if not os.path.exists(self.output_dir):
os... | [
"philip.matesanz@driggle.com"
] | philip.matesanz@driggle.com |
3260cc71bf51ca6c5472658a1ca8bdfa0d073a18 | 7ae00ae1659ae99e4fc91e3fea2a253db01abceb | /venv/lib/python3.7/site-packages/werkzeug/__init__.py | 02ba61089f1afec895c949e50b76b8f2c4186dd4 | [] | no_license | fredpan/PiPiXia-Server-intro-cloud-computing | 9d6e6db0ba4571c72d595a127137dac97fa3ec4c | 91bec4d18bd23177b5144845c938672f60f49c08 | refs/heads/master | 2020-08-07T13:28:26.244172 | 2019-10-10T05:50:31 | 2019-10-10T05:50:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,080 | py | """
werkzeug
~~~~~~~~
Werkzeug is the Swiss Army knife of Python web development.
It provides useful classes and functions for any WSGI application to
make the life of a Python web developer much easier. All of the provided
classes are independent from each other so you can mix it with any other
library.
:copyright:... | [
"fredpan0821@gmaill.com"
] | fredpan0821@gmaill.com |
b836ab3184c86a5580190a268a1f5b5241677048 | ef54d37f8a3303013ca7469871a320d303957ed7 | /robo4.2/fusion/tests/wpst_crm/feature_tests/TBIRD/F110_Port_Monitoring/port_monitor_support_module.py | a6deffdae867986fcbebc06b5c2da63aca16ddb9 | [] | no_license | richa92/Jenkin_Regression_Testing | d18badfcf16bda682dfe7bcbbd66f54a9a27a58d | 24a74926170cbdfafa47e972644e2fe5b627d8ff | refs/heads/master | 2020-07-12T10:01:59.099137 | 2019-08-27T12:14:53 | 2019-08-27T12:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | '''
This module is used to include some helper function for Port Monitoring
'''
def set_networkuri_lig(data_variable, get_output):
'''
Build the network URI's from the network Name and form the
LIG body
'''
temp = data_variable
for i in range(len(temp['uplinkSets'])):
for j in range(len(temp['uplinkSets'][... | [
"akul@SAC0MKUVCQ.asiapacific.hpqcorp.net"
] | akul@SAC0MKUVCQ.asiapacific.hpqcorp.net |
2b2602042f1ed0d95c722a129a06ec21856cab22 | cc90d98a64693ca4542c999b5d2241b60eb33aac | /Problem62-3.py | e12955f5179fe407cd38b8141c64e187aee5cac8 | [] | no_license | Nan-Do/eulerproject | 1f63b23a4d4e344c8525238b2333920e733b03c9 | d33033d6af10d1aca8f7db9bcf187ef8f6005040 | refs/heads/master | 2021-01-10T15:51:39.594159 | 2016-04-14T05:41:16 | 2016-04-14T05:41:16 | 48,170,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | from itertools import count, permutations
from math import ceil
def gen_cubes():
for n in count(start=1):
yield n ** 3
def is_cube(n):
v = ceil(pow(n, (1/3.)))
return (v ** 3) == n
def check_cube(number, limit):
n_str = str(number)
count = 0
repeated = set()
for n in set(permutati... | [
"icemanf@gmail.com"
] | icemanf@gmail.com |
a38b2d22735f142d5aef497ce84ffd8739a0983a | b887177e3adb181fd1bc3b83c75814e9e3e4f535 | /env/bin/qr | 920b4680a1c4625ff8e74475601cd3bd9fcab659 | [] | no_license | vinitparak/QRCode_userdata | 748a0a02368a2e827a05ec6efa2a33d76c60b954 | 340bc28519cb496656340094160a2dcfcb3469e2 | refs/heads/master | 2020-09-08T17:48:24.985555 | 2019-11-12T11:19:37 | 2019-11-12T11:19:37 | 221,200,103 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | #!/home/vinit/Documents/qrcode/env/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'qrcode==5.1','console_scripts','qr'
__requires__ = 'qrcode==5.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"vinitparakh12@gmail.com"
] | vinitparakh12@gmail.com | |
f562201b3685766803426c0adbb30f5e6e1eb296 | 12e6ce3fb8628230a3b4bed6f4a41a0449f04135 | /assignment2/cs231n/layers.py | 2060da31b0b0be241b02f22b46082d7bf87738cf | [] | no_license | axydes/cs231n | bb833bab6dfe49a8e784d1cf5cea3e7d48978bb8 | c7016368b4f4235a652afb0539d18a759841739e | refs/heads/main | 2021-07-12T23:51:48.234182 | 2021-03-21T22:29:29 | 2021-03-21T22:29:29 | 45,052,817 | 0 | 0 | null | 2021-03-21T22:29:30 | 2015-10-27T16:06:21 | Jupyter Notebook | UTF-8 | Python | false | false | 11,424 | py | import numpy as np
from scipy import ndimage
from cs231n.im2col import *
def affine_forward(x, w, b):
"""
Computes the forward pass for an affine (fully-connected) layer.
The input x has shape (N, d_1, ..., d_k) where x[i] is the ith input.
We multiply this against a weight matrix of shape (D, M) where
D = ... | [
"alexander.xydes@navy.mil"
] | alexander.xydes@navy.mil |
ced2d21a6a7709401c7081f172dd9ad5055230a8 | aa18020074665dd2b70e2e09df49eed9d453cfe2 | /server.py | 4ba46b7886c01b5d3d191c4e6d5b957cfe057fe5 | [] | no_license | alfredgg/personal-webpage | 95f1d928f41437a81f61155602efe9bfee77d53d | c6ebc530684478d25b7feed368d71d14c696b3da | refs/heads/master | 2020-12-29T02:21:44.940667 | 2017-03-20T11:48:02 | 2017-03-20T11:48:02 | 39,331,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from webpage import app
from flask_debugtoolbar import DebugToolbarExtension
if __name__ == '__main__':
app.debug = True
app.config['SECRET_KEY'] = 'dt'
# DebugToolbarExtension(app)
app.run()
| [
"alfredgg@yahoo.es"
] | alfredgg@yahoo.es |
ba6d0088df5d4e1c6183d23d78a84e55493c3225 | 79acb3dc0d4cbb8fb61c5b0955c596fdf3509570 | /make_random_metadata.py | b48553959a1093cb40f2d8f2c80adb366b40ca91 | [] | no_license | Atehortuajf/DCS-1020-Final-Project | 44053a0ecbe1079117ba399e7888f2f5e2156010 | 2a62a08228f7eb991bd2701fc728d6b5efd3c852 | refs/heads/main | 2023-02-01T03:07:56.397073 | 2020-12-20T22:47:01 | 2020-12-20T22:47:01 | 322,955,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | import csv, random
sourcefolder = '/Users/tunder/Dropbox/fiction/meta/scifimeta.csv'
allrows = list()
with open(sourcefolder, encoding = 'utf-8') as f:
reader = csv.DictReader(f)
fieldnames = reader.fieldnames
for row in reader:
tagtoadd = random.choice(['teamred', 'teamblue'])
row['genre... | [
"67188088+Atehortuajf@users.noreply.github.com"
] | 67188088+Atehortuajf@users.noreply.github.com |
145f60532ab8170abd0c6a4876d81608c2693f9c | fa1b4f613f0cd08d839510b906b4bd18293a0e46 | /model/locations.py | 532e35a690150e3a26ef39862afc6966f5694b2f | [] | no_license | JoseRoberts87/python-webapp-template | 041f9eb8771e4166909744d6510172381bc560b4 | a1e27cb9886899c3e90ef8191f621412640d4315 | refs/heads/master | 2020-03-27T05:02:32.319095 | 2018-08-24T12:45:30 | 2018-08-24T12:45:30 | 145,990,175 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | from app import db, ma
from common import utils
class Locations(db.Model):
__tablename__ = 'locations'
location_id = db.Column(db.String(45), primary_key=True)
name = db.Column(db.String(45))
type = db.Column(db.String(45))
level = db.Column(db.Integer)
status = db.Column(db.String(45))
cla... | [
"robenjos@amazon.com"
] | robenjos@amazon.com |
766788054d2e78f8f56b6d0304c365f753c5d19a | 1dc93ee1beead5930e8c857fc9edede92854e589 | /pa6/ga.py | 1864dec99ac615ee02d2bfc75eebc76d890b3d3b | [] | no_license | hanette/CMPM-146 | fd78674efdb59207fe46fdef83cf76f7cb2a13c2 | c972c0e330d3776c46c428ceb665cfebdccddcfe | refs/heads/main | 2022-12-21T01:21:26.438757 | 2020-10-07T05:53:34 | 2020-10-07T05:53:34 | 301,936,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,331 | py | import copy
import heapq
import metrics
import multiprocessing.pool as mpool
import os
import random
import shutil
import time
import math
width = 200
height = 16
options = [
"-", # an empty space
"X", # a solid wall
"?", # a question mark block with a coin
"M", # a question mark block with a mush... | [
"noreply@github.com"
] | hanette.noreply@github.com |
271813ce9df854023fe3b6d50c40601bd44a2d32 | b80059648afab4474e567ec1035d63d060d9b3a6 | /src/analyze.py | e18911d2f1160107000f7ce93c5532bf18c7c900 | [
"MIT"
] | permissive | SteemData/classify.steemdata.com | 8b34d7ae9e666b9dfe9930c82dc347650356fb94 | 507d2d537a502701dd6e28c9581c132942084b7a | refs/heads/master | 2021-03-19T05:57:34.360839 | 2017-11-09T22:30:59 | 2017-11-09T22:30:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | import boto3
from easydict import EasyDict as ed
config = ed(
region_name = 'us-west-2',
s3_bucket_name = 'steem-hackaton-input'
)
rkg = boto3.client('rekognition', region_name=config.region_name)
def nsfw(img: bytes):
response = rkg.detect_moderation_labels(
Image={'Bytes': img},
)
retu... | [
"_@furion.me"
] | _@furion.me |
18122f8ba0ea425a2f59eac84a1b4f2b379a77d3 | 5204b7b60f1780e2af1bd785beed4145f8d38d83 | /python/Gohan/core/__init__.py | 123b3426cb27438160bffca3d7edf46567d62acd | [] | no_license | sdss/mangadesign | e5001c30db25e6efe9a439359e0e67fd9b5266e4 | 6852432aeb682b19d46eff22f8cf57bbac272b7e | refs/heads/master | 2021-06-08T16:42:33.819938 | 2020-08-24T14:58:13 | 2020-08-24T14:58:13 | 89,097,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | from .configuration import get_config
| [
"gallegoj@uw.edu"
] | gallegoj@uw.edu |
35bb8f52dd1d329bd18ccf91dc8b94a834d6c0e9 | 58110bd765daad7ad8d41175da001000e63d7256 | /baselines/scripts_python/python_packages/pwNBCBk/citmi_simple.py | 558ac5b782473964acd246c5aa6398071bfd9f98 | [] | no_license | mivanovitch/causal_discovery_for_time_series | c7c9c9081167bd7b53eadc6bffa2f39b84ec084b | 970c4d00c3f8f52923802ed030d4014e24723187 | refs/heads/master | 2023-08-30T20:46:50.498706 | 2021-11-04T16:35:46 | 2021-11-04T16:35:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173,762 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Discovery of summary causal graphs for time series: script implementing
the PCTMI and FCITMI methods.
Parallelization is done across variables for the skeleton construction step and for the rule origin of causality.
Date: Dec 2019
Author: Karim Assaad, karimassaad3@gma... | [
"karim.assaad@univ-grenoble-alpes.fr"
] | karim.assaad@univ-grenoble-alpes.fr |
9a5f5a9b2ceb8570c4c33c2875e302fa1ed9964d | f9a45d303cbf490aa3a0d6f846ef230280104184 | /AeModel.py | 2200f4bbeae7a84c1a5d0d2af093ece83f859de9 | [
"MIT"
] | permissive | LilMarc0/DL_Colorisation | fc23aaaa0ce7922a80b6631aad448c85a1f21f66 | c8ef878020cc2654d3c023e4542ff64e90c8b498 | refs/heads/master | 2022-12-09T18:13:40.732782 | 2020-09-17T14:23:12 | 2020-09-17T14:23:12 | 296,348,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,158 | py | import tensorflow as tf
import tensorflow.keras.layers as layers
from tensorflow.keras.models import load_model
import os
# import SGD and Adam optimizers
from keras.optimizers import Adam
from DataSet import *
import numpy as np
import cv2 as cv
from keras.callbacks import ReduceLROnPlateau
from ResNext import *
from ... | [
"Trypodificaton@gmail.com"
] | Trypodificaton@gmail.com |
d7feedf3e0f9eec8c5f371d5bd23732533460493 | 5babecf71b6b3c3295219b59bd96e348e1cfaf80 | /singleylinkedlist.py | c5bb94f61e1e34fc34faa6ab4bc6d013e5858183 | [] | no_license | jefinagilbert/dataStructures | 46697a8c1ec5cdb943a1e95e887f6343a85f648b | 04773fc0dff7d18078f3960b0993ce8ab7918a19 | refs/heads/main | 2023-06-12T02:06:24.345124 | 2021-07-10T18:05:44 | 2021-07-10T18:05:44 | 384,760,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,771 | py | class node:
def __init__(self,data):
self.data = data
self.next = None
class linkedlist:
def __init__(self):
self.head = None
def printlinkedlist(self):
temp = self.head
print (temp)
while (temp):
print (temp.data,end=" -> ")... | [
"noreply@github.com"
] | jefinagilbert.noreply@github.com |
ebe07b6c084e6824573cbad59b09aeeccd77287e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03130/s063741533.py | 8e8ac571e89e7cbb1f076333c2fcb83f461a3bff | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,190 | py | def examA():
N, K = LI()
if (N+1)//2>=K:
print("YES")
else:
print("NO")
return
def examB():
d = [0]*4
for _ in range(3):
a, b = LI()
a -=1; b -=1
d[a] +=1
d[b] +=1
for i in d:
if i>=3 or i==0:
print("NO")
return... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
175cd537ba734aea16b54646d227d7f043eae53f | 3027a838581e2b0778bd6ae40f9a6c72017b3b0d | /loss.py | 84c014beac4352f30db99c0f34f0a9b4f0f3262b | [] | no_license | arthur-qiu/robust | 2617adf3be8ea24592990e66b35123d02b0db045 | 3f40b45a740a1d3f2ba81a18e2cb510fe613d616 | refs/heads/master | 2020-12-04T12:08:52.665675 | 2020-02-26T10:37:34 | 2020-02-26T10:37:34 | 231,758,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,164 | py | import numpy as np
import torch
import torch.nn as nn
import math
import torch.nn.functional as F
def Entropy(input_):
bs = input_.size(0)
epsilon = 1e-5
entropy = -input_ * torch.log(input_ + epsilon)
entropy = torch.sum(entropy, dim=1)
return entropy
def grl_hook(coeff):
def fun1(grad):
... | [
"Arthur"
] | Arthur |
d86001addfb479c6d7b2af5d233c1d029b88d3ee | 78f33b74e5794362b3beed16887d27afc7f37b3d | /app/auth/views.py | 74f54ded9071e47ad791f47939366c6bea6671a1 | [
"MIT"
] | permissive | JamesMusyoka/minutepitch | 1e68bac76ccfa161efb3b7ff6a856e54baf103ac | 60b0a47a97cfe7a3e7d48917243cca48cbd63f05 | refs/heads/master | 2020-04-21T23:19:20.080383 | 2018-09-14T18:58:10 | 2018-09-14T18:58:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,472 | py | from flask import render_template,request,flash,redirect,url_for
from flask_login import current_user, login_user, logout_user, login_required
from app.models import User
from werkzeug.urls import url_parse
from . import auth
from .forms import LoginForm,EditProfileForm, RegistrationForm,ResetPasswordRequestForm
from a... | [
"kibetedgar@gmail.com"
] | kibetedgar@gmail.com |
1ea84b735f256c9f7ba20bcbe7400cfcd0602006 | 7a7f71b81b610744122b241bfd2ea6560fb9b64d | /sgd.py | 8c945ccfa418c3858e16e1d286ef0dfb8324561f | [] | no_license | rhhc/compress-modern-CNNs | cc408cee97816d30c32fedd0bf64ea7757e08c81 | 8ec767042419fdd92a185aae31a9150745ed97c6 | refs/heads/master | 2022-04-25T11:28:52.961941 | 2020-04-27T13:20:10 | 2020-04-27T13:20:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,098 | py | import torch
import torch.optim as optim
import math
class SGD(optim.SGD):
def step(self, closure=None):
loss = None
if closure is not None:
loss = closure()
for group in self.param_groups:
weight_decay = group['weight_decay']
momentum = group['moment... | [
"noreply@github.com"
] | rhhc.noreply@github.com |
92b30df416917ad8948f5c9e2c0d9b33201ab768 | a99dabb67ca2a6a95f13820cd708595bef88a88a | /tests/test_temporal_k_max_pooling.py | 3eca31e3ea4d9bd66a54774e6ccc977cd4985d0f | [] | no_license | svoss/vdcnn-chainer | 2c93aad28324de1f894637ed295e3cfba9de8806 | 47fdf434d9773d5d27fce5492d0c0efbf64aeac3 | refs/heads/master | 2021-05-15T12:03:22.981262 | 2017-12-03T12:45:51 | 2017-12-03T12:45:51 | 108,402,829 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,714 | py | import unittest
import sys
import numpy as np
sys.path.append(".")
from chainer import testing
from chainer import gradient_check
from vdccnn.temporal_k_max_pooling import TemporalKMaxPooling, temporal_k_max_pooling
import chainer
from chainer import cuda
from six.moves import xrange
from chainer.testing import attr
@... | [
"svoss@i-sti.nl"
] | svoss@i-sti.nl |
a9c80f162f30fa9a320e3d70485ed145f2167f0e | 64505998dead5afec41bf3f5e7b8ee0990056878 | /teamlib/version.py | f77ea9f249daf2b00651ccb9c05f8c5efcd687d4 | [
"MIT"
] | permissive | malenkiki/team | 8f0e57ac4fdeef98f9dd0c3d35ba2cd4c8972c20 | 11b17066b72988bdf222174cae01a56f750962b0 | refs/heads/master | 2016-09-07T02:04:55.445385 | 2014-02-02T21:50:03 | 2014-02-02T21:50:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | # -*- encoding: utf-8 -*-
APP_NAME = "team"
APP_VERSION = '0.1'
| [
"petit.michel@gmail.com"
] | petit.michel@gmail.com |
8ecc7ec6faf9146994bb71be5fc8aaf8d245c4bc | 0b7309cc322def6bac3abb76ec1db25a0a7bee98 | /jd_qjd.py | 57e6d938295d582509a024a573939082c6c69ba8 | [] | no_license | yaotootmd/linmudaye | 50f372db9ec6087e4961ac9f68d24df329adfbe6 | 724b4a463a510b4b6fd3c33e0b5ec726e39aca99 | refs/heads/main | 2023-07-02T07:15:21.134247 | 2021-08-05T01:49:15 | 2021-08-05T01:49:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,040 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*
# cron 5 0,8 * * * jd_qjd.py
#全民抢京豆(7.22-7.31)
'''
项目名称: JD-Script / jd_qjd
Author: Curtin
功能:全民抢京豆(7.22-7.31):https://h5.m.jd.com/rn/3MQXMdRUTeat9xqBSZDSCCAE9Eqz/index.html?has_native=0
满160豆需要20人助力,每个用户目前只能助力2次不同的用户。
Date: 2021/7/3 上午10:02
TG交流 https://t.me/topstyle99... | [
"noreply@github.com"
] | yaotootmd.noreply@github.com |
bfa64414e10648e405e89258f858138cfe2bcc91 | f4e21b9a042577400689e83a7ae11c0eee13cecf | /gneiss/regression/tests/test_transformer.py | 3f7aa1cd6eebc62d528cecdf3407afee1faff1f6 | [] | no_license | ebolyen/gneiss | 8facaaffe9904c8641f418fdd1461c1ae447e593 | bb47be8805bf887afcc40b72365b062aa74ff823 | refs/heads/master | 2022-12-21T21:08:09.162341 | 2017-04-21T01:30:10 | 2017-04-21T01:30:10 | 88,930,099 | 0 | 0 | null | 2017-04-21T02:20:16 | 2017-04-21T02:20:16 | null | UTF-8 | Python | false | false | 2,346 | py | # ----------------------------------------------------------------------------
# Copyright (c) 2016--, gneiss development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# ------------------------------------------------... | [
"jamietmorton@gmail.com"
] | jamietmorton@gmail.com |
c7d84d8e4ce7c1640e416676ff78f03d60b5cb43 | 4597d219ad8849b4e80cfbda6e75600449db2de9 | /pythonProject/window8.py | d83b7d589dcdc65988563de0a6f6e39f958992d1 | [] | no_license | pass0585/Python | 660b88375bf2a50f19520ba3460542bcd4af7f29 | 917e5c1b1050a97a24069a1157489618aa45c6e1 | refs/heads/main | 2023-06-24T01:45:25.225249 | 2021-07-28T07:35:05 | 2021-07-28T07:35:05 | 382,979,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,383 | py | from tkinter import *
from time import *
##전역 변수
btnList = [None]*9
fnameList = ["jeju1.gif", "jeju2.gif","jeju3.gif","jeju4.gif",
"jeju5.gif","jeju6.gif","jeju7.gif","jeju8.gif","jeju9.gif"]
photoList = [None]*9
num = 0
#함수
def clickNext():
global num
num+=1
if num>8:
num=0
photo... | [
"pass0585@gmail.com"
] | pass0585@gmail.com |
0d37df26911f7aa45fd992907792f711b760b1d3 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/classification/Gluon_ResNet50_v1d_for_PyTorch/timm/models/layers/involution.py | 97e83500b1f997b67fbd369776d069d277ac3bdb | [
"Apache-2.0",
"MIT",
"CC-BY-NC-4.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 2,501 | py | # Copyright [yyyy] [name of copyright owner]
# Copyright 2021 Huawei Technologies Co., Ltd
#
# 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.or... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
36656772b5db15a7080ef5290f4c8710dfa7092e | 9b3fe56255fec1766990ae310883ad44b1505520 | /Week 10/hw10_2.gyp | 165df3dbff3ca1eb31a24e0a2e103327edf8c7d6 | [] | no_license | 0zancan/AlgorithmBasics | b45fb2c579c81e6969d7ff4e58205700f323252b | 8a7336a1b7092e31cf54e3fe4ebe6135337a12f7 | refs/heads/master | 2022-04-27T12:37:24.762389 | 2020-05-03T20:45:08 | 2020-05-03T20:45:08 | 261,009,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | gyp | # Dizinin ortalamasına en yakın dizi elemanını
# bulan program
a = [4, 8, -4, 18, 9, 21, 20, 5, -17,-1]
# a = [4, 8, -4, 18, 9, 21, -200, 5,5,10,23,95,63,-86 -17,-1]
n = len(a)
sum = 0
for i in range(n):
sum += a[i] #63
average = sum / n #6.3
print(sum)
print(average)
temp = 1000000000
for i in range(n):
d... | [
"ozancan@OCB-Mac.local"
] | ozancan@OCB-Mac.local |
cd2a46af326af67c393d564938c53923c702d089 | a36ed24b899f002946a4ef9c401872ef452711b1 | /mundo-01/ex026.py | f9b4474d9528e52ee8a12e3c55fb6dcf9f5b7bfe | [] | no_license | erickgust/python-exercises | 91d2176b140909c49b66a328d13c10470746db87 | 2cdd3cfaba7ef0124fcb198a17368e7704764ad5 | refs/heads/main | 2023-06-20T13:45:27.847192 | 2021-07-01T17:12:10 | 2021-07-01T17:12:10 | 382,102,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | frase = input('Digite uma frase qualquer: ').upper()
fraseL = frase.split()
print('A letra "A" aparece {} vezes!'.format(' '.join(fraseL).count('A')))
print('Ela aparece pela primeira vez na posição {}'.format(' '.join(fraseL).find('A')+1))
print('Ela aparece pela última vez na posição {}'.format(' '.join(fraseL).rfind... | [
"erick.stazs@gmail.com"
] | erick.stazs@gmail.com |
a5ae575a5d08b866c988d7daff8b8357e695454b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03148/s977826358.py | 4dcf39217ab9acca14bc5415bf0a46880be55e2c | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,165 | py | import sys
readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)
import heapq
class PriorityQueue:
class Reverse:
def __init__(self, val):
self.val = val
def __lt__(self, other):
return self.val > other.val
def __repr_... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3f3d24122a5ecb807bc70e05d545127bfeb290d9 | 5bf6ab98cc26a6f04389b11bb87a6e90385f50c2 | /app/user/test/test_user_api.py | fc57fd3fb7a2f3ec480b7879d61b62248cdc5869 | [
"MIT"
] | permissive | Rahatcseru2014/recipe-app-api | 04874ab93777001bcab164d4e7184893b0a0dfca | e4ab491361273025c9d4be6d5b753b4ff7ce66e6 | refs/heads/master | 2022-06-28T15:20:56.783604 | 2020-05-14T17:13:40 | 2020-05-14T17:13:40 | 256,877,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,337 | py | from django.test import TestCase
from django.contrib.auth import get_user_model
from django.urls import reverse
from rest_framework.test import APIClient
from rest_framework import status
CREATE_USER_URL = reverse('user:create')
TOKEN_URL = reverse('user:token')
ME_URL = reverse('user:me')
def create_user(**params... | [
"rahat.javafx@gmail.com"
] | rahat.javafx@gmail.com |
16d7ca675bcd4ddd0c915762b8825ad9ea47b65e | bdb44645b8be29657682d5cf9dd7e47d1d8e8d92 | /08(8lab)/Diana_8lab_STP.py | 72cd3a74e1ce99718d514ea362061a9968c97d4c | [] | no_license | bluriiiface/Python | 19ef10480cf8148f79b8ce4a04d7680b59db7c44 | cdefbf4c1448896e4010263e25771be634d909b9 | refs/heads/main | 2023-05-14T04:34:01.532960 | 2021-05-31T20:25:58 | 2021-05-31T20:25:58 | 353,459,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | from math import sqrt
print('-----------Программа №8(8)-----------')
while 1:
print('Введите 2 числа и знак через пробел')
a, f, b = input().split(' ')
a = float(a)
b = float(b)
if f == '/':
a = a / b
print('Ответ: ', a)
break
elif f == '*':
a = a ... | [
"noreply@github.com"
] | bluriiiface.noreply@github.com |
376f35618f0977feb1eee220ccd2117317c0936f | ade41423a943e1fcb8fef7b869af1f0e81bdfa3d | /call_stack.py | 7e3e192fd58afe19067e268d0603aec2e6003e9a | [] | no_license | aheinous/waffle-compiler | 955d411db46435f94bd8b5d606250ca75f29e481 | d5e5816a4d4d8ea38f0d2a3623694a2bb66c2b96 | refs/heads/master | 2023-07-08T05:34:57.104140 | 2021-08-09T03:08:23 | 2021-08-09T03:08:23 | 394,131,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | class _FuncPush:
def __init__(self, call_stack):
self._call_stack = call_stack
def __enter__(self):
pass
def __exit__(self, exc_type, exc_val, exc_tb):
self._call_stack._pop()
class CallStack:
def __init__(self):
self._stack = []
def push(self, func):
self._stack.append(func)
return _FuncPush(self)
... | [
"aheinous@gmail.com"
] | aheinous@gmail.com |
3dc1ada00afa0327b9f7befb7328a8b103da9b07 | d7719b7b537a1484228d377d265ebeea8f76748a | /Robot Operating System (ROS)/ROS/Starter Code and Resources/ROS_Minimal_Projects/rospy_minimal_packages/modular_pub_sub/setup.py | f8270eaaf22d1aa84841ec98b72a858c7271b601 | [
"BSD-2-Clause"
] | permissive | OpenSUTD/coding-notes | 9724ac9d35f585ff3140a43c8a10fcdcbaedfc79 | f9b8c778f8494d0bf47bd816cfd77b88e78a5a1f | refs/heads/master | 2022-07-16T22:17:21.930385 | 2019-07-03T10:11:30 | 2019-07-03T10:11:30 | 166,292,417 | 7 | 5 | BSD-2-Clause | 2019-07-03T11:20:16 | 2019-01-17T20:30:47 | C++ | UTF-8 | Python | false | false | 275 | py | #!/usr/bin/env python
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
setup_args = generate_distutils_setup(
packages = ['modular_pub_sub'],
package_dir = {'': 'src'},
install_requires = ['']
)
setup(**setup_args)
| [
"methylDragon@gmail.com"
] | methylDragon@gmail.com |
61f3f8be12d8ae177af4e7bd99f32c9284f701fc | b6f7203ff761362c5c992ed137f2b60873624193 | /tests/test_trained_embeddings.py | 766666d4e06e389fefb9c2143f9213cc6aa95ee1 | [
"Apache-2.0"
] | permissive | thaingo/adaptnlp | 98b2ac5f4a0d5ce41d37a6d674b7cc39d5e2a876 | 784ecabd2505acb8c595b6089841772a6f9b8bb5 | refs/heads/master | 2023-03-07T06:54:34.673649 | 2021-02-16T04:00:03 | 2021-02-16T04:00:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | from adaptnlp import EasyWordEmbeddings, EasyStackedEmbeddings, EasyDocumentEmbeddings
def test_easy_word_embeddings():
embeddings = EasyWordEmbeddings()
embeddings.embed_text(text="Test", model_name_or_path="bert-base-cased")
def test_easy_stacked_embeddings():
embeddings = EasyStackedEmbeddings("bert-... | [
"aychang995@gmail.com"
] | aychang995@gmail.com |
ad2cf41e2835382146d98e659562119b73b04000 | 10425fd2f058afb9dd823929314bfede0a4eb513 | /flaskaiohttp_websocket/app.py | 67a5c4b45adbbf95106696a4225673ec018d7153 | [] | no_license | gaozhidf/flask_websocket | 60883571a469a7c283e3da9a8fbf81d752f82f71 | 41653f71b7fd6d07d3592a22a11f29e795ba45d8 | refs/heads/master | 2022-11-29T04:31:08.953294 | 2017-08-12T08:53:24 | 2017-08-12T08:53:24 | 49,828,952 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,060 | py | import json
import asyncio
import aiohttp
from flask import Flask, current_app
from flask_aiohttp import AioHTTP
from flask_aiohttp.helper import async, websocket
app = Flask(__name__)
aio = AioHTTP(app)
@app.route('/echo')
@websocket
def echo():
while True:
msg = yield from aio.ws.receive_msg()
... | [
"gaozhidf@gmail.com"
] | gaozhidf@gmail.com |
5e56cc78a121e1d1b486e6bc4a3fc7a7cd46762b | 2b54b1fb1540ab73d6c83cae3acd5fdd58bdead5 | /Platinum_clusters_Project/final_images/Pt13_O2_DFTsorted/Pt7_3O2_TiO2_101surface_zorderimageplotbasedondepth1.py | 4f1b59995eb2ca8b9bc48aa8fecadced15bc2251 | [] | no_license | sivachiriki/GOFEE_Pt_V_supported | 5787d44294262870075f35f2d31c096021b7ce20 | 6bd700dac1f3e7c58394b758d75246ac6e07eade | refs/heads/master | 2022-04-08T11:38:13.038455 | 2020-03-09T10:48:31 | 2020-03-09T10:48:31 | 226,359,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,837 | py | from __future__ import division
import matplotlib
#matplotlib.use('Agg') # Can also use 'tkagg' or 'webagg'
#from plot_neb_tio2 import *
from matplotlib.offsetbox import TextArea, VPacker, AnnotationBbox
import matplotlib.patches as patches
import matplotlib.pyplot as plt
from ase.io import read, write
from ase.visua... | [
"sivachiriki@phys.au.dk"
] | sivachiriki@phys.au.dk |
64c8644b126a25c7e0bc1a294f63066cde7a5f27 | 1f6b2c9978b1bfaed48560db811075025f93261f | /jobsAdmin/urls.py | 75f62f9b25edb8563025713c5695e6a80ab84150 | [
"MIT"
] | permissive | JaviMiot/Job_manager_backend | b999cb23cb7dd875ec7dd8403471c44ccee49034 | da91e1e2f64c1d6f1fd04fa262239abd0accece2 | refs/heads/master | 2023-08-17T18:39:55.851883 | 2021-10-11T20:39:49 | 2021-10-11T20:39:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | """jobsAdmin URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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-bas... | [
"51manobandajavier@gmail.com"
] | 51manobandajavier@gmail.com |
c1f7a9a1be4dab922be13ef7a1acc032b4a8ac3b | c53adaefd26bda80cd7ce22ea0cae877e364c2c5 | /lib/network.py | 52ca885512d164a52547c7b33578191591958ef4 | [
"MIT"
] | permissive | Morningstarpayments/electrum | a59ac886b23ef5abcc940a5d51ea1ebef78908b7 | a035bac8577d53a805dc111eb3ba89f48e96fe34 | refs/heads/master | 2021-07-06T08:59:44.926421 | 2017-10-03T00:21:10 | 2017-10-03T00:21:10 | 105,598,670 | 0 | 0 | null | 2017-10-03T00:19:17 | 2017-10-03T00:19:17 | null | UTF-8 | Python | false | false | 33,849 | py | # Electrum - Lightweight Bitcoin Client
# Copyright (c) 2011-2016 Thomas Voegtlin
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rig... | [
"you@example.com"
] | you@example.com |
6849d2ec9790e047a0e8c225fd2ba62a5fdcdd56 | 3dcfa2980db0770af9b4355b0d5a5e5ef2313c50 | /corpus/exceptions.py | 173d06acf3cf5bd7493cf25b0c6f41cbc47cf052 | [
"CC-BY-NC-2.0",
"CC-BY-NC-4.0",
"Apache-2.0"
] | permissive | looselycoupled/partisan-discourse | 5f4638d984fb54a5add870d4cb59445811c412a1 | 8579924094c92e25e21ce59a26232269cf6b34bc | refs/heads/master | 2020-03-27T06:35:49.627350 | 2018-08-25T18:05:44 | 2018-08-25T18:05:44 | 146,118,079 | 0 | 0 | Apache-2.0 | 2018-08-25T18:02:38 | 2018-08-25T18:02:38 | null | UTF-8 | Python | false | false | 977 | py | # corpus.exceptions
# Custom exceptions for corpus handling.
#
# Author: Benjamin Bengfort <bbengfort@districtdatalabs.com>
# Created: Mon Jul 18 09:57:26 2016 -0400
#
# Copyright (C) 2016 District Data Labs
# For license information, see LICENSE.txt
#
# ID: exceptions.py [63935bc] benjamin@bengfort.com $
"""
Custo... | [
"benjamin@bengfort.com"
] | benjamin@bengfort.com |
8cd569f757c981fe1f87ca5c21072e8f3c7c65ec | e2ef942079699b5642eefd0ec9bab5c62db322cd | /Python/51.py | 500aba8759ffb3d0b2b380b1e38e1accf639f21d | [] | no_license | ShiinaMashiro1314/Project-Euler | b016e54b065efec1227da8d8272bd00a202d7124 | 7ff16a0fe86b77360e3e0f830f9390700e6876dc | refs/heads/master | 2020-04-02T08:06:18.040557 | 2016-07-12T18:16:52 | 2016-07-12T18:16:52 | 63,181,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | i = 100000
def same(a,b):
d = {}
e = {}
while (a>0):
if(a%10 in d):
d[a%10] += 1
else:
d[a%10] = 1
a /= 10
while (b>0):
if(b%10 in e):
e[b%10] += 1
else:
e[b%10] = 1
b /= 10
return d == e
def test(i):
for j in xrange(2,7):
if(not same(i,i*j)):
return False
return True
while(not te... | [
"thomaspanzhao@gmail.com"
] | thomaspanzhao@gmail.com |
bf88e5c883b3f3d08cb7ed1988fbaa74e23cf3f7 | b5e10ed8500a39f999b7a664915ceb1dc7f371bd | /py_services/populateMed1000.py | f5b20654e59ff15a68701e594654b228b31c97b1 | [] | no_license | juanpablocontreras/storage-experiment | bb42b4e5ca44774c1ac31ffc464f5ef3d674d3d8 | 1c59f55373144b976a7a2fe789b81721d9543950 | refs/heads/master | 2022-11-29T18:33:30.674944 | 2020-07-30T00:02:14 | 2020-07-30T00:02:14 | 278,735,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | #populates the medium size items database
import mysql.connector
cnx_orig = mysql.connector.connect(
user='juan',
password='LapinCoquin13',
host='127.0.0.1',
database='EXP_ORIG')
orig_cursor = cnx_orig.cursor()
item = "a"
for s in range(999):
item =... | [
"juanpablocontreras@cmail.carleton.ca"
] | juanpablocontreras@cmail.carleton.ca |
7c8d333ddbf6eb99adc0a90adae46b0f37287b85 | d6c07c3128ebf5586e6640b72fc065d8bc54ad03 | /rose/bin/python-config | fe0e5df737913facfbebf0383dcbc7aed853aa8c | [] | no_license | newserg/my-first-blog | f647ea12f9cd0a7c77945c2bb660acbb81116ba1 | 9565c9951f97d9de8a79987f881a569ea28385d9 | refs/heads/master | 2021-01-09T09:38:19.376567 | 2017-02-08T11:43:55 | 2017-02-08T11:43:55 | 81,197,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | #!/home/serg/newproject1/rose/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.version_info >... | [
"morrcv@ukr.net"
] | morrcv@ukr.net | |
47a76feedcb553cbdfed82f9a1800c56ebd293fe | a79519c0032ce5630710bef726886e226369ad1a | /bikeshed/refs/__init__.py | 23d416226c7293aba42df293012d75de99a3883b | [
"CC0-1.0"
] | permissive | ylafon/bikeshed | 9598aee18ac5a9f5fc3094bc847f30f768d4ee07 | 5471ba1f1c21f5b90546909fa30891f0148a750c | refs/heads/main | 2022-07-31T23:42:22.592066 | 2022-07-27T09:17:23 | 2022-07-27T09:17:28 | 311,297,114 | 0 | 0 | CC0-1.0 | 2020-11-09T10:08:03 | 2020-11-09T10:08:02 | null | UTF-8 | Python | false | false | 100 | py | from .manager import ReferenceManager
from .source import RefSource
from .wrapper import RefWrapper
| [
"jackalmage@gmail.com"
] | jackalmage@gmail.com |
e6abd68ee8891fd33558e2c79ba7b61eeb2bd4b5 | b35aea9f4411f5dc7942392d78dc31bb76c7ec73 | /djangoProject/services/migrations/0004_alter_sub_head.py | 142021ffe6400739d7b16a3cef8ad1787f49ebfd | [] | no_license | ashkanusefi/rondshow | 1079b81704fff55a1d54fa8dee2712ab61e92f4a | 7e5a80fcc6e326b8b1737a54fb53becc4195e475 | refs/heads/master | 2023-09-01T18:45:33.170465 | 2021-09-18T11:24:52 | 2021-09-18T11:24:52 | 407,820,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # Generated by Django 3.2.5 on 2021-07-13 10:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('services', '0003_alter_sub_head'),
]
operations = [
migrations.AlterField(
model_name='sub',
... | [
"yousefi.ashkan96@gmail.com"
] | yousefi.ashkan96@gmail.com |
17461c469a3504f56403dc6907b5fbb8c118437e | 75b2c2d56597ad7a96a7be761acdd0beb41324e9 | /api/models/product.py | 05e451685f7d920056fa163f8a52c8c1e6431bfa | [] | no_license | mauodias/bahzar | 46e94ceb313c8b3681bedf7e4783fb1702d8403a | 4edfc69f688bee4400581777abefe3cbc9003f24 | refs/heads/master | 2020-04-26T07:19:37.441730 | 2019-04-26T23:14:19 | 2019-04-26T23:14:19 | 173,390,908 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | from .db import get_connection
from .model import Model
from bson import ObjectId
class Product(Model):
collection = get_connection()['products']
def __init__(self, owner, name, price, tags, description, available=True, images=[]):
self.owner = owner
self.name = name
self.price = price
self.tags... | [
"mau.dias@gmail.com"
] | mau.dias@gmail.com |
74dea5ec4fa37052d4958c0450ee7c5508e1b29a | bb6bc84759af0961b283c79590dfcac1ddc15178 | /study/skitLearnTest.py | 50438b2f8a6f48e96345d965f0395e5e6c8594c9 | [] | no_license | AnnieGaoXiaoQing/machine | cef9607cb9f78e0cdbd06331ca5d2827c927e80f | 8bdb83091195c99bacf716d8153e24822393624c | refs/heads/master | 2021-10-10T01:49:12.798767 | 2019-01-06T02:25:40 | 2019-01-06T02:25:40 | 115,302,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | #encoding=utf-8
import os;
def main():
#数据预处理
from sklearn.datasets import load_iris
iris = load_iris();
print(iris)
print(len(iris["data"]))
from sklearn.model_selection import train_test_split #引入交叉验证
# 验证集占20%,random_state==1即随机选择30个数据集
train_data,test_data,train_target,test_target... | [
"gxq741718618@163.com"
] | gxq741718618@163.com |
2d746288f264a39910102e51657a5ada3af029f0 | 78d15452bb580a8146610ff182947cdaeb717219 | /credentials/g_translate.py | 1aa3ab7a7aa5c7ade9592de9d62eef0b0bacd86c | [] | no_license | jowrjowr/tri_common | 2d62ec393ad39b931265a78c3052abc3f33e45ed | d78eedb6a351df79f7db2134f9bf6ea06bad1b2f | refs/heads/master | 2020-04-04T13:08:39.750280 | 2019-01-14T20:25:10 | 2019-01-14T20:25:10 | 155,950,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | translate_api_key = 'AIzaSyBnWXRMQjbsJafFLpMcgFKqXYR-40yj_Jw'
| [
"jowr.pi@gmail.com"
] | jowr.pi@gmail.com |
4f86503e9967ceaa9cb417c55dc2f4ceb6706b4e | a8595670862f9475050abf73399afe34faaa083b | /wb_api/urls.py | f2d8bb64d1f13e51f8b884542b8f6d173580934d | [] | no_license | skiboorg/wb_api | 14392df2da8569212c0ba05e527b46fcd9c30338 | c45d8c340a45958bc6d380c2a431d13d0f1ebf37 | refs/heads/master | 2022-12-06T03:52:58.621255 | 2020-08-26T19:25:24 | 2020-08-26T19:25:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | from django.contrib import admin
from django.urls import path,include
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('api-auth/', include('rest_framework.urls')),
path('api/v1/', include('api.urls')),
path('ckeditor/', ... | [
"11@11.11"
] | 11@11.11 |
0c088c841c94aab3aea8a44a61b33cfa24ea29bc | 963097c2b25b5db8428000c1ab5d9e1a31f856fe | /24.py | 4befeb7960ea49b7830e4f4fab55edd0ec89bacf | [] | no_license | AkkarinForest/ProjectEuler | a9dd02015b1423e4760590c87885a8a7866add2e | 0489be7803578debcd69bd2a65a395157ffb9222 | refs/heads/master | 2021-05-12T07:18:03.609878 | 2018-01-24T19:02:40 | 2018-01-24T19:02:40 | 117,238,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | from itertools import permutations as perm
print(list(perm(range(10)))[999999])
| [
"akkarinforest@gmail.com"
] | akkarinforest@gmail.com |
48217e37537211a9bfd2b671886a356efa6a7a8d | b047a32da65cc0fafe249160f57765ddbe80176e | /apps/support/templatetags/forum.py | 20f193d4a3ba8af04bb65ae72f774e72f6431c3b | [
"MIT"
] | permissive | fengjinqi/website | 0568c679e7964bdbb637831a4f1dec7c5e8d767c | 340eecec49ce0d66cd6a491d0ae9ad23ec9f841b | refs/heads/master | 2023-02-18T10:12:52.158471 | 2023-02-16T08:40:13 | 2023-02-16T08:40:13 | 160,755,540 | 367 | 114 | MIT | 2022-12-08T01:42:40 | 2018-12-07T01:44:34 | Python | UTF-8 | Python | false | false | 1,226 | py | from datetime import datetime
from django.contrib.sessions.models import Session
from django.core.cache import cache
#from apps.forum.views import get_online_count
from apps.support.models import QQ
from apps.forum.models import Forum
from django import template
from django.utils.timezone import now, timedelta
from a... | [
"tarena_feng@126.com"
] | tarena_feng@126.com |
f13e72e03cd34502c6484c674639f20496aad914 | c5702c50820680fee40bd156b0cb401733abada3 | /e4/average_ratings.py | 18ccaa523cdec3710cb9d023eac920463274c566 | [] | no_license | erwinbai/Data-Science-353 | d03f868de2b1ddc16b91dbf3c8a14a667f6fae58 | ac0e9be50ecc179a846517c1e9a7aebedbd59002 | refs/heads/master | 2021-03-19T23:27:09.883455 | 2020-03-13T20:26:18 | 2020-03-13T20:26:18 | 247,153,190 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,722 | py | #!/usr/bin/env python
# coding: utf-8
# In[12]:
import numpy as np
import pandas as pd
import sys
import difflib
# In[13]:
def remove(element):
#rstrip() idea is from https://www.programiz.com/python-programming/methods/string/rstrip
return element.rstrip() #helps with removing '|n' behind moive title
v... | [
"noreply@github.com"
] | erwinbai.noreply@github.com |
b3cc9b33bc9311bcaa289ae601c3203b02d393e9 | 66edaf6303b9a66f23f96d1b05ba21efe07279ef | /extractIdioms.py | 2d7c7c1c8f162c15f8e22fc60c809cd2d5e1bbae | [] | no_license | agoconcept/shertonenglish | b10504100eec0030443a3100bff9c26a0795861d | e35c439e0015e27a7cfaf0091d61f6a3dc5f3ed8 | refs/heads/master | 2016-09-06T14:22:51.716405 | 2014-03-02T12:24:45 | 2014-03-02T12:24:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | #!/usr/bin/env python
import argparse
import mechanize
import lxml.html
def process_table(table_elem):
rows = table_elem.getchildren()
for row in rows:
line = row.text_content().split('\n')
print "%s - %s" % (line[1].strip(), line[2].strip())
def main():
# Handle argument
parser... | [
"santi@spotify.com"
] | santi@spotify.com |
4a98ed5c35bc602fa3cf5522d5f85ab078bbcb92 | 009f9761767f93a2986f8b5a2ba61bac6f33dc59 | /examples/intro/8/example.py | 0fc03bff85a41b5054ceffe6fd6a14aa7ee9e136 | [
"MIT"
] | permissive | crasiak/ginkgo | 8798d28d16732cc1c5b18f8e5df0d17f8866f999 | 2592de2c8acfe6e62f33e7ac1f79cc5613567908 | refs/heads/master | 2021-01-16T20:07:45.269511 | 2012-04-06T07:26:46 | 2012-04-06T07:26:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | import gevent
from gevent.pywsgi import WSGIServer
from gevent.server import StreamServer
from gevent.socket import create_connection
from ginkgo.core import Service
class TcpClient(Service):
def __init__(self, address, handler):
self.address = address
self.handler = handler
def do_st... | [
"progrium@gmail.com"
] | progrium@gmail.com |
b24b1a2dfa931fcb6ad5d2d59be1cf6b6ea70c87 | e8bab29369a41ec180e4ea60821f6ac970e57ddb | /V.py | dfce98404d1a166a0514c5fe44ab73de09b233d6 | [] | no_license | ParthJindal32/Alphabets-Patterns | 9cec7444cd0be8543ef97430907370126c32e5b0 | ceba69d26df1a821e3205047102a80e46b2e4bf7 | refs/heads/master | 2022-11-19T03:40:23.150170 | 2019-08-10T10:48:38 | 2019-08-10T10:48:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | for row in range(7):
for col in range(5):
if ((col==0 or col==4) and row!=5 and row!=6) or (row==5 and col==1) or (row==5 and col==3) or (row==6 and col==2):
print("*",end=" ")
else:
print(end=" ")
print()
| [
"noreply@github.com"
] | ParthJindal32.noreply@github.com |
3d6b7fb65d3fd36dfe2b7e314f717ceb5d5edcc7 | 9f0aea4ee3f6516dbc7112fc20c4498196c5721a | /RL/main.py | 0e2d8d5a0468d348f65e84ca6d4a26a9f24b7b8f | [] | no_license | gobind452/Miscellaneous-Projects | 1286d7d6dcb822eb0ca9f40ac284caa0f273dd3d | d9035fcc5951537ddf2fe065438ff5eb74e1a4dc | refs/heads/master | 2020-08-07T16:34:48.970562 | 2019-12-09T13:49:20 | 2019-12-09T13:49:20 | 213,526,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,164 | py | import os
import sys
import pygame
import random
from pygame import *
pygame.init()
scr_size = (width,height) = (600,300) # Screen Size
FPS = 60 # Frames Per Second
gravity = 0.6 # Gravity for jumps
black = (0,0,0)
white = (255,255,255)
background_col = (235,235,235) # Colours
high_score = 0 # Initial High Score
... | [
"noreply@github.com"
] | gobind452.noreply@github.com |
a817a1eca57d1473579117860e8367eba37af7f3 | a98ff9449ed38f7d5b265f14793a28b8139d3112 | /src/network.py | 2fdaa5568d6cb86355153be94fbbf4c570c5cc8b | [] | no_license | ducbm95/Neural-Network | 38f0a2babb6803e6eeb447c9239b7852c3d5234a | 337c9463cf17b26ee8c8ebaae1e9a636d1cd13f0 | refs/heads/master | 2020-06-11T09:38:13.763989 | 2016-12-22T13:13:58 | 2016-12-22T13:13:58 | 75,690,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,336 | py |
"""
network.py
~~~~~~~~~~
A module to implement the stochastic gradient descent learning
algorithm for a feedforward neural network. Gradients are calculated
using backpropagation. Note that I have focused on making the code
simple, easily readable, and easily modifiable. It is not optimized,
and omits many desira... | [
"ishy159@gmail.com"
] | ishy159@gmail.com |
df8f34cabb73d62adf171eeae4b7788cbdfdf467 | 6db8aba817161dc573f16cde185f4a1c02c753e0 | /XOR.py | 0c07e2db55b43284b1baa73054a707acc0f131b8 | [] | no_license | Prakashchater/Leetcode-array-easy-questions | 456153a13397c895acae6550dad8f1b1851ff854 | 7c5d40f9d68dbf61f4a61a33d9b54f769473b057 | refs/heads/main | 2023-06-19T14:01:52.483440 | 2021-07-22T19:44:40 | 2021-07-22T19:44:40 | 354,926,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | xor = 0
out = []
arr = [10,11,1,2,3]
n = arr[len(arr)-1]
for i in range(len(arr)-1):
out.append(arr[i]^arr[i+1])
out.append(arr[len(arr)-1])
print(out) | [
"prakashchater@gmail.com"
] | prakashchater@gmail.com |
78ed13b0780bb2c0014ed4438af5a92688327eef | 920a89c94cb5a133c37d45688e182f009699da1f | /QRes/main/continuous_time_inference (Burgers)/Burgers.py | dd004bd46a2446515fd5527da9804da3495184bf | [
"MIT"
] | permissive | udemirezen/qres | d8a9d764d9b6ccde923be287044398db4bfd2d32 | eeb9b0a449b6ac8cd55f4bb2d11ce1d3071d975d | refs/heads/master | 2023-03-06T09:37:12.852005 | 2021-02-17T19:45:40 | 2021-02-17T19:45:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,368 | py | """
@author: Maziar Raissi
"""
import sys
sys.path.insert(0, '../../Utilities/')
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
import scipy.io
from scipy.interpolate import griddata
from pyDOE import lhs
from plotting import newfig, savefig
from mpl_toolkits.mplot3d import Axes3D
import t... | [
"noreply@github.com"
] | udemirezen.noreply@github.com |
ac7f9a29b1083ff198275d312b01fecad5ed4fc3 | 039446516b188899e2fd21a41087ad20f06d666b | /src/server_code/game_logic.py | 9934157d88fc8ff515d2b4ff8f39a8e5a2c028ab | [] | no_license | Tyorat/TicTacToe | 62ebbeee168568a0c590a5923127a3ac529ba134 | 0281f3c7b293256e2c73ac1530786308cea385af | refs/heads/main | 2023-06-24T22:37:18.744669 | 2021-07-12T23:11:30 | 2021-07-12T23:11:30 | 377,521,858 | 0 | 0 | null | 2021-07-12T23:11:31 | 2021-06-16T14:20:21 | Python | UTF-8 | Python | false | false | 2,001 | py | import secrets
WIN_COMBO = ((1, 2, 3),
(4, 5, 6),
(7, 8, 9),
(1, 4, 7),
(2, 5, 8),
(3, 6, 9),
(1, 5, 9),
(7, 5, 3)
)
SWITCH_TURN = {"x": "o", "o": "x"}
class WrongMove(Exception): pass
class Game:
def __ini... | [
"you@example.com"
] | you@example.com |
e8bb5f9bf30cda2cbd8824240840e0681ff4e02d | db68b542951ec427378f86d9616d68d7f51a1447 | /CJComparison/tests.py | d9e50ec81b870877be3f9ea091fb6c1fdaebcfb8 | [] | no_license | alittleTom/treeshow | 8a4debaf27d8d4528ecebaa38096e621a78a27ec | 3941e5b9080d29da2f45aad1cef01ac174b20e55 | refs/heads/master | 2020-06-14T17:45:54.658954 | 2016-12-02T01:42:38 | 2016-12-02T01:42:38 | 75,349,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | from django.test import TestCase
from CJComparison import views
# Create your tests here.
class T(TestCase):
def testname(self):
print("test")
views.executeSql() | [
"2659221136@qq.com"
] | 2659221136@qq.com |
4f91db0c179ce5761c01cb598130a254ba26e16f | 1e8d9a251b36f2e80a851d541321522ce4e812fa | /igmspec/scripts/plot_igmspec.py | c3e68e4c64d8f0b820e6ba8daf9c1882d20f2c30 | [] | no_license | Waelthus/igmspec | c81f31360e9528bd150a991ad96b8b4ca94962d0 | 8fdbb622360ca5263711f75d0f7571ed955f6e28 | refs/heads/master | 2020-12-25T21:55:50.001007 | 2016-07-17T21:17:08 | 2016-07-17T21:17:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,154 | py | #!/usr/bin/env python
""" Loads and plots a requested spectrum
"""
import pdb
def parser(options=None):
import argparse
parser = argparse.ArgumentParser(description='plot_igmspec script v0.2')
parser.add_argument("coord", type=str, help="Coordinates, e.g. J081240+320808")
parser.add_argument("--tol... | [
"xavier@ucolick.org"
] | xavier@ucolick.org |
cefb14c0b85be76145a015d5a4ae758860595ddc | 21da8e3490769f0062fad806abc119ed0334b7cc | /CodeChef/MAY17/CHEFROUT.py | 90b2672f87242f8bdddc4bdedfbcdcb58dc1aa7f | [] | no_license | nikhilhassija/CompetitiveProgramming | d2e0606c1badd3209452d670a99234a3ef0d5d6c | 794deb2ef26d03471e78c6fb77f3a72d810d19f1 | refs/heads/master | 2020-04-05T23:06:20.363385 | 2017-12-22T21:19:16 | 2017-12-22T21:19:16 | 42,791,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | t = int(input())
for _ in range(t):
A = input()
if(A == ''.join(sorted(A))):
print("yes")
else:
print("no") | [
"nikhil.hassija@gmail.com"
] | nikhil.hassija@gmail.com |
9d7583c7323addf3ab2d996bdee7b43f98b3cd44 | 5206c5cb92493524bb961f74cf8c4ed9f175256c | /excel/book.py | ee85b6c767b2b5051baa3b53dc3067ba025d3e2e | [
"MIT"
] | permissive | cicicici/hopper | 269dea6f5770faf4bb4d63171e50b5d0d8bd3547 | d0ed0307c50ab56631960b4488c43a2d098d6bb4 | refs/heads/master | 2021-06-26T23:33:15.819383 | 2020-05-30T22:04:15 | 2020-11-15T04:27:29 | 181,275,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import sys
import datetime
from copy import copy, deepcopy
from openpyxl import load_workbook
from ..util.opt import Opt
from ..util.fs import file_exist
from ..debug import log, dump
from .sheet i... | [
"cicicici@gmail.com"
] | cicicici@gmail.com |
c8df91551a44a334be5a4cd94d26220e4cc54a07 | 84e661d5d293ec0c544fedab7727767f01e7ddcf | /target/migrations/0011_auto_20201101_1147.py | 9ca50acaa24915c420cbf92d31354e33dd6cdc7f | [
"BSD-3-Clause"
] | permissive | groundupnews/gu | ea6734fcb9509efc407061e35724dfe8ba056044 | 4c036e79fd735dcb1e5a4f15322cdf87dc015a42 | refs/heads/master | 2023-08-31T13:13:47.178119 | 2023-08-18T11:42:58 | 2023-08-18T11:42:58 | 48,944,009 | 21 | 23 | BSD-3-Clause | 2023-09-14T13:06:42 | 2016-01-03T11:56:48 | JavaScript | UTF-8 | Python | false | false | 882 | py | # Generated by Django 3.0.10 on 2020-11-01 09:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('target', '0010_auto_20201101_1127'),
]
operations = [
migrations.AddField(
model_name='target',
name='tweet_notifie... | [
"nathangeffen@gmail.com"
] | nathangeffen@gmail.com |
c37ee59446bb0ce436a571312628fce8121b88a8 | 1905e5cece92e6cdc68dac3ebb0ee1d05bef35c8 | /fuzzinator/tracker/base.py | 84de8815bb65c1977f3e473d326d6eed14335b6c | [
"BSD-3-Clause"
] | permissive | darrynza/fuzzinator | e876131d18c5f0a17ae8bdc2fb10f18d8b0084fb | e1642f75ba8c1b555f7e2557b52f43df4d17b89f | refs/heads/master | 2020-04-29T04:39:36.453300 | 2018-12-06T17:15:35 | 2019-01-08T23:36:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | # Copyright (c) 2016-2018 Renata Hodovan, Akos Kiss.
#
# Licensed under the BSD 3-Clause License
# <LICENSE.rst or https://opensource.org/licenses/BSD-3-Clause>.
# This file may not be copied, modified, or distributed except
# according to those terms.
class BaseTracker(object):
@property
def logged_in(self)... | [
"reni@inf.u-szeged.hu"
] | reni@inf.u-szeged.hu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.