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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5f294a5e640f3b1056fb0d8d1e67096fdd54b08e | 87c8a7018736ad3c3ccaae20fd2e9efdfdb06150 | /calc_gap.py | d60704b5be0bc82f84771fca617f28d4f6551f7d | [
"Apache-2.0"
] | permissive | xiw9/youtube-8m | 81d03c51d4cc460103ac4a1e0d8fad0bf1781196 | 40854c4788639542ae88f041f950aa3bbc435895 | refs/heads/master | 2021-01-25T08:06:58.609145 | 2017-06-08T16:50:20 | 2017-06-08T16:50:20 | 93,714,639 | 0 | 0 | null | 2017-06-08T06:25:04 | 2017-06-08T06:25:04 | null | UTF-8 | Python | false | false | 662 | py | #/usr/bin/python
import numpy as np
import sys
import eval_util
predf = [x.strip() for x in open(sys.argv[1])]
name = []
pred = np.zeros((len(predf)-1, 4716), dtype='float32')
k = 0
for x in predf[1:]:
name += [x.split(',')[0],]
p = x.split(',')[1].split()
for i in range(0, len(p), 2):
pred[k][int(p[i])] = f... | [
"i@xiw.im"
] | i@xiw.im |
7679bb26208128c5f4faecd9a41265ad09655262 | 8772775c64c242eb93d17de60d2c5fa599eb2b61 | /project1/project1-code/plot.py | 7016c712f0e86720cd2b2e25939b125d5757b5df | [] | no_license | aggrace/DataVisualization | 6995eaecfc0e5921c445a395775ef276677bf3b2 | fb9d758ce17211ee5d51b031a5b67f2ce74f334b | refs/heads/master | 2020-04-10T11:22:12.846412 | 2018-12-17T02:42:15 | 2018-12-17T02:42:15 | 160,991,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,312 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Oct 18 11:52:48 2018
@author: jiawei
"""
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import matplotlib.dates as mdates
from dateutil import parser
import seaborn as sns
# Data for plotting
whourly = pd.rea... | [
"noreply@github.com"
] | aggrace.noreply@github.com |
dcb9f44b576400f74540d716d1cbf17691e26d39 | 91051a42e16c3292f06324eb1ffb49a732aef24e | /orders/urls.py | de8573bb2896e9b2b9ce36b740f52ffb08ec5f35 | [] | no_license | FranciscoGumescindo/PizzeriaPinochios | 2ef54d89d4836bca50793438d35090d33ae57d7b | 49fec47546d1afb4bd2af279175230219a27e431 | refs/heads/master | 2020-05-03T07:57:33.160104 | 2019-03-30T04:59:33 | 2019-03-30T04:59:33 | 178,512,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,429 | py | from django.urls import include,path
from django.contrib import admin
from . import views
urlpatterns=[
path("admin",admin.site.urls),
path("",views.index,name="index"),
path("login",views.login,name="login"),
path("logout",views.logout,name = "logout"),
path("register",views.register,name = "regis... | [
"142t0583@itsm.edu.mx"
] | 142t0583@itsm.edu.mx |
31d645cbe541bc2ac6d23555845f13b8574d8761 | cbf6fb2a0d93ca13c84b418d33a43c0ef33e866b | /92.py | 2e5eb6c947ffd56b4e75ac6fc47e01b7d43569fe | [] | no_license | chejeanx/euler | 1fddcc964b7b48c24d8c656d5a515668726f10eb | f9e10897b84a05fa5e9ca8049131191e6bd0735f | refs/heads/master | 2021-01-20T15:07:21.243637 | 2017-06-22T15:19:00 | 2017-06-22T15:19:00 | 90,722,860 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | # Square digit chains
# https://projecteuler.net/problem=92
# Returns terminating number in square digit chain for startN
def squareDigitChain(startN, currentN, chainOutcomes):
if currentN == 1 or currentN == 89:
chainOutcomes[startN] = currentN
return currentN
if currentN in chainOutcomes:
return chainOutcom... | [
"neverwhere@Neverwheres-MacBook-Pro.local"
] | neverwhere@Neverwheres-MacBook-Pro.local |
32494599245aa677b21fc5cb674eefbdd423995d | bca4dd686666ec49de189a4a31de8a377c26b7ad | /maincode.py | 31b7365fcfa0ea737d495ac925769b42f2e1459e | [] | no_license | arunpallsingh/Bus-reservation-system | bb9c0e076666735e6b5bdfb0ed7e9a67fe5f0801 | e7c7adf090b5aaf855b5fc57dbded466cea94771 | refs/heads/main | 2023-02-07T06:48:01.487524 | 2020-12-24T16:33:38 | 2020-12-24T16:33:38 | 324,141,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,021 | py | # -*- coding: utf-8 -*-
"""Maincode.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1QVTs70DkThqYnihhYDbeE-lC2Ni0duFS
"""
from tkinter import *
from PIL import Image,ImageTk
from tkinter import messagebox
import pymysql
root=Tk()
root.titl... | [
"noreply@github.com"
] | arunpallsingh.noreply@github.com |
c4106edbd383d886c587152300a55c0a9d23ba64 | cc7660ce7883d227afe5769ec80f2d2923bd4eb5 | /app/migrations/0002_auto_20191024_0919.py | 6b8d08ac909acc2365e7fce8012ad899f58ed9d2 | [] | no_license | botanhuligan/sb_django | cada2f13eed0cb8992e0dfb1f04d2f0efa821fdd | eb2356422930d3e677fb5d30d6e975fb80117f03 | refs/heads/master | 2022-12-12T22:34:41.235419 | 2019-10-25T05:31:19 | 2019-10-25T05:31:19 | 217,235,102 | 0 | 0 | null | 2022-12-08T06:46:13 | 2019-10-24T07:11:39 | Python | UTF-8 | Python | false | false | 880 | py | # Generated by Django 2.2.6 on 2019-10-24 09:19
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0001_initial'),
]
operations = [
migrations.DeleteModel(
name='WifiPoint',
... | [
"Voronov.A.D@sberbank.ru"
] | Voronov.A.D@sberbank.ru |
9685b85900c3d79f25474112f98dffe10dc358e7 | 2857b4803467716ea0a82e273266dc977c966150 | /RestAPI/bin/chardetect | 3009af493b84e6b043d05fd6a257ffc155cb511e | [
"Apache-2.0"
] | permissive | YogeshPatel951/GoogleAssistantRESTAPI | bbc1dd7407925f9fd2b5ba1b16d67e2682c74bb4 | fbaa59afc773baf6ad28631c35d3bf9d522b82cc | refs/heads/master | 2022-10-23T13:38:09.005470 | 2019-12-13T18:20:25 | 2019-12-13T18:20:25 | 219,119,121 | 0 | 0 | null | 2022-09-23T22:31:18 | 2019-11-02T07:24:32 | Python | UTF-8 | Python | false | false | 240 | #!/home/yogesh/GA-REST/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"patelyogesh951@gmail.com"
] | patelyogesh951@gmail.com | |
4e62172ec457daed38cbe1fd15671099a103f370 | 6b81f79367e2a889db46a437b17e77f620508c49 | /main.py | 3d4c7867838d9b9d6883896305d811b2ce0b4512 | [] | no_license | profitrul/my_site | aff5009d0d36a53b5a52d3ad03b17f4126903c40 | 2e194f7c9dc46beaf6b0c21914d0c4cd3e46688d | refs/heads/master | 2021-02-08T09:38:01.266062 | 2020-03-07T07:57:20 | 2020-03-07T07:57:20 | 244,137,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | from flask import Flask , render_template,url_for,redirect
app = Flask(__name__)
@app.route("/")
@app.route("/<text>")
def hello_world(text = None):
if text == None:
return render_template('index.html',name = 'world')
else:
# text = text.split(',')
# return render_template('index.html'... | [
"Student@ukr.net"
] | Student@ukr.net |
f0d7131ecae8c4c754c7dd19a9a5c1ff2121cb3d | 95540a155c043dd84ea6c0fb7d59ba06dc78b875 | /python/算法和数据结构/queue.py | 5c7170aaa244a59b0964dfc397b87b675c7a5cb7 | [] | no_license | Lilenn/must | 41b95d8e80f48a6b82febb222936bbc3502cc01f | a510a8d0e58fde1bc97ab7ad9bd2738158dcba5e | refs/heads/master | 2020-04-09T23:09:20.116439 | 2018-12-06T09:02:09 | 2018-12-06T09:02:09 | 160,648,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | class Queue(object):
'''队列'''
def __init__(self):
self.items = []
def is_pmpty(self):
return self.items == []
def enqueue(self,item):
'''建造队列'''
self.items.insert(1,item)
def dequeue(self):
'''出队列'''
return self.items.pop()
def size(self):
... | [
"846077763@qq.com"
] | 846077763@qq.com |
c366837c97fb326463ac57314027fdaaaa55c5a6 | ccd3a2c78ade7ac058a6cf5759824b5d03e835f3 | /quiz/admin.py | 0992a234b0cbba026875ca27fa4302e0da76e985 | [] | no_license | ess010203/crmef | fd0b5fced3f6021553b85bce6deb688f0a6ec049 | c697fa4901f78153c251cb54248f19bedd1c47f9 | refs/heads/master | 2023-06-10T21:48:58.819097 | 2021-07-11T00:21:06 | 2021-07-11T00:21:06 | 365,341,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | from django.contrib import admin
import nested_admin
from .models import Quiz , Question , Answer
class AnswerInline(nested_admin.NestedTabularInline):
model = Answer
extra = 4
max_num = 4
class QuestionInline(nested_admin.NestedTabularInline):
model = Question
inlines = [AnswerInline,]
extra = 5
class Qu... | [
"ahmedEssaidiInf@gmail.com"
] | ahmedEssaidiInf@gmail.com |
f34f79c26e98c1d38d207de9b6cffc1f0ae6857e | 4503a3bfd940dce760b5f70e90e6fe2fe0cc4881 | /week10/health.py | 64a500edefc57c9f812bbfd48accca1bbc735e97 | [] | no_license | RicardoLima17/lecture | dba7de5c61507f51d51e3abc5c7c4c22ecda504f | b41f1201ab938fe0cab85566998390166c7fa7d8 | refs/heads/main | 2023-04-18T11:12:39.769760 | 2021-04-21T18:36:09 | 2021-04-21T18:36:09 | 334,456,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | # use person module
# Author: Andrew Beatty
from personmodule import *
import datetime as dt
person1 = {
'firstname': 'andrew',
'lastname': 'beatty',
'dob': dt.date(2010, 1, 1),
'height': 180,
'width': 100
}
# call the functions in the module
# I used import * so these have been imported
# so I c... | [
"limaricardooliveira@gmail.com"
] | limaricardooliveira@gmail.com |
17a7ac687a62150208d9b3fc7abab7a916ce08a5 | f5dd289bb6b333a7df9edfa105f19486a93f5be4 | /235/lowestCommonAncestor2.0.py | ccbf42257258b2ac3a74aae5616a4025d4bc914e | [
"Apache-2.0"
] | permissive | cccccccccccccc/Myleetcode | 0ab50ba5303ed08fac8402c87efedebc6bf67c16 | fb3fa6df7c77feb2d252feea7f3507569e057c70 | refs/heads/master | 2023-07-03T21:11:54.050252 | 2021-08-11T08:26:01 | 2021-08-11T08:26:01 | 115,370,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 7 15:32:46 2018
@author: chen
"""
# Definition for a binary tree node.
"""
timecomplexity = O(n)
spacecomplexity = O(n)
base on this is a BST , we can make sure let if one node is p and qs' LCA, p<= node's value <=q
so construct recusive function to check
if node < p
... | [
"chenzhang.1987@gmail.com"
] | chenzhang.1987@gmail.com |
d5784e85c294a3ceb940edb662c512c5cce077fd | b4bf2c9800f0cfc9560a261287ecf94d0b2b2f07 | /08_Admin/main.py | 3ab6a3d5dcbb3929d8465f2c4eedf7aa789de805 | [] | no_license | matrix11061991/formation-flask | 909ea9f251d73d520f149be3893044a48255df3d | 6264b8fa2fa2f042782b7f4117106128847e66ae | refs/heads/master | 2023-03-15T14:11:03.375862 | 2019-03-29T16:04:43 | 2019-03-29T16:04:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_admin import Admin
from flask_admin.contrib.sqla import ModelView
app = Flask(__name__)
db = SQLAlchemy(app)
class User(db.Model):
id = db.Column(db.Integer, primary_key=True)
username = db.Column(db.String(80), unique=True, nullable=F... | [
"olivier.dulcy@gmail.com"
] | olivier.dulcy@gmail.com |
2deaacb5260e7014ecb172b7918accab1f797c61 | ccb878041c63a43c8c6192a8739676ab79ec5a22 | /Proj2/models.py | 948823303d32060cb4b1f246a60fc345bb4f3f47 | [] | no_license | DanyuWang/EE559-miniprojects | f5c1cc9bbfba0c5828b17f35289a05be30298b10 | 87346b1fe9799801215c6a29a3f81e105a85ee6c | refs/heads/master | 2022-07-05T21:59:47.396847 | 2020-05-19T10:10:57 | 2020-05-19T10:10:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py | """This file declares the models to be used for testing."""
from modules import Sequential, Linear, ReLU, Tanh, Sigmoid
MODEL1 = Sequential("ReLu",
Linear(2, 25), ReLU(),
Linear(25, 25), ReLU(),
Linear(25, 25), ReLU(),
Linear(25, 2), Sigm... | [
"battleman@pop-os.localdomain"
] | battleman@pop-os.localdomain |
232ab722943cbc50ab67ebc8eec65ab8941b91a2 | 6f7f9bb3df6815ea7500d6219d7485728d4c2e54 | /mainapp/views/categories.py | a467629acd7e4a0f890b6afde2d6cc2f49dcc343 | [] | no_license | zakamaldin/geekshop | 5fd2fd6d6d6366bf30f4f51ec2d76fefa8d9ef76 | c13c309af7762df9d12f82b76a447c222593447e | refs/heads/master | 2021-07-06T08:41:53.026982 | 2019-02-05T18:57:22 | 2019-02-05T18:57:22 | 149,351,460 | 0 | 0 | null | 2019-05-03T16:12:42 | 2018-09-18T20:58:57 | Python | UTF-8 | Python | false | false | 3,668 | py | from django.http import HttpResponseRedirect
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import (
ListView, DetailView, CreateView, UpdateView, DeleteView
)
from authapp.mixins import AdminGroupRequired
from django.views.generic.edit import FormMixin
from django.urls import... | [
"zakamaldin.andrey@gmail.com"
] | zakamaldin.andrey@gmail.com |
f9eea8146725159dab91cb85be007a736b9ea8f7 | a1dc93f026a931dc29d8c5d411201ed276460198 | /blog/models.py | 752d78e80fe9988155497b72b2a98a25e212974d | [] | no_license | EricLULU/blog | 44116497e6bba6be3bd7c558403c0a2c6867e880 | 99ad323ba661787518983416cc30565749cab1d2 | refs/heads/master | 2020-03-27T06:57:46.441258 | 2018-08-26T04:42:15 | 2018-08-26T04:42:15 | 146,151,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | from __future__ import unicode_literals
from django.db import models
from DjangoUeditor.models import UEditorField
# Create your models here.
# Create your models here.
class Article(models.Model):
title = models.CharField(u"博客标题",max_length = 100) #博客标题
category = models.CharField(u"博客标签",max_len... | [
"2899325627@qq.com"
] | 2899325627@qq.com |
3488315b430b258804d4cecc4627b302cb4d17c7 | f8e71d381159a51f192be9ade66d0ae20ddbe0f1 | /game.py | 3acf9cf0b1e5580a1b3e2e64f10f5c927401fd0b | [] | no_license | jdonnal/lab2 | 7266a5b8d5432d96a01244bcde77775eedd98a1c | 9d95cdb56804d17d4db0ba46fe6a652a58c990e2 | refs/heads/master | 2021-03-16T08:42:43.662338 | 2018-02-20T18:39:41 | 2018-02-20T18:39:41 | 119,406,873 | 0 | 0 | null | 2018-02-25T21:17:46 | 2018-01-29T16:13:25 | Python | UTF-8 | Python | false | false | 3,566 | py | #!/usr/bin/python
# import system modules
import pygame,sys
from pygame.locals import *
import random
import time
import serial
# import custom modules
import launcher
import target
import rock
from colors import *
# tunable constants
HEIGHT=400
WIDTH=500
FPS = 30
TARGET_WIDTH = 50
def main():
# start up pygame... | [
"donnal@usna.edu"
] | donnal@usna.edu |
7b4eec2745a3598c581f6fe69e36c47233072b3d | a297d72afd7b3a31afa0ec3e841b33e6116cb4ee | /timefixer.py | 47e455f921fca246bd72563a2c62ee6b64011fa5 | [] | no_license | s0ph0s-2/mp3-chapter-scripts | 0165641a76173bf2e0637049ed95a5ec6d930ac7 | c51d76555be44d3d961cd211c680c2ec1f592825 | refs/heads/master | 2021-04-28T08:03:16.662085 | 2018-07-14T20:59:54 | 2018-07-14T20:59:54 | 122,237,964 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,952 | py | #!/usr/local/bin/python3
# Convert output from log2json.py into the format required by chaptagger.py
import json
import sys
import os
import datetime
INTRO_LENGTH = 105670
# Do the actual conversion
def convert_to_deltas(json_object, time_mode):
# Initialize an array to hold the output
deltas = []
# Init... | [
"alexander.g.langley@gmail.com"
] | alexander.g.langley@gmail.com |
de41c1cbfa2002f38b52782617d66e63d0be9ce9 | b00bd51714e3aafedd7201034404044117164649 | /planet.py | b4f911e92ffc48a452e7833048ae93e4f3817373 | [] | no_license | jjdelc/yt-aggregator | 8a0415f0fe8851414af9bcb3d4b1f0800c199a5a | 2954f160174f74d74d7928bfdd858d24a13a8ac0 | refs/heads/master | 2021-07-12T03:50:22.962196 | 2020-12-28T06:15:42 | 2020-12-28T06:15:42 | 225,235,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,659 | py | import sys
from os.path import basename
from datetime import datetime
from urllib.parse import urlparse
from urllib.request import urlopen
import xml.etree.ElementTree as ET
CSS = """
body {
padding: 0;
margin: 0;
font-family: sans-serif;
}
.content {
max-width: 40rem;
margin: 0 auto;
padding: 0;
}
.main-feed {
list-s... | [
"jjdelc@gmail.com"
] | jjdelc@gmail.com |
8ecbc20cd751993e396cb818b5101fcf02f432c0 | 21189f46ab7d28e196541547e54da3cd5ccb5e02 | /home/bin/i3-rename-workspace | 6dc685a1dc28cb0e6a0fe0118eb1cce17a47acff | [] | no_license | tscolari/dotfiles-1 | 7e0c97cc25b5704625b7f5c6922c200269cf906b | f6dfe6c656e535fcb71cde23c1bf8699548fc05a | refs/heads/master | 2021-02-28T08:57:16.896577 | 2020-02-02T02:44:04 | 2020-02-02T02:49:35 | 69,583,636 | 0 | 0 | null | 2016-09-29T15:58:00 | 2016-09-29T15:57:59 | null | UTF-8 | Python | false | false | 8,651 | #!/usr/bin/env python3
#
# github.com/justbuchanan/i3scripts
#
# This script listens for i3 events and updates workspace names to show icons
# for running programs. It contains icons for a few programs, but more can
# easily be added by editing the WINDOW_ICONS list below.
#
# It also re-numbers workspaces in ascendin... | [
"cfcluan@gmail.com"
] | cfcluan@gmail.com | |
80d7750f7f977b876f0ce61427fcd1932f7c6f2f | 2fd6c260b8db490ed9dc594f2a6578bb736cb9ad | /src/test-apps/happy/tests/standalone/wdmNext/test_weave_wdm_next_one_way_subscribe_16.py | a4184ef2423b5b02d1874dbcd0e40ca97546c89f | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | pornin/openweave-core | 6891a89b493566e24c4e413f6425ecbf59663a43 | b6ac50aad6eb69c7a81c9916707f3c7ef098ec63 | refs/heads/master | 2020-04-02T00:55:05.328569 | 2018-10-19T17:28:34 | 2018-10-19T17:28:34 | 153,828,148 | 1 | 0 | Apache-2.0 | 2018-10-19T18:52:53 | 2018-10-19T18:52:53 | null | UTF-8 | Python | false | false | 3,051 | py | #!/usr/bin/env python
#
# Copyright (c) 2016-2017 Nest Labs, Inc.
# 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/lice... | [
"rszewczyk@nestlabs.com"
] | rszewczyk@nestlabs.com |
8ed0afb59ea8f91c6ed1dade308446d49b35f9f7 | 1edcd7f8dbca3de00e7cccb190ee1f4c78ca7cd6 | /stockphoto/views.py | f72147e9745aa7540c8b1a539472b91b2b70fff0 | [] | no_license | opendream/openkala | 24c54fae76bb12d10e41a90b977c60a0c920654e | c890748c7a7804e8eaf63d5ecb258c601a5bc292 | refs/heads/master | 2020-04-21T21:54:17.455375 | 2011-07-19T04:21:43 | 2011-07-19T04:21:43 | 1,648,780 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,604 | py | """
views.py --- non-generic views used by stockphoto
This file is a part of stockphoto, a simple photogallery app for
Django sites.
Copyright (C) 2006 Jason F. McBrayer <jmcbray-django@carcosa.net>
Copyright (C) 2006 William McVey <wamcvey@gmail.com>
This program is free software; you can redistribute it and/or... | [
"crosalot@gmail.com"
] | crosalot@gmail.com |
f3e465d8abf97925aafc78f1129a2bbb9ec13c39 | 71877e3f343e3899da77878937362191fdc02a0f | /topo_management/make_topos.py | 4b1690d7c294a97ec079d7d60e92469cc7f79f95 | [] | no_license | micahjohnson150/scripts | 2a9007ae6d2ad3eec3596aff6e016f6d13fb0652 | 32a8322cab7463dbcc4d6042e7d53a03c2ee2654 | refs/heads/master | 2023-05-26T04:48:27.005338 | 2023-01-21T14:08:51 | 2023-01-21T14:08:51 | 144,737,605 | 0 | 0 | null | 2023-05-22T21:36:55 | 2018-08-14T15:17:16 | Python | UTF-8 | Python | false | false | 4,085 | py | #!/usr/bin/env python3
from os import listdir, walk, system
from os.path import isfile, isdir, basename, abspath, expanduser, split
from subprocess import check_output, Popen
import argparse
from basin_setup.basin_setup import Messages
"""
Every basin in my basin folder has a make file and each is constructed similar... | [
"micah.johnson150@gmail.com"
] | micah.johnson150@gmail.com |
2e8c14b62dd14176853069323a21f7c111fded9d | a0dc10a222031ebace35908e6e451a93ee48a198 | /take_photo_store_in_db.py | 9f0adc6651c336a6dd231987df9dab3387ba8812 | [] | no_license | Eshan-K-Kaushal/Login-Authentication-With-Facial-Gesture-Recognition | e69c90f1ee3b123a9193933e28f0e5eaafc72dad | 85528ab8569719818fa2bc4d641b49abb0127132 | refs/heads/master | 2020-09-25T18:26:53.844641 | 2019-12-05T09:43:09 | 2019-12-05T09:43:09 | 226,063,293 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | import cv2
import os
import buttonpython.faces_train as train_new_model
def takephoto():
uid =0
uid = input("Please enter user name")
cam = cv2.VideoCapture(0)
#cv2.namedWindow("Say Cheese")
img_counter = 0
num = 5
val = 0
newpath = "C:\\Users\\Admin\\buttonpython\\b... | [
"noreply@github.com"
] | Eshan-K-Kaushal.noreply@github.com |
2e4f46a41395098ef6db3d13a48e0814d0edd127 | 7e274c0b78a9643082bb17ba3be577270afaeba6 | /codes/Python/file_system.py | 8b56e9e12be458b70e5e86c8a4af5a5561b12bc6 | [] | no_license | ithink20/Algorithms | 048492287b8222c819a48783506e55bb799d9a5b | 7dc06298b91ce88e22f74b4430051dd302102b68 | refs/heads/master | 2023-01-01T09:43:24.285326 | 2019-12-21T14:26:13 | 2019-12-21T14:26:13 | 122,069,734 | 3 | 3 | null | 2022-12-10T00:15:31 | 2018-02-19T13:55:49 | C++ | UTF-8 | Python | false | false | 527 | py | import os
def list_files(path_to_file):
for root, directories, filenames in os.walk(path_to_file):
level = root.replace(path_to_file, '').count(os.sep)
indent = ' ' * 4 * (level)
print('{}{}/'.format(indent, os.path.basename(root)))
subindent = ' ' * 4 * (level + 1)
for file... | [
"suicidesquade21@gmail.com"
] | suicidesquade21@gmail.com |
160cd1cfdb5940fe29a73cf6358bf598df79e693 | 8c774738a90da3feb18ae8744cbe46bdda9901c6 | /lib/model/nms/nms_gpu.py | 64fd3258b38cef44dbd2b3980af7ea7f90bc5730 | [
"MIT"
] | permissive | SWHL/faster-rcnn.pytorch | 7476765b129896aa85e2c9e7186c3e8044b61339 | 348678bb1cad0fe21a1be3881e81ec59af02aa19 | refs/heads/master | 2020-09-22T00:16:22.226668 | 2019-12-15T11:35:13 | 2019-12-15T11:35:13 | 224,983,111 | 3 | 0 | MIT | 2019-11-30T08:36:57 | 2019-11-30T08:36:56 | null | UTF-8 | Python | false | false | 300 | py | from __future__ import absolute_import
import torch
import numpy as np
from ._ext import nms
import pdb
def nms_gpu(dets, thresh):
keep = dets.new(dets.size(0), 1).zero_().int()
num_out = dets.new(1).zero_().int()
nms.nms_cuda(keep, dets, num_out, thresh)
keep = keep[:num_out[0]]
return keep
| [
"1226778264@qq.com"
] | 1226778264@qq.com |
3e8728b1cd31d7507eded1ece1bafcde106c51ba | 1ee5fb62710706df9381d7134b84a8ee3c6a433c | /prime_generator.py | 10d0ded24c4b5625933db59f4eb79f3360260c2d | [] | no_license | piradata/URI_codes | 7b6bf819a29f69f2cfd60d767f7aa319bfa7757d | ef50d8acfee26e5e1ff263b3a7d9c787bb9ec2a8 | refs/heads/master | 2020-04-24T13:07:49.007219 | 2019-06-20T03:49:07 | 2019-06-20T03:49:07 | 171,976,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | #A é matriz q guarda numeros primos
#N é repedidor secundario(numero do primo a ser testado)
#I é repetidor primario(numero atual)
#K é quantidade de numeros primos
#Y é variavel de deslocamento de valor para K
A=[]
A.append(2);
A.append(3);
N = 0;
I = 3;
K = 2;
Y = 2;
while(K < 15000):
N = 1
wh... | [
"noreply@github.com"
] | piradata.noreply@github.com |
6b5c09ffd56d692ba043c5d8a8401b54afbd1796 | fb7d3e2b146210a97346a72273c4a03faba4beb7 | /venv/Scripts/easy_install-3.7-script.py | af4817693569ff675aea319f4fae0d700cd4c52b | [] | no_license | eaxcggdiwmw/- | af287ddbe1c2d00853107eb1751e426d7851689a | 8fc5f549b88d5c2aa978a4fa811d54405dda07e6 | refs/heads/master | 2020-04-16T02:35:31.582588 | 2019-01-11T09:18:15 | 2019-01-11T09:18:15 | 165,201,408 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 455 | py | #!D:\Êä³ö¼þ\ÅÀ³æ¿ò¼Ü\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', ... | [
"379864478@qq.com"
] | 379864478@qq.com |
05bce0dc7b284baba067637aeeb6efa9d33144b0 | 405d49101193df51af81a020a991897deebe661b | /src/shift_reads.py | 6a54fcacfaff24cd40589dbc42095703664c22e9 | [] | no_license | HuGKevin/nfkb_seq | bd0319e7a854ddeb1b725aaba253031659ff7e3d | 58ce67a4a9b910d48bb2bbc2d1e52a6f17c966aa | refs/heads/master | 2022-11-05T01:00:50.286412 | 2020-07-07T17:05:16 | 2020-07-07T17:05:16 | 262,151,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,625 | py | #
# shift_reads.py
#
# This script shifts aligned ATAC-seq reads for transcription factor footprinting.
# Reads aligning to the positive strand are shifted by +4 nt; reads aligning to the
# negative strand are shifted by -5 nt.
#
# This is required for the ATAC-seq protocol in Buenrostro et al. (2013) Nat Method... | [
"kevin.hu@yale.edu"
] | kevin.hu@yale.edu |
692f6b88d3ccf72cfc834898c9afebb57e40c37a | eb7e5d8f738385095902702fb33142289ee1bb64 | /Climbing the Leaderboard/solution.py | 72cefb244c4c9512abe1a1bce896fc1d55371045 | [] | no_license | Raamkishore/30-Days-of-Coding | f7ecfe40b526ff3c2c968f788a321c1448b8e609 | c79294fb212b76f3ed9aef67c2cf8ce6ae99dc33 | refs/heads/master | 2022-11-12T12:42:20.603061 | 2020-07-09T05:03:26 | 2020-07-09T05:03:26 | 271,331,989 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the climbingLeaderboard function below.
def climbingLeaderboard(scores, alice):
temp = len(scores)-1
result = []
rank = 1
d = {}
for i in scores:
if i not in d:
d[i] = rank
... | [
"noreply@github.com"
] | Raamkishore.noreply@github.com |
13ce13acc0ee3b59068a41e4508f062418b18a4d | 124d231d5d03546b724ea998460428f8f0c66948 | /ARRDAN001_Prac1.py | c7080424c8be9ca782a41a3371a691fa8324bf83 | [] | no_license | danaarries/Prac1 | 7fc87fb4465026a946234738f43d031c3627e00a | 4e610d17c930e96c7af3eb9c81e44dd9db6d9350 | refs/heads/master | 2020-06-25T12:53:30.639579 | 2019-07-28T16:41:42 | 2019-07-28T16:41:42 | 199,313,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,306 | py | #!/usr/bin/python3
"""
Python Practical Template
Keegan Crankshaw
Readjust this Docstring as follows:
Names: <Dana Arries>
Student Number: <ARRDAN001>
Prac: <1>
Date: <22/07/2019>
"""
# import Relevant Librares
import RPi.GPIO as GPIO
from itertools import product #to access product function used create state LED valu... | [
"arrdan001@myuct.ac.za"
] | arrdan001@myuct.ac.za |
0fbe76b6b25a22fd362a69283881ff1185437b93 | 47dec5404e8869f55c8eb8ff2b543bbc2df6bd9a | /kipoi_utils/external/flatten_json.py | d4db4e2a70f34a299a0fb159c9711038d842cb1c | [
"MIT"
] | permissive | bfclarke/kipoi-utils | cd283ecbbc13afad5d0af7cbdabd8e55b24a9922 | 2f5f114f70aa80303478aeadb15862dadad378e1 | refs/heads/master | 2022-03-10T06:20:19.998426 | 2019-10-07T15:15:02 | 2019-10-07T15:15:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,631 | py | """
Modified from https://github.com/amirziai/flatten
MIT License
Copyright (c) 2016 Amir Ziai
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 t... | [
"derthorstenbeier@gmail.com"
] | derthorstenbeier@gmail.com |
727e3d3e9f75003187b98333d2bb8945ad4971c7 | 7c32abb718368f9c235c63c00dee478c061e2846 | /projects/Insurance Premium Prediction/TrainingDataIngestion/dbOperation.py | 552d374a380389d595f5355687cb6236628f2028 | [] | no_license | motheesh/DataScience | 13de80f624d95f9ca8978798e3d35b4b44526603 | ad7cdaef6bc608768393e00ac430c20db6e65236 | refs/heads/main | 2023-07-12T20:52:10.053112 | 2021-08-22T13:40:51 | 2021-08-22T13:40:51 | 372,164,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,076 | py | from cassandra.cluster import Cluster
from cassandra.auth import PlainTextAuthProvider
from cassandra.query import SimpleStatement, BatchStatement
from cassandra.policies import RetryPolicy
import numpy as np
import config
from ApplicationLogger.logger import logger
from TrainingDataValidation.ValidateTrainingData impo... | [
"noreply@github.com"
] | motheesh.noreply@github.com |
2a8953a9839de6581e4caa79cda9cb3036c84a36 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03834/s172653587.py | 5c52cb64a75d2d12e1141735e2cd2b29c9007926 | [] | 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 | 44 | py | a = input()
b = a.replace(",", " ")
print(b) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
578c5a1a6ff22e80aa35320182614bae82dfd05a | c51b70a06a7bef9bd96f06bd91a0ec289b68c7c4 | /src/Snakemake/rules/Imbalance/Imbalance.smk | 3d777e988559e4db91c171cc36dc8db59f4b607b | [] | no_license | clinical-genomics-uppsala/TSO500 | 3227a65931c17dd2799dbce93fe8a47f56a8c337 | b0de1d2496b6c650434116494cef721bdc295528 | refs/heads/master | 2023-01-10T01:41:51.764849 | 2020-11-05T14:11:25 | 2020-11-05T14:11:25 | 218,708,783 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 390 | smk |
rule imbalance :
input:
bams = ["RNA_TST170/bam_files/" + s + ".bam" for s in config["RNA_Samples"]]
output:
imbalance_all = "Results/RNA/Imbalance/imbalance_all_gene.txt",
imbalance = "Results/RNA/Imbalance/imbalance_called_gene.txt"
run:
import subprocess
subproces... | [
"jonas.almlof@igp.uu.se"
] | jonas.almlof@igp.uu.se |
d01833d153c6d7f16c878d087755444fc30b886e | 713197a9519d72610804e1389e57d7c738a3d90e | /tienda/migrations/0001_initial.py | e4c0ac5980d6a8b34b1f42dc58ca9ffe4a55c7e6 | [] | no_license | lucianocanales/DjangoProject | 08cb8bbb8f630f48b447913f8a72ad7e5383db68 | 8491b0c1d1b8d4fe45429e978b67b08abd9600bd | refs/heads/master | 2023-02-27T12:10:23.470759 | 2021-02-13T00:09:58 | 2021-02-13T00:09:58 | 335,425,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,414 | py | # Generated by Django 3.1.3 on 2021-01-15 21:48
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... | [
"lucianocanales@gmail.com"
] | lucianocanales@gmail.com |
ecf912345fbadbd8ec8aaf0e1299ca4407c95bdd | bc3fb3e8a659375a6af9f1dc958a2db5e1e7b87a | /python/hrpsys-plot/datalogger-plotter-with-pyqtgraph.py | 6f4a16254f35495f7331d2b1fb744a4f0d8f2d05 | [] | no_license | kindsenior/kuroiwa_demos | 0bfa973b0e16202c79420bab4d376ee9a85c6f25 | 2f380c0729cb4fa87c3b76a723576cb45977ccec | refs/heads/master | 2021-01-14T10:48:13.065969 | 2015-12-22T14:49:38 | 2015-12-22T14:49:38 | 48,623,977 | 0 | 0 | null | 2015-12-26T21:23:58 | 2015-12-26T21:23:57 | null | UTF-8 | Python | false | false | 10,378 | py | #!/usr/bin/env python
import csv, argparse, numpy, math, time, struct, yaml, sys
try:
import pyqtgraph
except:
print "please install pyqtgraph. see http://www.pyqtgraph.org/"
sys.exit(1)
class DataloggerLogParserController:
def __init__(self, fname, yname, title):
self.fname = fname
w... | [
"kuroiwa@jsk.imi.i.u-tokyo.ac.jp"
] | kuroiwa@jsk.imi.i.u-tokyo.ac.jp |
3bd820c2b47affa60cbbb287a97dcac4b21db76d | bf78b940cf87a9c33c494ac90f5c20fa2b35240f | /04_Null_Models/calc_dist_iter.py | a0f335858d711cdc1c67e514cad2e9c4a46a6649 | [] | no_license | Jiamingglyy/mouse_gradients | b03c9f8cee8020473656985414e0625f88e8ac36 | c2a42400e8dd81c68de0f9bf79183cd616192e66 | refs/heads/master | 2023-03-27T14:58:43.085936 | 2021-03-26T14:49:47 | 2021-03-26T14:49:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | import numpy as np
import gdist
import argparse
if __name__=='__main__':
parser = argparse.ArgumentParser(description='')
parser.add_argument("-idx", dest="idx",required=True)
args = parser.parse_args()
idx = int(args.idx)
data_dir = '/home/julia/data/gradients/'
cortex = np.load(data_dir+'r... | [
"juhuntenburg"
] | juhuntenburg |
478c74baf9d087d205467e131408a15aa52e7eb7 | 5b51cc97595f5b246c6788608774f9f5839210ea | /setup.py | a56035ce72db24d2f0aac9e39edfd3471afa2a80 | [] | no_license | m-mix/djangocms-bootstrap3-grid | 3147b8e8a502d864c515d251ddeef0a504dcde0d | 38b900a42174d5be1a14f591f4486456ebb409b1 | refs/heads/master | 2021-01-23T03:48:28.831542 | 2014-02-27T13:20:42 | 2014-02-27T13:20:42 | 17,201,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
from djangocms_bootstrap3 import __version__
INSTALL_REQUIRES = []
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'Licens... | [
"m-email@inbox.com"
] | m-email@inbox.com |
15cea4f928a57a80bc4a8c891bbc166135746b2c | 4201d4aff2f2d877fa75d6d971f7826d5d1369e3 | /product_onepage/settings.py | 91b09b1db1c82f31bfb8318f86917bf8e21a21ab | [
"MIT"
] | permissive | emencia/emencia-product-onepage | 4f5fb72cc47ca8725bc01c9c69a583126e7b8514 | 09cff26e97641412b297f977ca8c8045983bbf97 | refs/heads/master | 2020-04-13T09:31:04.787009 | 2015-01-13T01:14:00 | 2015-01-13T01:14:00 | 28,994,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,778 | py | # Dummy gettext
gettext = lambda s: s
# Plugins template choices
ONEPAGE_TAB_TEMPLATE_CHOICES = (
("product_onepage/tab.html", gettext("Default")),
)
ONEPAGE_SPEC_TEMPLATE_CHOICES = (
("product_onepage/spec.html", gettext("Default")),
)
ONEPAGE_BLURB_TEMPLATE_CHOICES = (
("product_onepage/blurb.html", ge... | [
"sveetch@gmail.com"
] | sveetch@gmail.com |
d2434930a13bebdaf26a631a418001629e7bb9b0 | c7c6ba345e3551621a18a730b2ea1cd59aa15401 | /scripts/vagharchakian2012temporal.py | 76f2d49949556f326487a4b1ecfe220d54084d6d | [] | no_license | jbpoline/pypreprocess | 3b68ffb059f6cbdeb5c7383c5fa9168515dc9cdf | ec459b1963ed5e881b662ac663a23d37169a3fa2 | refs/heads/master | 2021-01-21T17:16:49.384426 | 2014-08-15T14:50:14 | 2014-08-15T14:50:14 | 23,086,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,067 | py | import os
import sys
import glob
import multiprocessing
warning = ("%s: THIS SCRIPT MUST BE RUN FROM ITS PARENT "
"DIRECTORY!") % sys.argv[0]
banner = "#" * len(warning)
separator = "\r\n\t"
print separator + separator.join(["", banner, warning, banner, ""])
# spm_loader path
SPM_LOADER_DIR = os.path.join(... | [
"elvis.dohmatob@inria.fr"
] | elvis.dohmatob@inria.fr |
ad6a77825ba005305871456b1523c3a12198e415 | 2487c6a41e8f00b24e7f97b4251263c607f57e5a | /Python/2020-06-12-기본문법/unicode.py | 59c40660f4bc01919d9e069c0f720fecba2afe44 | [] | no_license | 0x000613/Outsourcing | 1dacf34431a70950153f699f99780d59ee42e2fa | d2d9cb7111c3b12e16fe42e73150b2f6e4f7e7bc | refs/heads/master | 2023-03-09T11:49:41.648198 | 2021-02-21T09:49:14 | 2021-02-21T09:49:14 | 329,673,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | # 대문자를 쉽게 가져올수 있는 string 모듈을 import한다.
from string import ascii_uppercase
# 대문자 리스트를 가져온다.
alphaList = list(ascii_uppercase)
# 개행을 관리하는 변수 nextLineCounter 초기화
nextLineCounter = 0
for alpha in alphaList:
# nextLineCounter를 4로 나눈 나머지 값이 0이면
if nextLineCounter % 4 == 0:
# 개행
print()
# 알파벳 : 알파... | [
"xeros.log@gmail.com"
] | xeros.log@gmail.com |
5ae5bed3931a773bc8c36609fb86ce98761182b9 | 646ce7f6bf8abda078a3c9ac6d408b20c0da181a | /ex4.py | 4581057424d96618236d4c3e8ebbff39a7ac8e94 | [] | no_license | NishaUSK/pythontraining | 1fcefe8dd58b845a2e89de134f611da39bff1905 | c964e12c30a18aa4773cebc1ba201524b13cf9a6 | refs/heads/master | 2020-04-09T22:23:39.839249 | 2018-12-11T14:31:44 | 2018-12-11T14:31:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | #conditional statement program
if 25 > 28 :
print("25 is greater than 28")
else:
print("25 is less than 28")
print("-----------------------------")
if 18 < 28:
print('True')
else:
print('False')
| [
"nisha.nescode@gmail.com"
] | nisha.nescode@gmail.com |
20fcd5d4e9c68f072f12665f4282389755541b28 | 50de76eb887892c2085e1aa898987962a5d75380 | /_1_PythonBasic/Reactive/5.2B_distinct_with_mapping.py | bd179c9d1443ceb29fd6932f737d2d033d35e7f2 | [] | no_license | cyrsis/TensorflowPY36CPU | cac423252e0da98038388cf95a3f0b4e62d1a888 | 6ada50adf63078ba28464c59808234bca3fcc9b7 | refs/heads/master | 2023-06-26T06:57:00.836225 | 2021-01-30T04:37:35 | 2021-01-30T04:37:35 | 114,089,170 | 5 | 2 | null | 2023-05-25T17:08:43 | 2017-12-13T07:33:57 | Jupyter Notebook | UTF-8 | Python | false | false | 163 | py | from rx import Observable
Observable.from_(["Alpha", "Beta", "Gamma", "Delta", "Epsilon"]) \
.distinct(lambda s: len(s)) \
.subscribe(lambda i: print(i))
| [
"em3888@gmail.com"
] | em3888@gmail.com |
7da3616259ad8ebcdde6f2c0278b1a810fc14f85 | 775e92797eb8beeb7262903e20652af377668eb4 | /Queue_UsingLinkedList.py | b682470e9811e56a99919e3bba37ce940db01796 | [] | no_license | tiennynyle/DSandAlgo_Practice | b29053ccfb03d62246ec0ac46954ed819730bab7 | 6ba8514eaa2dd6552792439fea0fbcd8e3e89a38 | refs/heads/master | 2022-11-13T12:44:40.509451 | 2020-07-07T16:34:15 | 2020-07-07T16:34:15 | 271,134,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | class Node():
def __init__(self,value):
self.value = value
self.next = None
class Queue():
def __init__(self):
self.head = None
self.tail = None
self.num_elements = 0
def enqueue(self, value):
new_node = Node(value)
if self.head is None:
... | [
"noreply@github.com"
] | tiennynyle.noreply@github.com |
ccf5e0fbc0904ccbc4c7291540962c2be04e1e27 | d785e993ed65049c82607a1482b45bddb2a03dda | /nano2017/cfg2018/GluGluToContinToZZTo4e_cfg.py | b03efa62bd937ed3a42f2270aeed36b10cdf53de | [] | no_license | PKUHEPEWK/ssww | eec02ad7650014646e1bcb0e8787cf1514aaceca | a507a289935b51b8abf819b1b4b05476a05720dc | refs/heads/master | 2020-05-14T04:15:35.474981 | 2019-06-28T23:48:15 | 2019-06-28T23:48:15 | 181,696,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | from WMCore.Configuration import Configuration
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = Configuration()
config.section_("General")
config.General.requestName = 'GluGluToContinToZZTo4e_2018'
config.General.transferLogs= False
config.section_("JobType")
config.JobType.pluginName = 'An... | [
"jiexiao@pku.edu.cn"
] | jiexiao@pku.edu.cn |
a96bb608332b2d8fe45b1a8a46753ffd072dd999 | 38cdcc151bf4e2c1c0307aec35bd02841b16615d | /exp6/myrun.py | 2f6ef1c3da32175b2596b8d8f7c93e5fcb182c9d | [] | no_license | gcolmenarejo/cmd | c8b18a3406d1672e738093136caf54edf101cae6 | d2a5b4beb3706eba98c9398ac00bab6abba3ad22 | refs/heads/master | 2020-03-31T08:06:37.451756 | 2019-03-11T11:20:14 | 2019-03-11T11:20:14 | 152,046,088 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,320 | py | from __future__ import print_function
import sys
sys.path.insert(0, '../')
import numpy as np
import pandas as pds
from preprocessing import smiles_to_seq, vectorize
import mySSVAE
import time
import csv
import tensorflow as tf
from preprocessing import get_property, canonocalize
from sklearn.preprocessing import Sta... | [
"gcolmenarejo@localhost.localdomain"
] | gcolmenarejo@localhost.localdomain |
73d247de2249cedb6a8d8e51aa7607489710a3cf | e3c3d41137a2f3920e8524b6f07c18825959d98b | /C3D_pairwise_eval/all_mean.py | 63ac279d8f0627397af374dca9990556bfbd8e0f | [] | no_license | fxing328/c3d_ucf101_siamese_yilin | 080c100db89217888d369dc52094c1cfa41beae9 | 1b6a3b1b8842d645bb275ce5353a68ad5a1a4eaf | refs/heads/master | 2020-06-24T21:51:41.910015 | 2016-11-23T23:08:05 | 2016-11-23T23:08:05 | 74,618,334 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,114 | py | import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
plt.ion()
import numpy as np
import scipy.io as scipy_io
import pdb
from collections import *
import sys
import os
import re
from pylab import *
class Graph:
def __init__(self):
self.nodes = set()
self.edges = defaultdict(lis... | [
"fx_328@hotmail.com"
] | fx_328@hotmail.com |
9462a18277d9b4f90b25c5ab35a7baf388d7aba4 | b953909018be86cf8cdf328e2b13395c1dbe28c0 | /apps/xadmin/plugins/inline.py | cdc764aa4faeabe0c94f3cdcb5e6bb2bc7eb78b8 | [] | no_license | wangyong240/mes | 06ce26d146aebe0b0103dda4fdd198c3cefc6014 | 12d7321c1b96ae0fdd8f26029462e1943a500c01 | refs/heads/master | 2023-01-01T13:29:29.853063 | 2020-09-19T01:19:22 | 2020-09-19T01:19:22 | 296,762,233 | 1 | 0 | null | 2020-09-19T01:20:05 | 2020-09-19T01:20:04 | null | UTF-8 | Python | false | false | 16,489 | py | import copy
import inspect
from django import forms
from django.forms.formsets import all_valid, DELETION_FIELD_NAME
from django.forms.models import inlineformset_factory, BaseInlineFormSet
from django.contrib.contenttypes.generic import BaseGenericInlineFormSet, generic_inlineformset_factory
from django.template impor... | [
"70498306+wangyong240@users.noreply.github.com"
] | 70498306+wangyong240@users.noreply.github.com |
e7aaed69e2edaaa3f2386bcc9d7eab2f6d43665d | 5675ea351e805a7e83352eb4e1fba3f9f5d98dfa | /SISAB.py | 4c362e71e2953ac72feadbc5651de47815b5f14f | [] | no_license | giapsunb/Extract-Sisab | 4f41215523e43ea93578d69fc2fe2b1944b9c987 | 180c96c4d7d6b7c08331d4b7844cdd850b129969 | refs/heads/main | 2023-08-05T19:06:22.137454 | 2021-09-22T01:07:18 | 2021-09-22T01:07:18 | 409,021,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,213 | py | from typing import Iterable, Tuple, Union, Dict, TextIO
from collections.abc import Iterable as Iter
import requests as req
from bs4 import BeautifulSoup
from bs4.element import Tag
def must_set(*options):
def wrapper(fun):
def check(object, *args, **kwargs):
if any(map(lambda o: len(object.__... | [
"noreply@github.com"
] | giapsunb.noreply@github.com |
f2110dbbd89d74b18d31ba38453abe0f7578aebb | 60fa442ae76b960ab21b10fb527c0eac85cdc587 | /phenix/crawl_refines_print_Rfactor.py | 3865946eb9d8dfc4cf54c28e0f99554fc655a411 | [] | no_license | pjanowski/Pawel_PhD_Scripts | 8e6c2b92b492f9cacf425327a01faaceb27bb87d | 5f9b1735ca6da8fdf0946d6748f3da7d3d723d5e | refs/heads/master | 2021-01-10T06:15:30.287053 | 2015-11-16T04:04:07 | 2015-11-16T04:04:07 | 46,250,317 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | import os
import glob
dbase="/media/My Book/Marco/rigi_145392/p6522"
ds = next(os.walk(dbase))[1]
ds = [i for i in ds if i.startswith('Refine')]
f = lambda x: (x,int(x.split('_')[-1]))
ds = map(f,ds)
ds.sort(key=lambda x: x[-1])
ds = [ i[0] for i in ds ]
for d in ds:
logfile = glob.glob('%s/%s/*log' %(dbase,d))
i... | [
"pawelrc@gmail.com"
] | pawelrc@gmail.com |
6b33fad5a0bf1cd29c8c5b2f40ddf62a7654bd53 | 9d7b67a9795951681dc2f13c3edefade049652ee | /plotting.py | 7f26a66d7708241cfa123e751ab8ea8eb883f6a1 | [] | no_license | joshikajal/insta | 443d0803870c3e2102e41437a0fb521fb0eacdba | 47886a5b194c012b996f699c41736ae29571deca | refs/heads/master | 2021-01-01T16:29:25.570233 | 2017-07-20T14:40:55 | 2017-07-20T14:40:55 | 97,846,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | import numpy as n
import matplotlib.pyplot as p
fig = p.Figure()
ax=p.axes()
def plot_fig(hash_tags,count):
labels = hash_tags # Mentioning the labels(hash_tags) for pie-chart
size = count # Mentioning the sizes of the labels
colors = ['r','g','b','m','y','c','w'] # Colours to be ... | [
"noreply@github.com"
] | joshikajal.noreply@github.com |
6ca4e2e8cbb599a84de695311c734db68e0591c3 | 1d79b1e44689c4bc1df68398151ffef990f0f0e7 | /blackjack/blackjack.py | 637ab66510dfb794ee077a3d2c2a4baf645b7ecc | [] | no_license | sourabbmk/mini_p | b14f4102e431147ca7f82714a9ca3426f26fb2a3 | 6a20a89a28796ccc4023a780f5506e6db47df02e | refs/heads/master | 2020-04-14T22:59:42.357347 | 2019-01-05T06:04:43 | 2019-01-05T06:04:43 | 164,186,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,705 | py | import random
#define deck
def deck():
#create empty deck list
deck=[]
#take suits and rank and append in empty deck list
for suit in ['H','S','D','C']:
for rank in ['A','2','3','4','5','6','7','8','9','T','J','Q','K']:
deck.append(suit+rank)
#shuffle the deck
random.shuf... | [
"noreply@github.com"
] | sourabbmk.noreply@github.com |
b0ff9f48e6c2f3407f84200f20b514f3846a6faa | 8232afd746f3be1b8bbb6ef9e673c1e9bb8a71c9 | /pdb_ex2.py | 8b2daa7f6c6bdffd23e2502ade5714611f711fed | [] | no_license | Nikhila76/debugging | 50158dc769bb7aa6f082ad2bbc2aac3b30eed33e | b0ce39c063fbc43535fca7eb90b49a5ea3abd05b | refs/heads/master | 2020-11-24T00:19:19.766044 | 2019-12-13T16:39:56 | 2019-12-13T16:39:56 | 227,880,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | import pdb
def add_one(num):
result = num + 1
print(result)
return result
def main():
pdb.set_trace()
for num in range(0, 10):
add_one(num)
if __name__ == '__main__':
main() | [
"noreply@github.com"
] | Nikhila76.noreply@github.com |
553525e00731cc6043347f108d91ed75bd67cdda | c9c176c8e4516fd0017c618586c5e3792d9094c3 | /core/src/epicli/cli/engine/ansible/AnsibleConfigFileCreator.py | 896392a9f7b632ae6a296f76b0ccceb6663f8714 | [
"Apache-2.0",
"GPL-3.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"MIT",
"BSD-3-Clause",
"LGPL-2.1-or-later",
"ISC",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"Python-2.0",
"MPL-2.0",
"BSD-2-Claus... | permissive | rpudlowski93/epiphany | 6d089c9f6a471d2e0f42341679498c2d8a4bc15b | 3116c587caca77f7c7cae73268fb107ff2ea2174 | refs/heads/develop | 2023-05-07T22:59:01.566518 | 2021-05-20T07:42:46 | 2021-05-20T07:42:46 | 284,035,668 | 0 | 0 | Apache-2.0 | 2020-09-09T11:06:00 | 2020-07-31T12:49:36 | null | UTF-8 | Python | false | false | 2,433 | py | import os
from cli.helpers.build_saver import save_ansible_config_file
from cli.helpers.Step import Step
from collections import OrderedDict
class AnsibleConfigFileCreator(Step):
def __init__(self, ansible_options, ansible_config_file_path):
super().__init__(__name__)
self.ansible_options = ansible... | [
"noreply@github.com"
] | rpudlowski93.noreply@github.com |
d21273618c0ba3f88d15e8539600718e99a08407 | 298b5c5d4d103f6fb2ff6510342d9e302111573e | /seaborn/colors/__init__.py | 3d0bf1d56bdc5c0e724c8eeb95200297884337cc | [
"BSD-3-Clause"
] | permissive | mwaskom/seaborn | a8ea9e8f3932a6324b196862cc6593f69df2d459 | 67a777a54dd1064c3f9038733b1ed71c6d50a6af | refs/heads/master | 2023-08-24T06:22:32.609915 | 2023-08-24T01:09:05 | 2023-08-24T01:09:05 | 4,704,710 | 10,793 | 2,316 | BSD-3-Clause | 2023-09-11T05:04:46 | 2012-06-18T18:41:19 | Python | UTF-8 | Python | false | false | 88 | py | from .xkcd_rgb import xkcd_rgb # noqa: F401
from .crayons import crayons # noqa: F401
| [
"mwaskom@nyu.edu"
] | mwaskom@nyu.edu |
7eedec6b90d538076fbd285523d68f3a3cf6b332 | 5d402d971a51e534db97903c2c766533caac43ad | /.history/3_of_100_20210409144230.py | 8f28e1de243e862f58fe88d5d74acd32043f9f78 | [] | no_license | Samkiroko/python_100_days | 494474723c1e6f30a1682b57af88f9e8e2725a7a | af7c8352f5adda6f52da4ac73f92bf000daa9547 | refs/heads/main | 2023-04-12T11:37:03.660017 | 2021-04-18T19:18:34 | 2021-04-18T19:18:34 | 356,240,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py |
# Write a program that works out whether if a given year is a leap year.
# A normal year has 365 days, leap years have 366, with an extra day in February.
# The reason why we have leap years is really fascinating,
# this video does it more justice:
# 🚨 Don't change the code below 👇
year = int(input("Which year do y... | [
"kirokodev@gmail.com"
] | kirokodev@gmail.com |
7e5655692f68542ff5bdf487192f36808cc0e71f | 11e93d33fbc1e1ce37b14969276f13ad1ba1823b | /cef_paths.gypi | cb4bf53b504675bb2cf66d164bdb87552e331f76 | [
"BSD-3-Clause"
] | permissive | chorusg/cef | 671ff2ffd92a361fe4b62649317687b22c062295 | 1ffa5528b3e3640751e19cf47d8bcb615151907b | refs/heads/master | 2023-06-19T08:26:02.558559 | 2021-07-19T15:55:43 | 2021-07-19T15:55:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,714 | gypi | # Copyright (c) 2021 The Chromium Embedded Framework Authors. All rights
# reserved. Use of this source code is governed by a BSD-style license that
# can be found in the LICENSE file.
#
# ---------------------------------------------------------------------------
#
# This file was generated by the CEF translator tool ... | [
"magreenblatt@gmail.com"
] | magreenblatt@gmail.com |
4dca2008c0b2d727f3921ac5ce13a814ba4dd16e | 463405ee0b4eabe0c0909215645d1ec6b7417964 | /blog/models.py | 38738797104af6b6ffa931317e37782688af7b77 | [] | no_license | vaceero/blog-project | 153f49e2ef2817de0091abf54914e055c2473a11 | d2cd986b7fc86ff22b34ac2f6e4852ef9c8219fd | refs/heads/master | 2021-05-18T18:12:04.948075 | 2020-04-10T15:48:41 | 2020-04-10T15:48:41 | 251,353,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User', on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(
default=timezone.now)
publi... | [
"przemyslaw.sujecki@gmail.com"
] | przemyslaw.sujecki@gmail.com |
5d22da835c8636ffdb5fdd2692263065d45e9c99 | ff16f1c4beb1f96a0d8550f000f2c24b069b8ed3 | /src/pycairo/gtk/Transform.py | 86ffd4153d4783d57c17e9b6a70fc3ca030b1ea0 | [] | no_license | simon-rock/python_workspace | 32c4384815d03a493d9957e1ea15283426ba414f | 9299363f3dfea0371d2d2a02b9beccd4320093d6 | refs/heads/master | 2020-12-24T14:00:48.683661 | 2020-07-28T07:47:16 | 2020-07-28T07:47:16 | 34,956,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | #!/usr/bin/env python
#coding: utf-8
#encoding: utf-8
import framework
from math import pi
class Transform(framework.Screen):
def draw(self, cr, width, height):
cr.set_source_rgb(0.5, 0.5, 0.5)
cr.rectangle(0, 0, width, height)
cr.fill()
# draw a rectangle
cr.set_source_rgb... | [
"simon29rock@gmail.com"
] | simon29rock@gmail.com |
cfc28ca228ed7494d798191c00ed9e5807b91e18 | 53560ba320b76244216bb7c940cb5c81dc856669 | /monster/middleware.py | baab2ad294e6d1b806f254bd40493ac47ddd94c3 | [] | no_license | TitanEntertainmentGroup/django-monster | eaf53a0742246340222adced5731d0651f2fdf6a | 65be27b552b024af4babca8ad094f8710393690c | refs/heads/master | 2021-01-18T01:38:41.484574 | 2013-09-17T08:59:06 | 2013-09-17T08:59:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,430 | py | from django.conf import settings
from django.template.loader import render_to_string
from django.utils.encoding import smart_unicode
from monster.models import Region
def replace_insensitive(string, target, replacement):
"""
Similar to string.replace() but is case insensitive
Code borrowed from: http://for... | [
"andrew.ingram@titanemail.com"
] | andrew.ingram@titanemail.com |
8b53aa085bd20e81eb42d40797d09b3746a16116 | 130215e73cd45824fc5b7b2bc85949ce03115f20 | /py/syn10m02m.py | 320e65ea39115ace48776945eb23d5a8a2a61ab1 | [] | no_license | felicitygong/MINLPinstances | 062634bf709a782a860234ec2daa7e6bf374371e | 1cd9c799c5758baa0818394c07adea84659c064c | refs/heads/master | 2022-12-06T11:58:14.141832 | 2022-12-01T17:17:35 | 2022-12-01T17:17:35 | 119,295,560 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,238 | py | # MINLP written by GAMS Convert at 11/10/17 15:35:28
#
# Equation counts
# Total E G L N X C B
# 199 15 50 134 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | [
"feligongcity17@gmail.com"
] | feligongcity17@gmail.com |
44b39f3df171238655777f1d4aad0ccfdf832114 | 51e19a9bd716d33bf675aa852c460d9cad8b5727 | /ms/python_files/result_check.py | 2e96ca14acd8610c28447cc1896398db9084e397 | [] | no_license | nichohelmut/football_results | 1b039af1366e543a52d6682ea5ef5d392cd23d17 | 3b4f5b7ab72e31298a61e8b7116817f6180c5102 | refs/heads/master | 2023-01-31T21:50:00.665000 | 2020-12-10T16:01:44 | 2020-12-10T16:01:44 | 253,249,586 | 5 | 3 | null | 2020-12-10T16:01:45 | 2020-04-05T14:07:08 | Jupyter Notebook | UTF-8 | Python | false | false | 2,962 | py | import pandas as pd
from database import MySQLDatabase
from auto_download.footy_download import FootyStats
import os
import sys
from sqlalchemy import create_engine
import time
from datetime import date
PATH = os.path.dirname(os.path.abspath(__file__))
BASE_PATH = os.path.dirname(PATH)
path_to_pickle = os.path.join(B... | [
"nicholasutikal@gmail.com"
] | nicholasutikal@gmail.com |
0ec3a612342b6999c627497f0a8788d608044816 | 8c2de4da068ba3ed3ce1adf0a113877385b7783c | /hyp_utils/kaldi/steps/nnet3/report/summarize_compute_debug_timing.py | 5c74eaf128c5da16eeba7964877e3bae00778d07 | [
"Apache-2.0"
] | permissive | hyperion-ml/hyperion | a024c718c4552ba3a03aae2c2ca1b8674eaebc76 | c4c9eee0acab1ba572843373245da12d00dfffaa | refs/heads/master | 2023-08-28T22:28:37.624139 | 2022-03-25T16:28:08 | 2022-03-25T16:28:08 | 175,275,679 | 55 | 20 | Apache-2.0 | 2023-09-13T15:35:46 | 2019-03-12T18:40:19 | Python | UTF-8 | Python | false | false | 4,357 | py | #!/usr/bin/env python
# Copyright 2016 Vijayaditya Peddinti.
# Apache 2.0.
# we're using python 3.x style print but want it to work in python 2.x,
from __future__ import print_function
from __future__ import division
import sys
import re
import argparse
# expects the output of nnet3*train with --computation-debug=... | [
"jesus.antonio.villalba@gmail.com"
] | jesus.antonio.villalba@gmail.com |
0451ab6c75d806bc370d17a1356de4bb5437faf0 | 1e0ae1f039668a65e480065d671235fc0fff9b52 | /django19day/app01/views/home.py | 50e254c58f308631dd25e2745daad307c072c79f | [] | no_license | aixocm/svndata | a4da91c3c9e1d376abfd46e7cecc3c5c2e340e83 | ee205301f3a1ce11acef98bba927877cb7c4fb0b | refs/heads/master | 2021-01-21T04:39:41.607117 | 2016-07-01T01:48:36 | 2016-07-01T01:48:36 | 47,066,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from django.shortcuts import render
from app01.forms import home as HomeForm
from app01 import models
def index(request):
# models.UserInfo.objects.all().delete()
# models.UserInfo.objects.create(name="JJJJJ")
#
# after = models.UserInfo.objec... | [
"1755897532@qq.com"
] | 1755897532@qq.com |
5671e0966d602e6fe9d571de2403f63157d82dfb | 200682f84e0b72bab9475c9ac39e927a607abf2e | /samples/client/petstore/python/test/test_map_test.py | 913339478015cdaf2c717e6683658b1dc991125a | [
"Apache-2.0"
] | permissive | paveI-fando/swagger-codegen | 4ddba5ac6e65e9acc60cab52909eb165fefc0f6d | 1ba93b5cdda481a2630fffbd4d1ca436b9e37a46 | refs/heads/3.0.0 | 2021-06-30T15:10:00.633706 | 2021-06-08T12:19:05 | 2021-06-08T12:19:05 | 238,979,476 | 0 | 2 | NOASSERTION | 2021-06-08T12:19:39 | 2020-02-07T16:55:42 | Java | UTF-8 | Python | false | false | 948 | py | # coding: utf-8
"""
Swagger Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
OpenAPI spec version: 1.0.0
Contact: apiteam@swagger.io
Generated by: https://github.com/... | [
"hugo.mario.mercado@gmail.com"
] | hugo.mario.mercado@gmail.com |
f7fa8ad78741406c7c875f36cd8a743a697abc07 | b617eb5fb89ce10f62a9b673bfc2b2e2e062d820 | /security.py | 3f81f886b12be10f725055b54f60a03d7cd8085a | [] | no_license | BachirBelkhiri/FLASK_API_Test | d5c34e0c9ce5201a76fbd290a0b446bba1d4f124 | 8e3b137ce9a0a239a04a5f74de54329441a3a493 | refs/heads/master | 2021-06-17T11:44:00.910934 | 2021-02-09T14:57:30 | 2021-02-09T14:57:30 | 161,979,706 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | from werkzeug.security import safe_str_cmp
from models.user import UserModel
def authenticate(username, password):
user = UserModel.find_by_username(username)
if user is not None and safe_str_cmp(user.password, password):
return user
def identity(payload):
user_id = payload['identity']
return UserModel.find_b... | [
"belkhiribachir16@gmail.com"
] | belkhiribachir16@gmail.com |
f2853294fe31e8ef124e155ab13b9922fd4f73fe | 4127d5fe46ef305f9436b1860259f9062ca1d513 | /chat/migrations/0002_auto_20200327_0542.py | fad84ca2fb91eeefba662ba22c1be37b913978dd | [] | no_license | dlee0528/Apricity | 397ab05a72929c1907aeb8ee3334f90c052f964d | 5d2e8be4f07f4fec5cfbab4d654477577c1b5b2f | refs/heads/master | 2022-10-07T07:52:34.685418 | 2020-06-06T01:50:30 | 2020-06-06T01:50:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # Generated by Django 2.0.7 on 2020-03-27 05:42
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('chat', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='message',
name='author',
),
mig... | [
"noreply@github.com"
] | dlee0528.noreply@github.com |
0f8157f6084da4a3f7bcb1b92dfb268e86e28536 | c8908acff3b51a963a742043da66e33915c77114 | /desafio38.py | b827b6661839e2d411866c41a2ae0e14ea6ca78c | [] | no_license | Alm3ida/resolucaoPythonCursoEmVideo | a56dd9829f78130e01ebf91b111dcb6e00faf480 | 06def95453f995a7133f258c7d548df4d96c7698 | refs/heads/main | 2023-02-22T14:39:40.231619 | 2021-01-17T13:48:40 | 2021-01-17T13:48:40 | 324,021,543 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | """
Escreva um número que leia dois inteiros e compare-os, mostrando na tela uma mensagem:
- O primeiro valor é maior
- O segundo valor é maior
- Não existe valor maior, os dois são iguais.
"""
a = int(input('Digite o primeiro valor: '))
b = int(input('Digite o segundo valor: '))
if a > b:
print('O primeiro valor ... | [
"marcus.almeidaif@gmail.com"
] | marcus.almeidaif@gmail.com |
5dc3e8334c7270bfff0fe1b60df56f9f59fa426b | 622d5fbb832e7d4682bf65728dffd7521c170801 | /app_middleware/forms_user.py | e93ece6ed0b15f565840409ea50790420d84ee7a | [] | no_license | ekoabdulaziz96/django_app_starter | bf2d73a94c7d2e22003d709d8ddb6f6000e90113 | e201be3a5beb429abe7f4c49c66078b384f3a235 | refs/heads/master | 2022-12-28T18:09:58.391447 | 2020-10-19T02:39:44 | 2020-10-19T02:39:44 | 305,242,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,336 | py | # membuat form
from django import forms
# from django.contrib.auth.models import User as UserModel
from .models import User as UserModel
class UserForm(forms.ModelForm):
error_css_class = 'error'
class Meta:
model = UserModel
fields = (
'first_name' ,
'last_name',
... | [
"azizeko12undip@gmail.com"
] | azizeko12undip@gmail.com |
9a2c6feb48de21d40f417f73171cf199568edb90 | 1614cb038f297405edb86871e4035608881ce811 | /QHack/circuit_training_100_template/circuit_training_100_template.py | 5fe5c5630e3ac1248aea11023585f67db50d3c8f | [] | no_license | worog/sandbox | 33bbd430d1e10637443949eb49229a85bbcc7cde | bf169a9f65747f4e50bb970757cd4f77d31924b9 | refs/heads/master | 2021-06-16T23:44:29.112481 | 2021-04-20T16:59:30 | 2021-04-20T16:59:30 | 195,855,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,364 | py | #! /usr/bin/python3
import sys
import pennylane as qml
from pennylane import numpy as np
# DO NOT MODIFY any of these parameters
WIRES = 2
LAYERS = 5
NUM_PARAMETERS = LAYERS * WIRES * 3
def optimize_circuit(params):
"""Minimize the variational circuit and return its minimum value.
The code you write for thi... | [
"wojrog@hotmail.com"
] | wojrog@hotmail.com |
51e92e9a9d300abdec99114e6f531197f2a74889 | 5f118d46fea69b2bacce929f496e9daba807900a | /object_detect/detection.py | f26adce7e038c593b616502888fead14e48ec4da | [] | no_license | shuvamdas/Social-Distance-Detector | aaf106708b980dea06d0b948f7541ee951192e16 | 8ec7dc34651bec338d0f70a963ed3eead7f15eb0 | refs/heads/master | 2022-11-16T05:53:14.663577 | 2020-07-12T07:08:38 | 2020-07-12T07:08:38 | 268,723,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | from .social_distancing_config import NMS_THRESH
from .social_distancing_config import MIN_CONF
import numpy as np
import cv2
def detect_people(frame, net, ln, personIdx=0):
(H, W) = frame.shape[:2]
results = []
blob = cv2.dnn.blobFromImage(frame, 1 / 255.0, (416, 416),
swapRB=True, crop=False)
net.setInput... | [
"dasshuvam18@gmail.com"
] | dasshuvam18@gmail.com |
383bbc0120928044773563b94ef74c6c0dd20adc | bc5e8c69de5c70c14913c98c8df3bfc4b5bdee12 | /tests/test_test.py | eddbe4474e9e0d9e2f39bc6d0f61ac3b7fc66024 | [
"MIT"
] | permissive | victorromeo/AudioMoth-Sync | 8f9b38cb6c376146a69914ca93409e3b48f41fbc | 5ab1512d9b00f725db4d3ba5f146d42babb8389f | refs/heads/master | 2022-04-03T17:54:16.655562 | 2020-01-30T06:13:41 | 2020-01-30T06:13:41 | 220,343,792 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | import unittest
class TestTest(unittest.TestCase):
def test_test(self):
self.assertEqual("spam".upper(), "SPAM") | [
"victorromeo@github.com"
] | victorromeo@github.com |
a48ca7092695e60baeadc6908bb6eb171c5604c0 | d28750f8cdbedc57e8e272fe53ee730f9135aa53 | /train.py | 95ab613ed56a66208a2d8e48c1c90e8505e678ae | [] | no_license | alchemistwu/CSI5137Project | 2fabeaf606064214bd33e8108727ef7265d7a05a | 720cde6cda8a3598c94a252db3e0797e662cf065 | refs/heads/main | 2023-02-03T21:43:15.290675 | 2020-12-22T04:46:07 | 2020-12-22T04:46:07 | 315,683,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,572 | py | from model_utils import *
import matplotlib.pyplot as plt
import numpy as np
from tensorflow.keras.callbacks import CSVLogger, EarlyStopping
import os
import shutil
import argparse
class SaveBestModel(tf.keras.callbacks.Callback):
"""
Callbacks for saving the model with lowest val_acc
"""
def __init__(... | [
"alchemistWu0521@gmail.com"
] | alchemistWu0521@gmail.com |
9db683d8b067434b88efd33b4bffcc4dda485d6e | ab46d158ee8fc6ee6a7b98ca738800e307c8a431 | /Lab_7/Jason_Burke_Lab7b.py | 433d4e0ab69f28d718d0d7af099cc5a519adc58b | [] | no_license | JasonPBurke/Intro-to-Python-class | bc038b72125114efce5ba8f2977679d3b26b559f | b1a9ec79f6091cafb517a9cdba010ce5b10e5e60 | refs/heads/master | 2021-05-14T14:12:48.310390 | 2018-01-02T02:50:32 | 2018-01-02T02:50:32 | 115,967,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,929 | py |
# This program allows you to input and save student
# names to a file
#set a constant for the number of students
student_no = 12
def main():
#create an empty list
students = []
#create an accumulator and prime the while loop
count = 0
#get the user to add students to the list if they ... | [
"jpburke77@gmail.com"
] | jpburke77@gmail.com |
72004b00787472a24915c8775c3fad4502e0700f | 2bd0f22053d92f57049a543b2d94584f755e410d | /project/user/models.py | 8628b87a61eca03fc0feeea6a97cb7e5ae83c5e3 | [] | no_license | leanh29/Health_Plus | 952df7e17ab5c63180b28bf18dbb0a07b2ae0818 | 30d46f7f9df6768ce37343016faebdaaf4b57412 | refs/heads/master | 2023-02-05T10:22:29.401210 | 2020-12-24T15:12:34 | 2020-12-24T15:12:34 | 282,677,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | from django.db import models
from django.contrib.auth.models import User
from PIL import Image
class ProfileModel(models.Model):
SEXUAL_CHOICES = (
('m', 'Male'),
('f', 'Female'),
)
user = models.OneToOneField(User, on_delete=models.CASCADE, related_name='profile')
image = models.ImageF... | [
"48637725+leanh29@users.noreply.github.com"
] | 48637725+leanh29@users.noreply.github.com |
1661717ff6cc5aec7bbbdaa61fc1b31e3267f18f | d15774ddd1b1b30b2d73585f0b3362cf42cb6b27 | /test1/test1/pipelines.py | c596da92ac243121fa2cd68f0a070c778c7f3503 | [] | no_license | hngfng/99lib-scrapy | 7c614684e6863bb3be563b272df1bf673f807b0b | 1c53089df8cd2de02e0876b9f795eb029ee0b932 | refs/heads/master | 2020-03-30T03:08:07.175691 | 2018-09-28T03:00:25 | 2018-09-28T03:00:25 | 150,670,893 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
from _cffi_backend import callback
import scrapy
class Test1Pipeline(object):
def process_item(self, item, spider):
... | [
"hngfng@sina.cn"
] | hngfng@sina.cn |
bfefb8f7dce5f5450783b6cdaaa8b63263777679 | 817e4d8a52407ec6ede659c7840679811803e1c5 | /0112-path-sum.py | ff05479b9293793bcf7b5bcf76814105b508460d | [] | no_license | kgremban/leetcode | 7320061c202bad30fe904939a6248d513e032e60 | 87b3ce9bd02f582892334005c04b9c5da21bf947 | refs/heads/master | 2020-08-11T09:31:08.492135 | 2020-03-20T22:48:30 | 2020-03-20T22:48:30 | 214,540,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def hasPathSum(self, root: TreeNode, sum: int) -> bool:
if not root:
return False
if not root.left and not root.right... | [
"kgremban@microsoft.com"
] | kgremban@microsoft.com |
4eadce987312cc642bf7d10d5855eca2fdd2a8f7 | ddd35c693194aefb9c009fe6b88c52de7fa7c444 | /Live 10.1.18/novation/transport.py | cc9566884eb4863f6ff57a14a5556297de25949c | [] | no_license | notelba/midi-remote-scripts | 819372d9c22573877c7912091bd8359fdd42585d | e3ec6846470eed7da8a4d4f78562ed49dc00727b | refs/heads/main | 2022-07-30T00:18:33.296376 | 2020-10-04T00:00:12 | 2020-10-04T00:00:12 | 301,003,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,052 | py | # uncompyle6 version 3.7.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.8.5 (default, Aug 12 2020, 00:00:00)
# [GCC 10.2.1 20200723 (Red Hat 10.2.1-1)]
# Embedded file name: c:\Jenkins\live\output\Live\win_64_static\Release\python-bundle\MIDI Remote Scripts\novation\transport.py
# Compiled at: 2020-05-05 ... | [
"notelba@example.com"
] | notelba@example.com |
90a6a6ac9f3922e04813b1bd587d393dbf1cebca | 57513acbee10889f6803499cd4c20cfdcdbd2576 | /06.py | 13806dc43c7d69ee0e873bcac2d8c227a1092732 | [] | no_license | alanespinozaz/UNEMI-ESTRUCTURA-DE-DATOS | c0c1a5420033deaf0f54079befbbc6776cb2c3ce | 694633924c56370bf2a142b167cef54152000f7e | refs/heads/main | 2023-06-16T02:05:02.902495 | 2021-07-18T04:39:49 | 2021-07-18T04:39:49 | 375,894,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | """Funciones matematicas"""
import math
num1, num2, num, men = 12.572, 15.4, 4, '1234'
print(math.ceil(num1), '\t',math.floor(num1))
print(round(num1,1),'\t',type(num),'\t',type(men))
# funciones de cadenas
mensaje = "Hola" + "mundo " + "Python"
men1=mensaje.split()
men2=' '.join(men1)
print(mensaje[0],... | [
"noreply@github.com"
] | alanespinozaz.noreply@github.com |
b29d2f1ec8e055a57341fd8087b050e88968b806 | eab81ff76637addfbc969e3fddc29aac5e608c50 | /code/cracking-the-coding-interview/cap_10_sorting_and_searching/10.9.sorted_matrix_search.py | 3bd91b5ed1b877729d4f88750a05d28a7ea668b5 | [] | no_license | hadrizia/coding | f629a023a1a9a303ee0480c6c2708ea92403314b | a1e7304a57922428398291de49f3eff78f8e7e55 | refs/heads/master | 2021-11-11T10:16:05.478379 | 2021-11-05T15:26:43 | 2021-11-05T15:26:43 | 183,800,041 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | '''
Input :
mat = [
[1, 5, 9],
[14, 20, 21],
[30, 34, 43]
]
x = 14
Output : (1, 0)
Input :
mat = [
[1, 5, 9, 11],
[14, 20, 21, 26],
[30, 34, 43, 50]
]
x = 42
Output : -1
'''
def search(matrix, x):
if not matrix:
return
row = 0
col = len(matrix[0]) - 1
while row <... | [
"hadrizia.santos@ccc.ufcg.edu.br"
] | hadrizia.santos@ccc.ufcg.edu.br |
633d15da8f8d292855e72ef1aadde8b8bc9e4c5a | 296ee7f58031d7c22fb92790b2cda5e881b5301a | /1st year/1st semester/FPLab/Assignment.09/controller.py | 35bc5895d688418e6b95e16f4a331e22c9a6cb50 | [] | no_license | arazi47/university-projects | 6cf7adb1fade977580e51d3842162eb033769088 | 4ebd70c857fac2565b44f6e40904cba209a138a1 | refs/heads/master | 2023-01-08T10:28:23.846702 | 2020-05-05T08:54:37 | 2020-05-05T08:54:37 | 105,974,765 | 0 | 2 | null | 2022-12-27T14:41:06 | 2017-10-06T06:43:06 | HTML | UTF-8 | Python | false | false | 13,900 | py | from client import Client
from movie import Movie
from rental import Rental
from external_input_output.mysql_io import MySQL_IO
from external_input_output.file_io import File_IO
from external_input_output.binary_file_io import Binary_File_IO
from external_input_output.json_io import JSON_IO
from Repository import Repo... | [
"razialexis43@gmail.com"
] | razialexis43@gmail.com |
7efde29ab90be6c730c10581a2d41f6270435e08 | 365581d00a61aa5903ec374ba663bed8e2793ab6 | /exhibitors/search_indexes.py | 4b10965d52367e9fbff80abbf5f395221941b37e | [
"MIT"
] | permissive | betoesquivel/fil2014 | 5171c92d73a96dd481884db33f320cfb2effddfb | 4c2e9188769096391bb206b76ed1ab8bd2ff66a1 | refs/heads/master | 2020-05-04T13:13:32.848991 | 2014-08-25T14:13:41 | 2014-08-25T14:13:41 | 20,413,882 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | from haystack import indexes
from exhibitors.models import Book
class BookIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
priority = indexes.IntegerField(model_attr='priority')
def get_model(self):
return Book
def index_queryset(self, ... | [
"ppbeto94@gmail.com"
] | ppbeto94@gmail.com |
29243555fe038a4a170cef7a594a58bdf9507195 | 17b2f9b13ac0c6600bf1dc27794a879b11897fdb | /rl/milp_model/slave_level_models/chiller3_evap_4nc.py | 9dafdee7a11fecf40fc7d2843f836ea57c829d78 | [] | no_license | zchiam002/vecmc_codes_zhonglin | d17aa8dd0723891b61606ee4ffe9cf332f1f84a9 | fa71e7a5013b1f408717bed034c6d1eafc5a8a9e | refs/heads/master | 2020-11-30T10:27:50.933317 | 2020-08-19T03:09:55 | 2020-08-19T03:09:55 | 230,373,260 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,910 | py | ## This is a chiller model, formulated as an input to a quadratic program
##This function is to check the unit type, make sure that all units defined in this file are of the same type
##There are only 4 types of units
##layers
##process
##utility
##utility_mt
def checktype_chiller3_evap_4nc (un... | [
"czlin90@gmail.com"
] | czlin90@gmail.com |
15b0f03273beda208f60ff2a90b3618a11954c31 | c34fd27daeafba1c7b6137aa5080e6f7b63f41ff | /Eso.API.Discovery/discovery-env/Lib/site-packages/aniso8601/builders/python.py | a2205e9c4ea3c96a49db2c66880998d8cc52179b | [
"MIT"
] | permissive | afgbeveridge/EsotericLanguagesToolkit | 5705ca491aa2da22ba85b635480854b6fe5eb41d | 05f391f5c03c9fc7dd60f7f4ef89e480315dc1bc | refs/heads/master | 2023-06-20T16:33:34.368992 | 2021-07-28T22:32:26 | 2021-07-28T22:32:26 | 285,102,073 | 1 | 0 | null | 2021-03-25T01:53:25 | 2020-08-04T21:17:58 | Python | UTF-8 | Python | false | false | 22,600 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2021, Brandon Nielsen
# All rights reserved.
#
# This software may be modified and distributed under the terms
# of the BSD license. See the LICENSE file for details.
import datetime
from aniso8601.builders import (BaseTimeBuilder, DateTuple, DatetimeTuple,
... | [
"tony.beveridge@outlook.co.nz"
] | tony.beveridge@outlook.co.nz |
508ab1d2b665646b30ba5c01e963cb06091f02b8 | 44b1779a5148fe2c273046d6f6dc5da89d6cfd75 | /networkx_to_neo4j/__init__.py | 01a7c39ecab90b7b36f8bb0eb0eb9610274af2fb | [] | no_license | leokster/networkx_to_neo4j | 11faeec9e0e0a20f534867a68776429f865161ac | 613c8356e85a257c7f80dcf0775203d6cf7cfb3b | refs/heads/master | 2022-12-03T17:24:21.940100 | 2020-08-07T15:29:45 | 2020-08-07T15:29:45 | 285,862,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,032 | py | from neo4j import GraphDatabase
import neo4j
import numpy as np
import networkx as nx
import progressbar
def write_networkx_to_neo4j(tx:neo4j.Session, graph:nx.DiGraph, label_field:str = "labels", type_field:str = "labels", graph_uid:str = None):
'''
:param tx: neo4j Session object
:param graph: a network... | [
"rohnert@student.ethz.ch"
] | rohnert@student.ethz.ch |
65be1dacf17113aa4f8049d8080929bf3d549da8 | f831f2574c3cb58c7917f6cec60beb2893cf3195 | /settings_config/urls.py | 5cb0abf3807f710eafef39db16ee8f715aa86de9 | [] | no_license | niyara-muradova/driver-front | 8fb49138588ce4d80324325198d1848ed57787bb | 8fbf1872e1f20da8857796d94b9a255b7e421786 | refs/heads/master | 2022-11-26T20:45:31.720044 | 2020-08-12T12:35:32 | 2020-08-12T12:35:32 | 287,009,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | from django.urls import path
from settings_config import views
urlpatterns = [
path('configs/', views.conf_choose, name='conf-choose'),
path('devices/', views.devices, name='devices')
] | [
"18planeta@gmail.com"
] | 18planeta@gmail.com |
2825b9df49cbd304d9af26404a4298c52ad3dae4 | 276b41398db43c33314e822667592dc37cd11795 | /python/phevaluator/__init__.py | 8d574de81a338a83bebab2a9fd2c3e47608df9ff | [
"Apache-2.0"
] | permissive | HenryRLee/PokerHandEvaluator | f7dcaab12453a88f8e19dec66e7c15e4113e6a36 | 4715359b497a62ab00071a4754557da6dd49f241 | refs/heads/master | 2023-07-06T18:09:44.216288 | 2023-07-05T11:44:42 | 2023-07-05T11:44:42 | 53,184,524 | 269 | 90 | Apache-2.0 | 2023-09-03T12:27:15 | 2016-03-05T05:05:24 | C | UTF-8 | Python | false | false | 436 | py | """Package for evaluating a poker hand."""
from . import hash as hash_ # FIXME: `hash` collides to built-in function
from . import tables
from .card import Card
from .evaluator import _evaluate_cards, evaluate_cards
from .evaluator_omaha import _evaluate_omaha_cards, evaluate_omaha_cards
from .utils import sample_card... | [
"noreply@github.com"
] | HenryRLee.noreply@github.com |
56168049cd4f49194e331486fb1189f3acaab815 | b65900cceb163b255473606ba920f528fe99327b | /maximum-subarray/maximum-subarray.py | 8b62f9b4dad43d2b709882186be759337be5f95c | [] | no_license | xieziwei99/leetcode-python | 01b57ad128076d35d41c6a3e54d9133d423be2b5 | d622a770ad0667b6e0ab637881044d9b85a8b13b | refs/heads/master | 2020-06-21T17:52:03.932505 | 2019-10-18T11:07:09 | 2019-10-18T11:07:09 | 197,519,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@Description: 最大子串和问题
@author: xieziwei99
@Create Date: 2019/8/7
"""
from typing import List
class Solution:
@staticmethod
def max_sub_array(nums: List[int]) -> int:
if not [i for i in nums if i > 0]: # 当列表为空时成立,即nums中全都不大于0时
return max... | [
"xieziwei@bupt.edu.cn"
] | xieziwei@bupt.edu.cn |
4b7fd8aded02d8dc84c33f818cd258b0d071bf9a | 24718ad7f66a6cb6e69861e62bda069a511a34f9 | /main.py | 1a76cd7c52ef29b0d58a31c6d9c8235a5b38667f | [] | no_license | kmiao49/Scraper-Project | 5f7e69502ee6e347a7d3ed3067048d311bfa264a | 10f20d2b6755a5f42ef7f3c5c293242348f4d865 | refs/heads/master | 2023-01-21T13:40:27.086634 | 2020-12-04T01:05:48 | 2020-12-04T01:05:48 | 318,057,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | #https://www.youtube.com/watch?v=ng2o98k983k&ab_channel=CoreySchafer
from bs4 import BeautifulSoup
import requests
import lxml
source = requests.get('https://coreyms.com/').text
soup = BeautifulSoup(source, 'lxml')
# article = soup.find('article')
# This parses out the first article in the html script using the 'fi... | [
"kevmiao35@gmail.com"
] | kevmiao35@gmail.com |
730c23a294cb645522e4991c66ff37f52146cf2c | 0ac3702a17958ca7fef01644a018fe445871946b | /setup.py | 8817d3ed58785f6f7f07fda95eb7d5547fa5ddcf | [
"MIT"
] | permissive | ydcjeff/clifold | c58bbfe337cb7a05115b460ec9849e62adf7a55d | 7a98c25480ad67b5662c2d052735b6d3a5a5a331 | refs/heads/master | 2021-08-29T05:09:05.551938 | 2020-04-06T09:02:49 | 2020-04-06T09:02:49 | 253,270,231 | 3 | 0 | MIT | 2021-08-23T06:32:48 | 2020-04-05T15:42:44 | Python | UTF-8 | Python | false | false | 1,563 | py | """Setup file for clifold python module"""
from setuptools import find_packages, setup
from os import path
from clifold.clifold_main import __version__
__version__ = __version__()
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.rea... | [
"ydcjeff@outlook.com"
] | ydcjeff@outlook.com |
de05035213fb44b529fc7b0d220d6d7bbb7be20b | 6d6035a4c53747f7f07e27c070915eda11e40051 | /pelorus/wsgi.py | eae67edd8eefbacec9a95a92979a4bbca523ac68 | [] | no_license | rwtennant/pelorus | cb0b64ded59354078ce5c705edd444595e2aac5e | b3a5e3fa823da22bdb8960f0e60f4f9a6398f80a | refs/heads/master | 2022-12-10T17:09:17.396670 | 2020-09-14T18:53:02 | 2020-09-14T18:53:02 | 284,767,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for pelorus project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"rwtennant@yahoo.com"
] | rwtennant@yahoo.com |
562189a4e1b12ddef35fde6af9de64619a14e4c2 | c8b649f91df14e082108290e0ff62510b5d4006d | /Main/signals.py | b7d075909e8f993296f98e59c49f5633fcde1aeb | [] | no_license | Emmastro/freemarketBackend | d7e20aab13af68757dccf20f7b44dcd4de385ffc | 13cf2f5e45d5af778f334d30b1dadf2c8a8558b5 | refs/heads/master | 2022-12-14T22:51:40.420688 | 2020-04-19T08:45:54 | 2020-04-19T08:45:54 | 248,330,401 | 1 | 0 | null | 2022-12-08T03:50:03 | 2020-03-18T20:00:35 | JavaScript | UTF-8 | Python | false | false | 227 | py | from Accounts.models import Reader
from django.core.signals import request_started
from django.dispatch import receiver
@receiver(request_started, sender=Delegate)
def count_connection(sender, environ, **kwargs):
pass
| [
"emmamurairi@gmail.com"
] | emmamurairi@gmail.com |
55ef072d9d3d47d8603357377794fa880d8688c0 | e57d7785276053332c633b57f6925c90ad660580 | /sdk/logz/azure-mgmt-logz/azure/mgmt/logz/aio/operations/_tag_rules_operations.py | 8b601798141f717456f67ee5e23423c1c3b0e2ff | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | adriananeci/azure-sdk-for-python | 0d560308497616a563b6afecbb494a88535da4c5 | b2bdfe659210998d6d479e73b133b6c51eb2c009 | refs/heads/main | 2023-08-18T11:12:21.271042 | 2021-09-10T18:48:44 | 2021-09-10T18:48:44 | 405,684,423 | 1 | 0 | MIT | 2021-09-12T15:51:51 | 2021-09-12T15:51:50 | null | UTF-8 | Python | false | false | 15,827 | 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"
] | adriananeci.noreply@github.com |
c88481f7914ffa25fb6778923dac0b9bf1b1a436 | b2643444ade5d54529a2e81398e23ba18eddceaf | /examples/pytorch/bgrl/model.py | a6ae03ca8b4a62a7e252835a5e167eabed1bd20e | [
"Apache-2.0"
] | permissive | CuiDachao/dgl | 49a3644180201deae61c59fe25a1cc05e1090883 | 1947d87dd77eabe5893e277a52ecf0f9eb2f1063 | refs/heads/master | 2022-09-10T06:51:45.344189 | 2022-08-23T04:08:32 | 2022-08-23T04:08:32 | 257,187,311 | 0 | 0 | Apache-2.0 | 2020-04-20T06:07:35 | 2020-04-20T06:07:33 | null | UTF-8 | Python | false | false | 8,023 | py | import dgl
import copy
import torch
from torch import nn
from torch.nn.init import ones_, zeros_
from torch.nn import BatchNorm1d, Parameter
from dgl.nn.pytorch.conv import GraphConv, SAGEConv
class LayerNorm(nn.Module):
def __init__(self, in_channels, eps=1e-5, affine=True):
super().__init__()
se... | [
"noreply@github.com"
] | CuiDachao.noreply@github.com |
fd46cde2226a90b53793bb9f7121bb66dbeb6c8e | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnwretch.py | fe95b845f09eef13e6cbc0d05e65b9e23f9a92cb | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 2,136 | py | ii = [('BentJDO2.py', 3), ('CookGHP3.py', 3), ('MarrFDI.py', 2), ('CoolWHM2.py', 8), ('KembFFF.py', 2), ('GodwWSL2.py', 48), ('ChanWS.py', 2), ('SadlMLP.py', 22), ('FerrSDO3.py', 19), ('WilbRLW.py', 8), ('WilbRLW4.py', 9), ('RennJIT.py', 1), ('AubePRP2.py', 3), ('CookGHP.py', 5), ('MartHSI2.py', 2), ('LeakWTI2.py', 3),... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
22181b9fe8464921c05932796d73ede088aef55e | e82102580a5bd76e97ed607da7180faf9928cf7b | /barati/customers/views_cluster/save_main_preferences.py | 7d3a3cd1956fe2e4caf75ee317701323bfa60ada | [
"Apache-2.0"
] | permissive | aditi73/barati | 393d02de0e292a0e5a73c988944486396cb0ece1 | 09e1a0a1342aa8e9cf1e97f073f4a6472c5af415 | refs/heads/master | 2021-01-12T10:42:44.322211 | 2016-06-11T12:02:10 | 2016-06-11T12:02:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,586 | py | from django.shortcuts import render
from django.template import RequestContext
from django.views.generic import View
from django.http import HttpResponse
from customers import models as m
import sys, json, datetime
class Save_Main_Preferences(View):
try:
def __init__(self):
#self.template_name = ''
... | [
"iabhaygupta90@gmail.com"
] | iabhaygupta90@gmail.com |
35c040b07aa7bd0f4a380d0b4d587ddaf57a31e5 | 1a3234471bdd3aae422c8f205a4450b1bca5c1b7 | /test/functional/p2p_feefilter.py | 37c3ceff7dbe77eaa1d402d723849a82320085db | [
"MIT"
] | permissive | Ultracoins/Ultracoin | 09f172f5c629c30aeb52c13a340b29991cbcaeda | 08357fed7fd6a97816f846dac1628d247c4730da | refs/heads/main | 2023-08-04T17:43:46.869853 | 2021-09-14T19:40:34 | 2021-09-14T19:40:34 | 403,222,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,189 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2019 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test processing of feefilter messages."""
from decimal import Decimal
from test_framework.messages im... | [
"vfpro7777@gmail.com"
] | vfpro7777@gmail.com |
8e10622d95da116d71a46fefd79306ca49995f9b | 220f5e95c84b1d0288777f276cfabb079e9fe824 | /python/gigasecond/gigasecond.py | e13d812e72e0a930e1e600c5f295a5eeaba4536b | [] | no_license | EwenFin/exercism_solutions | 3c1f2213a0d3989655c6f1918e76a97a742fb852 | c0f18201bd0603d074031ce3c51570f4321dbcb9 | refs/heads/master | 2020-03-20T05:53:41.079276 | 2018-06-13T16:16:19 | 2018-06-13T16:16:19 | 137,230,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | import datetime
def add_gigasecond(birth_date):
giga_date = birth_date + datetime.timedelta(seconds=1000000000)
return giga_date
| [
"ewen.carr@ros.gov.uk"
] | ewen.carr@ros.gov.uk |
3d663d37b03f7370f829e314ff592048da8baadc | 2360cee220fa1d4df735e663c2324f6716800a4c | /allauth/facebook/migrations/0002_auto__add_facebookaccesstoken__add_unique_facebookaccesstoken_app_acco.py | b1a780d35611b2a2d0a1fcb44c5feb7d8c27a289 | [
"MIT"
] | permissive | sachingupta006/django-allauth | 709036a6a20f03fb7fb1d9ee555822526847e658 | 04a510f6b873cb3a54feca59cdd0c3e3ff9b9b5e | refs/heads/master | 2021-01-17T22:11:38.164739 | 2012-06-09T16:58:47 | 2012-06-09T16:58:47 | 3,551,445 | 5 | 5 | null | null | null | null | UTF-8 | Python | false | false | 7,146 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'FacebookAccessToken'
db.create_table('facebook_facebookaccesstoken', (
('id', ... | [
"raymond.penners@intenct.nl"
] | raymond.penners@intenct.nl |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.