blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6471265b3a69ef9f42e3e3b0de77ee17ef7dfafc | e9e382693ca8c5705c75f5e9e1da1ad9c9cac398 | /home/urls.py | e843d4616057ffb79423f5e7b6195179e7159b6e | [] | no_license | manishdogra123/Django-REST-API-framework | 57af9af947ed8bfe5d639fd4e8e0de421bed1657 | 078a4a5e430a5b81199a9098bcf235629c3535c0 | refs/heads/master | 2023-08-02T21:15:35.460820 | 2021-09-27T08:46:34 | 2021-09-27T08:46:34 | 410,949,755 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | from django.contrib import admin
from django.urls import path,include
# from .views import Courselistview,Courselist_detail
# from home.views import Courselistview,Courselist_detail
urlpatterns = [
# path('course', Courselistview.as_view()),
# path('course/<int:pk>', Courselist_detail.as_view()),
] ... | [
"erdogra141@gmail.com"
] | erdogra141@gmail.com |
e881b8ef6b8e8e4f87240e63f20dfb5e36f9e868 | aaf45505b38ee0d39f31aba0c6f801a178da3f38 | /baactree/1W/LogisticClassification/LC.py | 77715554d308daa775f4965c91544faedf3b3095 | [] | no_license | SRF-2018/DeepLearning | 87eabc2ae3770babd753e8fa0e9a2eac46e03905 | 5172caa43f0590789c9ae7fd9c4b4140fc4d502c | refs/heads/master | 2020-03-07T05:19:22.249490 | 2018-04-08T04:50:58 | 2018-04-08T04:50:58 | 127,292,455 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | import warnings
with warnings.catch_warnings():
warnings.filterwarnings("ignore",category=FutureWarning)
import h5py
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
# make training data
num_points=2000
vectors_set=[]
for i in range(num_poin... | [
"bsj0206@naver.com"
] | bsj0206@naver.com |
b6076b5e720e510264d359984df649983226d155 | bac5ecb5eef06dfe76b9b7bff80faee7485c67dd | /.history/django_vuejs_tutorial/django_vuejs/dataiku/admin_20200829045700.py | 95c85e8343b24f314b19ffb3176a56a4567e185b | [] | no_license | MChrys/dataiku | fb1e48401d544cbcc5a80a0a27668dc9d2d196e5 | 6091b24f565224260a89246e29c0a1cbb72f58ed | refs/heads/master | 2022-12-16T11:06:13.896643 | 2020-09-12T19:03:51 | 2020-09-12T19:03:51 | 293,287,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | from django.contrib import admin
# Register your models here.
from .models import QCM, Answer, Task, Dataiku_account, Operation, Session, Question, Run, Posibility
admin.site.register(Task)
admin.site.register(Dataiku_account)
admin.site.register(Operation)
admin.site.register(Session)
admin.site.register(Question)
a... | [
"cbeltran@umanis.com"
] | cbeltran@umanis.com |
736aecf523f7137ffba1df7104167bee096698f0 | 035ec6f79bb70374a54d6b491b34114fcc9f0e24 | /wtDigiTwin/fast/fastlinfiles.py | 0b796235f81f0435db9e1ae181eee4b64a327b49 | [
"MIT"
] | permissive | deyh2020/wtDigiTwin | b8b8d8f0a0ca73a6e7dddba0e3b6457a7551a9da | 2c1e965ab5fdca10e67b0db9ef87837f5abebc02 | refs/heads/master | 2023-07-14T07:23:28.628625 | 2021-07-26T15:12:22 | 2021-07-26T15:12:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,700 | py | import numpy as np
import pickle
import glob
import os
import weio
class FASTPeriodicOP(object):
""" Class for a set of *.lin files, all assumed to be for the same periodic operating point"""
def __init__(self,prefix,nLin=None):
if nLin is None:
linfiles= glob.glob(prefix + '*.*.lin')
... | [
"elmanuelito.github@gmail.com"
] | elmanuelito.github@gmail.com |
cf5c19bab0771545bb248933863ae1068d73dd9f | a6fb05605c89606cfc43e25e8d6e38ec887cef69 | /resources/user.py | 2c3a66b44cd93d79b424bc2fdba37fb8a29a7f8b | [] | no_license | zer0eXploit/stores-info | 80b55de844dadf39b04d2e460f99f4a482185094 | e33610bc3fe61443b65112cffb46f286c72393a7 | refs/heads/master | 2022-11-25T11:53:52.152349 | 2020-08-07T12:12:34 | 2020-08-07T12:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | import sqlite3
from flask_restful import Resource, reqparse
from models.user import User_Model
class User_Register(Resource):
parser = reqparse.RequestParser()
parser.add_argument(
"username",
type=str,
required=True,
help="This field cannot be empty!"
)
parser.add_ar... | [
"yanwaipann@gmail.com"
] | yanwaipann@gmail.com |
7291d1b3abef10b1a064eb0cca80bbcf4084a3ba | df5e97ab2f72371ae953509dfccf78c9da32c01e | /modules/interceptorChain.py | 30729c56672bf5bd0d4b6644af0903987fa16086 | [] | no_license | fenceer/yiqi | 209b3101cffb52e13d3c9a6e8f3ae86577fa6278 | b5c4e3780d0203b925dc9ef8b5dd2bdea7a0a1b9 | refs/heads/master | 2021-01-19T17:42:34.508028 | 2013-09-11T03:54:37 | 2013-09-11T03:54:37 | 12,745,257 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | #coding:utf-8
'''
Created on 2012-9-29
@author: fenceer
'''
from modules import tools
class Chain:
def __init__(self, handler, interceptors=[]):
self.interceptors = interceptors
self.handler = handler
def do(self):
self.interceptors.append(self.handler)
self.intercepto... | [
"fenceer@126.com"
] | fenceer@126.com |
44c5dbbc3246735c0cdeeccde1162967ba8c658e | f768ddba19c7bc7664ae581daeef5fe2f650a539 | /post/post.py | ddb481a99e2e6e443b0f580bbc720d0f68fac4c2 | [] | no_license | douwings/pythonWork | 36ac2ba32a721ed6d9af62a9168eee12a61891af | 70f84eb179e12cc36b521fdb9a2573a14a300d23 | refs/heads/master | 2022-12-23T18:41:50.560391 | 2020-09-28T06:20:36 | 2020-09-28T06:20:36 | 273,136,705 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,047 | py | # -*- coding=utf-8 -*-
import urllib.request
import urllib.parse
import ssl
import json
import time
def postsendsms():
ssl._create_default_https_context = ssl._create_unverified_context
sendsmspost_url = 'http://172.16.2.111:3000/v1/login_by_wx'
t = time.time()
sendsmsheaders = {
# 'Conte... | [
"1020763068@qq.com"
] | 1020763068@qq.com |
afd9b3554a2856f72ec267d25580cd621ce7806c | 11b0c124262ac40de87d756389082462d8452e4d | /keras/keras42_9_cifar100_lstm.py | 0852122d14eec70faace02ae66a62b886d04172b | [] | no_license | Hyunwoo29/keras01 | 164b519f9bb70d55f7bfa91c66529cee4d012b24 | 494611a94420f8e268c37085ccf0b0de4aa71048 | refs/heads/main | 2023-08-06T07:19:13.288634 | 2021-10-05T14:03:56 | 2021-10-05T14:03:56 | 383,744,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,092 | py | from tensorflow.keras.datasets import cifar100
import numpy as np
import matplotlib.pyplot as plt
# 1. data
(x_train, y_train), (x_test, y_test) = cifar100.load_data()
x_train = x_train.reshape(50000, 32*32*3) # (50000, 32, 32, 3)
x_test = x_test.reshape(10000, 32*32*3) # (10000, 32, 32, 3)
from sklearn.preprocess... | [
"nbaksa3@gamil.com"
] | nbaksa3@gamil.com |
4e6f95c9da3381a0fe0445b1c85014bd41b95e72 | 7b4219c553d054152c2a1f217660d2abc7b7c50a | /logistics/apps/school/migrations/0002_excel.py | 543fc348c415d35fe2f56b35dd42d49cb417e3c4 | [] | no_license | charleswithdeng/logistics | bfb4c7e5bdc238fac0839c5a8844a47b27e1ec27 | d94e9bcae56f3c7e85811b7bd09c7dbd9c5a6a80 | refs/heads/master | 2023-02-16T01:26:13.359013 | 2021-01-05T07:56:13 | 2021-01-05T07:56:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | # Generated by Django 3.1 on 2020-10-19 06:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('school', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Excel',
fields=[
... | [
"charlesdeng@CharlesdeMacBook-Pro.local"
] | charlesdeng@CharlesdeMacBook-Pro.local |
9efc5e90d55ff341394c6fe41b0bff5fb5395ea1 | a6d724a60d08f0713cb877fdc1130b514da720cc | /tell_me_about.py | e86473368324980ca7d3c1ca73d9adc7e8a8bb3a | [] | no_license | manojsinghnegiwd/python-scripts | a83bf8d4496ba5defd0fe3f289242eaaf065fffc | 8aabaf94c09de92131f493fd80c865f33c678e99 | refs/heads/master | 2021-05-01T15:45:45.875680 | 2018-02-18T07:47:31 | 2018-02-18T07:47:31 | 121,036,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,576 | py | import requests
import urllib.request as urllib2
from bs4 import BeautifulSoup
import ssl
import re
ssl._create_default_https_context = ssl._create_unverified_context
print('Welcome to Tell Me About Python script')
print('You can type anything from a person name to a topic name.')
print('This script search wikipedia f... | [
"justanothermanoj@gmail.com"
] | justanothermanoj@gmail.com |
126fa372fac620d94a1e16e245af5af3a8bdcd37 | e93f130e52103c3ae0ffd6953afb855ff9f0ac7b | /wrangle/05-deep-learning.py | bd7fec49140f511482de86ca501d72e0048c48c6 | [
"Unlicense"
] | permissive | Danielli-Itai/TfFizzBuzz | f7dfe95ac582163275e8ac0e02e9cd486726a367 | b5962dcf1ad0f111041bb890df515abd6a2fce7a | refs/heads/master | 2021-07-16T01:11:20.038250 | 2020-06-20T09:02:06 | 2020-06-20T09:02:06 | 178,721,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,879 | py | # finally, a deep learning model! two hidden layers
# https://en.wikipedia.org/wiki/Deep_learning
import tensorflow as tf
import numpy as np
from command_line_args import arg_parser
from data import data_from_args
from model_helpers import build_model, init_weights, set_seeds
args = arg_parser.parse_args()
data = da... | [
"Danielli.Itai@gmail.com"
] | Danielli.Itai@gmail.com |
f4dcb5bed04ceb35dfad9830ec4243ee6f9c8edf | 9df71ddd50924d77cd927907d83665814a2a3cf3 | /actor-critic/models.py | f081787ae412fe26f910da5c3f98784e840954e4 | [] | no_license | KaleabTessera/Policy-Gradient | 6850857b1cdb76185bebe8b3bfeba22c69863dbf | 57080ebfb42fadd90e791650b0b9fe6a17375b6a | refs/heads/master | 2022-12-10T01:39:16.248195 | 2020-04-16T21:24:59 | 2020-04-16T21:24:59 | 217,216,053 | 1 | 0 | null | 2022-12-08T06:46:03 | 2019-10-24T05:10:05 | Python | UTF-8 | Python | false | false | 3,505 | py | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
# Code was based on https://github.com/udacity/deep-reinforcement-learning/tree/master/ddpg-bipedal
def hidden_init(layer):
fan_in = layer.weight.data.size()[0]
lim = 1. / np.sqrt(fan_in)
return (-lim, lim)
class Acto... | [
"kaleabtessera@gmail.com"
] | kaleabtessera@gmail.com |
7b377b96f1e1c103359d9209a3bec3590175931e | 1e780892082d464b07ce2b808ea0b484a7511d78 | /puppies/puppyqueries.py | 79d7676fdb36dfad1a92d2c61dd511f691543b3b | [] | no_license | jjyoung1/ud-vagrant-forum | 5becd2910da01ba4aec9688d35b641ab782fa45a | 38b2ae7a8ea5b2a26278cfcef58f2f1c598c9ad0 | refs/heads/master | 2020-12-03T02:12:00.353538 | 2017-08-09T18:01:25 | 2017-08-09T18:01:25 | 95,914,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | from sqlalchemy import create_engine
from sqlalchemy.orm.session import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
from puppies import Base, Shelter, Puppy
engine = create_engine('sqlite:///puppyshelter.db')
Base.metadata.bin = engine
DBsession = sessionmaker(bind=engine)
session = DBsessi... | [
"joel@jyng.com"
] | joel@jyng.com |
330d0d474962bb7acba27ee14364fa45f78a0d2f | c77185d50e341c2f6702aa491477204de7d59eea | /args_and_kwargs.py | 27b7e90546851517bf1ef9a2f1045ef8422fe8e2 | [] | no_license | ardaunal4/My_Python_Lessons | ed8ea74861b35ec1966cf4665bc57c08f80dba0b | 563ec855f3ead40fe9468272162a1e5036c7c4cd | refs/heads/main | 2023-04-09T17:23:43.206308 | 2021-04-27T12:36:58 | 2021-04-27T12:36:58 | 350,825,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | """
*ARGS:
*args(arbitrary arguments) and **kwargs allow you to pass multiple arguments or keyword arguments to a function
*args usage:
def something(*args):
return args -> result of return will be a tuple
**KWARGS :
works just like *args, but instead of accepting positional arguments it accepts keyword(or... | [
"noreply@github.com"
] | noreply@github.com |
76078cb90de2d17011da5b083945e6a4c92670c6 | a0b27e1a3a17ce9ec21bea460ba75b9d72564e33 | /ublog/routes.py | 3975864270044f0b4cf884b72d3cc09e93b704b2 | [] | no_license | florije1988/ublog | f662bc0dadf0fb244af054db2ca1a491b0454827 | a94fd3a52a9898b8e89020a7b8754e52ea00d664 | refs/heads/master | 2020-12-24T20:25:02.679572 | 2016-05-09T09:39:50 | 2016-05-09T09:39:50 | 58,360,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,758 | py | # -*- coding: utf-8 -*-
__author__ = 'florije'
from ublog import app
from flask import render_template, request, flash, session, url_for, redirect
from forms import ContactForm, SignupForm, SigninForm
from flask_mail import Message, Mail
from models import db, User
mail = Mail()
@app.route('/')
def home():
retu... | [
"florije1988@gmail.com"
] | florije1988@gmail.com |
3a7ececd4212b97301895297e9069359d8976e46 | 4bbc4bb76c38029805ceb1c121514de284492603 | /runner.py | d1f37d1c5b596126251702d8f573532a75f59122 | [] | no_license | Satwato/Social_distancing_with_Detectron2 | 949bf8a518b4cc044a46b6e5736a6931d2f70949 | 7cec9e01f0e7aa9f1518c8cbc2131aa4bd4db7d3 | refs/heads/master | 2022-08-27T18:34:16.069685 | 2020-05-23T15:25:02 | 2020-05-23T15:25:02 | 266,351,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,097 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import argparse
import glob
import multiprocessing as mp
import os
import time
import cv2
import tqdm
from detectron2.config import get_cfg
from detectron2.data.detection_utils import read_image
from detectron2.utils.logger import setup_logger
fro... | [
"stwtdey1@gmail.com"
] | stwtdey1@gmail.com |
7b7c17e361f20416c6b1ac8296418c9a8ec75d00 | cba8f623e613cfb0cdba73fb373bec68f7bbfdcb | /ABC085D.py | 9802bdf40462578e6247674b1b8a473147a6a75d | [] | no_license | bonoron/Atcoder | 7d0af77a12b40ce2bdebf5ab5a76462629a03ea5 | e8c0d1ed7d113a0ea23e30d20e8d9993ba1430fa | refs/heads/master | 2022-12-24T20:00:32.702741 | 2020-09-24T07:03:48 | 2020-09-24T07:03:48 | 271,685,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | n,h=map(int,input().split())
A=list(tuple(map(int,input().split())) for i in range(n))
A,B=zip(*A)
a=max(A)
count=0
for i in sorted(B)[::-1]:
if h<=0:break
elif i>=a:
count +=1
h -=i
if h>0:
if h%a==0:count +=h//a
else:count +=h//a+1
print(count) | [
"noreply@github.com"
] | noreply@github.com |
9250680d4b5d68902f597d45ca7b9a1fcad029a9 | 269e74a4b29f389349ae0d9b13db1ddda2f3707c | /functions.py | d384cb28e50b5c2af78d50f63e939a26a7712955 | [] | no_license | MehdiRezvandehy/Machine-Learning-for-Leakage-Detection-from-Hydrocarbon-Wells | 1100f45e749c1608020a151f781d0220cec0cecc | 72ffbe5257814fe6e89a6f666586fc77be76ff1c | refs/heads/master | 2023-01-04T19:35:25.141747 | 2022-12-31T21:36:04 | 2022-12-31T21:36:04 | 276,810,349 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 30,308 | py | # Required function for running this assignment
# Written by Mehdi Rezvandehy
import pandas as pd
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
from matplotlib.path import Path
from matplotlib.patches import PathPatch
from matplotlib import gridspec
import matplotlib.patheffects... | [
"noreply@github.com"
] | noreply@github.com |
9d56dd896cffd36a18ade3a580793c45cf5bb075 | b30c9582b96500e92656e835d6b1022a30efc8a2 | /kkn/kkn.py | 5e4a75f0448174e77bf28c7fbec952d1c5c0e047 | [] | no_license | EtienneBoutet/nrael | 6a9263d6894223828180d1953e0f8d9ca5f609be | 8086d71028c065115456fde7d1a20fc2b074adbc | refs/heads/master | 2020-12-15T18:24:36.902614 | 2020-08-01T18:37:24 | 2020-08-01T18:37:24 | 235,209,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
import numpy as np
import math
from collections import Counter
class KNN:
def __init__(self, k):
self.k = k
self.points = []
self.X_train = None
self.y_train = None
def _euclidian_distan... | [
"etienne.boutet@outlook.com"
] | etienne.boutet@outlook.com |
4123da66d0571b55dbd372450e6e284ae6691b50 | dc12310e8203397d033accffe4f95fdae2fe1b45 | /Code/04_Poly_Editor.py | 12d74c576047468b14460fdd40a3ec860a544c81 | [] | no_license | scozmcluc/intropython2014 | 7d25692090587480d0df8962d2422dcaadb12988 | e09f2425ade912df20e2c6349a70623ec17e38db | refs/heads/master | 2020-12-24T18:03:55.050288 | 2014-06-20T18:16:58 | 2014-06-20T18:16:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,463 | py | # encoding=utf-8
# Created by quazinafiulislam
"""
This is an example to show how to build cross-GUI applications using
matplotlib event handling to interact with objects on the canvas
"""
import numpy as np
from matplotlib.lines import Line2D
from matplotlib.artist import Artist
from matplotlib.mlab import dist_poin... | [
"gamesbrainiac@gmail.com"
] | gamesbrainiac@gmail.com |
7a9db2bb719fe7a1ad52fb8c0618e00a9c6c3855 | e3617ed5606ca74e7ee6cd6597005440718f5028 | /tests/conftest.py | 70d8448ced26f3929ad8751acf05d44b4bc004ef | [
"Apache-2.0"
] | permissive | evrardjp/ansible-inventory-manage | b44efd4310b8b818d02c64cc18eaff3fa28ce5df | bcbc5e4926a7673067077e1f1435e7bbeace76f3 | refs/heads/master | 2021-04-09T10:56:37.644909 | 2018-05-30T08:35:12 | 2018-05-30T08:35:12 | 125,503,957 | 1 | 0 | Apache-2.0 | 2018-05-30T08:35:13 | 2018-03-16T10:54:04 | Python | UTF-8 | Python | false | false | 480 | py | """ Global testing fixtures """
import pytest
import json
import ansible_inventory_manage.inventory
inventory_file = 'tests/small.json'
@pytest.fixture()
def inventoryloader():
"""
Loads a standard inventory that
can be used for manipulations
"""
with open(inventory_file, 'r') as fd:
fc =j... | [
"jean-philippe@evrard.me"
] | jean-philippe@evrard.me |
d2d869abcf663c008f157d716357b792152c0431 | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/tablib-0.10.0/tablib/packages/openpyxl3/shared/date_time.py | 8a58cd098dcb8ffa0bdc3773c76a3d882c73d5c1 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"BSD-Advertising-Acknowledgement",
"MIT"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 5,931 | py | # file openpyxl/shared/date_time.py
# Copyright (c) 2010 openpyxl
#
# 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 rights
# to use, cop... | [
"abraham@elmahrek.com"
] | abraham@elmahrek.com |
f359d2d972956ca7e1c4ea94324273fa95da5ccf | 6bcffc29218f2a5459cac1f20f4eada0430abea4 | /pacioli/database/sql_views.py | 4458f0f649d4847ab93f46470e6cda941c927f7e | [
"BSD-2-Clause"
] | permissive | mantach86/pacioli | 8091c053440384e2bf8f4241d50da181b7dbc031 | 4a66ed80b1e3408e19d81e0ce7cfa46e477f489e | refs/heads/master | 2020-07-24T18:41:35.146089 | 2017-04-21T15:15:46 | 2017-04-21T15:15:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,441 | py | from pacioli.models import db
def create_all():
create_ofx_views()
create_trial_balances_trigger_function()
create_amazon_views()
create_bookkeeping_views()
create_mappings_views()
def create_trial_balances_trigger_function():
db.engine.execute("""
CREATE OR REPLACE FUNCTION
bookke... | [
"pierre@rochard.org"
] | pierre@rochard.org |
6c0aa48ea2ddbddd16653d593264d8170b4bb508 | 5fad7ce897f3a38961cdba5bb58122f6d8611c12 | /cricket/models.py | 56dcc0498ad52649cb4e5991804e279f251a76fd | [] | no_license | aditya-dabhi/Sportulate | 557aa21df545bee28194c708d881fb89f7de537e | 124cb5c63186c2937eef4182447a9521c471d0c1 | refs/heads/master | 2022-11-25T18:25:48.029676 | 2020-07-21T16:36:38 | 2020-07-21T16:36:38 | 257,600,508 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | from django.db import models
# Create your models here.
class CricTeam(models.Model):
name = models.CharField(max_length=100)
primary_color_name = models.CharField(max_length=100)
primary_color_code = models.CharField(max_length=100)
secondary_color_name = models.CharField(max_length=100)
secondar... | [
"dabhiaditya21@gmail.com"
] | dabhiaditya21@gmail.com |
e600a39d1c362c9011d49a08c0787d3bc153a9a6 | 9917e2d1d7694498266740218f96441c5c25a872 | /v2/shell.py | c66ac88b1ec079c8d093325532bb69fe09bfe109 | [] | no_license | yinweiishere/cinder-client-fs-111t | 81cd605c5fa583129557cfb7cbc6030a5b2ce221 | 71633d4c596ba323a825fa6b9f42f8f9aa73c882 | refs/heads/master | 2021-01-19T15:02:35.080811 | 2015-08-12T02:15:11 | 2015-08-12T02:15:11 | 40,574,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64,956 | py | # Copyright (c) 2013-2014 OpenStack Foundation
# 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 ... | [
"yinweiishere@126.com"
] | yinweiishere@126.com |
34bce30a64769f2ba955ecd63f564c944fd1c4ab | ff424a906a692638128fdd649ab7e77385b134ab | /sample/models.py | 3f1c100d63dd1c5f0192334ad8300facfc6ef231 | [] | no_license | wwjjwwpt/The-remote-control | 5c7a7996ba5cab6354f3d6e30f9d04dcec69c4a3 | bef9f6d3abc47058692cb10501fb45fccea2853b | refs/heads/master | 2022-11-30T09:49:05.377845 | 2020-08-05T14:01:59 | 2020-08-05T14:01:59 | 285,299,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,210 | py | from django.db import models
from django.contrib.auth.models import User
from django.core.validators import MaxValueValidator, MinValueValidator
from django.utils import timezone
import os
# Create your models here.
class PathItem:
name = ""
parent = ""
url = ""
child = []
canRead = True
def __... | [
"553060364@qq.com"
] | 553060364@qq.com |
f5d5c94e264e9b416f9e321c6f92c2a627772d05 | 9b265894d94a46f91ca20aab4fb5ece5d635dd16 | /LPAv/Trabalho 9 - Python/questao1.py | 5fe445972f602478bf68c2a4d9cdbae5b266bf31 | [] | no_license | JosephLevinthal/LPAv | fad4499ec294b3bbec82f73c9989fcf602f65d79 | 73ecf1cb39b550b13be558b80cbd97701ea34fa0 | refs/heads/master | 2021-09-16T11:08:07.828030 | 2018-06-20T02:56:42 | 2018-06-20T02:56:42 | 130,502,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | import re
stringDeEntrada = input()
while (stringDeEntrada != "####"):
if (re.match("^([0-9]{7,7}-[0-9])$", stringDeEntrada)):
print("SIM")
else:
print("NAO")
stringDeEntrada = input()
| [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
0c03c57ed9835182ec5ae523abf2d298197c8156 | b30cf885b32ec4477b2022e01a3024ae797cb48a | /bui/backend/value.py | 38591e5a91cf46281867254028ce3ae38ed6d24a | [] | no_license | bebraw/bui | bfbf76e58aecd922cda2ca60d1a33dff5261728d | 63aa75034d9f5f3fbd02341d5be060b84adfcd32 | refs/heads/master | 2023-07-10T02:55:59.214228 | 2009-01-10T16:54:24 | 2009-01-10T16:54:24 | 32,132,846 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,730 | py | # -*- coding: utf-8 -*-
import sys
from bui.utils.math import clamp
ABSOLUTE = 'absolute'
RELATIVE = 'relative'
AUTO = 'auto'
MODES = (ABSOLUTE, RELATIVE, AUTO, )
class ConstrainedValueProperties(object):
def get_width(self):
return self._constrained_width.value
def set_width(self, width):
sel... | [
"bebraw@dff6c430-ad89-11dd-9763-1166fc48c086"
] | bebraw@dff6c430-ad89-11dd-9763-1166fc48c086 |
15e0ff46dfc801ef82c69e6658d5b6752c59306c | a66d5e2e28953f014b20cff27d67a150ece0a12e | /venv/Scripts/rst2s5.py | b06980804b6321dda7c4515f185f3e11e4ec6749 | [] | no_license | shanojnanu/outline-Docs | f6b849bafd3f72565d0774214e085910f51c2388 | 4a9a7749caaf593b598212fc4eab8e4753c6a86d | refs/heads/master | 2020-08-09T00:27:29.165017 | 2019-10-09T15:41:57 | 2019-10-09T15:41:57 | 213,957,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | #!G:\study\AI\PROJECT\python-workspace\outline-Docs\venv\Scripts\python.exe
# $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: Chris Liechti <cliechti@gmx.net>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML slides using
the ... | [
"vicke.4490@gmail.com"
] | vicke.4490@gmail.com |
a7f514bd83ae5c656945cffe4e6bc5d183b5eef4 | 85a7ee1cbbb52ba4e02b471ee4e59ccffa80b52d | /General/loopcheck.py | 5a2b0b9291dfbb58499c47a9fe12063cb00bd852 | [] | no_license | shivapbhusal/python-workshop-playground | 3ed4efd12088f8416513ab26f2f9373e4313725f | 1d4b1693eb07731ffd43ae55c12bc33f1cd415cd | refs/heads/master | 2022-11-25T14:42:22.990387 | 2020-08-08T01:54:10 | 2020-08-08T01:54:10 | 103,742,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | def countdown(n):
while n>0:
print n
n=n-1
print "Blastoff";
countdown(1000000000)
| [
"civabhusal@gmail.com"
] | civabhusal@gmail.com |
ca39eed6f53cf105d6648dc00926f5b3997bac4a | 6a698cc472afb1c759ea605538890613f1fbfb70 | /API-pytest-project/lib/python3.9/site-packages/_pytest/mark/legacy.py | 2d557b5745f289e2b3ca2178890b8165f9e743fc | [] | no_license | rubeldm123/API_Automation_Python_Jan2021 | 26333369a2d239a922f153f555efbcd32bcf5d99 | 0959c62e0a72402762b5074614aeb9677bd4eef7 | refs/heads/master | 2023-02-23T04:01:39.139839 | 2021-01-24T01:57:45 | 2021-01-24T01:57:45 | 332,289,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,055 | py | """
this is a place where we put datastructures used by legacy apis
we hope ot remove
"""
import attr
import keyword
from _pytest.config import UsageError
@attr.s
class MarkMapping(object):
"""Provides a local mapping for markers where item access
resolves to True if the marker is present. """
own_mark_... | [
"rubeldm123@gmail.com"
] | rubeldm123@gmail.com |
faa7bd06c204447f3804c32070026adf782a82f3 | 45243d7b7412814b8cb43fefdf088099e0c93419 | /src/user/migrations/0007_user_uid.py | 090e72b9c2445055597e04d4b1cb18f3a2b3feab | [] | no_license | AlexanderNevarko/drec_stud_site | e08e621c54bdd145709913d4a69c8f089475fcad | 4e176a77bf5b4a20e57e1379581713a6fa6d2d21 | refs/heads/master | 2020-09-21T07:55:46.820999 | 2019-01-14T20:22:50 | 2019-01-14T20:22:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-09-04 12:42
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0006_auto_20170809_1308'),
]
operations = [
migrations.AddField(
... | [
"makaleks@live.ru"
] | makaleks@live.ru |
54e37c4b81fec916c8fc8cd7108b3e190dcd4ace | f00699824a8c5def54421ee3cf836ec2cd15d957 | /3/django_1703_day3/app01/urls.py | e7561509abebc6e85ef5e6b1b8c19ae0201bd4be | [] | no_license | ZhiqiWu/student_manage | 9171d78c32d6900b08de9034b9a2f50c9e24d0b8 | da12ebaf4e9d6357cd9f832144ed756a55510433 | refs/heads/master | 2023-03-29T04:56:09.486061 | 2020-01-24T08:11:50 | 2020-01-24T08:11:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from django.conf.urls import include, url
import views
urlpatterns = [
url(r'^$', views.index),
url(r'^zhale/$', views.zhale),
url(r'^tpl/$', views.tpl),
]
| [
"1049939190@qq.com"
] | 1049939190@qq.com |
ba3531ad7c992725f238742ab78fb235ca19c382 | a68e2382bbd3871b103d652941e356be76ea0806 | /shapelets.py | 63cf91c2789a22aa38b9e27d70aa86f8fb15e2cb | [] | no_license | aaapetyan/SearchForBinaries | cb8145b0834d08ef1ba6a0d94e2cac6d207fc24e | a5e2dd14cda6d18f287440fa0c4ad7e9b60f4549 | refs/heads/main | 2023-08-13T23:53:56.217619 | 2021-09-16T19:00:26 | 2021-09-16T19:00:26 | 407,282,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | import math
import numpy
import matplotlib.pyplot as plt
from numpy.polynomial.hermite import hermval
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
from matplotlib.ticker import LinearLocator, FormatStrFormatter
import scipy.integrate as integrate
box = 20
xc = box/2.0
nmax = 15
beta = int(raw_in... | [
"noreply@github.com"
] | noreply@github.com |
17ec8c43bf3d0bccc6a5b6641d0b6de8b03cba78 | a73cc710aa370be94b70248f2268d9c3b14059d0 | /server/src/experiments/elevator/command_senders.py | 588ba89236495a41776821eb50033cd98fdb8893 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | weblabdeusto/weblabdeusto | 05692d4cc0a36287191544551d4a1113b3d95164 | 62e488afac04242a68efa4eb09fd91d7e999d4dd | refs/heads/master | 2023-05-10T23:14:05.407266 | 2022-08-31T14:16:23 | 2022-08-31T14:16:23 | 5,719,299 | 19 | 23 | BSD-2-Clause | 2023-05-01T20:18:53 | 2012-09-07T16:24:03 | Python | UTF-8 | Python | false | false | 2,888 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2005 onwards University of Deusto
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
#
# This software consists of contributions made by many individuals,
# list... | [
"luis.rodriguezgil@deusto.es"
] | luis.rodriguezgil@deusto.es |
bd64cc79b797635ab184b9eb6bdcd842afd8fd08 | e2aaf3ce31122616d8756fda138d9779c58187aa | /lesson06/notes06.py | 4893b17a87405536772b6f6235e588c1ffdb6b34 | [] | no_license | kimjudyh/python_class | 2dc1f66f8c13d0e825e106d8b558dc3dc471655d | 9e20676e4ebac5e3543d03f8104c09aeebc9d511 | refs/heads/master | 2020-05-03T07:24:11.682117 | 2019-05-01T21:56:40 | 2019-05-01T21:56:40 | 178,496,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,966 | py | # lesson 06
'''
for loops, range(), sequences, slices
'''
# for loops---
# for <identifier> in <sequence>:
# <code block>
# can't change number of iterations by modifying identifier in loop!
for i in "Python":
print(i, end=", ");
print();
for i in range(1,10,2):
print(i, end=", ");
pr... | [
"kimjudyh@gmail.com"
] | kimjudyh@gmail.com |
a601fbf01d886dafa0878beca10e551f1c1619f5 | 6bc49e30bd3601ccd2714716b842da8e622de1f5 | /21-Merge-Two-Sorted-Lists/solution.py | 28d5af9bf1900a803cfccde2547f21aff0315803 | [] | no_license | ZhuTingxiang/leetcode | 2ace32c8e4ca531188de7e76457f55fd2366a8ea | 8e29d5599721994750c709d597945f01fed1d66e | refs/heads/master | 2020-05-21T20:28:26.361305 | 2016-10-12T23:06:30 | 2016-10-12T23:06:30 | 62,275,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def mergeTwoLists(self, l1, l2):
"""
:type l1: ListNode
:type l2: ListNode
:rtype: ListNode
"""
l3 = ... | [
"tingxiaz@andrew.cmu.edu"
] | tingxiaz@andrew.cmu.edu |
57e2760dbb318fd36e4e82912374e7cb14a44843 | ccc7f18c951b612d9fa3dc920a46b4fd0fa84fa3 | /Administration/forms.py | f954cb300b8e0f4dfe088b7c626cabee4ac2bea1 | [] | no_license | Kanishk-K/CATWISE-Heroku-Server | 46cda41fdb4ac41ae9a900939acc574d1318da84 | fbe3f4a23b38f59e0d2be332a05b2720d4b59b10 | refs/heads/master | 2023-04-05T04:47:15.701838 | 2021-04-03T01:14:13 | 2021-04-03T01:14:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from django.contrib.auth.models import User
from .models import *
class LoginForm(AuthenticationForm):
username = forms.CharField(
max_length=254,
widget=forms.TextInput(attrs={'class': "form-control... | [
"Kanishkkacholia@Gmail.com"
] | Kanishkkacholia@Gmail.com |
91a0878a1d095da6cac81f085ca9349ddc24f247 | 203fd0a2a91ee063736d11b069e11026c4184ec5 | /tools/test_files/all_17_or_less/cm152a_212.py | 8f2b7e168fbe23ea1f74ee042adbb48bfd761ae9 | [
"Apache-2.0"
] | permissive | Astlaan/OpenQL | 19b35200775367e6f11d1756e9495c1883a1c531 | 1b60d5784d439e6c19e662b570114aa1b3045d38 | refs/heads/develop | 2020-09-01T02:56:37.906564 | 2019-11-15T15:43:55 | 2019-11-15T15:43:55 | 181,012,110 | 0 | 0 | NOASSERTION | 2019-04-12T13:18:51 | 2019-04-12T13:18:51 | null | UTF-8 | Python | false | false | 27,978 | py | from openql import openql as ql
import os
import argparse
def circuit(config_file, new_scheduler='yes', scheduler='ASAP', uniform_sched= 'no', sched_commute = 'yes', mapper='base', moves='no', maptiebreak='random', initial_placement='no', output_dir_name='test_output', optimize='no', measurement=True, log_level='LOG_W... | [
"diogovalada.7@tecnico.ulisboa.pt"
] | diogovalada.7@tecnico.ulisboa.pt |
20d3da2423abd2f4b5def5965a6dfd9ba1afb245 | ed09a223102fcf9ef663f747f9a0acc95a2e52ac | /lib/datasets/kitti.py | 50ef345794e8b556b3023f5c37306d805b5b360f | [
"MIT"
] | permissive | zyuerugou/tf-faster-rcnn | f89689ca1dd97f95a1dcbdb6da99ca1feb64be99 | 6d1e3d9691ad3dd570e56a77304fc307969dc0f3 | refs/heads/master | 2020-05-19T06:48:58.463945 | 2019-05-20T02:51:16 | 2019-05-20T02:51:16 | 184,882,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,438 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 6 19:21:21 2019
KITTI datasets imdb class
@author: Administrator
"""
# --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick and Xinlei ... | [
"noreply@github.com"
] | noreply@github.com |
abfe90a1b20021fe6c31e4ad2868cfc56dda2ddb | a779e49f44a81821af7464f32c11790f415b9b27 | /LOC NEEL/Backend/api/MatchAptScholarship.py | 8a0cb50180a8d9ecb87f8c489150ec6e409beccf | [] | no_license | psp2108/LOC_16032019 | 5c3b57b5c71dc446d5585dde99ff2ff7e0d9448b | 1ad8193f4f999ce0eab81335ffb7990548db6e58 | refs/heads/master | 2020-04-29T02:29:23.686581 | 2019-04-15T19:11:46 | 2019-04-15T19:11:46 | 175,769,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | from flask_restful import Resource
from flask_restful import reqparse, abort, Api, Resource
import logging as logger
import test
class MatchAptScholarship(Resource):
def get(self,uname):
logger.debug("In GET Apt Scholarship")
t = test.Test()
logger.debug(t.printSomething())
#Call Pratiks Method
response = g... | [
"pratik.sp.1112@gmail.com"
] | pratik.sp.1112@gmail.com |
526d6589db2b272ca5cfba55a28b5a4fb0d708f3 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startQiskit_noisy429.py | 001320894098c4a3b7a6c5fabdd40cc8775b5332 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,395 | py | # qubit number=3
# total number=77
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
43601501c6dbc67278e6fbc269b0720273190225 | c41d5c3209fc67e82e8c08e714677282197c9d80 | /Python_test/fp_yimei_status.py | cddfaa2630736ccd665ac081b0728ca044c1109f | [] | no_license | bjwangchao1/StaticPoolOptimize | a2f4ee641e35eb1354f20015d4c769fde1470fa6 | aefc2b6b1a432d25a1e67b210e7638f614212246 | refs/heads/master | 2020-03-19T07:59:39.199264 | 2018-08-08T02:55:20 | 2018-08-08T02:55:20 | 136,166,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,753 | py | import pandas as pd
import numpy as np
import datetime
def f_calculate_status_etc_2(df_repay, col_contract_no, col_term, col_due_date, col_repay_date, col_total_principal,
col_due_principal, col_repay_principal):
# 计算每期的月末逾期状态、月末剩余本金,以及首次违约的周期(2017-11-25)
# 输入:
# “长格式”的还款记录数据框... | [
"bjwangchao1@gmail.com"
] | bjwangchao1@gmail.com |
2366786f7a3b2ce29c4d743b0ba81791a2013a84 | 3a570384a3fa9c4c7979d33b182556e1c637e9eb | /anwmisc/anw-pyui/Packages/pyui/renderers/unseen.py | 1caadb76f8f683700fdcc1917514579e56fa470d | [] | no_license | colshag/ANW | 56a028af5042db92b5ead641dc542fcb4533344e | 46948d8d18a0639185dd4ffcffde126914991553 | refs/heads/master | 2020-03-27T00:22:49.409109 | 2018-10-27T06:37:04 | 2018-10-27T06:37:04 | 145,618,125 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,479 | py | import PyUnseen
from msgs import *
import pyui.locals
from pyui.renderer3d import Renderer3DBase
from pyui.desktop import getDesktop
messageMap = \
[
WM_KEYDOWN,
WM_KEYUP,
WM_CHAR,
WM_MOUSEMOVE,
WM_LBUTTONDOWN,
WM_LBUTTONUP,
WM_LBUTTONDBLCLK,
WM_RBUTTONDOWN,
WM_RBUTTONUP,
... | [
"colshag@gmail.com"
] | colshag@gmail.com |
7030598602e1b69ec0d2b312b269fdc3e7424c24 | ea08023f888fd57d01e3952b372522137e3db701 | /resources/modules/wgu/embeds/direct/wgu_user_verified_success_embed.py | b3960122d82cf1eb819e0539908ac42797142992 | [] | no_license | simeononsecurity/Peregrine-bot | f910eb67d5ec6af512314e3c234db1714f17b0c5 | 744d838663c3e523a72c5e5b015b860e82b998f8 | refs/heads/master | 2023-04-20T07:10:52.890627 | 2021-03-09T02:11:20 | 2021-03-09T02:11:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | import discord
# Import additional modules
from discord.ext import commands
async def wgu_user_verified_success_embed(wgu_user):
# Set initial message here
successMessage = discord.Embed(
title="Success!",
description="\n\nHello, {}!\nYou have been verified! You should now see new channels... | [
"justin@gemstatecyber.com"
] | justin@gemstatecyber.com |
8b50c33b2267b1a35cc4a73a591c173d6eea2280 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_revues.py | f49493dcdf30e1cce36d2723a65a559d1a24960d | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
#calss header
class _REVUES():
def __init__(self,):
self.name = "REVUES"
self.definitions = revue
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['revue']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
60847a2a95c5d716ddfcd9d539af72449d1f0591 | aa49120740b051eed9b7199340b371a9831c3050 | /greaterTree.py | 3e539eb3cf0e2a93dd98c58dad666501da74daf5 | [] | no_license | ashutosh-narkar/LeetCode | cd8d75389e1ab730b34ecd860b317b331b1dfa97 | b62862b90886f85c33271b881ac1365871731dcc | refs/heads/master | 2021-05-07T08:37:42.536436 | 2017-11-22T05:18:23 | 2017-11-22T05:18:23 | 109,366,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | #!/usr/bin/env python
'''
Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed
to the original key plus sum of all keys greater than the original key in BST.
Example:
Input: The root of a Binary Search Tree like this:
5
/ \
... | [
"ashutosh.narkar@one.verizon.com"
] | ashutosh.narkar@one.verizon.com |
d4d36157252a54c0306ce3e6946c82ce74b74482 | 8aa7bf7fcc0d1cb92e595ed360fe0b093505b082 | /linear_algebra/demo_gauss_elimination_method_1.py | eff92aa72d5ddc61fcffaf276a9247d59a04274d | [] | no_license | Ivanqi/algorithm | 63323f6afcfdeb496c43a65034ea77d338291cf6 | 7d43d9e97de232f69e4eb687ed84d90bd1397df8 | refs/heads/master | 2022-04-28T17:07:09.193488 | 2022-03-21T12:55:15 | 2022-03-21T12:55:15 | 199,848,944 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,250 | py | import numpy as np
B = np.array([[2, 1, 1], [4, 2, 1], [2, -1, 4]])
print("------ 消元过程 -------");
A = np.array([[2, 1, 1, 0], [4, 2, 1, 56], [2, -1, 4, 4]])
print("E1: 为了使用A(2, 1)和A(3, 1)为0")
E1 = np.array([[1, 0, 0], [-2, 1, 0], [-1, 0, 1]])
print(E1)
print("E1A = E1 * A")
E1A = np.dot(E1, A)
print(E1A)
print("--... | [
"512350225@qq.com"
] | 512350225@qq.com |
6269d03b9eb8233e58c708c9ab4c7d4d97a244fb | d0a2ddee6d2a733c123aae13e08b378cc49516fc | /fsm.py | 1a32747cfbf4d5b5388204698c36327acbcfa2e9 | [] | no_license | F74071043/toc2020 | 6f071361e1b897076ecaac762ce7a17aa22ae7c0 | 6168bb6a098d79b328aadaba9c1a2b7f80283758 | refs/heads/main | 2023-02-06T06:57:05.251799 | 2020-12-26T18:28:46 | 2020-12-26T18:28:46 | 323,613,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,702 | py | from transitions.extensions import GraphMachine
from utils import send_text_message
import random
class TocMachine(GraphMachine):
def __init__(self, **machine_configs):
self.machine = GraphMachine(model=self, **machine_configs)
def is_going_to_retype(self, event):
text = event.message.text
... | [
"noreply@github.com"
] | noreply@github.com |
7c24a3e957c7271e9b76fd4b4fe67e6208aa6b5d | 0dd552743591a1aee130d7af578cab495ee3e24a | /main.py | 4dc65ac488f28fdd1ba2202dd9ead54bf2527551 | [] | no_license | himanshuIndia/sentiment_analysis | 1f98aaf431535fce46eaa532001cefb08f72fb9f | 4d996213d960a8065d86f7829a2143bad65cb14e | refs/heads/master | 2020-03-13T12:21:21.727838 | 2018-04-28T06:57:08 | 2018-04-28T06:57:08 | 131,101,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | import config
import get_ner
import get_tweets
import get_news
import get_sentiment
import plot_data
from pymongo import MongoClient
client = MongoClient()
db = client[config.db_name]
posts = db.posts
get_tweets.getTweets(config.twitter_key,config.twitter_secret, config.app_token,config.app_secret)
keys,ner_dict,ne... | [
"him96delhi@gmail.com"
] | him96delhi@gmail.com |
564c4e96ea48fa6ab240096ea1f46389ad0e8636 | 2289035118a136867b83fac9ba005fe443c955e6 | /alembic/env.py | 00ea813ec55780c0bcc246ee350b680bb825bf50 | [] | no_license | splsher/lab_6 | ede010a3a196e0f973089b08022035065598d174 | bfab6826b5c4af5c1d39a321f733dfacbcabba5d | refs/heads/master | 2023-09-02T07:08:47.160276 | 2021-11-24T14:17:54 | 2021-11-24T14:17:54 | 431,511,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,061 | py | from logging.config import fileConfig
from sqlalchemy import engine_from_config
from sqlalchemy import pool
from alembic import context
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interpret the config file for Python logging.
# Th... | [
"shchennikova.tania@gmail.com"
] | shchennikova.tania@gmail.com |
f2e0d802e4d91a5d6d2b6cbefbbf7d85743164fc | c1ae1772dd980d592add422db0b0511d597d8d84 | /blog/migrations/0007_blogcategory.py | d668e9f7ea3bc416d64e3f8afe6cc3b0950a5786 | [
"MIT"
] | permissive | philba/myblog | ee88d3bbb279f1a4e692138b0ee6dcb43e729886 | 32c4328bb7cbce23c4b9003638cea20be57798a2 | refs/heads/master | 2022-12-23T10:15:27.579684 | 2017-03-15T19:56:31 | 2017-03-15T19:56:31 | 83,588,884 | 0 | 0 | MIT | 2022-11-22T01:28:43 | 2017-03-01T18:46:11 | CSS | UTF-8 | Python | false | false | 925 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-10 17:37
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailimages', '0018_remove_rendition_filter'),
('... | [
"phil.bagwell@gmail.com"
] | phil.bagwell@gmail.com |
cc2c108c5cc046ed429dc52290a5d7f22bffc92f | e8d40ceb265f9c04115b00dede440bd1d7a85e0e | /biblioteca/biblioteca/settings.py | 3090a2e96a1280e4ff773c97e2725dc4de2fa1a8 | [] | no_license | memo15428/django | e90be85cc4fb2df7c15cf6cfffafb13c5fef91ee | e76a5ce56ff416f1261e74d067182b78a0d3330f | refs/heads/master | 2021-05-25T21:24:54.732776 | 2020-04-08T03:01:06 | 2020-04-08T03:01:06 | 253,925,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,118 | py | """
Django settings for biblioteca project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os... | [
"61074055+memo15428@users.noreply.github.com"
] | 61074055+memo15428@users.noreply.github.com |
44cc1428ed5782b69321521d09bc77fbd8230407 | 864b1cb980a200b0df91e6d8de3c9d850bf06898 | /robot_control/lib_robotis.py | a3d9ab6cf2d3ee388448315cd5640b9fee8c2250 | [] | no_license | FreddieOgemark/bioloid_humrob | 612484cfad5aed52ffbffa588b4f429c86bf47fd | 280b78663cbacb370f9a08ee36ea9c27f0b469cc | refs/heads/master | 2021-06-28T07:54:46.780558 | 2017-09-15T20:02:07 | 2017-09-15T20:02:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,972 | py | #!/usr/bin/python
#
# Copyright (c) 2009, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
... | [
"gustav128@gmail.com"
] | gustav128@gmail.com |
74e4db9d299d8c8c135ffd1e9c16e8e9ba74bdba | 68e548e5e4d9a9ffa71cfc691644ef8032537439 | /Projects/Bootcamp/(35)SQLPyt/V1.py | 94269f93987488d4d41cddd43a9a15f93033de9c | [] | no_license | Elemento24/Python3-Bootcamp | cd4529cae8508bff4c02d2180a87e9b1afb3aaf4 | fd4538a1ec77312925b333db4f0572c63274d77b | refs/heads/master | 2022-10-22T10:03:39.019364 | 2020-06-12T18:52:30 | 2020-06-12T18:52:30 | 271,868,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | import sqlite3
# We use the below code to connect to a DB. If the file exists, then it will connect to the ...
# ... specified DB, else it will create the DB file
conn = sqlite3.connect('my_friends.db')
# Create a Cursor Object
# Cursor object, is basically a small amount of Storage Space, that we can use to store ou... | [
"mittalvishesh021@gmail.com"
] | mittalvishesh021@gmail.com |
5f46076fd292520cada7f7fce8dc39783f2a6375 | 7198d72cd47616d3dc7010256988859113458dd5 | /BasicThreads.py | 660b8e4c98b052d9f366733ad8955a606df55d31 | [] | no_license | carlosjimz87/PyClean | 7d17acdb0640c1316ff9c60aed7d62304f5a4723 | 92c5753fe5fc4bcd15da815e0d9fee2320d11cfc | refs/heads/master | 2021-11-27T02:36:42.466965 | 2021-10-13T10:34:56 | 2021-10-13T10:34:56 | 160,558,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | import threading
import time
a = 1
def fun(chain):
time.sleep(2)
print(chain)
print(f"Sync:{a}")
# async thread
y = threading.Thread(target=fun, args=(f"Async:{a}",))
y.start()
# async daemon thread (run in background)
x = threading.Thread(target=fun, args=(f"Daemon:{a}",), daemon=True)
x.start()
x.join(... | [
"carlosjimz87@gmail.com"
] | carlosjimz87@gmail.com |
f4fd51c0c6ecb823927f472bee6e0f1f8590b358 | 5eacc8ebd7afc23666be2b7404b6da1f6ae1e909 | /Python/heimaailma.py | 945325d4d664fc04babaec0234a399311d27cc40 | [] | no_license | Stugeh/Some-old-coding-excercises | 4af1ac9de29eadafcdfe2bc23b8b51bde78388b4 | 6aa4aa95ce3c13129ad7467834e3d8e7a6724004 | refs/heads/master | 2020-12-06T09:43:02.349831 | 2020-06-23T23:18:24 | 2020-06-23T23:18:24 | 232,427,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | print("Hello world!") | [
"noreply@github.com"
] | noreply@github.com |
b132cdcf19f987f9f712e898e2fbb182741cd5c6 | 000dd9c62f96c59c56acc62ed083f04773daf7a1 | /LightEffects.py | 8209131119081a764525736bb1fe9c9c15832909 | [] | no_license | divyadeep1/Internship_at_IITk | c11dd7caccba7c0d1915176950c983f8cb9af6be | e5ee5a8db153fa606d5469b9cd8c7107f2d3799b | refs/heads/master | 2020-03-15T12:01:25.053480 | 2018-08-01T18:03:44 | 2018-08-01T18:03:44 | 132,134,895 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | """ Camera Movement using keyboard and mouse
"""
from OpenGL.GL import *
from OpenGL.GL.ARB import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
from OpenGL.GLUT.special import *
from OpenGL.GL.shaders import *
from glew_wish import *
import cube_with_light_effects as cube
import math
import glm
import common
... | [
"divyadeep.singh962118@gmail.com"
] | divyadeep.singh962118@gmail.com |
f33512a2c576ecc3bc790f2bbbd0ade7400bdfdb | b06cf55f4dc683ea7ac33af1c06a518562c4f9ba | /cls/dataset.py | 4933ecfd0ceca1ec33a33f4f9ff86fcd638d0ef5 | [] | no_license | marsStoneS/JDATA-2019-Snow_leopard | 090bfca2e713d1962459f98566db697e1f0ebab7 | 1ad8ff0fda8ed3743bd2ad122b7700ce6a44180b | refs/heads/master | 2021-03-15T16:39:32.388924 | 2020-02-24T15:30:02 | 2020-02-24T15:30:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,848 | py | import os
from PIL import Image
from imgaug import augmenters as iaa
import matplotlib.pyplot as plt
import pandas as pd
import torch
from torch.utils import data
import numpy as np
from torchvision import transforms as T
import torchvision
import cv2
import sys
def amaugimg(image):
#数据增强
image = cv2.cvtColo... | [
"noreply@github.com"
] | noreply@github.com |
446ff80d3dea6af21036b80f8cce0c1e7f31fe02 | 6d0051ca7060c5567091a14287975daa515fbe13 | /PMMH/apps/game/unit/hero/item/admin.py | a55c95a5077eb01e6c8fa6dde7541753c4d9c450 | [
"MIT"
] | permissive | metinberkkaratas/ProjectMagic-MightofHeroes | e2fec9a74a21bf960576e246467b5243e51cbf43 | 578697e637aba0f18b4f83762bf1c87fb20db2ee | refs/heads/master | 2023-05-03T04:24:18.861993 | 2020-01-12T19:59:22 | 2020-01-12T19:59:22 | 216,659,271 | 0 | 1 | MIT | 2023-04-21T20:39:07 | 2019-10-21T20:28:05 | JavaScript | UTF-8 | Python | false | false | 86 | py | from django.contrib import admin
from .models import Item
admin.site.register(Item)
| [
"ozay_ezerceli804@hotmail.com"
] | ozay_ezerceli804@hotmail.com |
0900b16bee7a0487d79473213ba40c5500e5a794 | cc87775fb869f7ab5d146ed51aa54dbe28e13706 | /MDAnalyze.py | f64359524ef59b3ac5f824ec06eaf7f26176d661 | [] | no_license | gmthu66/MDDesign | 09e02860cba371724959e048acc82c9b0f6e7c64 | 34e583f7bdcbae0f10628ac7eb0f849ae54c2128 | refs/heads/master | 2021-04-12T03:17:37.584592 | 2017-07-04T17:32:50 | 2017-07-04T17:32:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,074 | py | #! /usr/bin/env python
import argparse
import subprocess
import multiprocessing
import sys
import os
from Bio.PDB.DSSP import dssp_dict_from_pdb_file
import shutil
parser = argparse.ArgumentParser(description='MDAnalyzer')
parser.add_argument('-job', help='Job type. Available are: autoimage, refstruct rmsd_bb, rmsd_sse... | [
"j.ludwiczak@cent.uw.edu.pl"
] | j.ludwiczak@cent.uw.edu.pl |
af9cd54b956ba301ee541b58278fd05234af6c75 | 853b8b54b0f15f0dc543a90edd89d8ed1bfed1fa | /helloworld_project/urls.py | 9b341e8bb5a4fbb83eb32ffd297623345be2b44e | [] | no_license | kokenny5/helloworld | 375338e9130e0f4516863b7f0d27a4088978c2d6 | 1c2a49f56610136af833d8312e7cbb8cbbaf3efb | refs/heads/master | 2020-04-12T14:32:33.503246 | 2018-12-20T09:17:11 | 2018-12-20T09:17:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | """helloworld_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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')
... | [
"captainkeny@gmail.com"
] | captainkeny@gmail.com |
b4f8788fcf7669acb25a047dc35383868e4df819 | 937e64bdee724805c52826206361d53cca62121e | /Interface/main.py | 5f66c3072afc0518cf4fed67b67506c41ac733bb | [] | no_license | hungndo/InteriorRoomOrganizer | 7747a1b4c288557041fb2cfb81ad8de532d13f31 | 16833ec16daa6bf1df5b238de269c0757c3af2e3 | refs/heads/master | 2022-02-18T10:14:40.806641 | 2019-07-31T04:31:00 | 2019-07-31T04:31:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,938 | py | import asyncio
from Interface.MyApp import MyApp
import socket
app = MyApp()
async def message():
while True:
is_scanning = await app.is_scanning()
if is_scanning == 'True':
# set up client and connect to server
# TODO: fix the error when trying to scan the second time
... | [
"47681464+linkzero177@users.noreply.github.com"
] | 47681464+linkzero177@users.noreply.github.com |
0ee77796d819854fa3f931549a831d02ce62d892 | e3d8dcf105b9d41a40115ae3c706d73b1cb9a6b7 | /feature_matcher.py | 29df74dadd76a7cece0b5b32ae0e0b6a0767c286 | [] | no_license | Adi-reachy-vision/Trial_code | f848a82a48f255d3b532a55845e3d8b15921f799 | 903251e98c3eaf2beffdaa28bcea685faddb4c74 | refs/heads/main | 2022-12-25T08:29:27.016028 | 2020-10-06T02:13:29 | 2020-10-06T02:13:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | import cv2
img1 = cv2.imread('sample_totem.jpg', 0)
img2 = cv2.imread('IMG_20200917_115302 (copy).jpg', 0)
orb = cv2.ORB_create(nfeatures=500)
kp1, des1 = orb.detectAndCompute(img1, None)
kp2, des2 = orb.detectAndCompute(img2, None)
# matcher takes normType, which is set to cv2.NORM_L2 for SIFT and SURF, cv2.NORM_HA... | [
"noreply@github.com"
] | noreply@github.com |
32ec4c727939a4c7e6aeba86ba4714df3795be82 | 182377d8421e4e8cc894af1ce887535cdb88d97c | /src/hw_2/scipy_algorithms.py | b2b5b417c45dd91910a5198ad1d94551e545a57c | [
"MIT"
] | permissive | bahbyega/CDPA-course-2021 | 4f66901f0a8db7c660a8c054bc85fbd1a65037b0 | 0cfdcad6e7c27cef8df87a10c6d6d600a3b55178 | refs/heads/main | 2023-08-29T22:54:55.108457 | 2021-10-27T10:55:44 | 2021-10-27T10:55:44 | 345,702,184 | 0 | 0 | MIT | 2021-06-03T07:12:54 | 2021-03-08T15:27:42 | C | UTF-8 | Python | false | false | 2,000 | py | import numpy as np # for vector operations
from scipy.io import mmread
from scipy.sparse import tril, triu
from scipy.sparse import csgraph
def sp_graph_from_mm_file(path):
return mmread(path).tocsr()
def sp_bfs(graph, src_vertex):
"""
Computes traversal level for each vertex from source vertex.
... | [
"den.porsev@gmail.com"
] | den.porsev@gmail.com |
8a8112c98a32850524e2e947da26f64c30ef2ae3 | 57359cfa7158b284ca5061710a7fe233c76d9cd7 | /utils3d/bbox3d_ops.py | 4228ef72a8e7125eb80c031504550a988641d131 | [
"MIT"
] | permissive | zhuhaipeng-byte/Automatic-As-built-Reconstruction | 5d0cd5b993cb5c273fc1e133651e11c548e795dc | a3d4642f76beb572fdaf37fb832704fa88d054ab | refs/heads/master | 2022-05-27T18:15:34.801783 | 2020-04-10T12:12:27 | 2020-04-10T12:12:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,969 | py | # xyz Nov 2018
import numpy as np
import os,sys
import open3d
import numba
import time
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
ROOT_DIR = os.path.dirname(BASE_DIR)
sys.path.append(BASE_DIR)
sys.path.append(ROOT_DIR)
from open3d_util import draw_cus, gen_animation
from geometric_util import Rz as geo_Rz,... | [
"buaaxyz@yeah.net"
] | buaaxyz@yeah.net |
6be53d3331d2769ebb1748957f93241f4d16e25a | 88d0e96723a90465207d5b9c00da6d5204b664a0 | /foodapp_project/settings.py | 9a4a1b741007364451ec80f65a1080ea41c81356 | [] | no_license | nayem1703163/foodapp_project | 72d7d144a1b1c3db94125b6ab3f204afeddeaed7 | 3c3c2b212b49e17c609b7fdb5afe573ccd905a29 | refs/heads/master | 2022-11-24T08:50:02.734314 | 2020-07-28T16:53:34 | 2020-07-28T16:53:34 | 281,495,219 | 0 | 1 | null | 2020-07-22T08:01:52 | 2020-07-21T20:15:38 | Python | UTF-8 | Python | false | false | 3,319 | py | """
Django settings for foodapp_project project.
Generated by 'django-admin startproject' using Django 3.0.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
impo... | [
"nayem1703163@users.noreply.github.com"
] | nayem1703163@users.noreply.github.com |
cdc220273a6eb070856db02eee22e9766e3d7d72 | 45c142c3e3dc8d3211a86c77385ecfdd10d28fb9 | /dstore/engine/procedures/mi_RestoreDefaultValues_Ad_pb2.py | c4d2eabded23befbbf6f8898c1164f8aef205f9d | [] | no_license | dstore-io/dstore-sdk-python | 945d64995c8892af18fab26c90117245abec64a4 | 8494d12ac77c3c3cc6dd59026407ef514ad179fc | refs/heads/master | 2020-06-14T13:07:08.181547 | 2017-01-26T11:19:39 | 2017-01-26T11:19:39 | 75,177,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 12,973 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: dstore/engine/procedures/mi_RestoreDefaultValues_Ad.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from... | [
"b.dolkemeier@dbap.de"
] | b.dolkemeier@dbap.de |
ebe35372cc9c0ca0eb0b703760762a84795b84ce | 9b7d9e814a4327bf4cd3a4040cf96944d5e1b43e | /forms.py | c32b84c7b4e4a21232d3724ec5282de6ccca1e01 | [] | no_license | Charlie-Say/pythonflask_profile | ec0b3f9336d9d6e1efaf6176096a6cdada900460 | a7f8953938f83663a1dc42b4662987f9429bce9b | refs/heads/master | 2020-04-24T12:23:00.402991 | 2019-03-18T20:37:05 | 2019-03-18T20:37:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField, BooleanField
from wtforms.validators import DataRequired, Length, Email, EqualTo
class RegistrationForm(FlaskForm):
username = StringField('Username',
validators=[DataRequired(), Length... | [
"noreply@github.com"
] | noreply@github.com |
eb21142dfd231093f8619ba38dcdff7b4b96bae6 | a31ecfe0e61a0ba3d7fba145b583d29a8832726f | /Point.py | 39e2214d4dbb2b6cef508a1e0abff541be1def28 | [] | no_license | JoalG/Project2_AA | 0a402245c49f6fe3bb5796afc865114bf55741da | 69ae4b44669bf10758ac8b29e0b1470dcc965d3c | refs/heads/master | 2022-11-23T18:44:42.493805 | 2020-07-03T05:09:13 | 2020-07-03T05:09:13 | 270,429,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py |
import numpy as np
import pygame
import math
class Point:
x=0.0
y=0.0
def __init__(self, x, y):
self.x=x
self.y=y
def __add__(self, other):
return Point(self.x+other.x, self.y+other.y)
def dot(self, p2):
return (self.x*p2.x) + (self.y*p2.y)
... | [
"53712282+JoalG@users.noreply.github.com"
] | 53712282+JoalG@users.noreply.github.com |
dc8bc64127e5b80bfec644be7d47216a6a5493c7 | d62ac77d742c708a6026f0a58042984fddc621d9 | /website/views.py | a7c0b133fbcbd562266e559f5cf5e2ff7300499b | [] | no_license | ArchontJ/WebFoodDiary | 51bdba2bb919de978b70da6ed9578f60e3c48e83 | 0155f2837d27629a503d76bf66fa6135ed68bbcc | refs/heads/main | 2023-06-25T17:18:54.880770 | 2021-07-20T23:02:42 | 2021-07-20T23:02:42 | 386,915,721 | 0 | 0 | null | 2021-07-20T23:02:43 | 2021-07-17T11:08:43 | HTML | UTF-8 | Python | false | false | 1,952 | py | from flask import Blueprint, render_template,flash,request,jsonify
from flask_login import login_required,current_user
from .models import Note, PRODUCTS
from . import db
import json
views = Blueprint('views',__name__)
@views.route('/',methods = ['GET','POST'])
@login_required
def home():
if request.method=='POST... | [
"jacek.neska91@gmail.com"
] | jacek.neska91@gmail.com |
7f18193d0a006abf5e133bd1826ca925772415d9 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/marketplaceordering/manual/custom.py | c3d4d03fbbc01f38de3e9be67de777584acd4f5b | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 1,754 | py | # --------------------------------------------------------------------------
# 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 cause incor... | [
"noreply@github.com"
] | noreply@github.com |
3751a2a35d514f1694cf440efacad8b63a48b242 | ec7b8378698ed9dfc5e62b94c20524bf3aefc3c3 | /tests/test_tileserver.py | 6a0e6994f46f0788f9ea0abb259de8dd2e55e3d9 | [
"BSD-3-Clause"
] | permissive | TissueImageAnalytics/tiatoolbox | 52fe15704b396a055d9b4fccc678787ef489aed8 | f26387f46f675a7b9a8a48c95dad26e819229f2f | refs/heads/develop | 2023-08-16T15:47:19.282604 | 2023-08-14T16:50:45 | 2023-08-14T16:50:45 | 267,705,904 | 222 | 44 | NOASSERTION | 2023-09-14T16:57:15 | 2020-05-28T22:02:51 | Python | UTF-8 | Python | false | false | 25,005 | py | """Test for tileserver."""
from __future__ import annotations
import json
import urllib
from pathlib import Path, PureWindowsPath
from typing import Callable
import joblib
import numpy as np
import pytest
from matplotlib import colormaps
from shapely.geometry import LineString, Polygon
from shapely.geometry.point imp... | [
"noreply@github.com"
] | noreply@github.com |
faddd939d404d54e5dbad9be2b6f75f85ed43e5b | 0f4123214926fddc8a12762239e76b9c34340d55 | /apps/landing/urls.py | 1eb1168159e0ae992cbc5786a38db2ac5e8aaddf | [] | no_license | Mekazara/testmeer | b8d13aea6671756f8fe2947bc2e3113f64543dc6 | 9597c4fbdd66bdabd83af532d9ac5d78474993d6 | refs/heads/main | 2023-03-21T05:33:33.490946 | 2021-03-20T06:07:12 | 2021-03-20T06:07:12 | 349,640,943 | 0 | 0 | null | 2021-03-20T06:07:13 | 2021-03-20T05:56:27 | null | UTF-8 | Python | false | false | 386 | py | from django.conf import settings
from django.conf.urls.static import static
from django.urls import path
from apps.landing.views import IndexPageView
app_name = 'landing'
urlpatterns =[
path('', IndexPageView.as_view(), name='index'),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns ... | [
"mekuchazara@gmail.com"
] | mekuchazara@gmail.com |
fde9ceaca4cd01c3520936f567cc4c0b9da7ea2f | 6a7058009587e78b5c758ff783410325ad7c2a4b | /leet/stack/removeDuplicates.py | 7b454b38480b649f7012a1ba584510296d51d6df | [
"Apache-2.0"
] | permissive | stacykutyepov/python-cp-cheatsheet | 8b96b76403c501f5579befd07b3c4a4c69fe914e | a00a57e1b36433648d1cace331e15ff276cef189 | refs/heads/master | 2023-07-16T13:26:35.130763 | 2021-08-30T11:23:39 | 2021-08-30T11:23:39 | 401,442,535 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | """
time: n
space: n
Remove All Adjacent Duplicates in String II
"""
class Solution:
def removeDuplicates(self, s: str, k: int) -> str:
stk = []
for c in s:
if stk and stk[-1][0] == c:
stk[-1][1] += 1
if stk[-1][1] >= k:
stk.po... | [
"peterrlamar@gmail.com"
] | peterrlamar@gmail.com |
0eca2749b98ede803fa5d2d2c0ca919f30f41923 | c13a8fc2573a5e78e5699b4032d7c3349202d9bf | /demo01.py | d0234518b58060cac2fe2453068fca68d08740e8 | [] | no_license | xiaopacong/test | c12eea869bdca6c0fddc7570cd29f286f1b6edd1 | 4de9829e651eb47e4980da1891f485fbf89bb43e | refs/heads/master | 2022-11-25T01:05:21.690420 | 2020-07-30T08:17:23 | 2020-07-30T08:17:23 | 283,494,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py |
a={"name":"蔡聪","age":24,"love":"basketball"}
print(a)
#print(a["name"])
# b=a.get("name")
# print(b)
# a["name"]="吕琪琪"
# print(a)
a.update(name="吕琪琪")
print(a)
# a.pop("name")
# print(a) | [
"839168306@qq.com"
] | 839168306@qq.com |
2eb13d574cdc98657e7062d4042bb0075bcc6c3a | d9c6f590f3597803c5d540734304e4348810796b | /Post_MASLAB_Play/TAMProxy-pyHost/PathPlanning.py | 31d55a6a0c0225b4d70879b704fb8eb873408648 | [
"MIT"
] | permissive | aokeke1/PersonalProjects | 4e64700958dbb06f6df262a6ef50b90bf03d0081 | cca7498161d6934158bb21e261cc80bfb7887eaa | refs/heads/master | 2021-01-15T20:09:37.555695 | 2017-09-14T12:18:14 | 2017-09-14T12:18:28 | 99,844,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 09 23:59:36 2016
@author: arinz
"""
import matplotlib.pyplot as plt
import SegmentDistances as SD
file1 = "Maps/Map1.txt"
file2 = "Maps/Map2.txt"
constant = 24 #24 inches per point
def getWalls(fileName):
f = open(fileName)
allSegments = []
graphForm =... | [
"arinzeokeke0@gmail.com"
] | arinzeokeke0@gmail.com |
9beb2f007c5b1a2e985d1eb9cac90a3c7c0cb488 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /build/android/gyp/dex.py | 9c551b9e78ce988f1b931a84bb34deb6a64e2c9a | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 14,446 | py | #!/usr/bin/env python
#
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import json
import logging
import optparse
import os
import re
import shutil
import sys
import tempfile
import zipfile
from util imp... | [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
4802ba8a755fec7a0c5675e77bab7f0706c697dc | b8a37e7cd3b733af8acedaa6b6031e8765de23eb | /pr_4.py | 6b32507e27953938a513ab75448ff17bddc4cdec | [
"MIT"
] | permissive | Belyaev126/l4 | 1bc8d1389465b969e5dc0cfccbfbabe1f3a8706a | 91a7dc54e6be742ec8f3d14f463e89810a322d4c | refs/heads/master | 2022-12-31T03:48:53.774992 | 2020-10-23T08:42:21 | 2020-10-23T08:42:21 | 300,519,121 | 0 | 0 | MIT | 2020-10-15T18:41:02 | 2020-10-02T06:14:47 | null | UTF-8 | Python | false | false | 401 | py | #!/usr/bin/env python3
# -*- config utf-8 -*-
import math
import sys
if __name__ == '__main__':
a = float(input("Value of a? "))
if a < 0:
print("Illegal value of a", file=sys.stderr)
exit(1)
x = 1
eps = 1e-10
while True:
xp = x
x = (x + a / x) / 2
if math... | [
"belyaevrw@gmail.com"
] | belyaevrw@gmail.com |
b1f47457d65c71cd7c6a50ed478d5c977f70e03a | d4a73ae6e585c154500dc735e0e4243871cd1714 | /nested_serializer/asgi.py | 1f98526a90aefce4c7e2a33dd5ac4f8d33cc3889 | [] | no_license | himelbikon/django-nested-serializer | e9bbf72970b93ddb1c1695f1af7699cdf3610851 | 154b68bc39b777cfd5de4f125acee3888bb0b5d5 | refs/heads/master | 2023-09-02T21:44:28.266960 | 2021-11-19T17:29:14 | 2021-11-19T17:29:14 | 429,881,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
ASGI config for nested_serializer project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJ... | [
"skhimelhaque@gmail.com"
] | skhimelhaque@gmail.com |
83a6820c70dd5963b3b10f5678751b50386b19c0 | da80ee46bb7a463d97c20f64f4147aa2a66409e4 | /darkfb.py | 9a780bf420978b7caa84f2b478a945afbbc0caed | [] | no_license | SadboyCyber/darkfb | bf1473f046d7cba7c3222e19d9ef1ff81f2a947c | bde193e85b43adac4432b7ff8d63a96285c68cc4 | refs/heads/master | 2020-06-13T14:35:29.048427 | 2019-07-01T15:02:48 | 2019-07-01T15:02:48 | 194,688,613 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 93,447 | py | # -*- coding: utf-8 -*-
import os, sys, time, datetime, random, hashlib, re, threading, json, getpass, urllib, requests, mechanize
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
from mechanize import Browser
reload(sys)
sys.setdefaultencoding('utf8')
br = mechanize.Browser... | [
"noreply@github.com"
] | noreply@github.com |
676fa3cb7565381a95e4d28a1c19abc89c8bf72a | 58b9c6d3326c5bb12420ad34439a90f4f4ca13b2 | /python/extract_metrics.py | c389c3956a258708260035e4a2445c99d2cde150 | [] | no_license | iliawnek/ir4-ex2 | d24fb69c75271c6c496ca15e5a79f93c772211b0 | 8f66201e53f0db86bf0651d504ea2fd2c3e93926 | refs/heads/master | 2021-03-30T15:57:29.259077 | 2018-03-04T17:16:29 | 2018-03-04T17:16:29 | 123,592,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | # Extract per-query map and P_5 values into separate files.
files = ['te', 'te+amd', 'te+dap', 'te+dap+amd']
for file in files:
with open('%s.eval' % (file), 'r') as src, open('map_%s.txt' % (file), 'w') as dst:
for line in src.readlines():
split_line = line.split('\t')
measure_name ... | [
"iliawnek@gmail.com"
] | iliawnek@gmail.com |
35516086a8b7a42c700d5362f28c7c8f667958ec | f078a969c6c92dbd4644a55609c3969255de1c7a | /tests/data_structures/quantum_circuit/simplifier/gate_parameter.py | 47fbd47be64df4a9cd18bb07c21481afd827df4d | [
"BSD-3-Clause",
"CECILL-B",
"MIT",
"LicenseRef-scancode-cecill-b-en"
] | permissive | nelimee/qtoolkit | 2d2919a163677128acbfbd84b36bb61367732a6e | 1e99bd7d3a143a327c3bb92595ea88ec12dbdb89 | refs/heads/master | 2020-04-01T09:15:09.134161 | 2018-11-27T13:57:52 | 2018-11-27T13:57:52 | 153,067,146 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,942 | py | # ======================================================================
# Copyright CERFACS (October 2018)
# Contributor: Adrien Suau (adrien.suau@cerfacs.fr)
#
# This software is governed by the CeCILL-B license under French law and
# abiding by the rules of distribution of free software. You can use,
# modify an... | [
"adrien.suau@cerfacs.fr"
] | adrien.suau@cerfacs.fr |
5ddaff4d3f47ec52506877b069c768fa9de50663 | ad9163889eab1d01f2f661fff003f6426960d3fb | /todosubject/todo_board/models.py | 8170c2230687401527ccb6a90b518e40732b1218 | [] | no_license | seokjaehong/todosubject | a84cc107586664f9ec8b8544fbfa28ff68322a86 | 26e88506578b9781fa43ae4dea8f4ccc079e14d0 | refs/heads/master | 2021-09-24T19:16:26.395189 | 2020-03-12T11:17:52 | 2020-03-12T11:17:52 | 243,719,657 | 0 | 0 | null | 2021-09-22T18:40:48 | 2020-02-28T08:59:48 | JavaScript | UTF-8 | Python | false | false | 1,071 | py | from django.conf import settings
from django.db import models
# Create your models here.
# from user.models import User
# from ..user.models import User
# from todosubject.user.models import User
# from user.models import User
user = settings.AUTH_USER_MODEL
class ProjectCode(models.Model):
name = models.CharFi... | [
"hsj2334@algorithmlabs.co.kr"
] | hsj2334@algorithmlabs.co.kr |
b25810831d536e7ccb4b552582283ac75f6bdf07 | afe2c96924321c4c32cab9766e94c72d9b08a24f | /mod4_homework_1/data_client/local_data/FTPServer.py | e106822595804e338c35e09019637033b3c5335b | [] | no_license | ligggooo/luffycity_homework | 1cbcdbeb5aca0aad2d460d3e1b79f25798cd3bb5 | 33b3ccf2e3f7b5e5fded2654bb11fca27b6bf9d1 | refs/heads/master | 2020-04-04T09:32:34.903069 | 2019-01-07T13:45:12 | 2019-01-07T13:45:12 | 155,822,277 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,549 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@Author : Goodwillie
@Software: PyCharm
@File : FTPServer.py
@Time : 2018/12/9 10:49
@Desc : ftp server codes
'''
import hashlib
import socket
import struct
import json
import os
import time
from core.auth.auth_server import Heimdallr # the door-... | [
"ligggooowow@163.com"
] | ligggooowow@163.com |
36678e9ffcaa6862ab6d1a86c3294802fe005f96 | 1a1e4f0f525ebe080dcd74b7e5e8c33477eab6b8 | /backend/dating/api/v1/viewsets.py | 86fd6380f5c9628e9208d847b9a0a804ff8898db | [] | no_license | crowdbotics-apps/homedesign-20669 | 0b1e65aa4f169dd9f54cbbb9d6c4af38057b7efe | 0623f0d613cdc057079a799fccfe05db9c51ca73 | refs/heads/master | 2022-12-31T18:34:29.656171 | 2020-09-25T07:55:18 | 2020-09-25T07:55:18 | 298,505,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,095 | py | from rest_framework import authentication
from dating.models import Setting, Profile, Inbox, Dislike, Match, UserPhoto, Like
from .serializers import (
SettingSerializer,
ProfileSerializer,
InboxSerializer,
DislikeSerializer,
MatchSerializer,
UserPhotoSerializer,
LikeSerializer,
)
from rest_... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
22fe1c6c9542d55b10b106a0c300b99532e0f570 | eefa8aacfe381f8640505df00cf5c82113207e43 | /monitor/admin.py | 8fea922484e270e4fc89f519ab0bbc1991a64042 | [] | no_license | Tu-xin/linux-monitor | 01f66b869faeb887a8bbde71616c53f775a51272 | 0a1fce74944c579bb8dca66c5c0c5c7c541aa71a | refs/heads/master | 2020-03-07T21:13:22.920230 | 2018-05-04T04:19:00 | 2018-05-04T04:19:00 | 127,720,809 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from django.contrib import admin
from .models import monitors,Experience
class monitorAdmin(admin.ModelAdmin):
list_display = ('servername','item','value','serverip','time')
class ExperienceAdmin(admin.ModelAdmin):
list_display = ('title','author','timestamp')
admin.site.register(monitors,monitorAdmin)
a... | [
"974038517@qq.com"
] | 974038517@qq.com |
1040690fb608e21de73df4e7b1449b42848a9d64 | 2c12dbd152d3483f54bf8cb619d9dfc070c90612 | /utils/anchors.py | 1ff2968b3119f91b43ad9ff402e99965f993d603 | [] | no_license | simon108018/MobileNetV2-SSD | 3647ad0dba236e8f08aac3adbdc974959647f240 | 5d1ceec17db92647de771439c0deed3d88f36aef | refs/heads/main | 2023-02-01T03:24:25.897596 | 2020-12-18T07:44:55 | 2020-12-18T07:44:55 | 322,504,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,902 | py | import numpy as np
import pickle
import matplotlib.pyplot as plt
class PriorBox():
def __init__(self, img_size, min_size, max_size=None, aspect_ratios=None,
flip=True, variances=[0.1], clip=True, **kwargs):
self.waxis = 1
self.haxis = 0
self.img_size = img_size
i... | [
"noreply@github.com"
] | noreply@github.com |
d927f67f4ef95c3b1b9af40a2aae0a39ff4389c6 | f88ca4fb700b04d6bd94ae58054c5ac7a0298e5d | /Phase_with_enthalpy.py | f8b3b4e529d2183c39321a307a117a058e8bbc66 | [] | no_license | aqeelahmed168/Phase-change-with-enthalpy | 6886b63b203141ba9ffed781c5b2f1b5ad200a3a | 829d9daff0171fb133c4542c9538501292daada4 | refs/heads/master | 2020-04-20T14:13:57.490887 | 2018-07-11T13:04:18 | 2018-07-11T13:04:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,480 | py | #Importing the required libraries.
import fenics as fe
import matplotlib.pyplot as plt
import numpy as np
# # Energy Equation
# We need to solve the energy equation,
#
# 𝜌(𝜕𝑡ℎ+𝑢∙∇ℎ)=𝑘∆T.
#
# where 𝜌 = density
#
#... | [
"noreply@github.com"
] | noreply@github.com |
b5672b6644d3f9b924d68c39f805a0f714d220af | 86e0fb87d135a8ae214f89c099564d980e52040d | /TimeChange_R01.py | 6ca3da4250ccc9f906ce1734d5abe473e4f6fb2c | [] | no_license | enelius-github/USElect_Vs_Covid | eef85fdd22ded6b195ce59da6120733d031d3d71 | d6ca9902ee5dd4c75701608b5cb979946dabbd9c | refs/heads/main | 2023-05-04T16:13:51.513361 | 2021-05-29T05:10:02 | 2021-05-29T05:10:02 | 371,868,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,985 | py |
import pandas
import numpy as np
import matplotlib.pyplot as plt
Elec = pandas.read_csv('2016_US_County_Level_Presidential_Results.csv') # Found at: https://github.com/tonmcg/US_County_Level_Election_Results_08-16
Rona = pandas.read_csv('time_series_covid19_confirmed_US.csv') # Found at: https://github.com/CSSEGISa... | [
"enelius95@gmail.com"
] | enelius95@gmail.com |
19bb9d2eb1fd59d5f5aa8c40da2473f42aa6b9e3 | 6547458c4e635d73c6a4cc2680bedc6d850b4afa | /Scripts/resnetMod.py | a42e318f8e54bd86bba9f8c612a112937a92c4b4 | [] | no_license | RoboTuan/FPAR | 8e8f78cccc4d67bc9662a535724941c79e25b9c2 | 4d15e7b595aa43b0cd112bddef129dc18b1a26c5 | refs/heads/master | 2023-03-18T04:41:20.136642 | 2021-03-09T15:12:29 | 2021-03-09T15:12:29 | 261,726,922 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,039 | py | import torch.nn as nn
import math
import torch.utils.model_zoo as model_zoo
__all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101',
'resnet152']
model_urls = {
'resnet18': 'https://download.pytorch.org/models/resnet18-5c106cde.pth',
'resnet34': 'https://download.pytorch.org/models/r... | [
"testingapplication96.@gmail.com"
] | testingapplication96.@gmail.com |
b8bfa20c48a09ea631ae3599d378426deb6339e7 | a8722dd4b94bf68e130bc67b065776be028f0408 | /Application/constants.py | d00528f957dabf5eea9b135919c07c8165898d91 | [] | no_license | Nan0Scho1ar/JobBot | 516e274ee1bac88105e9300765f1e655c7134076 | 33955949d6ab79a8f178f2d0587d47347090bc6c | refs/heads/master | 2022-05-30T10:47:58.922710 | 2022-05-22T23:05:57 | 2022-05-22T23:05:57 | 434,419,436 | 0 | 0 | null | 2021-12-03T00:41:26 | 2021-12-03T00:41:25 | null | UTF-8 | Python | false | false | 1,775 | py | from Shared.helpers import Const
from enum import Enum
class ApplicationBuilderConstants(Const):
class TagBlurb(Const):
KEY_BLURBS = 'blurbs'
KEY_BLURB_TAGS = 'tags'
KEY_BLURB_LONG_TEXT = 'longText'
KEY_BLURB_SHORT_TEXT = 'shortText'
KEY_BLURB_SCORE = 'score'
TAG_S... | [
"arash.out@gmail.com"
] | arash.out@gmail.com |
5e70dd92d37b33cee451a79110869edc240504ee | 40b182f143fa034051fbfc80dc1bc77b204fdb89 | /fft_2d.py | 26fca42cbe8257f3a225e76e740aa65f3a6ab6f1 | [] | no_license | phaustin/fft_2d | 02ab6707cbbb1c3fcd836c4e9a6323b4439bed2a | a891669e2c70c70a87efa9b254e9103ec3d93af5 | refs/heads/master | 2016-09-06T10:51:35.568580 | 2014-02-11T06:52:04 | 2014-02-11T06:52:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | from __future__ import division
from netCDF4 import Dataset
import numpy as np
import math
from scipy import fftpack
from matplotlib import pyplot as plt
#plt.switch_backend('Agg') #batch
plt.switch_backend('MacOSX') #interactive
test=Dataset('a17.nc')
tau=test.variables['tau'][:2000,:2000]
nn = tau.shape[0] #... | [
"paustin@eos.ubc.ca"
] | paustin@eos.ubc.ca |
e5b3ea79e5902995e0db279583b7c31b714a036f | 97ae2695e2b60cc03883b7eb2ffbe7cfbb3371cb | /pages/base_page.py | 7c268de77466cb671943b0a215df6c2999a886ec | [] | no_license | AlexMakarenko/poster | f13d0fee46d894ec0a41f24405f00ee212502027 | 269b83aa30e5bd0dc177540d1e4cbfa45754fad3 | refs/heads/master | 2021-06-02T13:07:46.752275 | 2018-09-11T15:39:58 | 2018-09-11T15:39:58 | 147,691,522 | 0 | 0 | null | 2021-06-01T22:34:06 | 2018-09-06T15:05:01 | Python | UTF-8 | Python | false | false | 421 | py | from elementium.drivers.se import SeElements
from selenium.webdriver.support.ui import WebDriverWait
from config import log
class BasePage:
def __init__(self, driver):
self.driver = driver
self.se = SeElements(browser=self.driver)
self.wait = WebDriverWait(self.driver, 5)
def open_pag... | [
"makarenko.cr@gmail.com"
] | makarenko.cr@gmail.com |
5a218c58e18e2315f06c2ba24c1e494c74de5f76 | b4886986e51e280db6259236eb77e79790cb846f | /fashion_mnist/code/config_parser.py | c9df78822c0c4a05de01b48a3d158b53b5e4edca | [] | no_license | Noploop/HMR | 7a9781d2c30af089703e995909525839d7843e56 | bed4d9cb8dcaa2eb46cefc2bb5031a025e7a2c48 | refs/heads/master | 2022-03-28T21:59:12.548410 | 2020-01-15T04:16:43 | 2020-01-15T04:16:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,471 | py | import ast
import os
def parse_config(config_filename):
config = {}
file_content = {}
with open(config_filename) as f:
for line in f:
line = line.strip()
line = line.replace(' ', '')
idx = line.find(':')
file_content[line[:idx]] = line[idx + 1:]
... | [
"yuriwxz@gmail.com"
] | yuriwxz@gmail.com |
11520b9bd2e7f1c265961393aa9320f1abd2146f | 4822668cd13da3fa30a5ef354d4a207f8dd387db | /m3_dev/nwm_station_db/lib/nwm_da_sqlite_db.py | 801feb5f5498527bcd5226202956413db035efe1 | [] | no_license | WanruWu-NOAA/nwm_da | 6ace401cbe5c305d15abac9a47f245b404026fb1 | aa6456bc4f61f9824191f25e6f068727cf662f0c | refs/heads/master | 2023-02-02T10:13:06.647849 | 2020-08-27T16:09:45 | 2020-08-27T16:09:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,274 | py | import os
import sys
import re
import glob
import datetime as dt
sys.path.append(os.path.join(os.path.dirname(__file__),
'..', '..', '..','lib'))
import nwm_da_time as ndt
def attach_databases(conn,
forcing_single_db,
land_single_db):
'''
... | [
"Gregory.Fall@noaa.gov"
] | Gregory.Fall@noaa.gov |
48837d221bf8a8197b544bccf238c4d81d81d16a | 808ddf66080672836806de751da4cb2a6bdd6c32 | /DataScienceVickyJeptoo/lesson2.py | f09ea1561429b846480ef8c27579fa0197eaefd1 | [] | no_license | vickyjeptoo/DS2 | 319dc1dd5fec55ab48cd492f76f0c9f164c8a3d3 | bf6aae2b40d7c309904e8b24f7da39d304853824 | refs/heads/master | 2020-08-29T10:46:31.623214 | 2019-11-21T10:17:00 | 2019-11-21T10:17:00 | 218,009,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,742 | py | import pandas
import matplotlib
df = pandas.read_csv('school.csv')
print(df)
print(df.isnull().sum())
import matplotlib.pyplot as plt
#piechart for rank
df['Rank'].fillna(0,inplace=True)
df['Rank'].replace({1:'Freshman',2:'Sophomore',3:'Junior',4:'Senior',0:'Unknown Rank'},inplace=True)
fig,ax=plt.subplots()
df.groupb... | [
"noreply@github.com"
] | noreply@github.com |
b8de800954686a574f3c3ce972292fbb2e91812e | f2747140f003c95991b256ede06ead92df508f78 | /applicationRouting/settings.py | bb8282b8a46021fb10d9d0a3fa819f2c8df9fe41 | [] | no_license | naman342/gymkhana-app | 133b15a9b3c915613f4d88f2c11ebbdeef23e3c7 | 751658863f71f40afc1e286a1abaebe0044c6f3e | refs/heads/master | 2021-08-18T18:45:47.892898 | 2017-11-23T14:48:44 | 2017-11-23T14:48:44 | 111,799,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,217 | py | """
Django settings for applicationRouting project.
Generated by 'django-admin startproject' using Django 1.10.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""... | [
"narayannamish16@gmail.com"
] | narayannamish16@gmail.com |
1c857f1653261cb7ab214242068db49ef0bc160e | cc94d2707e52b1aca03c482140f8a1dcd2b871d1 | /app/data.py | 40d7d85a776329669fa8eda9b9f27dad7689d673 | [] | no_license | Pektech/quiz_2 | 5417b212708e7113e22df387d9840c2bff71a46f | 026b57830f93302c18f663b46017043eb0734333 | refs/heads/master | 2022-12-13T01:08:22.148941 | 2018-11-09T04:23:34 | 2018-11-09T04:23:34 | 155,483,637 | 0 | 0 | null | 2021-06-01T22:51:54 | 2018-10-31T02:03:05 | Python | UTF-8 | Python | false | false | 6,878 | py | def parse_questions(text):
new_text = text.replace(':"hard","question":', "")
new_text2 = new_text.replace(',"correct_answer":', ":[")
new_txt3 = new_text2.replace('"incorrect_answers":[', "")
return new_txt3
data = {
"QUESTIONS": [
{
"Talos, the mythical giant bronze man, was ... | [
"14008446+Pektech@users.noreply.github.com"
] | 14008446+Pektech@users.noreply.github.com |
b3b4f29f3d090c7c15bda01298b2f5944dbfeb4e | 01c1ee55ff35e77cc6f0b69581d4f4b7a5d22746 | /bot.py | 5c4a56992d30cd5ed942201d814111af93f45f8f | [] | no_license | frutitutitut/bot1 | ff6c670f9bac3e259b8517eb90f7f1c411830153 | 8ed4da179ddc6f298d684f0fa5af8bf7af3cf9b2 | refs/heads/master | 2022-11-28T22:51:03.280868 | 2020-08-08T07:15:06 | 2020-08-08T07:15:06 | 285,993,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,974 | py | from plug.base64 import encoder, decoder
from config import bot, chat_id, user_id
from plug.web import webcheck, findip, scan
from plug.start import start, help, send_text
from plug.animals import cats, get_dogurl, dogs
from plug.chat import get_id, private_bot, id_chat
from plug.rate import eurorub, dollrub, btc... | [
"dymokks.kote@gmail.com"
] | dymokks.kote@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.