blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a6fccf16a0bd1c5d62dc11cf686acd57c59da533 | f4352d9564709d2904041bd08a62ca3bc254bd94 | /csv_data_reader.py | e4d69fd637aa09d46730a8dcf6fd77a004a08d57 | [] | no_license | akeele/TreidiSim | b93d1559fe62697b6e45969cea93c1f1751585c3 | 42c414bff18e999ce12bed466844c1a0fa18e76c | refs/heads/master | 2022-11-05T07:26:58.534621 | 2019-10-14T10:45:27 | 2019-10-14T10:45:27 | 213,561,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,300 | py | import pandas
import os
from asset_finder import AssetFinder
class NasdaqOMXCsvReader:
NASDAQ_OMX_CSV_DIRECTORY = "data/nasdaq-omx-csv"
DOHLCV_COLUMNS = ["Date", "Opening price", "High price", "Low price", "Closing price", "Total volume"]
DOHLCV_MAPPER = {"Date": "date",
"Opening pr... | [
"aksu.suunta@gmail.com"
] | aksu.suunta@gmail.com |
dda9f5d4466062d8ad277427e9721c6efad04a50 | e9d52dcf101aea0327c6b0d7e5244c91dfd62cf6 | /spexy/bases/regular.py | ee2e4fd35ec1af3c62bc446c89556cd8cd5295c7 | [] | no_license | drufat/spexy | 6eba9f44a5539245486cd4ef8fefd24bdb7ade6a | 53255009c1830501986afbf6688142ddefe17b9a | refs/heads/master | 2021-09-18T19:51:47.313946 | 2018-07-19T05:09:02 | 2018-07-19T05:09:02 | 100,453,374 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,976 | py | # Copyright (C) 2010-2016 Dzhelil S. Rufat. All Rights Reserved.
from spexy.bases import basesimp
class BasesImp(basesimp.BasesImp):
def module(self):
return 'spexy.bases.circular'
def numbers(self):
N = self.N
N0 = N + 1
N1 = N
N0d = N
N1d = N + 1
ret... | [
"drufat@caltech.edu"
] | drufat@caltech.edu |
3ab4c489a09acde84ec736017a06f464cf066447 | 027698c1805955cb7222f682a0b3939e0f8405a1 | /functions/problem_set2-2.py | 30cdc4ae143ca44118b3e1628f1daaf91339107a | [] | no_license | mrbartrns/introducing-to-CS | e0c114ce175169d6750bdee9fd8ddf3ad264f18e | 2fceef111ebed0ee0e8266997973dd410f45e7fa | refs/heads/master | 2022-12-07T23:46:33.329046 | 2020-08-30T14:39:04 | 2020-08-30T14:39:04 | 280,989,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | def solve(balance, annualInterestRate):
minimumFixedMonthlyPayment = 10
original = balance
monthlyInterestRate = annualInterestRate / 12.0
monthlyUnpaidBalance = balance - minimumFixedMonthlyPayment
while balance > 0:
for i in range(12):
monthlyUnpaidBalance = balance - minimumFi... | [
"mrbartrns@naver.com"
] | mrbartrns@naver.com |
89253de93c1f759ccafbc17016927757d6aa8dc8 | 6be61b1e55ef585ddd3bacbea70ed96b054cd9b7 | /设计模式/结构类模式/代理模式.py | 714f278ba9b883e39b41d7b5fbcc6a3c9d2884b5 | [
"MIT"
] | permissive | zchq88/mylearning | 4a922c0337a840ea7cacdc3998907bfe4836ecd8 | 4b6bf343b40940f6c03321dcd7f075923853ce7c | refs/heads/master | 2021-04-26T23:32:57.862368 | 2018-05-04T02:37:32 | 2018-05-04T02:37:32 | 124,012,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,836 | py | # 为其他对象提供一种代理以控制对这个对象的访问。
class GamePlayer:
name = ""
level = 0
_Prox = None # 强制代理
def __init__(self, _name):
self.name = _name
def login(self, user):
print("登录名为" + user + "登录" + self.name)
def killBoss(self):
print(self.name + "打怪")
def upgrade(self):
... | [
"zchq88@aliyun.com"
] | zchq88@aliyun.com |
7cde29cf536fc56e7ac966f0d5cb9dcfc8f92d08 | 64d887f9a43d627696443a0c82233297012cba23 | /geturls.py | 872dcfc67fcc115fc4199d659b7d758e4ffcabf4 | [] | no_license | MatthewSchwartz6/PythonScripts | 7c09ecbd00a795f71dbdced7e76c93a18f511f75 | 1d78d5b21e5222d3e30e4bbcdfdf54489e3f1112 | refs/heads/master | 2021-04-25T14:03:52.398187 | 2018-01-27T00:58:05 | 2018-01-27T00:58:05 | 110,057,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | #!/home/alive/projects/venv/geturls/bin/python
from sys import argv
from bs4 import BeautifulSoup
import requests
def geturls():
url = argv[1]
r = requests.get(url,{'User-agent':'mybot'})
soup = BeautifulSoup(r.text,'html.parser')
a = soup.find_all("a",{"href":True})
for v in a:
print v["href"]
if '__name__' ==... | [
"noreply@github.com"
] | MatthewSchwartz6.noreply@github.com |
31eef008f4bdd94eca8da480dc892e5c688247db | 83eeeaca79ed0c22a01cb9024182a34f49a59d44 | /src/3Sum/solution.py | 24be511f4a323e91d4b5bc7994d5f17720781071 | [] | no_license | ragingCow/leetcode | 7ec3d14e0ea3e2ad14dcbed16bd34afe14e8d531 | c5d4ae54560cf98e3b5361a1cbd59687a0831301 | refs/heads/master | 2020-05-18T17:45:42.073427 | 2015-10-19T13:05:19 | 2015-10-19T13:05:19 | 39,693,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | class Solution(object):
def threeSum(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
nums = sorted(nums)
result = []
for i in xrange(len(nums)):
if nums[i] > 0 :
break
for j in xrang... | [
"tianbing02@meituan.com"
] | tianbing02@meituan.com |
e461ffbb5c1ec33bb622eb073345d55ace5d9fc8 | 3e18d5f7d901a44e5c7c8e4961c3123e4b1addcc | /Scrapy/venv/lib/python3.7/sre_compile.py | 2c93afc6b12a0c9e856469ce8d7bf5708dcc0aeb | [] | no_license | arunabhthakur94/codesnippets | e2094bdb0b30eea836e18b5fb49db426a51d1296 | c92444b51a920a32a4d90234e9b28cdd10ce8154 | refs/heads/master | 2020-12-04T09:40:54.337011 | 2020-01-11T16:45:44 | 2020-01-11T16:45:44 | 231,711,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | /home/arunabh/.pyenv/versions/3.7.0/lib/python3.7/sre_compile.py | [
"arunabh.thakur94@gmail.com"
] | arunabh.thakur94@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 |
102056145a28eec5b448b8975f4633f44a628b6a | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/synthetic/rttoaobj.py | f85a0bd999b0746da1b151ecd36cc2f7a907ac50 | [] | 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 | 4,526 | 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 |
5ced071bc4465f0c1a0fcf55338b9614fdb8f92c | 661c86ff31d4e74ba2e7d868117e4be46f6500aa | /0148 Sort List.py | 808ee7005e5a85f56f1561fe12139701180c2689 | [] | no_license | Desolve/LeetCode | 0f6bf95ae20bc034c5dae6f51aed6d87f2c8a135 | 145dda3a75a748dc2509fdcbb55327a5cbc945f2 | refs/heads/master | 2021-06-03T14:37:10.390154 | 2020-07-30T15:31:12 | 2020-07-30T15:31:12 | 143,541,878 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | # Adapted from jeantimex
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def sortList(self, head: ListNode) -> ListNode:
if not head or not head.next: return head
prev, slow, fast = None,... | [
"fp60403@gmail.com"
] | fp60403@gmail.com |
660e7e667701cae776fc58821918e1e9bd459b7a | cfd7eae9add9c9991d055514f3ee90a1914b8c5f | /main.py | 3aaf48c5fcaf5681805c41fe948c93d7761fa8c0 | [] | no_license | KU-AI-Club/EXPO_2018 | 5f0234e5e67857d73bf31dd5f896963bd1433136 | dd59bece17c78536ed881999a5f8d99d67f96d09 | refs/heads/master | 2021-01-25T10:39:06.547761 | 2018-03-03T18:32:18 | 2018-03-03T18:32:18 | 123,366,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,335 | py | import gym
import time
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import tensorflow as tf
print('cool ~(<.<)~')
def pre_proc(I):
I = I[35:195]
I = I[::2,::2,0]
I[I == 144] = 0
I[I == 109] = 0
I[I != 0] = 1
return I.astype(np.float).ravel()
def append_to_file(ob... | [
"ravenengineerryan@gmail.com"
] | ravenengineerryan@gmail.com |
9e9b7c87c900888217a6f692daed3148757193f4 | e9f2703cdc62322cb62bbfb40f1e2cbf1a9d4896 | /otros/principiante.py | c7079d11799122997760619614389521798832e9 | [] | no_license | ileinOriana/automation | 644ff627d271eee6567dfc77bb243a6a1b615140 | 644235a182c3d3f9493ef75303c0559dbc2063cf | refs/heads/master | 2023-05-07T21:25:48.478488 | 2020-08-17T16:42:50 | 2020-08-17T16:42:50 | 275,272,036 | 0 | 0 | null | 2021-06-02T02:26:13 | 2020-06-27T00:29:32 | Python | UTF-8 | Python | false | false | 612 | py | import random
#Tirar un dado de 5 valores
#Si es 1, gana una flor.
#Si es 2, gana un tatuaje.
#Si es 3, gana un libro.
#Si es 4, gana un viaje.
#Si es 5, no gana nada.
def lanzar_dados():
value = random.randint(1, 5)
return value
def descifrar_premio(num):
if num == 1:
print('ganaste una fl... | [
"ileinoriana@gmail.com"
] | ileinoriana@gmail.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 |
61c08f3149c26a08411c2cf3f2177844c8a9a0c1 | f76e1898476d05ab3007a9b08c9737f131a838c5 | /projeto_banco/sqllite.py | 438814e15550e3ee741bf3637361d60af1f2f897 | [] | no_license | bbnsdevelop/python_3_estudos | 8f9f6ac51c751914bd48cd464a844691e13e23c8 | d299177bf9ad0cb37577576b02776d31d768f9c9 | refs/heads/main | 2023-07-12T06:53:29.747184 | 2021-08-23T20:03:03 | 2021-08-23T20:03:03 | 335,139,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | #!/usr/bin/python3
# coding: utf-8
from sqlite3 import connect, ProgrammingError, Row
tabela_grupo = """
CREATE TABLE IF NOT EXISTS grupos (
id INTEGER PRIMARY KEY AUTOINCREMENT,
descricao VARCHAR(30)
)
"""
tabela_contatos = """
CREATE TABLE IF NOT EXISTS contatos (
id INTEGER PR... | [
"bbnsdevelop@gmail.com"
] | bbnsdevelop@gmail.com |
833b2113b3ae2c9ad9deecfba486cc67eee08b41 | 21839bc2817a02d01180baff826b4ce5fe2789bd | /official/vision/beta/projects/yolo/modeling/backbones/darknet.py | 5a76c7eefbc615657b563714da3e8a042c18257f | [
"Apache-2.0"
] | permissive | TrellixVulnTeam/TF-OD-API_BICS | 1240fbf7cfbed73fe8633870c4eb237289dbd899 | 22ac477ff4dfb93fe7a32c94b5f0b1e74330902b | refs/heads/main | 2023-06-24T23:46:19.756540 | 2021-07-26T05:27:12 | 2021-07-26T05:27:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,207 | py | # Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"hjkim@multiiq.com"
] | hjkim@multiiq.com |
82e1baea688932692b1e89c3d367c760d949b168 | 683b4174a86d1aea5fb1fec53e27dfca43169356 | /MPI/02.mpi_bcast.py | 6c3664c44fe5952efd8c08da6ac0743acf94d457 | [] | no_license | naufalhilmiaji/pds-mpi-thread | 4be2ce0225973aa60cfe8a64fe519859a9f1bcc9 | 8e1bcbb8bc9f82fff39295528527c0be706264c0 | refs/heads/master | 2022-04-24T11:27:16.096416 | 2020-04-28T23:25:28 | 2020-04-28T23:25:28 | 259,584,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # import mpi4py
from mpi4py import MPI
# buat COMM
comm = MPI.COMM_WORLD
# dapatkan rank proses
rank = comm.Get_rank()
# dapatkan total proses berjalan
size = comm.Get_size()
pesan = 'HALO!'
data = comm.bcast(pesan, root=0)
# jika saya rank 0 maka saya akan melakukan broadscast
if rank == 0:
print('Broadcast d... | [
"noreply@github.com"
] | naufalhilmiaji.noreply@github.com |
cc5f5e52e6123e32c7894ce9542d460cf539b8e2 | 2b28530b3108f41cfa24a0d589149272ce734cb1 | /Python/POO/Práctica_Parcial.py | 096b3c23a78258d394af3188226da16ad50cb80b | [] | no_license | emMercado/TUP-Programacion1 | e986a02ba07ab88a137803e8ce8750e09685a344 | 49cad7e4776b7f03e4ebd7afce831eaac8a8e104 | refs/heads/main | 2023-08-23T12:40:39.121779 | 2021-09-27T23:21:09 | 2021-09-27T23:21:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,625 | py | import uuid
from random import randint
class Producto:
def __init__(self,descripcion,codigoBarras,precio,proveedor):
self.id = uuid.uuid4()
self.descripcion = descripcion
self.clave = randint(1,200)
self.codigoBarras = codigoBarras
self.precio = precio
self.proveedor... | [
"graciajorge.sist@gmail.com"
] | graciajorge.sist@gmail.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 |
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 |
0b0f9eb22c4e7ab366c091e291c1f8854f5f5aa4 | 8e257ec5a47699f6c76f558f98e1edd536159a18 | /snalla/in-class/2014-09-29 JSON & XML/ModelForms sample solution/sio/views.py | 3dce92dde0245c7e64348686140e269b84231631 | [] | no_license | nshikha/437 | 6e854f5c86123788c34965bc5d60ae9fa6f98b2d | 35b984784b778815a2b4ffd95e7c1c89011b9a8f | refs/heads/master | 2021-01-25T03:20:19.011146 | 2014-12-28T06:11:56 | 2014-12-28T06:11:56 | 28,555,189 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,248 | py | from django.shortcuts import render
from django.db import transaction
from models import *
from forms import *
def make_view(request,
messages=[],
create_student_form=CreateStudentForm(),
create_course_form=CreateCourseForm(),
register_student_form=RegisterS... | [
"shikha@Shikhas-MacBook-Air.local"
] | shikha@Shikhas-MacBook-Air.local |
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 |
19e5e99b4598f9270e0cc992301e841753fd2870 | c2b386e1d28c58efbb9d847098a87032e2cbacca | /products_app/init.py | 930a8691b7c54fa99f1d8508a131fb4977bb6b31 | [] | no_license | jmlm74/P11-Ameliorez-un-projet-existant-en-Python | e6468342554f5c4aa03bc0bb954aa7995e98e293 | 28cd84698bf272e279bbf6e1d15211ef2a3c6403 | refs/heads/master | 2022-12-11T02:57:59.563283 | 2020-09-10T16:02:27 | 2020-09-10T16:02:27 | 290,844,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py |
# url an parameters for the open food fact API
url = 'https://fr-en.openfoodfacts.org/cgi/search.pl'
params_off = {'search_simple': 1,
'action': 'process',
'json': 1,
'page_size': 300,
'page': 1,
'tagtype_0': 'categories',
'tag_contain... | [
"jmlm74@gmail.com"
] | jmlm74@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 |
e3be99e1c6547843b797fea330aa576499260d31 | 99a4e7a4db3a3e062c0b08a5462749a28f3f7a39 | /core/utils/make_joint_dataset.py | 592af25331103bb288cfcb090d2dcd893614f3bb | [] | no_license | B-Step62/pytorch-motiongan-open | f85c1481363230826e9094e1c323ad90f0922744 | 4aefe2c427b88f357e8894d309ff46602e109001 | refs/heads/master | 2021-03-20T23:22:49.591472 | 2020-03-15T10:34:54 | 2020-03-15T10:34:54 | 247,241,734 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | import os
import sys
import math
import subprocess
import cv2
from collections import OrderedDict
import numpy as np
import core.utils.bvh_to_joint as btoj
BVH_ROOT = './data/bvh/Edi_Mocap_Data/Iwan_style_data'
OUT = './data/bvh/Edi_Mocap_Data/Iwan_style_data'
def main():
# Copy all original bvh file
ro... | [
"bsatbeyp@gmail.com"
] | bsatbeyp@gmail.com |
dda19d3760238be041683f318ac54c057e37c6f2 | e049a58929f0a878b4b46f4b5d21db1cf5833863 | /backend/app/schemas/video.py | 57277fdf149ab05923208064769126b42ba8c9d6 | [
"MIT"
] | permissive | Asma-Alghamdi/CREstimator_website | 791e8e15d8bb382ca63ea0e7260c02a1257d89e3 | 7c4dc07e9ed15cbfa4981ceba8e3115b2b9dabad | refs/heads/master | 2023-07-07T05:11:13.425156 | 2021-08-12T16:30:23 | 2021-08-12T16:30:23 | 394,372,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | # Normal way
def videoEntity(item) -> dict:
return {
"name": item["name"],
"path": item["path"],
"Placename": item["Placename"],
"setting": item["setting"],
"country": item["country"],
"duration": item["duration"],
"date": item["date"],
"sendEmail": it... | [
"aalghamdi.wo@gmail.com"
] | aalghamdi.wo@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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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... | [
""
] | |
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 |
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 |
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 |
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 |
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 |
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 |
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 | |
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 |
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 | |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.