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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d443767901ae0397302c5d783a2ee3b265d80304 | 0f0e724b73f1998bac96bea2c581271388192a2a | /Data_Analyst_basics/test.py | 053d6897f7e065c0d6c9013cc6777830d2fdf503 | [] | no_license | hkmangla/Data-Analyst-Nanodegree | 572dad5e1493e0e50edb6e0f9fd6a02c0b78dbba | 04f17a19c7005f0cc59fb5cae92ae1b585faa72e | refs/heads/master | 2020-12-24T20:14:52.906927 | 2016-09-30T18:06:55 | 2016-09-30T18:06:55 | 58,628,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,687 | py | import unicodecsv
from datetime import datetime as dt
from collections import defaultdict
import numpy as np
with open('enrollments.csv', 'rb') as f:
reader = unicodecsv.DictReader(f)
enrollments = list(reader)
with open('daily_engagement.csv', 'rb') as f:
reader = unicodecsv.DictReader(f)
daily_engag... | [
"hemantmangla78@gmail.com"
] | hemantmangla78@gmail.com |
2d2c98d834f20d62c65fc0e05d928154cccd5843 | 0fdb38aee19ca7075af7fdc881234712fdfc50d4 | /myMatplotlib_dataLabelInsidePieChart.py | 7dcd1c3d04319ee7bee342c1b8c204d0ef211343 | [] | no_license | jrahman1988/PythonSandbox | 3798e7a6fd213c0423da5ca61440caecb8021dd6 | 70c8a2eca50393c9219828049f48102cc7dd1b35 | refs/heads/master | 2023-04-10T21:02:59.608414 | 2021-04-21T06:11:55 | 2021-04-21T06:11:55 | 247,202,348 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | '''
Using Matplotlib module of Python, draw a scatter plot
'''
# Import libraries
import numpy as np
import matplotlib.pyplot as plt
# Creating dataset
cars = ['AUDI', 'BMW', 'FORD',
'TESLA', 'JAGUAR', 'MERCEDES']
data = [23, 17, 35, 29, 12, 41]
# Creating explode data
explode = (0.1, 0.0, 0.2, 0.3, 0.0, 0.0)
... | [
"jamilur_rahman@yahoo.com"
] | jamilur_rahman@yahoo.com |
83622cad6e919ac9bd61c4be424b88df3b873a66 | 658e16b3004ebae7520b1780a9b9c61f7b1a3b0c | /Scripts/tests/test_custom_loss_in_rl.py | f9a203329e5c95ff728580457d09926637cf0dba | [] | no_license | flyinskybtx/CNP-BC | 8298ae912520ebbac0d317d9d9781e48cb79df8b | 0219121f914d00108362459432a83d156e8ccdb2 | refs/heads/master | 2023-06-09T04:47:22.937304 | 2023-05-26T10:05:15 | 2023-05-26T10:05:15 | 289,280,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | import random
import string
import numpy as np
import ray
from ray.rllib import rollout
from ray.rllib.agents import pg
from ray.rllib.models import ModelCatalog
from ray.tune import register_env
from tqdm import tqdm
from Envs.custom_cartpole_v1 import CustomCartPole
from Models.policy_model import PolicyFCModel
if... | [
"flyinskybtx@sina.com"
] | flyinskybtx@sina.com |
3a986721bc36d1ad9af86b993cfa8c6f23662c94 | 3839caecee5d5e237055b9968598a58dc1007885 | /user/urls.py | eb6f4f2b815f21c06cb9aaf8ff832249fdbc7af6 | [] | no_license | hwangseonu/Yazamoon | 64869878e32a9366782c0f080c49e2f320720fb3 | 3defce29ff4ce09f3aae592c2d72afc6858172cc | refs/heads/master | 2021-06-12T00:32:14.042680 | 2021-05-09T11:08:52 | 2021-05-09T11:08:52 | 134,995,863 | 0 | 0 | null | 2021-05-09T11:08:53 | 2018-05-26T21:29:29 | Python | UTF-8 | Python | false | false | 245 | py | from django.urls import path
from .views import *
urlpatterns = [
path('login', LoginView.as_view(), name='login'),
path('logout', LogoutView.as_view(), name='logout'),
path('register', RegisterView.as_view(), name='register'),
]
| [
"hwangseonu12@naver.com"
] | hwangseonu12@naver.com |
27fa882eea596627bf8a09a59032bd37ff44641b | 1a64bbc7079bf2a916219821ddd8167e7fbeb37c | /nets/hourglass_segm.py | b47f8befd82aabf68b04872c493a848949458adb | [] | no_license | shuaiqi361/PointCenterNet_project | 697da0dfc60046e4a0331e45a37cfb64fa7d17c1 | 16aa6a9aaaf94b5f4ca3073ff7646004d57ec64c | refs/heads/master | 2023-03-04T21:27:37.087211 | 2021-02-18T22:42:58 | 2021-02-18T22:42:58 | 292,664,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,024 | py | import numpy as np
import torch
import torch.nn as nn
class convolution(nn.Module):
def __init__(self, k, inp_dim, out_dim, stride=1, with_bn=True):
super(convolution, self).__init__()
pad = (k - 1) // 2
self.conv = nn.Conv2d(inp_dim, out_dim, (k, k), padding=(pad, pad), stride=(stride, st... | [
"liukeyi1993@gmail.com"
] | liukeyi1993@gmail.com |
e34bfa5f3d2bc242c5e1c36d1f5abb5517de2055 | 29e881915cb0132035e223dd2b97e0cbf44c2d12 | /alluvian/commands/wizard/users.py | c076295c3b637b748c6e12830c8eb493e410d2d3 | [
"MIT"
] | permissive | wrparker/alluvian-engine | 37701d542e4485131fd178ded281c2af44f2b264 | 70a6227af3e977ecda2fc4a1752dd4703f206778 | refs/heads/master | 2023-06-21T22:56:11.323860 | 2020-09-20T21:45:57 | 2020-09-20T21:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | from alluvian.commands.mud_command import MudCommand
import alluvian.globals as globs
from players.level import Level
from beautifultable import BeautifulTable
class Users(MudCommand):
key = 'users'
aliases = []
level = Level.IMPL
def execute(self):
table = BeautifulTable()
... | [
"rparker@indeed.com"
] | rparker@indeed.com |
ec51d97b1126b9b3ccbac302459e3ba7f14b9559 | bb4f8edd2eb8bb12fc303ff9bacb31b62a312466 | /firstnumber.py | 5f7941b99470b9ee116c97ca5acea6353f6fca90 | [] | no_license | maninsa/Coursera_basics | 99fcb813209a661e08a83ded33824928c5de12d8 | 0dce72e5f80cebc9c26dee58d285b77a4fba2ef3 | refs/heads/main | 2023-03-27T21:17:14.448451 | 2021-03-30T11:23:34 | 2021-03-30T11:23:34 | 352,972,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | #!/bin/python3.9
# Вывести первое число в строке
user_input = int(input('введите число: '))
a = user_input
print(a // 10) | [
"noreply@github.com"
] | maninsa.noreply@github.com |
6e0c4ad69b4b49971c03a2c5351156bcf88a2bb4 | f9fee177fcc9c512550bb5216b4c227a8509518f | /Additional Linear Referencing Tools.pyt | ebc7a5dbd34a897fd89ede9f881de9133b919159 | [
"Apache-2.0"
] | permissive | M-Bryant/arcgis-additional-linear-referencing-toolbox | a45d6ace2e2bd5c619ad9f29f0d5c00db1ca29b2 | 12d1129b9adde506ecd9f50c81e486d4ebb506cf | refs/heads/master | 2020-12-24T10:32:50.478404 | 2019-12-17T03:53:45 | 2019-12-17T03:53:45 | 73,145,171 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,617 | pyt | """
The Additional Linear Referencing Tools provides a collection of geoprocessing tools
for working with linear referencing systems.
The toolbox is conveniently organized into
toolsets which define the general sequence of tasks accomplished by
the tools.
More information about linear referencing systems is available... | [
"Mark.Bryant@aecom.com"
] | Mark.Bryant@aecom.com |
90a04cffae6636dbc36a4055192bd72cc9f358fc | bfd33836d69dd05d6e7720216cef6d341c35147b | /User/TDat/fruitandgreen_project.py | a2e78d191c64653e701c1fe60dc0e25dafb17e89 | [] | no_license | ducdan/PYTHON-COURSE | 5371b65685769e88c2e14a38b9c86a2bdfc82b79 | cc5a26d0d8124087f711ee0ca354065df6ea4fcf | refs/heads/master | 2020-05-25T15:00:00.465760 | 2017-06-15T11:49:54 | 2017-06-15T11:49:54 | 84,941,845 | 1 | 2 | null | 2017-06-15T11:44:32 | 2017-03-14T11:34:28 | HTML | UTF-8 | Python | false | false | 1,918 | py | from flask import Flask,render_template,request,send_file
from DataModel import KHO, XNK
app = Flask(__name__,static_folder='vendors')
@app.route('/')
def hello_world():
return render_template('index.html')
@app.route('/xemct')
def xemct():
return render_template('XemCT.html')
@app.route('/xemhangton')
def ... | [
"why.not.me.20131995@gmail.com"
] | why.not.me.20131995@gmail.com |
56efa079b2691582bee503f93198d1e99ed01d56 | 48cd431063b33f430251275a51307987ce2dae78 | /JewelryBox.py | ccd580cbdad58c2b0acc563ee1c1f8a6bf08c833 | [] | no_license | edwardsong05/competitive-programming | 005168a946f4af6bdd53671aab3ea00ffe401796 | 68bc9e38351c1c9c333d25e2cb1322c856d9bb0a | refs/heads/master | 2020-04-06T20:35:21.247329 | 2019-09-19T20:25:22 | 2019-09-19T20:25:22 | 157,776,988 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | # problem on kattis
# https://open.kattis.com/problems/jewelrybox
# ternary search
def volume(x, y, h):
return (x-2*h)*(y-2*h)*h
T = int(input())
for i in range(T):
x, y = [int(i) for i in input().split()]
left = 0
right = min([x, y]) / 2
while right-left > 10**-6:
m... | [
"noreply@github.com"
] | edwardsong05.noreply@github.com |
cf3dc94deb898b3147c1d529a1fbf335561c2e0b | 639d6a00e3a8fab07ce07fec408eef6bc050d21d | /indice_pollution/db.py | 8c93d5b392a7f26b2474e3b88b9e22891432315d | [
"MIT"
] | permissive | betagouv/indice_pollution | e04634e0b9c6d4ce24ffdc4c19868599995c1bd5 | b85e53ca22d420e3d685fc84843d2011c6a696e4 | refs/heads/master | 2023-02-10T20:25:13.321999 | 2023-02-06T10:57:09 | 2023-02-06T10:57:09 | 250,297,957 | 4 | 1 | MIT | 2023-01-25T09:25:45 | 2020-03-26T15:33:02 | Python | UTF-8 | Python | false | false | 218 | py | from sqlalchemy import MetaData
from sqlalchemy.orm import declarative_base
global engine, Session
metadata = MetaData(schema="indice_schema")
Base = declarative_base(metadata=metadata)
engine = None
session = None | [
"lara.vincent@gmail.com"
] | lara.vincent@gmail.com |
ac82366a01d98b48b370d69f835e2fbf03cad04d | 43efe19d743e16236cdb29a78cf70b0990facdd8 | /Lxf/06模块/test22/hello.py | 32f4375b3beda022eda364f83bc2272aaf988726 | [] | no_license | qiongloo/python-learning | 17ecb71106f9c770b29920bbad65c504225949e5 | 03d0f635b2bf8038ecfd8f5064a51ade794a528b | refs/heads/master | 2021-05-09T09:49:57.499089 | 2019-08-12T02:29:57 | 2019-08-12T02:29:57 | 119,462,064 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
' a test22 module '
__author__ = 'Billy Yang'
import sys
def test():
args = sys.argv
if len(args)==1:
print('Hello, world!')
elif len(args)==2:
print('Hello, %s!' % args[1])
else:
print('Too many arguments!')
if __name__=='__main... | [
"e@qiongloo.com"
] | e@qiongloo.com |
72b698651d6f869623903874a9cb46cd307ac5e2 | 05218d01394294bb7ede726bf3dc6f0691e4299b | /machineLearning/mini_Project/mini_project_0401.py | 21e36071cf323a4a3e1726e08d32fe4925ed6a43 | [] | no_license | bitacademy-howl/anaconda_workspace | 156556c52342b461ffb8304dfb55a845fff5ae90 | d9dc5007b6e95fa0bf7b95a457cafe68a0167992 | refs/heads/master | 2020-03-23T12:10:14.872385 | 2018-08-10T10:04:55 | 2018-08-10T10:04:55 | 141,539,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,058 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
from sklearn.datasets import load_boston
import os
# sklearn 에서 제공하는 학습용 데이터셋
data = load_boston()
print('======================================... | [
"howl1118@gmail.com"
] | howl1118@gmail.com |
3b8afbc42efa361f2ca62cc337f001e390465515 | a64dd26503e8d8a878d021e308e79230344145b5 | /2016/day_1/1-1.py | 451366a024963350de72331833a0f8bebf9c31d3 | [
"MIT"
] | permissive | zigapk/adventofcode | 4a93602afd8f4aeae942a6a42dec4facf4231970 | 693b03014ae1dc6c303e717b3d7e9b7658d6211b | refs/heads/master | 2021-05-08T09:51:11.888319 | 2020-12-25T11:45:26 | 2020-12-25T11:45:26 | 76,105,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | asdf = input().split(", ")
smeri = [(1,0),(0,1),(-1,0),(0,-1)]
smer = 0
gor = 0
desno = 0
for item in asdf:
if item[0] == "R": smer = (smer + 1) % 4
else: smer = (smer - 1) % 4
gor += int(item[1:])*smeri[smer][0]
desno += int(item[1:])*smeri[smer][1]
print(abs(gor)+abs(desno))
| [
"ziga.patacko@protonmail.com"
] | ziga.patacko@protonmail.com |
fbeb57daaa30b0d192be33757876869f9e7acc75 | 156c486bc35b95162b73b0ce4e7a6dd9bca95302 | /retval.py | 8af9acd28841f848a53365755960a7b521357562 | [] | no_license | fangjian601/Loterry | 98188e6d8c71f75f53163f7b37e34e70666b9684 | 1448a8786c9f2b7e84a2f4b8091dba7c24f882b4 | refs/heads/master | 2016-09-15T17:51:16.501974 | 2012-01-13T03:55:40 | 2012-01-13T03:55:40 | 3,161,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py | import json
import logging
import traceback
logger = logging.getLogger("lottery")
def return_value(**kwargs):
global logger
try:
result = {}
if 'status' in kwargs:
result['status'] = kwargs['status']
else:
result['status'] = -1
if... | [
"superman601@126.com"
] | superman601@126.com |
103462c39288b8fcdbe883ec1b1cccea5ab73dd5 | 277c29b460cef26db7d43fb80d10667f5fa321f6 | /SIR_extended/init_spec_beta_gamma.py | aec3e23832a44abf6387b5b566cf86dea5f6677a | [] | no_license | zuzancek/corona | 75e0bd3678f1a01ec0109338067649abf1292bbe | da15613e231d4d61a0a6bb739b59454a65c0c36f | refs/heads/master | 2021-07-16T14:56:27.052410 | 2021-05-24T21:34:08 | 2021-05-24T21:34:08 | 248,943,879 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,735 | py | import sys
import numpy as np
from tqdm import tqdm_notebook
import pickle
import pandas as pd
import plotly
import plotly.graph_objects as go
import matplotlib.pyplot as plt
import seaborn as sns
import time
import os
import init_common as x
import helpers as hp
from random import sample
from sklearn.utils import shuf... | [
"zuzana.mucka@gmail.com"
] | zuzana.mucka@gmail.com |
dac61de3894ea89b441f9876d43b4e8b8e7aabcc | a7587f813492163433202e244df2237c9993a1a1 | /Store/migrations/0003_variation.py | 192756496452ac5feb5ca11e93277167f0ed89b4 | [] | no_license | kamran1231/E-COM-WEBSITE-2021 | 3a10bc0059f4d29fc52ee029e4919d4f965174c6 | 32214468cf716cc312a63f6346b8c844f720abda | refs/heads/master | 2023-06-01T03:18:03.137405 | 2021-07-04T14:20:16 | 2021-07-04T14:20:16 | 381,634,544 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | # Generated by Django 3.2.4 on 2021-07-02 18:42
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Store', '0002_alter_product_price'),
]
operations = [
migrations.CreateModel(
name='Variation',... | [
"khanbrother805@gmail.com"
] | khanbrother805@gmail.com |
8fd88234986d81619c8a63de0ed1e13a8316b84d | 9f1b345bb1852b00bba93ce3ab0b6d59973d2d97 | /FTP_Project/tcp_client.py | 90be2ccf6a202d17d138ec3958ed368358538609 | [] | no_license | chidalgo001/FTP-Client-Server | 2de8874581bc84b220f1562d417eaba38691cd08 | d721f947cd7c9d673984cf3971a95dd983428663 | refs/heads/master | 2020-12-30T16:27:34.005859 | 2017-05-11T14:03:30 | 2017-05-11T14:03:30 | 90,985,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,787 | py | from socket import*
import os , sys
dir = os.getcwd()
HOME = dir #--- will hold the dir for the root of the program
ROOT = dir + "/ftpclient/ftproot/" #--- will hold the dir for the root of the ftpclient folder
RECV_BUFFER = 1024
PORT = 2039
next_data_port = 1
DATA_PORT_MIN =... | [
"noreply@github.com"
] | chidalgo001.noreply@github.com |
826ff29b8209c97f97229d3a9b5855b40d325524 | 1a166165ab8287d01cbb377a13efdb5eff5dfef0 | /sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_generated/_azure_data_lake_storage_restapi.py | efb21f39026ffdd1e919cf6d1b8d713df2b94c91 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | manoj0806/azure-sdk-for-python | 7a14b202ff80f528abd068bf50334e91001a9686 | aab999792db1132232b2f297c76800590a901142 | refs/heads/master | 2023-04-19T16:11:31.984930 | 2021-04-29T23:19:49 | 2021-04-29T23:19:49 | 363,025,016 | 1 | 0 | MIT | 2021-04-30T04:23:35 | 2021-04-30T04:23:35 | null | UTF-8 | Python | false | false | 2,804 | 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"
] | manoj0806.noreply@github.com |
16f3dbf02322671414bc23c389a471151a3fcd0c | 0ef8742a124fd89e3b2a650d7f3667ba4ad5ad54 | /Sudoku/solution.py | 2cb82178bd9d6e5f2b7b891f036f3a332024bd96 | [] | no_license | letyrodridc/Artificial-Intelligence-Udacity | 13d286566f2c3cb90320181925ea6c638d71dfdd | 3ea3c3714c6c85af1e0d6587c81644ef35d1c25d | refs/heads/master | 2021-05-05T12:14:34.727082 | 2018-10-27T18:11:36 | 2018-10-27T18:11:36 | 118,210,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,842 | py | '''
Udacity AIND
Project 1: Solve a Sudoku with AI
by Leticia Rodriguez
'''
from utils import *
assignments = []
#UDACITY
def assign_value(values, box, value):
"""
Assigns a value to a given box. If it updates the board record it.
Args:
values(dict): a dictionary of the form {'box_nam... | [
"lrodrig@dc.uba.ar"
] | lrodrig@dc.uba.ar |
49ba31cebb80516a9e15a3a44e6dbb8bf93243a8 | 36d52637d0947472a87d6f9cb5ab9eb346f61878 | /venv/bin/django-admin.py | 6093234e2abfa316be14a2878aecd1137d1c757b | [] | no_license | diogoandrade1999/RestApiTPW | c8c14a4a2e1d442ef90867ccd304431a40226c3f | 9af7ee8d3b712253f6f958474333d151d81acfe5 | refs/heads/master | 2022-03-29T19:49:45.479582 | 2019-12-18T15:13:24 | 2019-12-18T15:13:24 | 228,865,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | #!/home/diogo/Desktop/RestApiTPW/venv/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"diogo.andrade@ua.pt"
] | diogo.andrade@ua.pt |
f742ee9c9d8e6f83bc86b8c21e11b729a4f4d129 | 6614bf94d54cf04aa4291b87123a180578d510f3 | /setup.py | e5d214d55ab05ad82477ab4630963aa1dc1770c4 | [] | no_license | kemey188/rugis | 0396df70fc1f86598a2dbb2704a76078c5b030af | da0b399a2dfeb90e1adc5acfd13fe3d81ef8e930 | refs/heads/master | 2018-09-25T05:34:17.795976 | 2018-07-18T02:57:41 | 2018-07-18T02:57:41 | 115,926,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | #!/usr/bin/env python
import os
import sys
from distutils.core import setup, Extension
os_macro = 'OS_MACOSX' if sys.platform == 'darwin' else 'OS_LINUX'
extension = Extension(
name='rugis',
sources=[
"gpsconv.cc",
"s2helper.cc",
"radar.cc",
"geo.cc",
"rugis_python.cc"... | [
"noreply@github.com"
] | kemey188.noreply@github.com |
a6743e5addcd58b500f621ff320a3c06ab63208f | a12155840b0f5b9c31d32353e9e5c28cf7cee161 | /app/core/models.py | 6f9a2f5f9e78afa49e3e91bac0d73d9e7d7eb24a | [
"MIT"
] | permissive | obuqwe/recipe_app_api | fa152a9815d50ba9d7561b64253767b61ed4035c | d3424eb171f7dc77c7d6a42afb93f8368e9dc65e | refs/heads/master | 2020-05-09T21:53:36.501530 | 2019-05-07T15:41:15 | 2019-05-07T15:41:15 | 181,451,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | from django.db import models
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, \
PermissionsMixin
class UserManager(BaseUserManager):
def create_user(self, email, password=None, **extra_fields):
if not email:
raise ValueError('Us... | [
"mesisleo10@gmail.com"
] | mesisleo10@gmail.com |
f3a7f50f45d24de61d099e04f9c4ddfff584b706 | 068780d1035b349d846c81ed06d3f867368458a5 | /myvariant/src/biothings/utils/dataload.py | 8817330ca501c5458c3457db724d2fead6f4a530 | [] | no_license | cyrus0824/myvariant.info_new | 123ac84b29e505a7c72c28ae6501afdbff392b55 | 45b52891da35d68fd3570aef6a5e1f20ddc9c1ad | refs/heads/master | 2021-01-10T12:44:59.943184 | 2016-01-26T19:55:55 | 2016-01-26T19:55:55 | 48,048,980 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,443 | py | from __future__ import print_function
#from __future__ import unicode_literals
import itertools
import csv
from utils.common import open_anyfile, is_str
"""
Utility functions for parsing flatfiles,
mapping to JSON, cleaning.
"""
# remove keys whos values are ".", "-", "", "NA", "none", " "
# and remove empty dictiona... | [
"cyrus.afrasiabi@gmail.com"
] | cyrus.afrasiabi@gmail.com |
df9d5faf1848f56880a1bdaf4ed992a0c0b9543e | 6aff8daa41526a8430267b1aecdfe0741b3115ac | /2-ModelComplexByArenaDispatcher/dispatcher/tests/api_samples.py | 1b33c0e4678802fbcfe0626e6d956f02bcc2a632 | [] | no_license | LAD-PUCRS/Arena_SARS-BCG | 91a299365fdacdb3d0d8785b7ecbfebb0b138618 | 5fda0ef67608cc462dd1acda375f112dc472b04b | refs/heads/main | 2023-07-19T11:59:11.561216 | 2021-08-24T23:06:50 | 2021-08-24T23:06:50 | 397,739,185 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,936 | py | import docker
import os
import time
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
# print("Reminder: Disabled Warnings")
# https://docs.docker.com/engine/api/sdk/examples/
# https://docker-py.readthedocs.io/en/stable/
# Instantiate a connection
# timeout (int) – Default timeout ... | [
"rafael.belle@pucrs.br"
] | rafael.belle@pucrs.br |
9c4556f4339c51fcec4b3a12839e0de40db73964 | 8c8149fd09091368eadb83ffbf68f9236a5bc654 | /wedding-gallery/app/main/__init__.py | 3fd2c5175f68d03bca9617a74f91fb7f2c3bb141 | [] | no_license | supwr/anchor-loans-test-api | 8fd1bb62cd20c8b1fbd105f45665f18949e636c7 | 1123d807b2ce260f522d99858cd4574ebe0d75e1 | refs/heads/master | 2020-05-18T16:47:16.185612 | 2019-05-02T07:42:35 | 2019-05-02T07:42:35 | 184,535,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | from flask import Flask, request, send_from_directory, render_template, abort
import json
from bson import json_util
from main.controller.users_controller import users
from main.controller.gallery_controller import gallery
from flask_jwt_extended import JWTManager
from main.database import mongo
import os
app = Flask... | [
"marcelo.rodriguespires@gmail.com"
] | marcelo.rodriguespires@gmail.com |
3e3c445e3345d5edfc6acb24ebfa57aaa2674a73 | a684cabb6db764055494e744752599c2d978f26b | /Lista 2/1j.py | b969a87cc78888a12e027889c8eacb938bf949d0 | [] | no_license | jarelio/FUP | c603c2264d160aca2a2e8a6dc7ba3af2baf6c04c | 78555fe49e9046937483f7e4fcc6f1f135746d50 | refs/heads/master | 2020-04-17T04:53:04.097058 | 2019-01-17T18:06:38 | 2019-01-17T18:06:38 | 166,250,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | numero = float(input("Digite um número: "))
if (numero%3==0):
print("Este número é múltiplo de 3")
else:
print("Este número não é múltiplo de 3 ") | [
"jareliofilho@gmail.com"
] | jareliofilho@gmail.com |
0599e1b5865e8d9987e0659e9e04bf93f58d70be | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/cloud/bigquery/v2/bigquery-v2-py/google/cloud/bigquery_v2/services/model_service/async_client.py | f663b4845089503f56d9cf414847565501df681b | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,963 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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 applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
88feb48981edab108611ba7b542047e3caf87f8d | ef5fde794c8bc24056f5b40579d840efa0693571 | /ex9.py | 1024755513c0a4272cd67a31c5a78c34aaa5067a | [] | no_license | chongduoduo/pythonbasic | 11d7d348fb5fa22a636dc34af9d3bb7f9898ce9f | fb39d0d332dd0f75301604358c2c11addeb0ecf5 | refs/heads/master | 2021-01-12T17:22:23.288132 | 2016-12-21T09:35:24 | 2016-12-21T09:35:24 | 71,550,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # Here's some new strange stuff, remember type it exactly.
days = "Mon Tue Wed Thu Fri Sat Sun"
months = "Jan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug"
print "Here are they days: ", days
print "Here are the months: ", months
print """
There's something going on here.
With the three double-quotes.
We'll be able... | [
"mancao@186LMANCAO.ad.here.com"
] | mancao@186LMANCAO.ad.here.com |
134635314de03d47eab274af2e570ea7234fd720 | 0b1df575fcddee7abbce853bf2f38466cc0ced10 | /Python/01_introduction/04_arithmetic_operators.py | 0a4a2291db616ead79d264439a1a474a16d7e9bd | [
"Apache-2.0"
] | permissive | droideck/hacker_rank | b85bf31abaafc67eb877e7a37384c436fe71432d | 6f150ede01de07968b26a4bf89cec15fa39bcf9b | refs/heads/master | 2021-01-18T22:19:30.711457 | 2016-11-17T10:05:34 | 2016-11-17T10:05:34 | 72,424,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | #!/bin/python3
a = int(input())
b = int(input())
if (a >= 1) and (a <= 10**10) and \
(b >= 1) and (b <= 10**10):
print(str(a + b))
print(str(a - b))
print(str(a * b))
| [
"simon.pichugin@gmail.com"
] | simon.pichugin@gmail.com |
06eb118e8879ca755ff7c592ecfb8c07b1333b91 | 553b34a101c54090e68f540d96369ac7d5774d95 | /python/algo/src/minimum_cut.py | bf33b42a8714492e38de25c04a941877eafc0264 | [
"MIT"
] | permissive | topliceanu/learn | fd124e1885b5c0bfea8587510b5eab79da629099 | 1c5b1433c3d6bfd834df35dee08607fcbdd9f4e3 | refs/heads/master | 2022-07-16T19:50:40.939933 | 2022-06-12T15:40:20 | 2022-06-12T15:40:20 | 21,684,180 | 26 | 12 | MIT | 2020-03-26T20:51:35 | 2014-07-10T07:22:17 | JavaScript | UTF-8 | Python | false | false | 2,668 | py | # -*- coding: utf-8 -*-
import random
from src.maximum_flow import ford_fulkerson_maximum_flow
def pick_random_edge(graph):
""" Returns a random edge from the given graph. """
edges = graph.get_edges()
return random.choice(edges)
def contract(graph, edge):
""" Composes a new vertex from the ends of... | [
"alexandru.topliceanu@gmail.com"
] | alexandru.topliceanu@gmail.com |
cf9c97731069aeb242a91dad70d726c9a8f4caba | e407cd1e873ef1a626a592ac22901a300f5be8f4 | /.pycharm_helpers/python_stubs/-1840357896/_operator.py | 6fba24788ffd6ca8c444f37cd0c640922bb2343e | [] | no_license | rpesce/oktetoProject | 65f77cfd2d92e6372f32e6e3dbfb8ce038d1b45d | 7dbddf3d85b040755b15f4e647894353d4e5a3c5 | refs/heads/master | 2023-03-31T12:03:49.419915 | 2020-05-13T19:37:49 | 2020-05-13T19:37:49 | 263,726,526 | 0 | 0 | null | 2021-03-20T03:57:35 | 2020-05-13T19:38:54 | Python | UTF-8 | Python | false | false | 12,775 | py | # encoding: utf-8
# module _operator
# from (built-in)
# by generator 1.147
"""
Operator interface.
This module exports a set of functions implemented in C corresponding
to the intrinsic operators of Python. For example, operator.add(x, y)
is equivalent to the expression x+y. The function names are those
used for sp... | [
"robertopescee@hotmail.com"
] | robertopescee@hotmail.com |
fbea031940ce24c438b127acbfb5063daaa52c3b | 792efdc5d6e43c9e5597371d1d8b675e527ae9ad | /server.py | 66c1911e923baa28ca4b255ff7c7e85476ab8f5b | [] | no_license | lindemanswork/bowling-game | 57d0d45327d7392c78e5aee741302d20d0e46f02 | de8fa64fbef387bcc6072b8876800bd8b1a15f27 | refs/heads/master | 2020-06-19T01:03:52.186180 | 2016-11-28T19:52:35 | 2016-11-28T19:52:35 | 74,930,135 | 0 | 0 | null | 2016-11-28T02:35:55 | 2016-11-28T02:35:55 | null | UTF-8 | Python | false | false | 213 | py | from pymongo import MongoClient
def get_db():
client = MongoClient('mongodb://heroku_hxb7k9t8:4plphtk310q4t1f6cdbagftega@ds033106.mlab.com:33106/heroku_hxb7k9t8')
db = client.heroku_hxb7k9t8
return db | [
"spothorse9.lucy@gmail.com"
] | spothorse9.lucy@gmail.com |
3f0ee9146eb77381bdd91251c6707c87efd8b730 | 19b5dc6cd9bc20fa57e6a448ff422438faf97a92 | /app.py | bfa07413e10f300ba996796225869ef0e44195c2 | [] | no_license | marusia19/templates | da924694c86cfa3626a346043cd366833a43c9d4 | eaddba6d85390f1adef5434fb0951489cc010ad8 | refs/heads/master | 2021-01-22T13:37:29.594582 | 2015-07-03T20:24:31 | 2015-07-03T20:24:31 | 38,508,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,960 | py | from flask import Flask
from flask import render_template
from flask import request
from flask import redirect
from pymongo import MongoClient, DESCENDING
from bson import ObjectId
import datetime
import login_system
import news_sorter
from flask_login import login_required, login_user, logout_user, current_user
im... | [
"sergeeva.maria.nik@gmail.com"
] | sergeeva.maria.nik@gmail.com |
06a67003d5b6ec09b973f26143121a05d9f0261f | d5468f9cc80f2de38e871e232fa85a1e9b61e9f5 | /python練習/StudentCard_Composition/StuDateMain.py | ab50a8486f01eae88b438dfb0a7df0fd3c333f36 | [] | no_license | SamSSY/ObjectAndClass | 1cf46368c6301b61eb0e2d942b92a7d191dc6d90 | 13a3db7349df38a77806009ddfbb1e748f4ee453 | refs/heads/master | 2023-06-02T21:07:25.463620 | 2021-06-23T13:14:55 | 2021-06-23T13:14:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | from Date import Date
from Student import Student
s1 = Student("John", Date(6, 1, 1999), 90)
s2 = Student("Marry", Date(10, 8, 1997), 80)
name = input()
month = int(input())
day = int(input())
year = int(input())
s1.setName(name)
s2.setDate(Date(month, day, year))
s1.toString()
s2.toString() | [
"45253893+hoopizs1452@users.noreply.github.com"
] | 45253893+hoopizs1452@users.noreply.github.com |
fe515d63f16e31fca3ec46d721b6100f81025ade | 522f01770aa6dcc4cf628ced5ed9e248e8a7c528 | /jin10/settings.py | 849e9bf4850b43d902634fc2db47777168cab2c2 | [] | no_license | bopo/jin10 | bb9ce60e53560508e684b886d9ec358aeac2b499 | 594e219920a3ab46639212d7e587389a609ea66c | refs/heads/master | 2021-01-19T13:39:02.688693 | 2016-09-20T12:01:25 | 2016-09-20T12:01:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,139 | py | # -*- coding: utf-8 -*-
# Scrapy settings for jin10 project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/t... | [
"daulgas.tang@sachsen.cc"
] | daulgas.tang@sachsen.cc |
d4b702f957ed4344c9bcab805a5053cb18e16353 | e62dd824081de0f6b7b35a2731184d8b2c872b7d | /work/wallpaper/girl_report_proc.py | 049eb62a0e6e7d81e1fa16d462a55d3130a22a06 | [] | no_license | coblan/py2 | d0231211452e8a27e41e6a85ab736538d0a66113 | ecf743e027e9f15925e43f05c0b8a86bb88946db | refs/heads/master | 2021-01-24T08:28:41.288136 | 2018-06-07T17:54:05 | 2018-06-07T17:54:05 | 69,465,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | import json
import re
with open('two_month.json') as f:
js = json.load(f)
for img in js:
if img.get('url'):
mt = re.search('(.*)(\.\w+$)',img.get('url'))
img['thumb'] = mt.group(1)+'-305x543'+mt.group(2)
with open('two_month_normed.json','w') as f2:
json.dump(js... | [
"coblan@163.com"
] | coblan@163.com |
d7d665b31302f408522f3bbb16e092e476bc808b | a6d7b62e52506e2137710dc1970265395f418cf0 | /base_entity/migrations/0005_auto_20170927_1137.py | 572a618b5c92bdba171cc07a8e92c6628cb5e26e | [] | no_license | wizcarder/wizcard-server | e5c192325b7313a9253c73c9600133432eb355c7 | f69ba06f20a5be3701a9c0b9b040ef0fdf474266 | refs/heads/master | 2021-03-30T17:57:49.844868 | 2018-06-09T08:47:37 | 2018-06-09T08:47:37 | 27,246,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,074 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('base_entity', '0004_auto_20170923_2319'),... | [
"ubuntu@ip-172-31-28-47.ap-south-1.compute.internal"
] | ubuntu@ip-172-31-28-47.ap-south-1.compute.internal |
137eb82126f252ba550cbaa41ee96463bccc45fe | cde3ef1ee294b2bbeb44331debe5ba3f0c19bd9a | /getTrans.py | 593025dd7f92cc216dae6902222eac4e702670be | [] | no_license | wuyu1492/pair-HMM-project | 21485642ad7d99743b4f974840dffebdf5a47bca | 0b87eb8ea4b2a9c5961958ff5686b22eb45540ce | refs/heads/master | 2021-01-20T05:37:44.121776 | 2017-09-24T16:56:21 | 2017-09-24T16:56:21 | 101,459,745 | 0 | 0 | null | 2017-08-26T05:02:22 | 2017-08-26T03:24:26 | Python | UTF-8 | Python | false | false | 640 | py | import numpy as np
"""
def getPrior(base, haplo, Qbase):
prior = np.zeros((len(base), len(haplo))) # initialize prior matrix
#print(prior.shape) # check prior shape
for i in range(0, len(base)):
for j in range(0, len(haplo)):
if base[i] == haplo[j]:
prior[i][j] = 1-Qb... | [
"noreply@github.com"
] | wuyu1492.noreply@github.com |
3bc48ad57dbf84c0d65a2c59a2f654b60f5b1089 | a98bc512be9b9691200c6a0cc33a5fb7b4053c13 | /com.ppc.Bot/devices/thermostat/thermostat_honeywell_lyric.py | 4fc7ab8f7dd9ec9b7fd8517681898b5f9c38d9cf | [
"Apache-2.0"
] | permissive | 30s/botlab | c21682ed2c9aefc9cba688c6a8c136e9f969adc9 | f7617147b65521a66ad88cdbc175176021a7a486 | refs/heads/master | 2020-04-04T18:39:00.776636 | 2018-10-04T04:56:32 | 2018-10-04T04:56:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,179 | py | '''
Created on March 27, 2017
This file is subject to the terms and conditions defined in the
file 'LICENSE.txt', which is part of this source code package.
@author: David Moss
'''
# Device Model
# https://presence.atlassian.net/wiki/display/devices/Thermostat
from devices.thermostat.thermostat import ThermostatDev... | [
"dmoss@peoplepowerco.com"
] | dmoss@peoplepowerco.com |
fdac9cb8328b1522e3c118d25ef7845b4fcb9edd | 9fe9a586e9c0ae659e2dfe091d4ad0795d92fb7e | /backend/newsnetworks/views.py | a4c61e5455c0b73a2a6e65314de6ad42162a62dc | [] | no_license | JaeInK/Deep-Learning-Projects_Django-API | bd2ed34bd2212b83411c2b4d7b30f1731ecc38c3 | 87c98f8ef32594e080ddfb3ca3dc3be6fa74fe77 | refs/heads/master | 2020-03-09T19:34:58.323235 | 2018-04-10T16:18:38 | 2018-04-10T16:18:38 | 128,961,315 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,473 | py | from django.shortcuts import render
from django.http import HttpResponse, JsonResponse
from django.views.decorators.csrf import csrf_exempt
from backend.settings import NEWS_DIR
# from .scripts import newsnetworks_web
import requests
import pandas as pd
import networkx as nx
import os
import sys
import json
import t... | [
"gjames5809@gmail.com"
] | gjames5809@gmail.com |
3fdcf3ec812b8cd4991b70e219ec666356c0854c | 7a63658141578f025fbe81e7c02784382d4ddfeb | /misc/approx_milestones.py | 5f36a124a7e0371bda8a050020ffede2424108f0 | [
"MIT"
] | permissive | barrettotte/Issue-Utils | 05c996fde590693c26f253842498a9154adae22a | ae359f2bd2245d2bbba84cd80af46572ce155062 | refs/heads/master | 2020-12-10T12:42:18.615180 | 2020-06-16T02:07:20 | 2020-06-16T02:07:20 | 233,598,052 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,967 | py | # Attempt approximating the milestone an issue would have landed in
# based on the completion date and some leftover data I found in my GitLab boards.
import json
from datetime import datetime,date,timedelta
def main():
trello = []
date_fmt = "%Y-%m-%dT%H:%M:%S.%fZ"
with open('export.json', 'r') as f:
... | [
"barrettotte@gmail.com"
] | barrettotte@gmail.com |
ef5c629c1605df9a425e6499d917baca39dd8517 | ab509b0565c3831f6d3c28a7e3a07252b6a4fe16 | /CSR_Blue_Tools/global_settings.py | 72f65d81e2a78476004e77b9663fd53abbd2ab96 | [] | no_license | JadenHuang/CSR_Blue_Tools | 1763f5ff285973d0afbdb817526833f86c29634a | 678919b10448bc4950c91488c29c453eeda4f589 | refs/heads/master | 2020-06-09T14:55:49.891538 | 2019-12-30T09:24:38 | 2019-12-30T09:24:38 | 193,455,503 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | # -*- coding: utf-8 -*-
from six import with_metaclass
from .helpers import Singleton
class g(with_metaclass(Singleton, object)):
#class g:
def __init__(self):
self.debug = 0
self.station = '00000'
self.serial = '000000000000'
self.module = 'MAIN'
self.CONFIG_FILE = "config/config.xml"
... | [
"jianxing217@126.com"
] | jianxing217@126.com |
e52f6e4abfd00051cf9f6fc93ce637f9a796a083 | 514d20002899ee240508141f8e6124919c414ad2 | /owhbv4/owhbv4_import_owhb2.py | bbe6cf23751ae90996fb3f37de09205127a6641b | [] | no_license | pluzorminuz/pluz-owws | 6b06dbf5dd6c2fd22e25d6ea88263b82583b6f9f | 35dcd4205d5764e75964f10f1245ca5bd9e59350 | refs/heads/main | 2023-04-09T14:12:03.159884 | 2021-04-02T10:51:26 | 2021-04-02T10:51:26 | 321,260,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,682 | py | import bpy
import decimal
D = decimal.Decimal
import math
import os
import fnmatch
THIS_BLENDFILE_DIR = bpy.path.abspath('//')
f5 = D('100000')
f4 = D('10000')
f0 = D('1')
class DataEntry:
def __init__(self, type, pos, rolled_pos, delay, delay_raw, dmg, slot, scale):
self.type = type
self.pos = p... | [
"63382500+pluzorminuz@users.noreply.github.com"
] | 63382500+pluzorminuz@users.noreply.github.com |
a52b73942b4c31626805066da977628c224be70f | 2fed1572162d09304972c5e0afd16c63d75d5858 | /chip8/sound.py | 7f985b4ce870334b212b1229c5aad1b7b6d5740c | [
"MIT"
] | permissive | weibell/python-chip8-emu | f290af1b8207c4490bd960071ee762dded2379c5 | c60934dbda4f9f972aa5ec912616545b8e518893 | refs/heads/master | 2022-11-25T07:33:53.583338 | 2020-07-15T20:08:58 | 2020-07-15T20:08:58 | 275,413,098 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | import os
os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = ""
import pygame
class Sound:
beep: pygame.mixer.Sound
is_playing: bool
def __init__(self):
pygame.mixer.init()
self.beep = pygame.mixer.Sound("chip8/beep.wav")
self.is_playing = False
def update(self, sound_timer: int):
... | [
"13382354+weibell@users.noreply.github.com"
] | 13382354+weibell@users.noreply.github.com |
9036906fab7491c1ac445431dd9956327bdde9e6 | eefc5f6e86c8c95c21ae64a67480882e4f0d5ea3 | /hecuba/qthrift/__init__.py | b5c3c9ae2c06b8d4f5da70fae4fa3c73e52a815b | [
"Apache-2.0"
] | permissive | him-28/hecuba | 11de348f63085fe858039f9e42d61191ac229755 | d9dbc1c5ad728612c87bd601d9b03369fceedc92 | refs/heads/master | 2021-07-20T17:19:02.782661 | 2017-10-27T08:24:46 | 2017-10-27T08:24:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | __all__ = ['ttypes', 'constants', 'QbeastMaster', 'QbeastWorker']
| [
"cesare.cugnasco@gmail.com"
] | cesare.cugnasco@gmail.com |
dbf94606df33bddfeb17c93651cda4f7ba15eac2 | f25317ae4ca52e766d9c9a0e6ecee951dbd436fd | /gonote/urls.py | b2a200fd093177c54f381095aa0ff722d655b830 | [] | no_license | uncle-T0ny/GoNote | bce76e86cfee7739e63cac6379ff4708936d6042 | d8efb88b83d41a2403d825bd90c6b980384a4eca | refs/heads/master | 2021-01-10T02:02:43.444288 | 2015-06-29T14:50:00 | 2015-06-29T14:50:00 | 36,979,148 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | from django.conf.urls import include, url, patterns
from django.contrib import admin
from document.views import add_delete_file, get_file
from folder.views import add_delete_folder, get_all_folders
from gonote import settings
from gonote.views import index, login_view, login, logout
from note.views import get_all_notes... | [
"r.uncleT0ny@gmail.com"
] | r.uncleT0ny@gmail.com |
b8746dc8705106040ad856d569a30ce2862d9e49 | f58610d2b189668574058ccf54071e65b275efe7 | /step4_train_submissions.py | 6b430c7e6c969352b120c38a8578ad23f8216632 | [] | no_license | CyranoChen/deepluna | 8a69419166ea71409fa9acc93536a3043231ebc7 | 93c8377910ff329f5ebb9526a5a2c7d2a95c4498 | refs/heads/master | 2021-01-01T06:56:06.610263 | 2017-07-18T03:59:15 | 2017-07-18T03:59:15 | 97,550,272 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,312 | py | import settings
import helpers
import sys
import os
import glob
import pandas
import numpy
import SimpleITK
import ntpath
import math
P_TH = 0.3
MAX_NODULE_COUNT = 10000
MIN_DISTANCE = 18
def get_distance(x1,y1,z1,x2,y2,z2):
return math.sqrt((x1-x2)**2+(y1-y2)**2+(z1-z2)**2)
#change world coordination to voxel s... | [
"cyrano@arsenalcn.com"
] | cyrano@arsenalcn.com |
b384befc386278c815f59f3dda5b8684f78b7cb5 | e2a5c001a4e18e61b1ae04db6d4da45c6a2af5ee | /Src/modulo_reduction.py | 1f68021bfc0ec58518ca2b8490c4e9112b67a6fc | [
"MIT"
] | permissive | rstodden/verbal-multiword-expression-st11 | 77c1c1920a18e98becabb42288054bb894d2178e | 768c453fb0d28c3e237c1b22522a319c1b157c1f | refs/heads/master | 2020-03-25T21:27:26.983110 | 2018-08-10T19:56:32 | 2018-08-10T19:56:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,635 | py | from __future__ import division
from scipy.sparse import csr_matrix, save_npz
import numpy
import math
from collections import Counter
from param import XPParams
class ModuloReduction():
@staticmethod
def get_expected_cooc(total, count_feature, count_vector):
""" return expected value
"""
... | [
"regina.stodden@uni-duesseldorf.de"
] | regina.stodden@uni-duesseldorf.de |
00b97f79e17b4330dbcba0d3ba429c29cf57b151 | c81d010c3943ea5db6154a45ddb3f8d4870e00d0 | /Text-Analysis/code.py | c916468b8daa273c78908f9d87f0a2e81d654756 | [
"MIT"
] | permissive | SatyapriyaChaudhari/ga-learner-dsmp-repo | 971ad84fecaad395197363e57b50c8a800e508e5 | a51711526705a563eb826449d46557c3f3ae8751 | refs/heads/master | 2020-04-08T09:19:57.292275 | 2019-05-01T06:46:07 | 2019-05-01T06:46:07 | 159,218,977 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,357 | py | # --------------
# import packages
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import re
from nltk.corpus import stopwords
from sklearn.model_selection import train_test_split
from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer
from sklearn.naiv... | [
"satyapriya.chaudhari@gmail.com"
] | satyapriya.chaudhari@gmail.com |
0e849db000cb801bd9ded84acc0a9701ad7449f3 | 4b0cf8ca64b4623927e130e9af33c8e81b69a05a | /myapp/views.py | 521328b5a70a9feeb7a0fdcc6964dfca788e2a5f | [] | no_license | itminha123/mysite | 6009b337363c1e1cb2d5259dc73ba6a27562591f | c577514993d3409e49fb31d705297942fd7f58b0 | refs/heads/master | 2020-03-23T19:08:24.129575 | 2018-07-23T03:18:41 | 2018-07-23T03:18:41 | 141,955,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | from django.shortcuts import render
from django.http import HttpResponse
# from gpiozero import LED
import json
bookmarks = [{'site': 'naver', 'url': 'http://www.naver.com'},
{'site': 'daum', 'url': 'http://www.daum.net'},
{'site': 'google', 'url': 'http://www.google.com'},
]
... | [
"itminha123"
] | itminha123 |
560fc6848ea6ff069e9d4f0c2edcd412adf992e8 | 993cd331f65748fa7b55ed7dfeca909255aa38d0 | /teting_dyn/urls.py | 1a3e2f47bf6c37d9db7b79d563c2981bb7031636 | [] | no_license | pavelKhat/testing-dyn_forms | 4d794ae0dbebadd41a4bb96ffecc0612f571f29d | 002dade7e82eebb4b93b67f7cc43e4b293a1a149 | refs/heads/master | 2020-03-25T15:15:24.627572 | 2018-08-09T14:07:28 | 2018-08-09T14:07:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | """teting_dyn 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')
Class-ba... | [
"pavelkhat@gmail.com"
] | pavelkhat@gmail.com |
9a03d1da14ebcf56ad107007b030340184f2e25f | 592a070ae66808c86df4c526cdb0bd04072dabee | /dokugaku/6/6-3.py | 0ecd4fd0fe1d12d9b6ad088cc415e97a0021ea69 | [] | no_license | masato-su/hangman | 0d780557e1a63bc96043a911df42da86cb23222b | 0d26d854de0850ab26e79220af31d509a4eada25 | refs/heads/master | 2020-05-02T21:32:06.400132 | 2019-03-28T15:16:17 | 2019-03-28T15:16:17 | 178,223,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | result = "aldous Huxley was born in 1894".title()
print(result);
| [
"sudo1227@yahoo.co.jp"
] | sudo1227@yahoo.co.jp |
942d41e63481adf5d1b9a7bfb848e7106e9eabad | 18642e63abd4e5b935c5c60d8451857220dad2ca | /portfolio/models.py | cb0f68f1bd458cd8cb4381deb3be1f7be0adebed | [] | no_license | SravaniKV/Assign1p2 | 8cb24e8dfd4ca97c0b1fbf61ecec300326b8deeb | 56ee638db6815c3707f596cc8158c78e8049926c | refs/heads/master | 2021-06-30T08:17:13.198594 | 2017-09-18T21:53:45 | 2017-09-18T21:53:45 | 104,000,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,654 | py | #from django.db import models
# Create your models here.
from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from yahoo_finance import Share
class Customer(models.Model):
name = models.CharField(max_length=50)
address = models.CharField(max_length=200)
... | [
"venkatasravanikaka@unomaha.edu"
] | venkatasravanikaka@unomaha.edu |
46dfc22eb40865a48197d7f5ac0164222f4d45bc | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/fabric/nodetopolicy.py | 73f41a28e62353875c97e455cded44de58073546 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,662 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
5a2f6e7eb2b719a8764503f9e5dbaecd6a39ae15 | 129d5f787569bd21c5acbd34889219493c3bd28f | /pytorch/pytorch-deeplab_v3_plus/DenseCRFLoss.py | 73a0874ec937b0eb075bcb69d1e11901af38d085 | [
"MIT"
] | permissive | Ahmadreza-Jeddi/rloss | bbc83744e450221eb4489dde6a4ab22cf018fbaa | ad28a6f49230ff5d80f4fcd038ecb6c4bd96b1c4 | refs/heads/master | 2021-10-09T19:19:04.172812 | 2021-09-27T03:50:29 | 2021-09-27T03:50:29 | 242,904,034 | 7 | 1 | MIT | 2020-02-25T03:50:19 | 2020-02-25T03:50:18 | null | UTF-8 | Python | false | false | 2,810 | py | import torch
import torch.nn as nn
from torch.autograd import Function
from torch.autograd import Variable
import torch.nn.functional as F
import numpy as np
import sys
sys.path.append("../wrapper/bilateralfilter/build/lib.linux-x86_64-3.6")
from bilateralfilter import bilateralfilter, bilateralfilter_batch
from datalo... | [
"m62tang@rsg-pc286.localnet"
] | m62tang@rsg-pc286.localnet |
f4dbb257bfe88751a5b86d2e942b52d4b7feea8b | 8b1c17561bf34252b79f6c806981f7c6fb1c4221 | /Algorithms-LeetCode/1-10/3. lengthoflongestsubstring.py | bb0885abcb38804cfae91588881f81bb413cdfff | [] | no_license | danebista/LeetCode-Algorithms | 52c5ce77ae43eb9bcb1ce23c06062f5ebdc3170e | 994b14123f07cbd0ad48b8163cb68a65ec8679ff | refs/heads/master | 2023-05-21T05:00:50.333685 | 2021-06-13T09:37:56 | 2021-06-13T09:37:56 | 364,216,221 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | """
Input: s = "abcabcbb"
Output: 3
Explanation: The answer is "abc", with the length of 3.
"""
class Solution:
def lengthOfLongestSubstring(self, s: str) -> int:
sets=set()
l=0
result=0
for r in range(len(s)):
while s[r] in sets:
... | [
"bista.dinank@gmail.com"
] | bista.dinank@gmail.com |
36c1449fb9b44dcf2b01c472c97533b9f70ca5c6 | f851122e51b760f454ba35a47223f373852b7b82 | /main.py | c30a3e1497c258fc42a8dd0a17de56de9b03f435 | [] | no_license | JustinGuerra/ThreadCheckerBot | eb95b7ea05daf316588bacf7a59fc3209195d454 | 2df761121255d223e02ec9c502b047cc2968b00a | refs/heads/master | 2020-04-09T03:20:08.675795 | 2018-12-01T19:04:12 | 2018-12-01T19:04:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,768 | py | import praw
import operator
import time
import datetime
from praw.models import Comment
total_comments_processed = 0
def main():
reddit = praw.Reddit("ThreadCheckBot")
#subreddit = reddit.subreddit("news")
#submissions = subreddit.hot(limit=10)
# for submission in submissions:
#check_thread(reddi... | [
"danieljacobhix@gmail.com"
] | danieljacobhix@gmail.com |
d2aa1db756fe5df542ebf0bf94cea699dd96ca62 | 846724efe734db14610a40be99a6e0f77bb55732 | /arrows/notes/management/commands/create_notes.py | 8aee4967fdb7f188f7aa0ecdcce7d0a400e51dfc | [] | no_license | HelenMaksimova/arrows | 620ed1c8b00ef0ef9b751fbc9c26cd6db5ab36cc | d86c3f38350e665b280f2d9771e49ab647bc52b2 | refs/heads/master | 2023-08-24T17:02:40.955617 | 2021-10-02T22:45:03 | 2021-10-02T22:45:03 | 398,632,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | from django.core.management.base import BaseCommand
from users.models import ArrowsUser
from notes.models import Project, Note
from random import choice, randint
class Command(BaseCommand):
def add_arguments(self, parser):
parser.add_argument('count', nargs='?', type=int, default=5)
def handle(self,... | [
"alnorda@gmail.com"
] | alnorda@gmail.com |
6cdd4ab3c27594dfd256c8dbc494d71ae2dfcf3f | 6c641bb3be6949306dc7834de883a2e66a751eac | /analyze_historic_news_movement.py | 9faf452fcf2b4cce8ea1d3018c3c3a514c0704b1 | [] | no_license | andrewstevens59/python_machine_learning_samples | 3117287d7d3539a3a8d80b28876d8162bdae4879 | 3d20a4b6f19265558aa4f5d1e8ef3592a068c0d0 | refs/heads/master | 2021-08-11T15:51:00.673757 | 2021-08-10T08:14:17 | 2021-08-10T08:14:17 | 120,370,709 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,077 | py | import sys
import math
from datetime import datetime
from random import *
import os.path
import pickle
from StringIO import StringIO
from sklearn.cluster import KMeans
from numpy import linalg as LA
from bayes_opt import BayesianOptimization
from datetime import timedelta
import execute_news_signals
from execute_news... | [
""
] | |
789f9bbf33252c5f8444b39894175a96e85ff453 | f70dd2356260e84a3baebc68f0c49327ff1cb005 | /outliers/enron_outliers.py | 90715800719ce2049ecf8890cd425cf8f7ca34aa | [] | no_license | kmather73/ud120-ML-Project | 04f91d4de859200d454e8701b0461bd3cef5a34f | b58452ae5d4105707731de56c567c60578b28514 | refs/heads/master | 2020-09-17T22:26:23.663962 | 2016-08-19T02:55:12 | 2016-08-19T02:55:12 | 66,047,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | #!/usr/bin/python
import pickle
import sys
import matplotlib.pyplot
sys.path.append("../tools/")
from feature_format import featureFormat, targetFeatureSplit
### read in data dictionary, convert to numpy array
data_dict = pickle.load( open("../final_project/final_project_dataset.pkl", "r") )
data_dict.pop( "TOTAL", ... | [
"kmather73@gmail.com"
] | kmather73@gmail.com |
d0a5b868d53ddcc88c056248836618359d2a331f | 71030516166767491cf181f70665534083c36b13 | /JPype-0.5.4.2/src/python/jpype/_pykeywords.py | d64b47282de2824701beb2e10cb490ff9ae1729d | [] | no_license | ct1104/fileservices | 2e7a473785e464c9fdcc43ccc6e12c311235fb1a | 7e993cb18933370ab83de7c9189c1d96371b7cd2 | refs/heads/master | 2020-03-17T01:35:35.308602 | 2018-05-19T07:32:29 | 2018-05-19T07:32:29 | 133,159,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | #*****************************************************************************
# Copyright 2004-2008 Steve Menard
#
# 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.... | [
"ct@guangdongjizhi.com"
] | ct@guangdongjizhi.com |
81e637c137eb35264303fc69b8323a2a2287261a | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/6/o8-.py | 9c6d0d0413aeff42ae26f9f44f8d70275e890256 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
1d0b6383c33973c35589ec4404e85d7a6c72e8e8 | 8130c34d546c323d6d5d2ca6b4a67330af08828f | /.history/menu_app/models_20210105152309.py | ede59bfeb80ad64987ea4b2b9d2f75c6e48ba8a7 | [] | no_license | lienusrob/final | ba2dad086fc97b21b537ef12df834dfadd222943 | f2726e31f1d51450e4aed8c74021c33679957b28 | refs/heads/master | 2023-02-15T01:36:54.463034 | 2021-01-07T12:47:05 | 2021-01-07T12:47:05 | 327,279,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,265 | py |
from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
import random
import string
from datetime import date, datetime
class ToppingsCategory(models.Model):
name = models.CharField(max_length=100)
type = models.CharField(max_... | [
"lienus.rob@hotmail.de"
] | lienus.rob@hotmail.de |
eb4fe4d2438140d7da3760ede1e8840e63849c66 | 5ad84a7ec7269e63eecedc33072b5d7877530d60 | /lib/exec.py | 7aa57e49b853b8677d7bbe512055308c037e1c7f | [] | no_license | walkrain/python_base | d144da3df6cea02de76be11d55b5c87374a096bc | 8e15ffecd42ba656be883fd80cc781958ba0e932 | refs/heads/master | 2020-05-27T19:15:22.415146 | 2015-05-19T00:20:33 | 2015-05-19T00:20:33 | 35,705,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | #!/usr/bin/python
# Filename:exec.py
exec 'print "hello world"'
print eval('2*3')
| [
"walkrain@126.com"
] | walkrain@126.com |
c96b1858c2de9c2efbfff3b280563c848dbc4c13 | e8c521a1faa67a41cbb45b3e070de837a30effd5 | /regExpressForNom.py | 38b64b442dbced74a59f9127fbe46541ce5552e5 | [] | no_license | Mdayes27/assignment2 | e15dd1e952587eb4522d143c601c010632bfa69d | c22f0d323d41d1b13463a07ae6e5f2f5fe7ed434 | refs/heads/master | 2020-07-31T15:05:33.740141 | 2019-09-24T17:37:49 | 2019-09-24T17:37:49 | 210,646,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | han = open('text2Read.py')
for line in han:
line = line.rstrip()
wds = line.split()
count = 0
if wds.endswith("ing"):
count++
continue
elif wds.endswith("or"):
count++
continue
elif wds.endswith("ee"):
count++
continue
elif wds.endswith("ion"):... | [
"mdayes22@byu.edu"
] | mdayes22@byu.edu |
88dbf7980b4c0dacaebc3668465441c1d408b2c5 | 116a2ae77f946858d97d9d950c7b360c603104d7 | /boa/gen/scope.py | 190dc118cd4caf77b703d939cbd053f2ace851da | [] | no_license | maxov/boa | 641aa5503cbc58ea06c16260bcefc3ff9fa2f0f8 | 2bc35e2a5aee3d87ab3f05d234b6c732024d1d1f | refs/heads/master | 2021-05-27T20:09:13.009161 | 2014-07-12T19:09:10 | 2014-07-12T19:09:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,322 | py | from boa.gen.constants import BOA_MODULE_CONSTANT_NAME
class Binding(object):
# represents a binding of a name to a value
def __init__(self, name, val):
# create a binding object
self.name = name
self.val = val
class Scope(object):
# represents a scope with bindings
def _... | [
"max@ovsankin.com"
] | max@ovsankin.com |
2b7b3f26a0a071871daa6d9510b94e09410413ec | 5e2605c10d7ab7838d6a5caa09bf61381a70e055 | /.venv/bin/pip | 5a188b5c5f641c3fae63657357ed75ee726348b0 | [] | no_license | sleekEagle/pcr_cloud | 08d7eefce4836c1807a4cc806e61e8c9de9950bc | 8a3f876e06d23e21979c25455d4adcb1880295df | refs/heads/master | 2023-02-22T13:40:16.718241 | 2022-11-03T15:14:59 | 2022-11-03T15:14:59 | 217,382,660 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | #!/home/sleekeagle/works/pcr/repo/pcr_cloud/.venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"lahirunuwanisme@gmail.com"
] | lahirunuwanisme@gmail.com | |
5b5b935227c53eccc8bd5e5cdbd56cb97c222c33 | 9dd729a238a97966d3c49af06f61450bd89dc00d | /accounts/tests/test_view_signup.py | bc38aafed2fba618e58cbff9d9fef1ebcc795b2e | [] | no_license | sigfrido64/asc-siw | 5a449c4d73fb913019a75021d03a024110364f86 | 619cd82375ba3fa0829f62361fc850ae48635a1f | refs/heads/master | 2022-07-22T23:10:51.705175 | 2019-02-10T22:00:45 | 2019-02-10T22:00:45 | 120,227,961 | 0 | 0 | null | 2022-07-06T19:26:38 | 2018-02-04T22:10:53 | CSS | UTF-8 | Python | false | false | 2,802 | py | # coding=utf-8
from django.contrib.auth.models import User
from django.test import TestCase
from django.urls import resolve, reverse
from ..forms import SignUpForm
from ..views import signup
class SignUpTests(TestCase):
fixtures = ['af']
def setUp(self):
url = reverse('signup')
self.resp... | [
"sigfrido.pilone@gmail.com"
] | sigfrido.pilone@gmail.com |
6bd2dd8a1dc0c5152bff3d6838c8a6ca248dba0b | 96e93d15c859b96d8627d32d5d1b8378cec63693 | /database/migrations/20200628_01_cm3XQ-add-users.py | 73a85452e62b9c6b603d64933f44a854633e9d98 | [] | no_license | lekha/jeopardy | ebff871883b5956e6536f7b0c734c4d0bf0611af | e29694da68b7f73002279ede396b4dcb88db8119 | refs/heads/master | 2023-01-24T04:11:39.074244 | 2020-08-05T11:37:40 | 2020-08-05T11:38:05 | 131,525,151 | 0 | 0 | null | 2023-01-06T09:49:37 | 2018-04-29T19:55:53 | Python | UTF-8 | Python | false | false | 2,890 | py | """
Add users
"""
from yoyo import step
__depends__ = {'20200621_02_tnF6J-add-team-and-game-models'}
create_user_metadata = """
CREATE TABLE user_metadata_anonymous (
id BIGINT NOT NULL PRIMARY KEY AUTO_INCREMENT,
created_ts DATETIME(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
updated_ts DATETIME(6) NOT N... | [
"305097+lekha@users.noreply.github.com"
] | 305097+lekha@users.noreply.github.com |
31291fea928eb8e023f65781c71fa4432037efea | ba1eff6535027c16b9e1d399b96e7853bc1514dc | /tests/test_16_userinfo_endpoint.py | 03ec0337b9ec1fd4207b1850726eb13b7fc2b0da | [
"Apache-2.0"
] | permissive | sklemer1/oidcendpoint | 09d06e4cf21113f74a78734cdd06c964aaed3c7d | bc2cd9222bd05aec7b7ba5c7c7f593c2143357f3 | refs/heads/master | 2020-03-30T12:24:20.500373 | 2018-10-04T13:42:31 | 2018-10-04T13:42:31 | 151,222,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,738 | py | import json
import os
import pytest
import time
from oidcmsg.key_jar import build_keyjar
from oidcmsg.oidc import AccessTokenRequest
from oidcmsg.oidc import AuthorizationRequest
from oidcendpoint.client_authn import verify_client
from oidcendpoint.oidc import userinfo
from oidcendpoint.oidc.authorization import Aut... | [
"roland@catalogix.se"
] | roland@catalogix.se |
f83dfa728113a399cb36710ce43bfd39835c8799 | 9e716a625f7732359c34efc6e18b2a6b7664d413 | /green_earth_app/admin.py | b393c8f0b8bce6becd8b14906210d1555013cf9d | [] | no_license | greenearthinc/mobileapp-prototype | 1fe2e4bf18f7258a393c377e9d0b46bec5cf319d | 22299fd01a1e7cdfa38ea40b845ebfd12eea5bc6 | refs/heads/master | 2020-07-11T11:32:56.993491 | 2019-08-26T17:40:17 | 2019-08-26T17:40:17 | 204,528,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,306 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from sensor_models import iotCore
from sensor_models import airCluster, waterCluster, lightCluster, robot, channel
from user_models import serviceAccount, workerAccount
from access_models import coreAccess
from support_fil... | [
"noreply@github.com"
] | greenearthinc.noreply@github.com |
b07204cd7cc358a55e848dff2fb18b8ff76f36b9 | 06eef71f28a395cbb9b2a6b3bb6ba8138318d054 | /projectorGeom.py | 18f3c0b1374365a8392ac20e5133d6a63aa83077 | [] | no_license | Rookieokky/3d-display | c4408e64d2c42f8203aa5c54d4551d8a85bbf685 | 49dad5a539531b0f126fde95cc6e97d07b014a59 | refs/heads/master | 2021-05-30T15:54:09.315334 | 2014-07-01T04:18:44 | 2014-07-01T04:18:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py |
def computeGrid(scn, showGrid, size):
import pointInside, makeCube, gridGeom, bpy, mathutils, imp
imp.reload(pointInside)
imp.reload(makeCube)
imp.reload(gridGeom)
xmax = size[0]
ymax = size[1]
zmax = size[2]
table= [ [ 0 for i in range(xmax) ] for j in range(ymax) ]
# rol, col
for d1 in range... | [
"babraham@appnexus.com"
] | babraham@appnexus.com |
b1afda3e5255fc90f7617880094b5585b6f6f29f | 20717dd660bfbaeb88311ea4d3527338cfc4d086 | /checkout/models.py | df2f5f51923be694ffa5fd24998186846ccd5381 | [] | no_license | Code-Institute-Submissions/auto-tints | 8f6f8ddba8d3ec933078a4a3527c31ca6cf4dc92 | fdde47397a12c04aacde24a806283d9dee1225be | refs/heads/main | 2023-09-01T06:03:40.963429 | 2021-10-27T02:23:42 | 2021-10-27T02:23:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,694 | py |
import uuid
from django.db import models
from django.db.models import Sum
from django.conf import settings
from products.models import Product
from django_countries.fields import CountryField
from pages.models import UserProfile
class Order(models.Model):
order_number = models.CharField(max_length=32, null=Fals... | [
"jakubmrowicki96@gmail.com"
] | jakubmrowicki96@gmail.com |
d498464e187eab0a0e5b7f34d9495f1fab2c8587 | 3b10be6f883547f44a67983e2b04be6d7808e007 | /bin/evaluate-timelines | 52cc720d01ce9fd4e999841bfb9dddd079f98449 | [
"MIT"
] | permissive | natsudalkr/tilse | 62f8ef9b4ab03202b8b603a62edaff80d291c97f | 8b4fdb6077663c57f0923d4e68820ba3d73dafe7 | refs/heads/master | 2021-01-18T15:38:37.729296 | 2017-03-20T16:13:45 | 2017-03-20T16:13:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,982 | #!/usr/bin/env python
import argparse
import logging
import os
import codecs
from collections import defaultdict
from tilse.data import timelines
from tilse.evaluation import metrictests, rouge
def get_scores(metric_desc, pred_tl, groundtruth, evaluator):
if metric == "concat":
return evaluator.evaluate... | [
"sebastian.martschat@gmail.com"
] | sebastian.martschat@gmail.com | |
486e379a1a9bebb38a6243372da39082c59dbe52 | c3b00e74b51d3b7c7a46a63b8bf2b1d1c98d5f70 | /algorithms/fibonacci_sequence.py | a3913a30f4fdf52083c2c7b9767aeea11f59cc09 | [] | no_license | ajanzadeh/python_interview | 8057fe2fc9f4da7bc7f96a20a808c279b2fd9110 | 91194e540467261604f72eae99ad0cdaf487eb11 | refs/heads/master | 2022-09-16T00:32:06.354326 | 2020-06-04T22:16:27 | 2020-06-04T22:16:27 | 260,756,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | 0, 1, 1, 2, 3, 5, 8, 13, 21,
def sequence(a,b,n):
arr = []
arr.append(a)
arr.append(b)
for i in range(0,n):
c = a+b
arr.append(c)
a = b
b = c
c = 0
resutl = " ,".join(map(str,arr))
return resutl
print(sequence(0,1,20))
| [
"arash@zenops.co.uk"
] | arash@zenops.co.uk |
1977596321f6c2fbccea688545e4eed977f15378 | 85a1c8f96b602d8b2646e315524231d39b643045 | /hello_world.py | 1224e4520b4eda8478b56a97bc4556ff8780ab0d | [] | no_license | ics3ur-1-2020/ICS3U-Unit-1-03-Python | eb05c72b667a464dfdc1685b95910360cef2427e | 06390c9d7591b42adfc579934d3ecc4a0afc2a42 | refs/heads/main | 2023-01-23T09:56:27.253541 | 2020-11-20T16:48:05 | 2020-11-20T16:48:05 | 314,608,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/env python3
# Created by: Mr. Coxall
# Created on: June 2019
# This is the "Hello, World!" program, but with nice style
def main():
# this function prints to console
print("Hello, World!")
if __name__ == "__main__":
main()
| [
"ubuntu@ip-172-31-55-204.ec2.internal"
] | ubuntu@ip-172-31-55-204.ec2.internal |
43ca51fd48fed5140fdc3d3cd9190c260124a9b0 | 7298cc9d339852fac5afc598c30ac60c3f752af8 | /python/tictactoe.py | 1ed8cc57bf4fb9ff09fb7e77227942b834992da0 | [
"MIT"
] | permissive | benshanahan1/coderepo | c94d6ade7a29324877633cf0591d12c775bff57a | d2389a764fa8936f638e556779dabd8b8febe390 | refs/heads/master | 2020-12-30T23:59:45.403106 | 2018-03-05T15:52:53 | 2018-03-05T15:52:53 | 80,560,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,880 | py | #!/usr/bin/env python
# Simple Two-Player / Computer AI TicTacToe Game in Python.
# Code by Benjamin Shanahan, 7 July 2015.
#
# Note that there is currently no checking for a TIE-GAME condition.
class TicTacToe(object):
def __init__(self, p1_name, p2_name):
# Define defaults for resetting the game when done
sel... | [
"benshanahan1@gmail.com"
] | benshanahan1@gmail.com |
27c4b2a9bc058d641cab0c1ac907d55c0eeae4a2 | 5172b86d1731faa79931bbde708127beca803307 | /semantic/classifier/vectorizer.py | 94f8b713b4593211428f413ffc7670eb30f7b784 | [] | no_license | amunra94/personal_web_site | 1a7fda68b6bd21b4d9e6b9fdf195995abe6e1572 | 1d3d9e1f5c48793dde045524b6dbfbbac02847aa | refs/heads/master | 2023-03-15T16:01:09.966065 | 2021-03-01T19:44:02 | 2021-03-01T19:44:02 | 343,096,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | from sklearn.feature_extraction.text import HashingVectorizer
import re
import os
import pickle
_curr_dir = os.path.dirname(__file__)
STOP_WORDS = pickle.load(open(os.path.join(_curr_dir,'pkl_objects','stopwords.pckl'), 'rb'))
def tokenizer(text):
text = re.sub('<[^>]*>', '', text)
emoticons = r... | [
"root@arudnitskiy.ru"
] | root@arudnitskiy.ru |
1858a3d914607191dbfee1f4dbec29d465bc1d45 | 07d6366ff64b98896d7cda1df9e0fe955339d5ab | /__main__.py | 60ffdd669ba0dc79f5c8c4e768b531c778589fe0 | [] | no_license | lwxted/takemehome | 0e2980194c28332979c5110ac6ad46550422cfd3 | 5da25cb4db76d4bd8ce341ee0cfcf39fb25ad214 | refs/heads/master | 2021-01-21T05:00:38.042011 | 2016-06-22T22:20:13 | 2016-06-22T22:20:13 | 40,530,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import importlib
import sys
from takemehome.util.color_print import cprint
def main(process_name, process_args):
cprint.p('Importing module {}...'.format(process_name))
process_module = importlib.import_module('takemehome.processes.{}'.format(process_name))
process... | [
"tedli@dropbox.com"
] | tedli@dropbox.com |
68a04c7e9e3f2d829fdc061ddb6ed9582d837f10 | 2879edc657c192002ae13fcdd3296b5127d1e9a2 | /dp_eu_gdpr/models/eu_gdpr_log.py | 525908b2a9f03769b92b73ab375830d007be58d5 | [] | no_license | safiyaayoub/gdpr | 9525892893afb49b97f70a032d5a6845a25a1b66 | d640a4c4786ca461d7a8e384420134ce0be1971d | refs/heads/master | 2022-11-07T16:00:58.096341 | 2020-06-23T13:49:28 | 2020-06-23T13:49:28 | 274,417,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | # Copyright 2018-Today datenpol gmbh (<https://www.datenpol.at/>)
# License OPL-1 or later (https://www.odoo.com/documentation/user/13.0/legal/licenses/licenses.html#licenses).
from odoo import fields, models, _
class GDPRLog(models.Model):
_name = 'eu.gdpr_log'
_description = 'GDPR Log'
_order = 'create... | [
"noreply@github.com"
] | safiyaayoub.noreply@github.com |
ed74b4fbe497a9c5a4850fc2f58b830b5aef33aa | 87f6f561408c5fb9dd93a4e95b39336a8fff843d | /kakuro.py | bd57b5ada1dd0bbc94e2365e58c3002d09f63929 | [] | no_license | prolomova/kakuro | ee6d07b2e188df6fdd335a39e34fd51be0f2e9c1 | a74c4a5b4d8353bffe7f8207def7f9818d5e2f95 | refs/heads/master | 2020-04-07T03:28:52.904556 | 2018-11-17T19:31:40 | 2018-11-17T19:31:40 | 158,016,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,254 | py | #!/usr/bin/env python3
"""
Реализация решателя головоломки какуро
"""
import sys
import re
import argparse
import slover
def main(args):
'''
Главная функция
'''
parser = argparse.ArgumentParser()
parser.add_argument('-c', '--count', required=False, type=int,
help='This arg... | [
"prolomova2012@yandex.ru"
] | prolomova2012@yandex.ru |
15df76003269acd982a7ce23366d7b3a40f22baf | 122e1c1129b4488aa89c59c6d14e166f22d437ad | /CanchaAlToque/views.py | d7963d1a63897462d832cc0a43cc12b8bd214825 | [] | no_license | jolu7432/ProjectoCanchaHero | 100710ab31ec5ac49c7779a251eb30d24df5cb56 | 9f21535b2ff930a882989dfa113c429a63453a31 | refs/heads/master | 2021-01-01T04:25:24.482723 | 2016-04-16T21:20:56 | 2016-04-16T21:20:56 | 56,405,066 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect, HttpResponse
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.views.decorators.csrf import csrf_exempt
# Create your views here.
@csrf_exempt
def index(request):
return render_to... | [
"jorgeluis.tanos@exitco.biz"
] | jorgeluis.tanos@exitco.biz |
48f6bf7eed3e7ed029e76a1561da9c2b9fd6b645 | 4488e3c26de4291da447d8251c491b43cb810f7c | /account_banking_payment_export/model/payment_mode.py | 798c8ed20daab08128d6d0b68c1d1b223e11f9d5 | [] | no_license | smart-solution/odoo-crm-80 | b19592ce6e374c9c7b0a3198498930ffb1283018 | 85dfd0cc37f81bcba24d2a0091094708a262fe2c | refs/heads/master | 2016-09-06T06:04:35.191924 | 2015-07-14T12:48:28 | 2015-07-14T12:48:28 | 33,174,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,285 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2009 EduSense BV (<http://www.edusense.nl>).
# (C) 2011 - 2013 Therp BV (<http://therp.nl>).
#
# All other contributions are (C) by their respective contributors
#
# ... | [
"fabian.semal@smartsolution.be"
] | fabian.semal@smartsolution.be |
f1b17665c3b46dd3f018e50c818700cf0e574a2f | 73d361e2cd52cc647d39660e1f7cf31f0fea6b0f | /Regression/SimpleLinearRegression/SalaryPrediction.py | 06e09ef8db3315144bf9de01a8ac9e5ad50460f3 | [] | no_license | Aniruddha10/UdemyPythonML | 0d1ac434bcb2c8cd5bb6124c4648b2b16126449c | 3d33de775d72e51ee6e47483882c10d9c3f2d43c | refs/heads/master | 2022-11-24T17:05:42.777851 | 2020-07-25T16:06:13 | 2020-07-25T16:06:13 | 282,477,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 15 19:19:14 2020
@author: chakanc
"""
from sklearn import linear_model
import matplotlib.pyplot as mp
import numpy as np
#regressor = ""
#train SLR model on Training set
def trainModel(X_train, y_train):
#print(X_train)
#print(y_train)
regressor = linear_mo... | [
"chakanc@MFCGD.COM"
] | chakanc@MFCGD.COM |
34b6d2825eff4be4f5a6eeea5fb44f5a8c0c54d4 | 69bd4cbf6660bb75131b89b1faa2668dfdd55da5 | /7. Imagenes/src/imagenes_TEST.py | 0e416026a0228381d7080134de6b67f5be8b09b6 | [] | no_license | anatitanic/proyectos-laboratorio | 8ed50c524ecb9a228cbee37555d2f9897f56c676 | 22296bb9ef593f3641ec33858e5a73fb27f4257a | refs/heads/master | 2021-10-09T13:09:38.614674 | 2018-12-28T16:20:06 | 2018-12-28T16:20:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,101 | py | # -*- coding: utf-8 -*-
from imagenes import *
################################################################
# Funciones de test
################################################################
def test_muestra_imagen(imagen):
muestra_imagen(imagen)
def test_guarda_imagen(imagen):
guarda_i... | [
"noreply@github.com"
] | anatitanic.noreply@github.com |
0da8f2ee1dac97eab30cc8d96672dac2ef752180 | 6253cb645eaa09c19645750946fbf1f0b0bc4fc7 | /visualize.py | 63a382f4eafd1c61bd21c3a5bbfb7491a587ff81 | [] | no_license | Alevs2R/trajectory_planning | fb1c0da39b5b2cfcb7606302d36e2298bd026d5f | 410c4e784efbeb518ba6cf565b39901dba79cf02 | refs/heads/master | 2020-04-05T16:44:26.590239 | 2018-11-26T13:06:44 | 2018-11-26T13:06:44 | 157,026,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,317 | py | import matplotlib.pyplot as plt
import numpy as np
from kinematics import forw_kin
from robot_configuration import L
def motion_plot(pos, v, acc):
time = np.arange(0, v.shape[1] * 0.01 - 0.005, 0.01)
plt.figure(1)
plt.ylabel('position, rad')
plt.xlabel('time, s')
plt.title('j... | [
"a.evlampev@dooglys.com"
] | a.evlampev@dooglys.com |
7c7405d5b792cd6f20e89b0b56489b366c8baecf | ba730380c8406b234202a6a19a9e5f01f6b66d25 | /django/crud2/articles/views.py | 4a9f35242edeef84e1211c795529a801b810b62b | [] | no_license | ssabum/note | 3b0fd891ab7053997c7978298635e599b42a7659 | 47354aa55a87813dab66f2ff7a930f5313bffe7a | refs/heads/master | 2023-06-19T03:03:02.398976 | 2021-07-09T15:09:42 | 2021-07-09T15:09:42 | 331,743,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,151 | py | from django.shortcuts import render, redirect
from .models import Article
# Create your views here.
# READ
def index(request):
# 모든 게시글 조회
# articles = Article.objects.all()[::-1] # 파이썬 언어로 해결
articles = Article.objects.order_by('-updated_at') # DB 단에서 해결, 수정순으로 정렬
context = {
'articles': artic... | [
"qqq960909@likelion.org"
] | qqq960909@likelion.org |
8bf8ae5a5303dec52b8c6726f0af144bdcc6f9a9 | 679de86de84c04d11627a306b2199cf9f8114b65 | /mnist/start.py | 823e4fe89602b424ccb4f3af8a53e2b07b03d2a5 | [] | no_license | a2lin/dnn | e0a5e52012b8cefb927b62f085c8930137719cf3 | 74ba7dc28d4a84bf3a48ca1dc596c2390e0c8b5c | refs/heads/master | 2021-01-06T20:40:04.003789 | 2017-08-07T05:38:22 | 2017-08-07T05:38:22 | 99,540,732 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
| [
"lin.alexander.2011@gmail.com"
] | lin.alexander.2011@gmail.com |
7dde14eff394ecd809ab6474ad19919b9767a399 | 68666fa5932e3fb6f6f26155d02e932e7ff6de3c | /ECMA_python3.5/myMedicalModel/eval_attention.py | a3acdbf98cffba581587b427bdbde81aa29a4287 | [] | no_license | yaopanyaopan/Chinese_medical | 76f40200bd9f8969e80f6bc9644e352cde2daf63 | df3fe00247a7b9e988f4f0baa0d371f29ae12b0e | refs/heads/master | 2022-02-19T02:06:24.218300 | 2019-07-23T02:45:04 | 2019-07-23T02:45:04 | 198,338,635 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,586 | py | # coding=utf-8
import re
import os
import numpy as np
import tensorflow as tf
import tflearn
from sklearn.utils import shuffle
from myMedicalModel.myModelNolstm_HH import SelfAttentive
from reader import load_csv, VocabDict
import encode_window
import diceEval
import data_process
from matplotlib import py... | [
"2968186105@qq.com"
] | 2968186105@qq.com |
a1175788b89b96596e5c65524f893947f9cd6f68 | 59a27d1244c372d72e2124e634330a62a40d504b | /aoc_21/01.py | f6ccdcdc71177bdf6c719dba89689ecaf96ef9d1 | [] | no_license | rliffredo/advent-of-code | 2037813d6765a2c650c240190267c944e4d5148d | 3dccb51e252d0e0cc2f627476db69a38be7686de | refs/heads/master | 2022-12-22T05:02:14.708180 | 2022-12-15T08:44:58 | 2022-12-15T08:44:58 | 160,335,685 | 0 | 0 | null | 2021-05-13T21:07:08 | 2018-12-04T09:53:42 | Python | UTF-8 | Python | false | false | 1,037 | py | from itertools import tee
from common import read_data, pairwise
def parse_data():
raw_numbers = read_data("01", True)
return [int(n) for n in raw_numbers]
def part_1(print_result: bool = True) -> int:
depths = parse_data()
measurement_pairs = list(pairwise(depths))
increased_pairs = [p for p i... | [
"rliffredo@outlook.com"
] | rliffredo@outlook.com |
1d626c9dbdb41c344f8870b691bab05f897edafa | 5864e86954a221d52d4fa83a607c71bacf201c5a | /dogma/items/fittableDogmaItem.py | 8e70cbc858bb571171c14d42eeafc1040058e7eb | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,769 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\dogma\items\fittableDogmaItem.py
from dogma.dogmaLogging import *
from baseDogmaItem import BaseDogmaItem
from ccpProfile import TimedFunction
import weakref
class FittableDogmaItem(BaseDogmaItem):
def __init__(self, *arg... | [
"le02005@163.com"
] | le02005@163.com |
e988fb44ebf77ef6fb46be8468feeba747b3f022 | 7afc43157ab4338614ee1ad9e6824c75694293fb | /inventario/bin/chardetect | eadc1c8ccb6bbc406cf6577397dc505a686811fc | [] | no_license | eze-fayu/inventario | 9d8c2c83a123f0a643028e262cc83c1ef612862f | 83b63a2f5e7bd14d12e5f6b34682fbacca10fd28 | refs/heads/main | 2023-05-13T22:20:12.382242 | 2021-05-29T20:41:19 | 2021-05-29T20:41:19 | 354,267,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | #!/home/ezequiel/Documentos/Proyectos/inventario/inventario/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())
| [
"ezequielfaiella@gmail.com"
] | ezequielfaiella@gmail.com | |
439bf310097453fbbe84be8f94fdecf17a33b4a2 | 701dc6b5c2ea7af5f94729dcc4ca56a8f8c8477e | /settings/wsgi.py | 67d3dd056ee37db4b3874cb1f6f0e8630246dcd0 | [] | no_license | GuiMend/delivery-backend | f00521920b720967b0bdc9cb9dd9e574424d74eb | 56fba4f8fe400d18b0f2813b530cb916488b42ea | refs/heads/master | 2023-04-13T16:36:35.636676 | 2021-04-27T14:46:34 | 2021-04-27T14:46:34 | 361,578,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | """
topfood-backend WSGI Configuration
"""
###
# Libraries
###
import os
from django.core.wsgi import get_wsgi_application
###
# Main Configuration
###
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.settings")
application = get_wsgi_application()
| [
"guigmen@gmail.com"
] | guigmen@gmail.com |
e9a17f8c7e0790a3636e026ef43c3c2087b22714 | 49ce91d1058f98088350a262700aeb36673800f2 | /aula39/aula39.py | a1a880a7a21687070682de71c6f65175b4c94fdc | [] | no_license | adrxA/python | fc838d96518e5e4dd5e6bbdc5420cadf2f0882e2 | 31488e812af54c30117e7027b2b387bf9b4b78cc | refs/heads/master | 2023-06-22T14:34:41.267845 | 2021-07-19T03:58:11 | 2021-07-19T03:58:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | import pandas as pd
alunos = {
"Nome": ['Ricardo', 'Pedro', 'Roberto', 'Carlos'],
"Nota": [4, 7, 9, 9.7],
"Aprovado":['Não', 'Sim', 'Sim', 'Sim']
}
dataframe = pd.DataFrame(alunos)
print(dataframe.head())
#Transformou o dicionário em dataframe
objeto1 = pd.Series([1,2,4,6,7,9])
print(objeto1)
matriz = [... | [
"leovasc5@hotmail.com"
] | leovasc5@hotmail.com |
c1ae9e6fb753e4652eee299f5a2816c6ddc0a51f | 514e85ae034b7782ff29dcff082a888d80a3dc8f | /urlshorter/migrations/0001_initial.py | 6a3763f321e156bc1ee0cb592f33697ff01fd0bf | [] | no_license | CossackDex/UrlShorterDjango | 48785adda7565104d20ce4ad184a7f42618244d6 | fd778acb0f030f3458aea84dfdd112c2b4b15ce7 | refs/heads/main | 2023-05-09T14:53:49.140333 | 2021-06-03T14:42:13 | 2021-06-03T14:42:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | # Generated by Django 3.2.4 on 2021-06-03 01:00
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='UrlShortener',
fields=[
('id', models.BigAu... | [
"242589@student.pwr.edu.pl"
] | 242589@student.pwr.edu.pl |
8d8ddb865c6a12401cc24112051255881181248e | f4f5d98101db7baf9703be077615383b831c35d8 | /setup.py | f00a4b6116f81b93954694c531ecc2ff819e8e74 | [
"MIT"
] | permissive | TrendingTechnology/PyYouTube-1 | 23099fd1b825f226cabf2e0f50112e1b3f53346b | 774213412210ab03adf11eb8b38906b0f3de5ee6 | refs/heads/main | 2023-08-17T13:50:03.035784 | 2021-09-15T09:11:31 | 2021-09-15T09:11:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | import pathlib
import setuptools
def read(file: str) -> list:
with open(file, encoding="utf-8") as r:
return [i.strip() for i in r]
file = pathlib.Path(__file__).parent
README = (file / "README.md").read_text()
setuptools.setup(
name='PyYouTube',
version="1.0.7",
author="mrlokaman",
au... | [
"noreply@github.com"
] | TrendingTechnology.noreply@github.com |
2bec7b1c41956ec1783c8369ebfd7c8ba03d97fa | 5604a50361637f8ed1327a5618f96e63fdc60c24 | /first_bot/bin/flask | c409f1b8ca260f1d58f0c76ea8703c531a53ca9d | [] | no_license | razmanov666/first_bot_telegram | f82daded45341f92d9b531e6e74cee595fce7779 | 6d33aae297e3369e3c036f8f50b6ac555cd7c3de | refs/heads/master | 2023-07-25T22:20:23.074419 | 2021-06-30T06:57:46 | 2021-09-01T17:35:03 | 376,825,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | #!/home/kurama/Документы/first_bot_telegram/first_bot/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"razmanov666@gmail.com"
] | razmanov666@gmail.com | |
03d32acc40385f42ae5c0d2d04765bfd79f49c6e | c71eefb18081ffa79ed63aa1a0d762ec49948cb8 | /blog/migrations/0004_auto_20201110_1314.py | 53bf3195b4127687b9ede056d84c5fd21aa614fd | [] | no_license | gitjeet/Blog_Site_Using_Django | 6532cdf25f0f7db941deb3d905c2bd83d2fcb19f | bf69c81d4cc1c5004827905d42b7192128d92b56 | refs/heads/main | 2023-01-29T22:46:58.957503 | 2020-12-03T17:55:54 | 2020-12-03T17:55:54 | 318,273,824 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | # Generated by Django 3.1.2 on 2020-11-10 07:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0003_auto_20201110_1019'),
]
operations = [
migrations.RenameField(
model_name='comment',
old_name='create_date',
... | [
"vayuabhijeet@gmail.com"
] | vayuabhijeet@gmail.com |
8b41ac7a5a4163138fe8b9a9962e83c1799151aa | dcd616927e4d0a6748a623e916e1c5ba6baaf143 | /h2o-py/tests/testdir_generic_model/pyunit_generic_model_mojo_irf.py | 890b9f27a2be891431827653afefdaaeb49fcf2e | [
"Apache-2.0"
] | permissive | kaistha23/h2o-3 | 526340a58d04d440f14e4e0e2847b6a1a95bec57 | 1f31e84c68c0cda3b3dde0d3112c0ff3cac2270c | refs/heads/master | 2020-05-09T10:07:00.356419 | 2019-04-12T04:14:18 | 2019-04-12T04:14:18 | 181,020,702 | 1 | 0 | Apache-2.0 | 2019-04-12T14:08:44 | 2019-04-12T14:08:44 | null | UTF-8 | Python | false | false | 1,322 | py | import h2o
import tempfile
import os
from h2o.estimators import H2OIsolationForestEstimator, H2OGenericEstimator
from tests import pyunit_utils
def mojo_model_irf_test():
# GLM
airlines = h2o.import_file(path=pyunit_utils.locate("smalldata/testng/airlines_train.csv"))
irf = H2OIsolationForestEstimator(nt... | [
"noreply@github.com"
] | kaistha23.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.