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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4704e53051dcebd6464b52cddcdb2bac25b5d156 | 42eba42c8a3d8b064cc9e284cf227b8532bff6e7 | /mainProyecto.py | 1822e5dcac77eff131d26d5bfaa9b6c85cfab910 | [] | no_license | MichaelH16/Tableaux | db078c7851f00f00383698f7539336e298fcdee4 | 746323e5d5484fa9a29fed0fb4c08e584a3662c9 | refs/heads/master | 2022-07-14T23:32:37.234673 | 2020-05-19T00:04:12 | 2020-05-19T00:04:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,806 | py |
import codification as codify
import FNC as ts
import DPLL as dp
import visualizadorProyecto as vs
#psewudomian
#hace referencia al corro uno donde comiuenza
x_st = [0,2]
y_st = [0,2]
#donde deberia terminar
x_ob = [2,0]
y_ob = [2,0]
#el tamano de donde lo vamos a hacer
Nfilas = 3
Ncols = 3
#numero de carros
Ncarros... | [
"noreply@github.com"
] | MichaelH16.noreply@github.com |
d32f3461c04b87916debb4ad47903ca8954da1c3 | f138e55f8fee1edd139536ee0402e08e8358d0e0 | /teach-quadcopter-to-fly/agents/ddpg_actor.py | 079bd7524f99a5497470315eae47b815fe594575 | [] | no_license | SusruthaGongalla/udacity_dl_nanodegree | 9e19e2ecd9e9c4f9dbec3f4751a33a3f52aab85d | 60167f213ebfd49d3073554b5aac5298489daafd | refs/heads/master | 2023-04-03T09:27:37.524435 | 2021-04-11T03:27:16 | 2021-04-11T03:27:16 | 356,756,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,636 | py | from keras import layers, models, optimizers
from keras import backend as K
class Actor:
"""Actor (Policy) Model."""
def __init__(self, state_size, action_size, action_low, action_high):
"""Initialize parameters and build model.
Params
======
state_size (int): Dimension of... | [
"susruthagongalla@Susruthas-MacBook-Pro.local"
] | susruthagongalla@Susruthas-MacBook-Pro.local |
31f00d5216103e5e4d61c13737eaa5ede6005345 | a368b6c094651f25a38345ef8955284815a35fee | /cvprac_projects/cvprac_test2.py | 5e9c82d624abab80f345a809b90e92180bd10b5c | [] | no_license | poopypackets/vboxshare | a02534ced765380becfc88b8a73af2272af12b10 | a5f5cf553f559fe3e4b0f5c27a53786aa086778a | refs/heads/master | 2022-09-20T11:01:35.743222 | 2018-11-02T00:06:31 | 2018-11-02T00:06:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | from pprint import pprint
from cvprac.cvp_client import CvpClient
from cvprac.cvp_api import CvpApi
import urllib3
import requests
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) # This will disable invalid cert warnings
clnt = CvpClient()
clnt.connect(['cvp.lab.local'], 'jpatterson', 'P3pp3r101... | [
"jpatterson@arista.com"
] | jpatterson@arista.com |
5553d2a60ce52a5dc412f511cc5411b2815bc73c | a52c769ebacab9570b980588b7ab42f9b5ad1a50 | /03-Algorithms-on-graph/03-02-bipartite.py | 65387cc0de995b4570b7fb557ca7edaf999c0d2c | [] | no_license | potrebichka/Data-structures-and-algorithms | 6d7f8ff8f564ee65ca00f7b7b739a7f28ba9a2e2 | 7dd7fe657b2af946c6ffa4b8dd2afbc5fa309277 | refs/heads/master | 2021-12-06T22:26:56.497897 | 2021-12-06T20:51:12 | 2021-12-06T20:51:12 | 125,806,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | #Uses python2
import sys
import Queue
def bipartite(adj):
#write your code here
color = [float("inf") for _ in range(len(adj))]
color[0] = 0
q = Queue.Queue()
q.put(0)
while not q.empty():
u = q.get()
for v in adj[u]:
if color[v] == float("inf"):
... | [
"potrebich@gmail.com"
] | potrebich@gmail.com |
e69f4617564a044434d1ee032aeddd5fd0eaf9f5 | 03bb4b78d8e06d67cde5d7a993234e7c87413e1b | /catalog/models/lotsofmenususers.py | 068da995e8f6bae9372546096f294b062bf01957 | [] | no_license | prontoponcho/RestaurantCatalog | db634743e68c8d09447168877b62b511d6dea8f1 | c8499ae4204ab548d72a1dd20d39df1b98e53423 | refs/heads/master | 2021-01-17T16:16:51.226474 | 2016-12-27T02:28:55 | 2016-12-27T02:28:55 | 71,493,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,450 | py | from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from database_setup import Restaurant, Base, MenuItem, User
engine = create_engine('postgres://yyxwqovxkfifbc:7rQPBXfpX7RdhhzcFwtWaAOBv8@ec2-54-243-249-176.compute-1.amazonaws.com:5432/dffbvi3bmqmjca')
# Bind the engine to the metadata of th... | [
"rksipes@gmail.com"
] | rksipes@gmail.com |
40f0a1a4afa56f22d0213f3de3889ea5adde5331 | cfdc458eb85c17bd988d3efdc8a9a1bdf678467a | /codeforces/P2-beautifullMatrix.py | 6dad9f8c0954aa2120a6e1e7c968b2ec6595d1e3 | [] | no_license | stuti24m/pythonProblems | 89aaee92c41d31bfc875924065ba29e8bde7f13d | bad81b1ba12333bdc5e9bd2d9e94c8338ac81905 | refs/heads/master | 2022-12-21T20:52:02.272338 | 2020-09-23T06:23:51 | 2020-09-23T06:23:51 | 281,615,920 | 7 | 0 | null | 2020-07-22T08:09:25 | 2020-07-22T08:09:25 | null | UTF-8 | Python | false | false | 415 | py | def beautifullMatrix(arr):
row,col,res=0,0,0
for i in range(5):
for j in range(5):
if arr[i][j] == 1:
row =i
col =j
break
res += abs(2-row) + abs(2 - col)
return res
if __name__ == '__main__':
array = []
for _ in range(5):
... | [
"53464193+joydipdutta001@users.noreply.github.com"
] | 53464193+joydipdutta001@users.noreply.github.com |
ab518993e7504fd0345f8ff85893401197724473 | 369e260e100db9ab5cc8b1711e99ef5e49aec173 | /ml/m09_selectModel2.py | 8500764c686e4ff32f05ffd8638b5b574a0f8beb | [] | no_license | HWALIMLEE/study | 7aa4c22cb9d7f7838634d984df96eed75f7aefea | 8336adc8999126258fe328d6b985a48e32667852 | refs/heads/master | 2023-03-26T09:11:19.606085 | 2021-03-29T23:03:04 | 2021-03-29T23:03:04 | 259,555,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | #보스턴 모델링 하시오
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score
from sklearn.utils.testing import all_estimators #26개 모델 한방에 돌려버림
import warnings
from sklearn.metrics import r2_score
warnings.filterwarnings('ignore') #warnings이라는 에러 그냥 넘어가겠다
boston=pd.... | [
"hwalim9612@gmail.com"
] | hwalim9612@gmail.com |
7b0ed7ee1034799bdfb9d1341cd9f0c69f68aab1 | eae49fe9e11e3239a7a96b8fa3c308ee1f98b483 | /ex300.py | a7230a83c113534de4849f729afb337afec6116c | [] | no_license | park-ki-yeon/MSE_Python | 3bd9ea49d1e47f189ebf61023089f93a3ac35e72 | 790589abb970f729f2167938ade35b539bb1f7a1 | refs/heads/master | 2023-01-28T12:41:29.572980 | 2020-12-09T10:44:10 | 2020-12-09T10:44:10 | 313,044,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
per = ["10.31", "", "8.00"]
for i in per:
# try 코드를 사용하여 수행할 코드를 지정한다.
try:
print(float(i))
# except 코드를 사용하여 예외가 발생했을 때 수행할 코드를 지정한다.
except:
print(0)
# else 코드를 사용하여 예외가 발생하지 않았을 때 수행할 코드를 지정한다.
else:
print("clean data")
# f... | [
"pky010811@naver.com"
] | pky010811@naver.com |
b617368c38ed57a251ed0b8c2a693860ee9885fb | cf5b0e5b33addbbd111779fbe840dc8b5edcfa20 | /intro_to_inheritance.py | bcf118d657a476021d123b393e26486b0112c0a1 | [] | no_license | MikeyAMoore/AdvancePythonLearning | e2ad9e4935c8882ab687ac1dc6e918289157c09e | 5f4cdb5c2e2e57600161fe397ece572952790859 | refs/heads/main | 2023-01-28T04:42:52.851142 | 2020-12-11T03:04:44 | 2020-12-11T03:04:44 | 316,010,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | class User:
def __init__(self, email, first_name, last_name):
self.email = email
self.first_name = first_name
self.last_name = last_name
def greeting(self):
return f'Hi {self.first_name} {self.last_name}'
class AdminUser(User):
def active_users(self):
return '500'
tiffany =... | [
"noreply@github.com"
] | MikeyAMoore.noreply@github.com |
922957a7dfaac0a1c9a782eab5ba850ee1925fb3 | 46635a5530b681ca79b3916bd709d165e5d6ec02 | /Course_Bit4id/SeventhDay/Gestione_dei_moduli/modules4.py | fbeb5069f4dc7592429e044bd768bca52fb9f33e | [] | no_license | Pasquale-Silv/Bit4id_course | 0245c49789bc9b3041c203528b9e0ab9b42f5691 | 82c43f539b009d8c1e554c62ec572a437199ed61 | refs/heads/master | 2023-01-02T05:08:13.236531 | 2020-10-26T19:02:05 | 2020-10-26T19:02:05 | 219,377,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from math import *
print(pi)
print(cos(30))
print(sqrt(25))
print(log(e))
print(e)
| [
"noreply@github.com"
] | Pasquale-Silv.noreply@github.com |
76c9b64fc02e668f00b684927c1cb3fe69855ee7 | f60c07a8ed45c7713a934b56c496a32f1c569418 | /api/testapp/urls.py | 122b496b167ee1fbb90764f426d46fc63485967b | [] | no_license | tariqul87/pinterest | 3dba536b5cae3059edc2e0694f2e5dbe3f941cf0 | 2a53d27e1e352f45e09c59fde6f47c76432e3a29 | refs/heads/master | 2022-12-21T20:27:36.766741 | 2020-10-04T20:14:13 | 2020-10-04T20:14:13 | 299,968,039 | 0 | 0 | null | 2020-10-04T20:14:14 | 2020-09-30T15:38:15 | JavaScript | UTF-8 | Python | false | false | 253 | py | from django.urls import path
from rest_framework.urlpatterns import format_suffix_patterns
from testapp.views import TestAPIView
urlpatterns = [
path('test/', TestAPIView.as_view(), name="test")
]
urlpatterns = format_suffix_patterns(urlpatterns)
| [
"tariqul.isha@gmail.com"
] | tariqul.isha@gmail.com |
42e9d4e3bc8778410efd5d776f6a85eb9a112444 | 10f3103b28700de144d390f03971df9c3ce92cae | /botBoi.py | 54b69160089258c3f20a54cadffc0848b113493a | [] | no_license | SimonHillebrands/pythonDiscordBot | 8eb0cfd3a22b37824c5e9adc9a16b930b310a079 | 4119d57961e6a2fcfce44656184bda8a46c2ae82 | refs/heads/master | 2022-11-15T08:14:51.748178 | 2020-07-06T19:01:57 | 2020-07-06T19:01:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,169 | py | import discord
import random
import os
foodPlaces = ['arby','bosnia','mcdonald','tacobell','pizza','subway','culvers','jimmy']
menuGang = {'arby': ['gobbler','mountain','beefboi','sliders'],
'bosnia': ['gyro','borger','fries'],
'tacobell':['quesodilla','steak quesorita','chicken melt... | [
"noreply@github.com"
] | SimonHillebrands.noreply@github.com |
8000e75d46ed9abd3bbb9b77c384719a41849c7a | e54993bb28e72a147e513038a6ad938fcaecc5c6 | /2018/6-2.py | a15fe749802ad0ba3658f1173718aea63542470a | [] | no_license | desecho/adventofcode | 84dc4d90bf9aefa82211b1222588897413efed38 | 239527cb57d12eb2ed02a396d74adfc824df5188 | refs/heads/master | 2021-06-15T05:13:24.558169 | 2021-03-18T23:36:37 | 2021-03-18T23:36:37 | 160,407,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | from collections import defaultdict
def calculate_distance(coord1, coord2):
return abs(coord1[0] - coord2[0]) + abs(coord1[1] - coord2[1])
def get_coords():
f = open('6.txt')
lines = f.read().splitlines()
coords = []
for line in lines:
coord = line.split(', ')
coord = (int(coord[0]... | [
"desecho@gmail.com"
] | desecho@gmail.com |
9ea1b1cbbc2a2ed72085267341fb18b2f98c6dd5 | dba89f98334be5be8186f04172d9a209b657d6a0 | /sign/migrations/0004_config_need_init.py | 4082b4d588c2dfe7cd481def8fee478b925feb8e | [] | no_license | smileyespanda/case_system | 9b4818509f4d85cdb640ddf78384fcec3613e015 | d35c0af2a05f76c3a2f2fb78405207f3c52b4a93 | refs/heads/master | 2021-08-16T18:13:17.888466 | 2017-11-17T11:22:25 | 2017-11-17T11:22:25 | 103,661,838 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-02-27 16:15
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sign', '0003_auto_20170224_1704'),
]
operations = [
migrations.AddField(
... | [
"ling.zhang@mobvista.com"
] | ling.zhang@mobvista.com |
f9654286f6b03bd85d5a2b8e072a9ae23ef78c5c | 16c92a0d942de81dd76708cce666ece1829eb438 | /project_blog/wsgi.py | d8ec3c6dce93d4d093cb5399cb87b58b9adbfe63 | [] | no_license | OakSuen/aa | dbbdf172e9f5a0b2cf20173b08fe24a2a8d0dc42 | cbf01d3d6ccbaaca7f3a33edf14743897a51e239 | refs/heads/master | 2021-05-13T23:56:07.568062 | 2018-10-12T16:10:17 | 2018-10-12T16:10:17 | 95,761,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | """
WSGI config for project_blog project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO... | [
"sunzhesz@yahoo.com"
] | sunzhesz@yahoo.com |
600599cad1bca855d3f088db20db36e94578c235 | ee87904bc45e7c88f8172fcb0fada209f9049e3e | /paddleocr_convert_det_2_rec.py | 331542aee5b080f00a3e0b9699c35892d9e4bac5 | [
"BSD-2-Clause"
] | permissive | BenfenYU/Tools | b4c67578638af1831b88d856c65745b1436c90e8 | 970a883d5e07d84ec954e76f43f666d81af0ccc7 | refs/heads/main | 2023-07-31T23:13:28.335569 | 2021-09-22T09:49:57 | 2021-09-22T09:49:57 | 408,723,204 | 1 | 0 | null | 2021-09-21T07:43:33 | 2021-09-21T07:16:29 | Python | UTF-8 | Python | false | false | 6,181 | py | '''
把标注好的文本检测数据转化到文本识别数据
'''
import json
import os
import argparse
import cv2
import numpy as np
from scipy.spatial import distance as dist
from tqdm import tqdm
def order_points_old(pts):
# initialzie a list of coordinates that will be ordered
# such that the first entry in the list is the top-left,
# th... | [
"yujingbo_bf@163.com"
] | yujingbo_bf@163.com |
99c865689c82688b08a2e40334c59b4d1caefd82 | 7b112d4b056fe4524ea30358fe6e7d70ba52f16d | /usage_plot_reachable_set.py | b5024d6aac898b19b5b86d40b5118ce7fefdc079 | [] | no_license | ptajvar/cl-abstract-control | df43e2a88b129417198e362bd9a55eea227b7b20 | e4aedf17ae1970bfd38ca4df6daa886ca724520f | refs/heads/master | 2023-02-24T05:13:31.484466 | 2021-01-28T10:27:43 | 2021-01-28T10:27:43 | 333,720,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,299 | py | import numpy as np
from dynamics_library import SampleAndHold, PendulumCartContinuous
from copy import copy
import matplotlib
import matplotlib.pyplot as plt
import zonotope_lib as ztp
import pwa_lib as pwa
import matplotlib.animation as animation
f = PendulumCartContinuous()
sample_time = 0.01
F = SampleAndHold(conti... | [
"ptajvar@gmail.com"
] | ptajvar@gmail.com |
990abe3eeffc5a071289c3e5f570221c4e616b74 | c035b7d588692d321a34c6c11d5064e99143a1fe | /idgo_admin/migrations/0077_auto_20181106_0933.py | 24b7074da9db952d3c1fe1e77afbf05ff08053a6 | [
"Apache-2.0"
] | permissive | jerbou/idgo | 2fbaf35ec3bdf62cd883c0465c3dccaaddceab75 | 89e5ddefd4d0cb1d1aea3820b0c17ba99b4cf8d0 | refs/heads/master | 2020-08-07T10:49:14.079562 | 2019-09-25T13:48:03 | 2019-09-25T13:48:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-11-06 08:33
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('idgo_admin', '0076_auto_20181105_1745'),
]
operations = [
migrations.Remov... | [
"m431m@tutanota.com"
] | m431m@tutanota.com |
52dae8e93ae090c5094cee25581626377b31bee0 | a98e5f149c9a34a9db662bcf3a1556166109064e | /pytracking/tracker/base/basetracker.py | 05f3a52fff8dba674f6e0188ea757baf3c343782 | [] | no_license | jcsma-tracking-sot-frameworks/DRNet | 578f9007b518d91f57c1c53c03e1ab79a5f1ed78 | 86f7fe4d8571911f684b0d1ad8dad7c34f5eca5c | refs/heads/master | 2022-03-16T07:13:24.955890 | 2019-11-18T06:04:52 | 2019-11-18T06:04:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,616 | py | import matplotlib
import importlib
matplotlib.use('TkAgg')
#matplotlib.use('Agg')
import matplotlib.pyplot as plt
import matplotlib.patches as patches
import cv2 as cv
import time
import copy
# from pysot.datasets import DatasetFactory
# from pysot.utils.region import vot_overlap, vot_float2str
import numpy as np
def ... | [
"baishuai@baishuaideMacBook-Pro.local"
] | baishuai@baishuaideMacBook-Pro.local |
a6d54c808fed3224faeaa67a6f4784fc46e699fd | bc441bb06b8948288f110af63feda4e798f30225 | /flowable_sdk/model/ops_automation/job_tasks_pb2.pyi | dc12a5542a2e6c124251065644a1dc8ee7723caf | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,477 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from flowable_sdk.model.ops_automation.mail_info_pb2 import (
MailInfo as flowable_sdk___model___ops_automation___mail_info_pb2___MailInfo,
)
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor... | [
"service@easyops.cn"
] | service@easyops.cn |
6ef4d4ed4d16bfa7133a0d73b8f976d674e577e2 | 3ce901c475c85d42c66d112b95c667e2e439b2d4 | /venv/Lib/site-packages/pyecharts/charts/basic_charts/effectscatter.py | 0e09b372d281e225bc9318639f939263098ea341 | [] | no_license | harvey233/VirusMap | 9734c726e2b7b8d6d3bea1e6920a66a3a9075364 | d20994091e0fd9ee4779e98df62e05fc962f186c | refs/heads/master | 2021-05-18T13:09:22.155692 | 2020-03-31T07:56:49 | 2020-03-31T07:56:49 | 251,255,353 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,721 | py | from ... import options as opts
from ... import types
from ...charts.chart import RectChart
from ...globals import ChartType
class EffectScatter(RectChart):
"""
<<< Scatter plots with ripple effects animation >>>
Use animation effects to visually highlight designated data set.
"""
def add_yaxis(... | [
"harvey233@foxmail.com"
] | harvey233@foxmail.com |
901724595d4e863dcdff9795aeb24d6f8e20e023 | 989b3499948137f57f14be8b2c77d0610d5975e6 | /python-package/daily_study/1주차(07.09~07.13)/1주차_파이썬 과제/ii_get_firsts_age.py | 6f8acc79193e6540ffb53bc5bba8fd4a4015d551 | [] | no_license | namkiseung/python_BasicProject | 76b4c070934ad4cb9d16ce844efa05f64fb09ac0 | 460d05248b2d1431624aba960e28bece888643e4 | refs/heads/master | 2022-12-13T21:12:06.865241 | 2020-04-23T01:30:08 | 2020-04-23T01:30:08 | 142,980,920 | 1 | 1 | null | 2022-12-08T02:27:40 | 2018-07-31T07:49:17 | Python | UTF-8 | Python | false | false | 1,910 | py | # -*- coding: utf-8 -*-
name_book = [{'age': 31, 'fav': ['3g', 'chi', 'piz'], 'name': 'ttamna'},
{'age': 32, 'fav': ['cof', 'greentea'], 'name': 'hope'},
{'age': 22, 'fav': ['sprite', 'pepsi'], 'name': 'mirae'},
{'age': 21, 'fav': ['choco', 'freetime'], 'name': 'gunin'},
... | [
"rlzld100@gmail.com"
] | rlzld100@gmail.com |
ddcde3c6e0e09bb9841abd0d54966690553c6f20 | c12bae8d6d8acfb23fd5247a89d1b66034cfb145 | /lesson01/panye/devops10/user/migrations/0001_initial.py | efb5a8b4d0f40db47f652694e70941bbca224edd | [] | no_license | klande/devops10 | eed00f7a5586678c2381505d693cde5778a5e774 | fc923b4dd93b22d02f50af8b21db52864394af71 | refs/heads/master | 2023-05-23T22:06:07.192372 | 2020-09-20T12:10:50 | 2020-09-20T12:10:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | # Generated by Django 2.2 on 2020-07-05 08:35
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='UserProfile',
fields=[
('id', models.AutoFiel... | [
"panye@example.com"
] | panye@example.com |
95a535869ec1ee86234de4274ff9a8914ca117b2 | 8f49fb5c34661fec8ceb3280401ac0369d346aa1 | /Selfstudy/Class.py | 654b1e61d2cf83f1f25894d268e9c03b9459d4e5 | [] | no_license | JadenChoi94/Python_Lecture | f7563c812a1e79b0083da31e1cbae0d50ee4a9a2 | 23858696fe669f7e239d8a418c04113e589208a1 | refs/heads/master | 2020-06-20T14:31:45.422918 | 2019-08-04T23:41:41 | 2019-08-04T23:41:41 | 197,151,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | #클래스: 반복되는 불필요한 소스코드를 최소화 하면서 현실 세계의 사물을 컴퓨터 프로그래밍 상에서
# 쉽게 표현할 수 있도록 해주는 프로그래밍 기술
#인스턴스: 클래스로 정의된 객체를 프로그램 상에서 이용할 수 있게 만든 변수
#클래스의 멤버: 클래스 내부에 포함되는 변수
#클래스의 함수: 클래스 내부에 포함되는 함수, 메소드라고 부름
class Car:
#클래스의 생성자
def __init__(self, name, color):
self.name=name #클래스 멤버
self.color=color #클래... | [
"jchoi138@student.solbridge.ac.kr"
] | jchoi138@student.solbridge.ac.kr |
d8580fd2b046a0ebea8248bc04e21a2e0f40e463 | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/Windows/Controls/__init___parts/Button.py | 8fcee9dc5c75fc121b1f809e53bbc4b4fec8b4d4 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 58,319 | py | class Button(ButtonBase,IResource,IAnimatable,IInputElement,IFrameworkInputElement,ISupportInitialize,IHaveResources,IQueryAmbient,IAddChild,ICommandSource):
"""
Represents a Windows button control,which reacts to the System.Windows.Controls.Primitives.ButtonBase.Click event.
Button()
"""
def AddChild(self,*ar... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
f302d42faf5fc08f18edc8191c6e29c42dd6cb74 | d62e23f08584f64febe0a5d7358fce2631fbb5bd | /PalindromePartition.py | ac19130a0faf9a3e342a5c005263ef6d1af9d7b1 | [] | no_license | ilovequant/Practise | 4935485651a53a7ab6f238349df6557ddd00883e | 75bee27348969605805b059c7a42a5c5fa14165c | refs/heads/master | 2020-03-20T16:56:50.056600 | 2018-11-20T22:35:03 | 2018-11-20T22:35:03 | 137,549,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | """
Given a string s, partition s such that every substring of the partition is a palindrome.
Return all possible palindrome partitioning of s.
Example:
Input: "aab"
Output:
[
["aa","b"],
["a","a","b"]
]
"""
class Solution(object):
def partition(self, s):
"""
:type s: str
:rtype: Lis... | [
"Junyi@dyn-209-2-228-157.dyn.columbia.edu"
] | Junyi@dyn-209-2-228-157.dyn.columbia.edu |
927705dfce973e8d0fc5417ebfd94ffae9814efc | b4fdf917573b6a174e35f32bdbc0f7392013a829 | /pypeline/node.py | 20aa60455ab1de959ed9b822bfd7cebbec11bdce | [
"MIT"
] | permissive | KHanghoj/epiPALEOMIX | 11d4ad866b969a0a393733d038eac86222c7e0d1 | e63e54b8f0f110e97fff89b4b372c712e0112e2c | refs/heads/master | 2020-09-15T07:43:09.581374 | 2020-02-27T14:06:16 | 2020-02-27T14:06:16 | 223,383,531 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 12,816 | py | #!/usr/bin/python
#
# Copyright (c) 2012 Mikkel Schubert <MSchubert@snm.ku.dk>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
#... | [
"kristianhanghoej@gmail.com"
] | kristianhanghoej@gmail.com |
b099106bfe7a4d382a0b05b3760128a20465d0af | 9d18471389d7c375921ab9cd8a9ce0afb60c0149 | /02_password-philosophy/main.py | 80d28280f301e267a53824d73e32f67b13b4bc24 | [
"Apache-2.0"
] | permissive | derblub/aoc2020 | e162c38fcc97761047675b4c46833f3cee08166a | c22761ba7d7b3ed5d604fcfb0275b16cd4006ffa | refs/heads/main | 2023-02-06T19:24:26.352713 | 2020-12-25T18:31:17 | 2020-12-25T18:31:17 | 317,469,977 | 0 | 0 | Apache-2.0 | 2020-12-01T08:13:01 | 2020-12-01T08:13:01 | null | UTF-8 | Python | false | false | 806 | py | #!/usr/bin/env python3
# https://adventofcode.com/2020/day/2
import os
import sys
import re
with open(os.path.join(sys.path[0], "input.txt"), "r") as file:
lines = [line.rstrip("\n") for line in file]
def parse_passwords():
return [
re.search(r'(\d+)-(\d+) (\w): (\w+)', line).groups() for
l... | [
"daniel@pushingpixels.at"
] | daniel@pushingpixels.at |
be1ceb6c40a7cc5a101a1747a7bbdc8509174512 | 281565c9e237ec3e6f2f32c57a038adf9d05143e | /oddevenn.py | 945efadc38d81c72e0ea3e17675023935950d88e | [] | no_license | sharumathis/guviprograms1 | 7d2c2ed174ca9124d0ee9b9e55c303112176904c | 4e745100ee96228c576021439fa070cd9b9e63e1 | refs/heads/master | 2020-04-19T16:53:16.590125 | 2019-02-13T09:39:21 | 2019-02-13T09:39:21 | 168,317,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | x=int(input())
if x=0:
print("Zero")
elif x%2=0:
print("Even")
else:
print("Odd")
| [
"noreply@github.com"
] | sharumathis.noreply@github.com |
f237a0b9aaefaac19d799d697971c20f6b8aad86 | 5de23fad75b9c30fccc2b89ee6f71fc610cf83f1 | /testFile.py | 1a7caacbc545c8806648b647d88e188db4b03a6e | [] | no_license | MarkV2323/pybotosrs | 1491906ae3ca310d67f55b8719989fecd49f8af0 | 355de44a64880c98c5574552e64ec75144ef7f6e | refs/heads/master | 2022-01-11T19:15:48.608048 | 2019-06-11T00:20:00 | 2019-06-11T00:20:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | import VisionCoreOSRS as vcOSRS
import WindowOSRS as winOSRS
import ColorOSRS as colOSRS
# color: Blue, Green, Red _color_green = ([35, 115, 100], [40, 255, 130])
# Test build for multi layered color support.
color_green = colOSRS.ColorOSRS((35, 115, 100), (40, 255, 130))
color_brown = colOSRS.ColorOSRS((5, 125, 120)... | [
"vincentmark5897@yahoo.com"
] | vincentmark5897@yahoo.com |
e68623770b137be6b14de90280ff4515b723457a | 38c10c01007624cd2056884f25e0d6ab85442194 | /third_party/lzma_sdk/lzma_sdk.gyp | a1167d5f71c2b8b7d363c211a41bd59ce400bfd2 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | Python | false | false | 2,150 | gyp | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'lzma_sdk_sources': [
'7z.h',
'7zAlloc.c',
'7zAlloc.h',
'7zBuf.c',
'7zBuf.h',
'7zCrc.c',
... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
6da44852f8000825e8a6e17ae73f9d01f8a06a24 | cc114293037249bf8c75e253b1320b7e9f284049 | /soifer/calcu(repasoPOO) (1).py | 56f6ded5053fe993d137191bedd9d61165c41c0e | [] | no_license | xaldoxxx/soifer_QA | 95791e2538fbecccdffb48c75b4c1a3dffef8dc0 | 9052c6ba36749ece77488ff3f310e879a3174c87 | refs/heads/main | 2023-07-07T07:12:06.467239 | 2021-08-14T18:47:38 | 2021-08-14T18:47:38 | 396,025,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,078 | py | # para q algo sea self tiene q ser de la misma clase... self se usa para variables q son de la clase
# hacemos un constructor, q va ser una variable q la voy a usar cualquier momento de la clase...
class mi_calculadora:
# responde pregunta sobre self... se usa solo en variables q son de mi clase
# en e... | [
"noreply@github.com"
] | xaldoxxx.noreply@github.com |
656ebbadc5a09f84342d6c44c004c778285dd3e6 | 17d28b6601fb6d24905a5f3d4bd2ef6dbff4f611 | /src/optimate.app/optimate/app/tests/test_valuations_claims.py | e9e3ef3f5d884bc607a88a9694f2d4ed91ffb853 | [] | no_license | upfrontsystems/optimate | c3137af24bd284ea02336c3924a35be8dd7c3148 | 17e9d974455c8fb9561089131702f1c3e6336283 | refs/heads/master | 2021-06-20T05:43:09.573680 | 2017-07-26T15:17:23 | 2017-07-26T15:17:23 | 31,757,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,732 | py | import unittest
import transaction
import datetime
from decimal import Decimal
from pyramid import testing
from pyramid.httpexceptions import HTTPUnauthorized, HTTPMethodNotAllowed
from nose.tools import assert_raises
from pyramid.httpexceptions import HTTPConflict
from sqlalchemy import create_engine
from optimate.ap... | [
"vernooy.n@gmail.com"
] | vernooy.n@gmail.com |
cbb165ad9e97b3a63daa2c92c68bb06a75ecf5b1 | 6fe280f6697189d63df5fad7f5b53cfc7a117d25 | /Exploration.vs.Exploitation - Structural Design/src/Simulation.py | 7433643647a882085e041abe754a6dc0bb17f946 | [] | no_license | pobrienjhu/cens | 4126728564bd1d48725d603f71558eede1297414 | 046cde2d2caf4e14518ffb0fc45358091f012d52 | refs/heads/master | 2019-01-02T04:00:36.369736 | 2015-01-23T03:43:44 | 2015-01-23T03:43:44 | 28,733,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,203 | py | import SimulationUtils
import simulate
import numpy
import logging
import csv
import time
import os
from networkx.generators.community import *
logger = logging.getLogger('Simulation')
# Set the log levels
logger.setLevel(logging.INFO)
def simulation(m,n,s,pl,pt,pe,T,iterations,graphGenerator,dir,recordEachRun=False... | [
"patrick@patricks-ThinkPad-X201"
] | patrick@patricks-ThinkPad-X201 |
aba255cc9865ae4644ab5b3e643a89a99993ea7f | 6ed764938b9480a47e594051d37bd61571efac69 | /howmany.py | 694e9fa118e554aea7348975af2cc083eb5ad9d1 | [] | no_license | jamemcc/Project2 | 609ae52435c2d8c39114962cea41b7039568047c | da54d1dec9edc2b3be3e33ef32d8bf35f3dca772 | refs/heads/master | 2021-01-13T01:37:33.708480 | 2015-07-17T19:49:36 | 2015-07-17T19:49:36 | 38,988,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
use iterative parsing to process an OpenSrteetMaps XML file to count
what tags are there. Results determine how much of
which data you can expect to have in the map.
The output is a dictionary with the tag name as the key
and number of times this tag can be encountere... | [
"jamemcc@gmail.com"
] | jamemcc@gmail.com |
b40a2a276b7057d283cc97a08b18fff243b0a820 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/services/types/ad_group_extension_setting_service.py | ef41a0ce26e223a0dc2319488043f0f0ca9dd4e9 | [
"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 | 5,946 | 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 |
f18a97d989cb550d3b2caf1e2938d716f57c98e2 | 9ce1162410a6db6aa097b53cc7c336108fd3661f | /hw6/dataClassifier.py | e9df0cfa1cb93ac034f9db776df4c967fd2fd5ff | [] | no_license | akhor16/pacman-ai | 70906ac08022ad2e1c9e3262cdb5b86080d55714 | 1aedea2d5549a5f9257e2969527b69010ba99020 | refs/heads/master | 2022-12-15T12:21:36.418432 | 2020-09-13T21:21:35 | 2020-09-13T21:23:39 | 295,238,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,553 | py | # dataClassifier.py
# -----------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berk... | [
"akhor16@freeuni.edu.ge"
] | akhor16@freeuni.edu.ge |
bee74aea871b30c6a3a6b332027d3c0d8aa04458 | 54fc3d2f3672d084fcd742c2f953daa07d83193a | /Codes/3.0 GUI introduction.py | f5ea9a207cc10e0b3fedf1805844eb9960339078 | [] | no_license | aieml/Week-04 | e6b7a00ebfd874dea52b50cd1ffbc7b8c51f5c75 | 4eeac60d7ce6d680aa4369f9d770cfa771e2c317 | refs/heads/master | 2020-05-30T19:53:43.904440 | 2019-06-03T05:06:02 | 2019-06-03T05:06:02 | 189,935,447 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | import tkinter as tk
window=tk.Tk() #creating the main window
def func1():
label1.config(text='HELLO PYTHON',bg='blue')
button1.config(fg='green')
def func2():
label1.config(text='HELLO TKINTER',bg='hot pink')
#window.mainloop()
font1='Helvetica 20 bold'
font2='Times 15 bold'
... | [
"noreply@github.com"
] | aieml.noreply@github.com |
b972775cbe26915c4717d7d43f87e5d3d9f876ec | a896a18c751d20a55912831f12f5ec49dac7639e | /django_novel/urls.py | 29925622a795ec7c1138b5df233013fa0e3f1675 | [] | no_license | liuyuan119/django_novel_temp | d511b700512054761b3a6fcebe19b290517b30b8 | df3ff45d38ea8756dee9f0577e425c41d9283f65 | refs/heads/master | 2020-03-19T00:05:17.847881 | 2018-06-01T06:37:31 | 2018-06-01T06:37:31 | 135,452,021 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | """p_django_tmall URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/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')
Clas... | [
"1120793140@qq.com"
] | 1120793140@qq.com |
554ab2c2d9d21b5149c32d9c6caf9f65d0dbe509 | dd08a146a41a8114365a7b11b534935cb96ec0b5 | /configs/activations/x101_4x4_1x.py | 978ebdd35999768d449ea74d69c8814e2a657020 | [
"Apache-2.0"
] | permissive | kostas1515/GOL | 2132020f97739278afd12fc1e7af2560c50781cb | 70026b73cacf7ee9c8b209907a83cff7d7e34d65 | refs/heads/master | 2023-05-23T10:13:04.671246 | 2022-11-24T10:51:22 | 2022-11-24T10:51:22 | 513,964,766 | 18 | 2 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | _base_ = [
'../lvis/mask_rcnn_x101_64x4d_fpn_sample1e-3_mstrain_1x_lvis_v1.py'
]
# data = dict(train=dict(oversample_thr=0.0))
data = dict(train=dict(oversample_thr=0.0),samples_per_gpu=4)
model = dict(roi_head=dict(bbox_head=dict(loss_cls=dict(type="CrossEntropyLoss", use_sigmoid=True),
... | [
"konsa15@liverpool.ac.uk"
] | konsa15@liverpool.ac.uk |
7792d58e3354ac43eb73e209be8d70ca96ece495 | f37051ee99b7a42feb8a05861b081522222ac85a | /ecommerce/urls.py | 87fb363d40296d4ba88ac0c21f19a9955f329a11 | [] | no_license | ramesh1553/ecomm | 77437eae82748f8c9baa1a5a1bbadbb774fcfef5 | 5bdf198b649ffb076216eda6fabb75cf35bd0a93 | refs/heads/master | 2023-04-19T03:27:03.128219 | 2021-04-19T08:44:24 | 2021-04-19T08:44:24 | 359,386,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | """ecommerce URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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-bas... | [
"ratheesh790700@gmail.com"
] | ratheesh790700@gmail.com |
42f4bf6c1f20d34b1dff13ff86e5188f43f078a1 | aa2c3743c265c3db8a246a04f26df8428d23dd06 | /tacker/api/v1/router.py | 3f53618e26a630c4111a70c43a13a10fd9edda17 | [
"Apache-2.0"
] | permissive | SripriyaSeetharam/tacker | fb43740de8e791b7bfa121dd16c295dd380f03f0 | 0c5c2eb06fb6112b03b49c05c5cbffb0ba00587f | refs/heads/master | 2021-01-22T01:55:17.327221 | 2015-07-08T21:07:02 | 2015-07-08T21:07:02 | 38,065,799 | 1 | 0 | null | 2015-06-25T18:13:25 | 2015-06-25T18:13:24 | Python | UTF-8 | Python | false | false | 2,312 | py | # Copyright (c) 2012 OpenStack Foundation.
#
# 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 agreed to... | [
"isaku.yamahata@intel.com"
] | isaku.yamahata@intel.com |
a156e72897d02e8768162a6d7b6e8c33656ec897 | 4e8c86bcb1a0b0215280b71f5265043b1d584f22 | /examples/moode.py | fe4a4a99561a031520068d5bb5cd94633b1091f1 | [
"MIT"
] | permissive | sharkusk/luma.examples | 8b00e23b7a7cfb962ba5a63863f087a02f437c76 | c4a8155bad4619b44c76bbeece6d433953c443fe | refs/heads/master | 2021-04-27T22:13:24.627921 | 2018-09-21T21:11:03 | 2018-09-21T21:11:03 | 122,415,108 | 0 | 1 | null | 2018-02-22T01:18:49 | 2018-02-22T01:18:49 | null | UTF-8 | Python | false | false | 6,928 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import requests
import time
import os.path, os
from StringIO import StringIO
from PIL import Image, ImageFont
from demo_opts import get_device
from luma.core.render import canvas
from moode_common import gen_moode_status, mpdToggle
... | [
"sharkus@gmail.com"
] | sharkus@gmail.com |
fd122e785dcd67f5dfb38d8fb252da42a10b7b2e | 46357db3b1c1af699384d9cba1ffbc3c732117ad | /python_basics/exercises/26_find_hcf_or_gcd.py | 517945158aebeb2882ab90db0eb4fd6fa7b56cc1 | [] | permissive | khanhdodang/automation-training-python | 28fbd70ca4bc84e47cf17d1e4702513863e38c44 | b16143961cee869c7555b449e2a05abeae2dc3b5 | refs/heads/master | 2023-07-11T05:21:34.495851 | 2021-08-18T01:29:37 | 2021-08-18T01:29:37 | 285,208,030 | 0 | 8 | MIT | 2020-09-29T07:01:15 | 2020-08-05T07:01:46 | Python | UTF-8 | Python | false | false | 559 | py | '''
The highest common factor (H.C.F) or greatest common divisor (G.C.D) of two numbers is the largest positive integer that perfectly divides the two given numbers.
For example, the H.C.F of 12 and 14 is 2.
'''
# Python program to find H.C.F of two numbers
# define a function
def compute_hcf(x, y):
# choose the ... | [
"khanhdo.pmp@gmail.com"
] | khanhdo.pmp@gmail.com |
dffb8910249d1b952f5e3574c0d1061555719a3b | 83eff9d529a92f4a323ab2585ec24ebcc5d00cdb | /loadImages.py | a55f8e05bde8992466e842f27de74f7bf791fc1c | [] | no_license | DanielLopez960814/ImageModels | 57ab13d69ae6e88b394db0f28f8090e870a6f4f9 | 0b274c810895a4b94d0b9022cbf188898ade2c22 | refs/heads/master | 2022-04-21T04:39:51.537490 | 2020-04-24T02:23:36 | 2020-04-24T02:23:36 | 258,377,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | import os
from tkinter import filedialog
from tkinter import Tk
import sys
from getpass import getuser
root = Tk()
root.withdraw()
dirname = filedialog.askdirectory()
print(dirname)
username = getuser()
file1 = open("C:/Users/" + username +"/AppData/Local/DatosPsophiaTool/Ruta.txt","w")#write mode
formatos = ["JPG",... | [
"noreply@github.com"
] | DanielLopez960814.noreply@github.com |
07f4225ca139f774d72a48297e28c85a8ddb9bc8 | b2d8cdf100138989f9ea44a1e6e0999deaf86f3e | /viewer/optimive_before_after.py | c4e8a68704f9c787094d64198564b9d0d17c4887 | [
"MIT"
] | permissive | xyz600/icfpc2021 | ee690dec8368d3d186c4563eb9f28e37ffc5c9dd | 2495e1bf67672120f2e8fa700f50874d11817ec2 | refs/heads/main | 2023-06-17T11:01:30.242263 | 2021-07-12T10:20:40 | 2021-07-12T10:21:35 | 384,415,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | py | # -*- coding: utf-8 -*-
import matplotlib.pyplot as plt
import json
import sys
class Problem:
def __init__(self, filepath):
with open(filepath, 'r') as fin:
js = json.load(fin)
self.hole_vertices = js['hole']
self.figure_edges = js['figure']['edges']
self.f... | [
"xyz600600@gmail.com"
] | xyz600600@gmail.com |
4eab30f9fe4c48febc56cf77163e320a8bf73d27 | b56b18b8ab3e60be881b2a8ec24fbf6a1c884bc7 | /.local/lib/python3.9/site-packages/maclookup/exceptions/__init__.py | f81ea28f2ece0161133a10f32cf4883ed3c92dbe | [] | no_license | jpravder/newDomainAutomate | 601906e5f4fe537b3b5905960d68dd04614f30a5 | 31e5bf9df261f44b1a06f8bbd0bba7944bc60bf7 | refs/heads/master | 2023-07-28T11:47:06.523414 | 2021-09-13T15:37:17 | 2021-09-13T15:37:17 | 406,030,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | __all__ = [
'AccessDeniedException', 'AuthorizationRequiredException', 'EmptyResponseException',
'InvalidMacOrOuiException', 'NotEnoughCreditsException', 'ServerErrorException',
'UnknownOutputFormatException', 'UnparsableResponseException'
]
from .access_denied_exception import AccessDeniedException
from .... | [
"jpravder@gmail.com"
] | jpravder@gmail.com |
093f041de3839287cc0ec421b043e87e586b49dc | ca1c47b5ed99a59625b594398e33855268a179e4 | /GameStore/urls.py | 9a7aacd4437b0ef10ef20f6ba4cf5177e4b071a7 | [] | no_license | FoyerSociety/Game-Store-Django | c47c4811255d1d35942d6920ef682d91bc1296e6 | c8dc45a2cae3c43f80101c81474ea8e8b58523f8 | refs/heads/master | 2020-08-27T10:55:28.898441 | 2019-11-26T06:54:07 | 2019-11-26T06:54:07 | 217,340,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | """GameStore URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"gaetan.jonathan.bakary@esti.mg"
] | gaetan.jonathan.bakary@esti.mg |
ee6955777031c86af7444230aa275e2e8aaf9f39 | 3e97e47bc9de28f047250acc2edef94b457adf20 | /heatmap.py | 1c4d45de4564df6850976f173d220b4efbf1fe10 | [] | no_license | bzmby/NanoString_Classifier_Snakemake | 242cf09352509b640695a830ed148c5d0960ba9e | 1a2941aa4c0a7708bb61eea82ab44c3e295e243b | refs/heads/master | 2020-12-29T09:19:43.469916 | 2020-02-05T22:54:00 | 2020-02-05T22:54:00 | 238,553,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,622 | py | import math
import os
from bokeh.models import ColumnDataSource, HoverTool
from bokeh.plotting import figure, gridplot, output_file, save
import matplotlib as mpl
from matplotlib import cm
import numpy as np
import pandas as pd
import scipy.spatial.distance as dist
import scipy.cluster.hierarchy as hier
def Zscor(df,... | [
"behzadmoumbeini@gmail.com"
] | behzadmoumbeini@gmail.com |
138e01dd749c37a17258cce7de9bd8b7d0744481 | 0a21d5e72b4afbabcbf4ec0d65ea84cd8d6159c7 | /Contest/weekly-contest-169/D.py | 7b093659d1af3a7b5b3878292f1449b79aa09d2b | [] | no_license | LuoJiaji/LeetCode-Demo | 193f27ba36c93f9030435874a145c63a81d3c0f8 | 78e6e87c01848a1dc71b7dc0716029ece5f35863 | refs/heads/master | 2020-06-24T03:03:33.366537 | 2020-04-05T02:09:41 | 2020-04-05T02:09:41 | 198,830,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,126 | py | # class Solution(object):
# def isSolvable(self, words, result):
# """
# :type words: List[str]
# :type result: str
# :rtype: bool
# """
# # used = []
# # flag = False
# def check(numlist, alpha, words, result):
# # pass
# flag ... | [
"lt920@126.com"
] | lt920@126.com |
84f5ffa766d7866e1cfb0e2ca5e597c5222cfe25 | 92eae2cb5a99bf63b22d8aace3778b197f4762bc | /media/migrations/0001_initial.py | 039119e1721fae24b2d8c5526fcf52931215d54f | [] | no_license | LorisGitHub/Togrutan-Django | be81e3d6d8c605b80c7e0c514ce2499b7abfb8a2 | cf2802f63c86c90b6b8790b1a7069e5a02ae94ee | refs/heads/master | 2023-02-16T15:21:37.785612 | 2021-01-11T20:46:16 | 2021-01-11T20:46:16 | 298,108,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,782 | py | # Generated by Django 3.1.1 on 2020-09-23 21:22
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Media',
fields=[
('id', models.AutoField(au... | [
"loris.du.84@outlook.fr"
] | loris.du.84@outlook.fr |
d1c83f7397067a5db4849163931e37a5e5a349c0 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/dataprotection/azure-mgmt-dataprotection/generated_samples/get_operation_result_patch.py | 448ca7b2befea5dda6ba7aebacbd274a18d99b1d | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 1,756 | 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"
] | kurtzeborn.noreply@github.com |
d8eb3f9c0d7c0ee57637b8d38ce1118d3baf8c38 | 6c737f3b37325e31c71c6942701135185df7743d | /manage.py | 29af009895273cc67d243bd73bd11e99b40b7346 | [] | no_license | MalafeevArtem/django_rest_v1 | ba030cd52cfe3e50d69cde32503dc5c4ab15d0db | 888a01b45f00623c5e7b9a78143ad63ab2aaeb89 | refs/heads/master | 2023-03-02T18:07:18.486888 | 2021-02-11T10:18:35 | 2021-02-11T10:18:35 | 332,746,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'stepik_rest.settings')
try:
from django.core.management import execute_from_command_line
except ... | [
"mrtema1999@gmail.com"
] | mrtema1999@gmail.com |
0e1f05ee35b681868ae2cd975c5048eb9ce2bbc5 | 90204d5e56316024691e1fe7c4ae512db943eba1 | /extract.py | 9f03d37a3fd345323f5b721666b52a0fb873045e | [] | no_license | rmawb/gsm | efb3f73b63983f05a9fe286e6df516ef52bfe69a | d75a42ea158c7cb2471859b18de62fed3975c809 | refs/heads/master | 2022-11-05T08:02:19.151698 | 2020-06-24T14:55:11 | 2020-06-24T14:55:11 | 274,020,981 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | #module for extracting data
def trait(trait, path):
"""
Given a trait in a config/info file, returns the value of the trait.
Input: trait, path
Output: value
"""
with open('{}'.format(path), 'r') as f:
for line in f:
split = line.split('=')
if split[0] == trait:
... | [
"robertmauban@gmail.com"
] | robertmauban@gmail.com |
2a69f743d81351d9b04e3a8bbca92a0042a2a5f0 | 887d40b6b2222942567d1a1fe36aec7194f63a5b | /airflow/providers/google/cloud/hooks/life_sciences.py | 5ab9f9a877aa44870a1b8ae21ec81d7529ea37fa | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"Python-2.0"
] | permissive | bryzgaloff/airflow | 41dd16619edd79e9cd9feb9fabd8269b155b586d | d7602654526fdd2876466371404784bd17cfe0d2 | refs/heads/master | 2022-12-05T08:35:02.005873 | 2020-08-25T08:50:21 | 2020-08-25T08:50:21 | 290,187,177 | 0 | 0 | Apache-2.0 | 2020-08-25T10:41:31 | 2020-08-25T10:41:30 | null | UTF-8 | Python | false | false | 6,608 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | bryzgaloff.noreply@github.com |
f381841d89766477fd016be1aca5fb778149ea53 | 779f6e8d17a38d9d8657d5554f185ace33ded6cf | /mysite/settings.py | 64b8a574235242211924f3ef1c172e721b90af4f | [] | no_license | end3forworking/my-first-blog | 901a40fd4b5f7545b2125990648c6019c74c36c1 | 46b5287c93f409b5d44263657c115f0ad2db2a7b | refs/heads/master | 2020-07-10T02:46:11.961924 | 2019-08-24T12:01:38 | 2019-08-24T12:01:38 | 204,146,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,181 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# ... | [
"end3forworking@gmail.com"
] | end3forworking@gmail.com |
3749d16b9dfef26b4dc84411eb098c1772cc9073 | 6a10b6f1e3c3e59d1f4c4d7a31166734e0139b59 | /Zadanie1/Zadanie1/content.py | 240ab6d4832cd397320d235d39dd4df44236db40 | [] | no_license | Drabenstein/MSiD | e493ee16de3e6489b3339031495188251e2b8403 | b05e91a1839a96fc71bb04194a2639de06d75a25 | refs/heads/master | 2020-04-29T05:37:50.671923 | 2019-06-29T22:15:00 | 2019-06-29T22:15:00 | 175,889,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,687 | py | # --------------------------------------------------------------------------
# ------------ Metody Systemowe i Decyzyjne w Informatyce ----------------
# --------------------------------------------------------------------------
# Zadanie 1: Regresja liniowa
# autorzy: A. Gonczarek, J. Kaczmar, S. Zareba
# 2017
# ... | [
"marcindrabek@hotmail.com"
] | marcindrabek@hotmail.com |
395e5fe327788d96ba99eebea072a1292b923bf9 | ce0d70fdc712f465d64dfbedec3fcdcb4446f0e2 | /Zominion-main/bullet.py | 7ddf37227e77821b5a458d88c824ecff41481754 | [] | no_license | rahma-04/zominion-2d-game | 81b67e12250cbb8b475d86ff78c6e381d7485048 | 4b6a0120ee450e8807824ec7fa498a41688baa5e | refs/heads/main | 2023-07-23T12:22:55.795956 | 2021-09-12T05:34:43 | 2021-09-12T05:34:43 | 377,162,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,040 | py | import pygame
from pygame.sprite import Sprite
class Bullet(Sprite):
"""A class to manage bullets fired from the frog"""
def __init__(self, ai_game):
"""Create a bullets fired from the frog"""
super().__init__()
self.screen = ai_game.screen
self.settings = ai_game.settings
... | [
"noreply@github.com"
] | rahma-04.noreply@github.com |
221f5cba0e47bbeaf745d3280ff7e72968e90a71 | 72dc43a18e662967b7f56a77a92a09a96dfc338f | /helpecBackend/settings/production.py | 0ecbcbdf0f83296ff36265fb691d1ed64677a38b | [] | no_license | helpec/app-backend | 0ca3abaed4602b1dd3ca54415b3aad42d24a35c3 | 8beb377b75a4609658a9864148cd204f872af37c | refs/heads/master | 2023-08-19T07:38:17.611244 | 2019-07-31T11:46:24 | 2019-07-31T11:46:24 | 171,523,001 | 0 | 0 | null | 2023-09-13T13:47:43 | 2019-02-19T17:59:58 | Python | UTF-8 | Python | false | false | 820 | py | """ """
import os
import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration
from .base import *
DATABASES = {
"default": {
"ENGINE": "django.db.backends.mysql",
"NAME": os.getenv("DATABASE_NAME", "helpec"),
"USER": os.getenv("DATABASE_USER", "root"),
"PASSWOR... | [
"cesarabruschetta@gmail.com"
] | cesarabruschetta@gmail.com |
9c3cd8399cb975e05838d5ea7ea05671ba3dcc2c | faaec5e7cc28b55e6908d2ea0ead65f7201ce501 | /DashApp/app.py | 367c014a98434293dcd821c323ead220f41d5cd2 | [
"MIT"
] | permissive | adsi-itam-23/ProyectoFinalFenrir | e51ea8bf163d982be2cee8106a3bcb98b13ee2f0 | a4cf443b07fcbcd980472541aa9ee6d12fded10f | refs/heads/master | 2020-03-16T17:24:22.174829 | 2018-05-27T12:05:11 | 2018-05-27T12:05:11 | 132,830,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,468 | py | # -*- coding: utf-8 -*-
import dash
import dash_core_components as dcc
import dash_html_components as html
import dash_table_experiments as dt
import requests
from requests.auth import HTTPDigestAuth
from dash.dependencies import Input, Output
import json
import pandas as pd
response = requests.get("http://localhost... | [
"aiakos0@aol.com"
] | aiakos0@aol.com |
2c0aacdb9c5bfb30174755abaa02105075017b1b | c9e4672502149348e4f86a857acacec22a038fdb | /app-youtrack-6.py | 524e4d017e90ac67e70e5bbe110d55db338726f1 | [] | no_license | boardstretcher/fabric_tasks | 40b6ee9f2ceca9f8a7dfaf1a9e24ea2b5e2e5e52 | 8a252e081261a7e25990c697034948fb42c61ea1 | refs/heads/master | 2021-01-10T14:15:27.554523 | 2016-09-29T15:28:48 | 2016-09-29T15:28:48 | 26,180,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | from fabric.api import *
import os, time, logging, re, sys
from pprint import *
# uncomment for debugging
# logging.basicConfig(level=logging.DEBUG)
# logger = logging.getLogger(__name__)
# pprint(locals())
epoch_time = int(time.time())
def install(ip):
"""Install Jetbrains Youtrack on a centos 6 box
... | [
"root@services02.signs365.local"
] | root@services02.signs365.local |
458a3761d31bbdb9c44ceebdd1c59f0434483402 | b63f9e4e2c478e672cea9391b77cd57591fd813a | /code/data_processing/model_selection_experiments.py | 6778867d7648aa778946116904cf3cc784943f73 | [] | no_license | jpazvd/smart-survey-boxes | 0382f49496ee33bc48602abb0322d3c7d8e658a3 | f624e6191434720560afbcd9b03016b954f31bd8 | refs/heads/master | 2020-08-28T16:52:47.998380 | 2018-04-09T22:25:48 | 2018-04-09T22:25:48 | 217,759,932 | 1 | 0 | null | 2019-10-26T19:36:20 | 2019-10-26T19:36:16 | null | UTF-8 | Python | false | false | 13,990 | py | import datetime
import multiprocessing
import numpy as np
import pandas as pd
from sklearn.ensemble import ExtraTreesClassifier
from sklearn.model_selection import cross_val_score
import data_processing as prep
import data_utils as util
import model_selection_custom_models as mod_sel
def print_time_taken(start_tim... | [
"dmatekenya@gmail.com"
] | dmatekenya@gmail.com |
ab16f486204b24edd7fe89780079a0f68fff4fad | 5ade30600708c776639638c312eaceb2f113c82a | /classes/my_script.py | 0530706122b13cda3d36a48bb172ab962fa8674d | [] | no_license | wajahata99/myrepo | 5b636cd6e745b6d4930905e323f2713221fa1512 | 39417416d1dcb870c2662382e51a13e6dde1ed23 | refs/heads/master | 2023-08-21T07:02:21.450987 | 2021-05-11T12:12:17 | 2021-05-11T12:12:17 | 304,105,840 | 0 | 0 | null | 2021-02-18T05:32:17 | 2020-10-14T18:45:17 | Python | UTF-8 | Python | false | false | 328 | py | from helpers.persons_classes import person,education
from helper_2.cars_classes import car
myperson=person("wajahat",10,"Lahore")
myperson_education = education("wajahat",10,"Lahore","A&M",16)
mycar=car(10000,1100)
print(myperson.myname())
print(myperson_education.estimated_experience(16))
print(myperson_education.m... | [
"wajahat.mech@gmail.com"
] | wajahat.mech@gmail.com |
54653ff8ae9f1d734186dff0d2cc2189116fa554 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/5/lEm.py | 06476509f118b2e4163b067da84e4c3f5d7fee82 | [] | 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 |
8d8a63ad21634d58b6b701b47dccc684ee6fab3b | 476f2a6413559ce81acc3ec7563c105c361d1a9c | /back-end/agendai/migrations/0001_initial.py | 174aaad16216f6001710c35d67b69aa3f57e7a8b | [] | no_license | gabriel-cavalheiro/AgendAi | 1d625ca7ee984c2a7684bb6965542f4cceb1882a | 056d8d5413ca8ab15c8091b9f6c9c5e5a447a077 | refs/heads/main | 2023-08-10T21:04:06.532748 | 2021-09-17T01:55:59 | 2021-09-17T01:55:59 | 402,629,459 | 1 | 1 | null | 2021-09-17T01:55:59 | 2021-09-03T02:59:36 | HTML | UTF-8 | Python | false | false | 4,320 | py | # Generated by Django 3.2.7 on 2021-09-15 02:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Escritorio',
fields=[
... | [
"s4camargo@gamil.com"
] | s4camargo@gamil.com |
fb7b675fac0ce9964316a5a35265a4e2d1c5f19b | 06d3345298fd29e63788abc38f5deee9a8b00f6c | /main.py | 2f0bcfa53eb8997d0da3d83a1d1ed7405b97ff52 | [] | no_license | kgasiorowski/competition-level-calculator | 0de984b69b27dd76981de79a48ebadda68fd6c5d | 7836347b340dfc723a416c36ea3ec7036e9f88ec | refs/heads/master | 2023-04-10T17:55:20.894711 | 2021-04-28T15:53:04 | 2021-04-28T15:53:04 | 362,281,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,043 | py | import requests
import json
from collections import OrderedDict
SKILLS = json.load(open('skills.json'))
LEVELS = json.load(open('levels.json'))
PLAYER_URL = "https://api.wiseoldman.net/players/username/{username}/snapshots"
COMPETITION_URL = "https://api.wiseoldman.net/competitions/2222"
PARAMS = {'startDate': "2021... | [
"kgasiorowski123@gmail.com"
] | kgasiorowski123@gmail.com |
15469e2421d5759efcc137bc78b3b5814db1a5a7 | 7bedb3b0f5e1e39467d50435a9aa10306944e4d5 | /Python Programs/Projects/Question.py | 27c75f06bab4698e1d3f333414588cf37b8d6225 | [
"MIT"
] | permissive | JCharlieDev/Python | d098c046a33661547f842def96d84a252a036da6 | d213c6cb60110156b19d96d8bb9b809e69e89ce5 | refs/heads/master | 2021-04-07T00:41:49.738750 | 2020-09-01T16:23:03 | 2020-09-01T16:23:03 | 248,628,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py |
class Question:
def __init__(self, prompt, answer):
self. prompt = prompt
self.answer = answer | [
"al15211330@ite.edu.mx"
] | al15211330@ite.edu.mx |
0bb638eabab0e24d2744749590a492431854509e | 53eb004cdcd65782425f368f4da32968a864b48d | /empower/apps/mobilitymanager/__init__.py | 091549b07083b8d9f88d9e0ec6583ff05365ef76 | [
"Apache-2.0"
] | permissive | gastontelfe/empower-runtime | cdb590b70f520708740a142a6462d58d43a683a2 | 27782b18b089ce9204fa387526097034dc8faaf2 | refs/heads/master | 2021-01-21T09:10:09.780352 | 2016-12-15T02:37:22 | 2016-12-15T02:37:22 | 53,756,341 | 0 | 1 | null | 2016-03-12T22:29:05 | 2016-03-12T22:29:05 | null | UTF-8 | Python | false | false | 1,557 | py | #!/usr/bin/env python3
#
# Copyright (c) 2015, Roberto Riggio
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, t... | [
"roberto.riggio@gmail.com"
] | roberto.riggio@gmail.com |
2d135503be3de44d9dd0757402b130c84e1223d8 | 8dcc72bcaab18df9d0b979e8d8e4d97334ae0fc2 | /webapp/migrations/0008_customer_profile_pic.py | 16e457cd5df37be48b739190f9f37157e725f96e | [] | no_license | shubham972/SVM | 566f0eff9e6dc73a32075be91205dc7e3ee75acd | 0d8781b6b3ad3267f34b574af81e7a7dab51bafb | refs/heads/master | 2022-11-06T15:05:29.186977 | 2020-06-27T11:45:27 | 2020-06-27T11:45:27 | 275,195,945 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # Generated by Django 3.0.7 on 2020-06-25 03:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('webapp', '0007_customer_user'),
]
operations = [
migrations.AddField(
model_name='customer',
name='profile_pic',
... | [
"joy001kapor@gmail.com"
] | joy001kapor@gmail.com |
396fd6b45343bc70a2716dbbfc35c9c04842f541 | e928568a0f980f0c5bd4579c44f6b9417835c105 | /ui/calc.py | b43fdd813e68be3f02d53e613aaefa6cb8a1273d | [] | no_license | zaynabdev11/calculator | 8e4d6b0a2b15c114e9b7d414cc203dc94f61c72b | 092ff1d410a59e0de36a55edacbb1086a7a2e639 | refs/heads/master | 2020-11-27T13:19:06.499567 | 2019-12-21T17:04:44 | 2019-12-21T17:04:44 | 229,457,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,527 | py | # -*- coding: utf-8 -*-
# 2019
# Form implementation generated from reading ui file 'calculatrice.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
... | [
"zaynabdev@gmail.com"
] | zaynabdev@gmail.com |
bffba9679307fa299c59ebd5d29a3cb871b4ef1e | 4a31ae3d484f7bbcb0dc00768b08988bdc50a7e0 | /backend/content/comment_trends/external_api/feed.py | eaef3827178a79a55cf5c68a12e968227b37415f | [] | no_license | Maeglian/trenders | c42c86c8ea69f90f99f175dbba28bccf0a8366ce | 9d6526ac4ec5ad76f1f40ac51766cbdfc61ce9ba | refs/heads/master | 2023-07-21T22:23:03.191020 | 2019-11-15T18:47:54 | 2019-11-15T18:47:54 | 241,967,755 | 0 | 0 | null | 2023-07-07T23:03:26 | 2020-02-20T19:10:37 | Python | UTF-8 | Python | false | false | 2,446 | py | import requests
from pprint import pprint
from json import JSONDecodeError
import logging
feed_logger = logging.getLogger(__name__)
class FeedRequest:
url = "https://frontend.vh.yandex.ru/v23/feed.json"
headers = {
'Origin': "https://yandex.ru",
'Accept-Encoding': "gzip, deflate, br",
... | [
"antipov-dg@yandex-team.ru"
] | antipov-dg@yandex-team.ru |
1a98686ca588dcece79bdcebe4a71478daa3acb4 | 62b6d66c145d6d9f9ccfc5e3da217c1f0a6621c5 | /teams/gen_ssh_keys.py | 578e7e15d57279a54ce71c6c8902832ff2960d6d | [
"MIT"
] | permissive | acisoru/ctfcup-2020-ad-finals | fa9e03645cc50266263ce0190d1361ce08352e82 | 16009c4ae2b3db7c452f36a9a677e3aec8e651d6 | refs/heads/main | 2023-01-31T11:32:51.780542 | 2020-12-12T11:44:39 | 2020-12-12T11:44:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | #!/usr/bin/python
from os import system as r
import random
import string
for i in range(101, 105):
r('mkdir -p {}'.format(i))
r("ssh-keygen -t rsa -N '' -f {}/ssh_key".format(i))
| [
"xelez@yandex-team.ru"
] | xelez@yandex-team.ru |
2dd89943c6b95e5141d990cd8ad8b066b2a903c0 | 234b14ae9bd4c8bc90b88ae84b9d0a2fd51b9fc3 | /Training/Python Tasks/sort_as_sublist.py | e1fdbf3fdc623f678e46243558d525462e6c8210 | [] | no_license | Siddhant6078/Python | a7e730ef63435b8c114782158ebadc9ec5bfde89 | 1f9ad00b78fe417f3702a5e6421d8fccbb9d1c8f | refs/heads/master | 2021-07-11T20:09:49.369503 | 2017-10-14T13:40:30 | 2017-10-14T13:40:30 | 105,008,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,718 | py | # Sorting a list of lists according to length of sublists
# a) We suppose that a list (InList) contains elements that are lists themselves. The objective is to sort the elements of InList according to their length. E.g. short lists first, longer lists later, or vice versa.
# Example:
# ?- lsort([[a,b,c],[d... | [
"nishant.c@indictrans.com"
] | nishant.c@indictrans.com |
37b3647bb50ae28ed528e2bd7ffccfe2adbf6942 | ac47074bcf749273941ab01213bb6d1f59c40c99 | /project/fund/fund_factor/alpha_factor/morningstar_risk_adjusted_return.py | ac09c255fb010636db5553366eb00d9f13b56a5e | [] | no_license | xuzhihua95/quant | c5561e2b08370610f58662f2871f1f1490681be2 | c7e312c70d5f400b7e777d2ff4c9f6f223eabfee | refs/heads/master | 2020-05-19T17:04:08.796981 | 2019-04-24T02:50:29 | 2019-04-24T02:50:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,434 | py | from datetime import datetime
import os
import pandas as pd
import numpy as np
from quant.fund.fund_pool import FundPool
from quant.fund.fund import Fund
from quant.stock.date import Date
from quant.param.param import Parameter
from quant.stock.macro import Macro
import calendar
class MorningStarRiskAdjustedReturn(ob... | [
"1119332482@qq.com"
] | 1119332482@qq.com |
69bd648e2f22328b05bc72638b69a9862c70e36b | 7090a13d5a33d2c1e500af239fe2a3f4a9996596 | /trtools/tools/pload.py | ff5d82655582d01ae821a3b001351359dadb89e9 | [
"MIT"
] | permissive | andrewmhammond/trtools | 97d382e560e9e303e34431d7a4248ac633b62b09 | 211cdb21377e36086c3d78fe9d711a9c12245359 | refs/heads/master | 2020-12-26T01:48:59.728488 | 2014-04-06T23:25:05 | 2014-04-06T23:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | import trtools.tools.datapanel as datapanel
import multiprocessing
_store = None
def _load(key):
return _store[key]
def pload(store, N=None, num_consumers=None):
"""
Parallelize the reading of a mapping class.
This is useful for any IO abstraction where you want to read
many files at once
... | [
"dale@dalejung.com"
] | dale@dalejung.com |
3dcab0abf89c33810609a7a006325f042711ddf7 | 929c5d410575498104bcc3a32e2d827ff11a8294 | /3 trimestre/pyton/exercicios.py | 46f5fca66ce57ddb0d415b29119bdb8b86f37159 | [] | no_license | adriel1010/aulaTecnologiasWeb | 52ab30f61a342bbebf86b602ee9800ec276a2ae1 | 699e36d23319bafa5c603dd81f291eb261cabdc4 | refs/heads/master | 2021-01-24T16:45:54.853451 | 2018-09-26T01:33:10 | 2018-09-26T01:33:10 | 123,209,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | py |
#soma = int( input("Número 1 : ") ) + int( input("Número 2 : ") )
#print(soma)
# lista 1 exercício 10
#tempreratura = ( 5 * (int (input("Temparatura: ")) - 32 ) ) / 9
#print (tempreratura)
#lista 1 exercício 14
# salario = int( input("Informe quanto você ganha por Hora : "))
# numeroHoraTrabalhada = int ( input("In... | [
"adrielcarlos1010@gmail.com"
] | adrielcarlos1010@gmail.com |
056ec2efa2da8aca1d580d0cd5813eb5fa8f17a9 | def35a4ca98074e2269e20624323882150885e71 | /run_mfe.py | 8585ed7c67f1ba9f6673ea8f65addf248bc99f7b | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | edgeimpulse/processing-blocks | 6b1c626c8d708b99c4e4b92d64c8d4dcab0a23b6 | 66a90b4f7c21e4534620dcaa064877b02ebd04ce | refs/heads/master | 2023-08-19T15:08:37.375258 | 2023-08-09T23:10:28 | 2023-08-09T23:10:28 | 244,917,999 | 27 | 10 | Apache-2.0 | 2023-08-03T21:02:08 | 2020-03-04T14:14:06 | Python | UTF-8 | Python | false | false | 13,864 | py | from mfe import generate_features
import numpy as np
# Parameters for generate_features
## The first section are parameters that apply for any DSP block
# Version of the implementation. If you want the latest, look into parameters.json, and use the value of latestImplementationVersion
implementation_version = 4 # 4 ... | [
"alex@edgeimpulse.com"
] | alex@edgeimpulse.com |
aaae271cb895e08fe87a6465c6784b07ac0f25cc | 33df7167b69b56a20ffdc7bf1095333223bd18cb | /flask/Teacher/tearcher_op.py | 2dcc449402747124e8817d1aded133a465527d50 | [] | no_license | yypnogg1011/16_daoyun | 39f4f405856031d0fab9a5cfe107eba8557ce003 | 567ac7edc21c12ef4360f30c430396fd8da14c0b | refs/heads/master | 2022-10-22T06:47:09.446134 | 2020-06-17T11:34:41 | 2020-06-17T11:34:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,407 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
from flask import Blueprint
from flask import jsonify,request
from flask_web import db
from flask_web.databaseModel import Teacher,USER,check_role
import json
mod = Blueprint('teacher', __name__)
@mod.route('/teach', methods=['GET'])
@check_role(8)
def get_teacher():
t... | [
"noreply@github.com"
] | yypnogg1011.noreply@github.com |
2bfe1a99199b82e9bf0ddf4a5916a9e47933aeb9 | fbd75f5de29b4bda8beca7b5bdef78f2a06ec8de | /1layer_selection.py | 6b1643b380e906ca40086991a39aefeb05da4e67 | [] | no_license | miroC911/LSTM-based-Stacked-Autoencoder | 7d3c6d17373c8e156cbccd4f2edd6e5594cb39b9 | 8668132ef6f8855dbab289c5a2b2478f871c4c4b | refs/heads/master | 2023-04-06T03:24:04.026854 | 2021-04-19T22:01:36 | 2021-04-19T22:01:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,613 | py | import numpy as np
import tensorflow as tf
import random as rn
import numpy as np
import os
# os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" # see issue #152
# os.environ["CUDA_VISIBLE_DEVICES"] = ""
os.environ['PYTHONHASHSEED'] = '0'
np.random.seed(42)
rn.seed(12345)
session_conf = tf.ConfigProto(intra_op_paralleli... | [
"noreply@github.com"
] | miroC911.noreply@github.com |
d7be36e6e09482164160575426a42d6f073350ce | e17cd40f0a9e2452d685a754458f152a1cfb2c69 | /open/core/betterself/models/supplement_stack.py | a29fbadc0050919745c7366ea59577be8717613f | [
"MIT"
] | permissive | Rowlando13/open | 6faec6f4f048284c2a69b64d7fb3767569dbcf3a | 6c14c7bf8b915cea94f89b8af209be14489726e8 | refs/heads/master | 2022-12-02T00:34:56.987855 | 2020-08-20T22:01:25 | 2020-08-20T22:01:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | from open.utilities.fields import DEFAULT_MODELS_CHAR_FIELD
from open.utilities.models import BaseModelWithUserGeneratedContent
class SupplementStack(BaseModelWithUserGeneratedContent):
name = DEFAULT_MODELS_CHAR_FIELD
class Meta:
unique_together = ("user", "name")
ordering = ["user", "name"]... | [
"jeffshek@gmail.com"
] | jeffshek@gmail.com |
536450a43d0d444c91fba1293963e2e5b5effb47 | 6464213d84f4fbc2ff28b5375bcb9bd4d36db68a | /experiment/regression1_1.py | 59ff06efa88e3ea387a07d13d12955199d7b7e2c | [] | no_license | fatfishZhao/cross_nlp | 48e5d68c666be25c18485161ed680b77e249ca15 | 8f53e324ba38254db3e5511b7c18d3921e25dd31 | refs/heads/master | 2020-05-21T05:32:35.730064 | 2019-06-08T09:14:09 | 2019-06-08T09:14:09 | 185,923,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | import pandas as pd
# 线性回归
from sklearn import datasets, linear_model, cross_validation
import pickle
import numpy as np
from sklearn.metrics import mean_squared_error, r2_score
import matplotlib.pyplot as plt
import numpy as np
def load_data(fea_path = '../data/ECGO/feature.pkl'):
with open(fea_path, 'rb') as f:... | [
"fatfishzyx@qq.com"
] | fatfishzyx@qq.com |
5791b7a7de6a13a6eef6fc71362867648c4e914f | 6ee84f10b25aa1621574e0e31c62496fbf57865f | /djangorest/fbvSerializers/fbvSerializers/settings.py | 51aec81909149c092ff9c29a02473e21fe9c1358 | [] | no_license | Mpm03/djangoprojects | 876004d0544e55f4d71a022ee241b4ac68b9d746 | aeba0e1f323c5a5cc907a8cb8ce7b9b6b433a9e9 | refs/heads/main | 2023-03-16T10:23:51.209656 | 2021-02-28T23:47:28 | 2021-02-28T23:47:28 | 343,239,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,176 | py | """
Django settings for fbvSerializers project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
impor... | [
"mariprogramacao@gmail.com"
] | mariprogramacao@gmail.com |
9accc7862e9f926a0d1749465ae73b1bd1cf387c | 47df5d6b7e2d4063d0692be4d8460d736cdddd15 | /import/import.py | 7e5bf28f46e06965cdcd6543189b51ece1d609b9 | [] | no_license | edwardszczepanski/OSNAP | 604ef3288986f32ff4b374c90262bcb1be8af244 | 85fec370f7601c339a840409f91a5e15179f769d | refs/heads/master | 2021-01-02T08:10:59.597115 | 2017-03-21T15:37:08 | 2017-03-21T15:37:08 | 78,582,104 | 0 | 0 | null | 2017-03-21T15:37:09 | 2017-01-10T22:57:47 | Python | UTF-8 | Python | false | false | 5,599 | py | import psycopg2, os, sys, csv, glob
from datetime import datetime
def main():
connect()
for filename in glob.iglob(input + "*"):
if "facilities" in filename:
facilities(filename)
for filename in glob.iglob(input + "*"):
if "users" in filename:
users(filename)
for... | [
"edward@cs.uoregon.edu"
] | edward@cs.uoregon.edu |
fcf7d0c7373084d9fb10b07ff25dc125d92190fe | 36d924baf115884f48cf4e8de3415340b82abda5 | /atomman/dump/poscar/dump.py | 7d6ed24a88f0fa17c6717384f61be774816a7250 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | plin1112/atomman | 499a430649a89bc9aa5cb716598d05b2783537d6 | ced3a4e5a99a95ef582cf3dbb074eb75cad4a0a6 | refs/heads/master | 2020-03-17T19:28:04.032877 | 2019-05-24T03:17:46 | 2019-05-24T03:17:46 | 133,863,046 | 0 | 0 | NOASSERTION | 2019-05-24T03:17:47 | 2018-05-17T20:06:21 | Python | UTF-8 | Python | false | false | 3,554 | py | # Standard Python libraries
from __future__ import (absolute_import, print_function,
division, unicode_literals)
# http://www.numpy.org/
import numpy as np
# atomman imports
from ...compatibility import range
def dump(system, f=None, header='', symbols=None, style='direct',
box_scale... | [
"lucas.hale@nist.gov"
] | lucas.hale@nist.gov |
ab64c7ade9c0e6f20ab29492761f9cef7461b56b | 155b6c640dc427590737750fe39542a31eda2aa4 | /api-test/hmpt/test/test_009_web_Template.py | 90b6e1ae1a7cb06aa0b98c4140eba1a39a8ff34d | [] | no_license | RomySaber/api-test | d4b3add00e7e5ed70a5c72bb38dc010f67bbd981 | 028c9f7fe0d321db2af7f1cb936c403194db850c | refs/heads/master | 2022-10-09T18:42:43.352325 | 2020-06-11T07:00:04 | 2020-06-11T07:00:04 | 271,468,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,731 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time :2019-06-05 上午 11:25
@Author : 罗林
@File : test_009_web_Template.py
@desc : 进件配置流程自动化测试用例
"""
import json
from faker import Faker
from common.myCommon import Assertion
from common.myCommon.TestBaseCase import TestBaseCase
from hmpt.query ... | [
"romy@romypro.local"
] | romy@romypro.local |
a091ae00cb5e680a97b131dd7b34032dd57e6882 | 880ddf52504c0942b3b8b9a3f6838d7d0b979a5c | /www/dxr_data.py | 28eb5b5fb8f99495e8311d6e13df756ea3a827df | [
"MIT"
] | permissive | MarkoSchuetz/dxr | 825eaabd0902a97af0e272efcdd3534b85a04d4e | 406c25ed5f29fd0f7de70d2de9a016ef6ac4671d | refs/heads/master | 2020-12-24T11:09:51.844648 | 2011-05-27T22:51:15 | 2011-05-27T22:51:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,631 | py | #!/usr/bin/env python2.6
import json
class Location:
""" A source location, e.g., path/to/file.cpp:45. """
def __init__(self, path, loc=None):
if path is None or path == '':
self.path = self.loc = self.full = ''
else:
if loc:
self.path = path
self.loc = loc
self.full = ... | [
"david.humphrey@senecac.on.ca"
] | david.humphrey@senecac.on.ca |
31ee51f9fb901a1a711c8792108497d4f80f3159 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/41/usersdata/67/24524/submittedfiles/gravitacional.py | e231a12429dd729284c1d39d911cd4e681053dbb | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | # -*- coding: utf-8 -*-
from __future__ import division
import numpy as np
import funcoes
#ENTRADA
dimensao = input('Digite a dimensao das matrizes: ')
matrizA = input('Digite a Matriz A como uma única linha entre aspas: ')
matrizD = input('Digite a Matriz D como uma única linha entre aspas: ')
alfa = input('Digite o ... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
26dbccc4ff7561470f004474a20ed4468e9edc6f | 6bb0d79f3f6c1343cd36da7ca83d79bd0597f9e3 | /Part 2 - Regression/Section 6 - Polynomial Regression/practice_polynomial_regression.py | 21cb9caf56cc26feb980ce8990eebdc68084089f | [] | no_license | dibyajit30/Machine-Learning-A-Z | 110d07e3b4c481aa24104a7352312d2859a0b520 | d37a455de82ac177457285c52ff42af71afff7bc | refs/heads/master | 2020-09-11T17:04:38.225588 | 2019-11-16T17:18:00 | 2019-11-16T17:18:00 | 222,132,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,075 | py | # Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Position_Salaries.csv')
X = dataset.iloc[:, 1:2].values
y = dataset.iloc[:, 2].values
# Splitting the dataset into the Training set and Test set
'''from sklearn.cross_validat... | [
"dibyajit30@gmail.com"
] | dibyajit30@gmail.com |
f979f8b8a5d8dab850866df4ceb72e105a7a63f5 | c8b22d7645c41f7e584ead42fb7d3070a1f5a6d4 | /day12/python/t-pi/solution.py | dabd99870a13ce8dfdafea7b9843ed8ca6178d82 | [
"MIT"
] | permissive | RJPlog/aoc-2020 | 9f8219e622e30a59abcf5562c48071b92951de82 | d2e7fa645e4f7053f04cb6318902753eba1b6204 | refs/heads/main | 2023-02-10T02:07:57.261189 | 2020-12-25T16:56:36 | 2020-12-25T16:56:36 | 316,047,333 | 0 | 1 | NOASSERTION | 2020-12-19T11:20:08 | 2020-11-25T20:31:20 | Python | UTF-8 | Python | false | false | 2,937 | py | # see README.doc
import math
def read_daily_input(filename):
''' Read lines from file with given input name
cast to daily required type and return list '''
with open(filename) as input_file:
local_list = input_file.readlines()
return_list = [(item.strip()) for item in local_list]
... | [
"ti.pi@online.de"
] | ti.pi@online.de |
003caeca52150442315d6693c00492921fc5a603 | d6551d09c2ad6aa3a6db4958e818ecb08393066b | /examples/unixfs_read_file.py | 1028c213f08c34def7dacb34fe8c3219a1278bbb | [
"MIT"
] | permissive | DNS-Global/python3-ipfs-api | be3b40b7b0609c807de7e0d90e4a47f691cc5145 | c5199fd04d43fd8c56cde534b38f63b2e1806913 | refs/heads/master | 2023-03-17T20:16:43.430980 | 2016-09-26T22:22:21 | 2016-09-26T22:22:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | py | from ipfs.api import IpfsApi
from ipfs.unixfs import UnixFs
fs = UnixFs(IpfsApi())
with fs.open("QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB", "r") as f:
for line in f.readlines():
print(line, end = "")
| [
"graef@st.cs.uni-saarland.de"
] | graef@st.cs.uni-saarland.de |
c2b0b0a6437048bd0bdbc92f4e36940ee7794963 | 622cf348568f8e87db41d555a81fc6edd13c1119 | /qa/rpc-tests/nodehandling.py | 372b42409912f918ce39f352102d387fa16d3529 | [
"MIT"
] | permissive | Lm-consulting/LM-Coin | 65aad59a5e10d49dff78b0f1002b9abef4062088 | 58cc103549d3c6336f0bd488fbe86293713d2644 | refs/heads/master | 2021-05-11T12:04:15.212937 | 2018-01-16T08:31:35 | 2018-01-16T08:31:35 | 117,650,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,553 | py | #!/usr/bin/env python2
# Copyright (c) 2014-2015 The Lmcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test node handling
#
from test_framework.test_framework import LmcoinTestFramework
from test_framewor... | [
"985543701@qq.com"
] | 985543701@qq.com |
4d2b5f48e997fed08bc8c45f8f7918ba868a9710 | e71b6d14fbdbc57c7234ca45a47329d7d02fc6f7 | /flask_api/venv/lib/python3.7/site-packages/vsts/task_agent/v4_1/models/service_endpoint_request.py | 84e317a726ed5a2c330d46f34c75ccca9feae9e4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | u-blavins/secret_sasquatch_society | c36993c738ab29a6a4879bfbeb78a5803f4f2a57 | 0214eadcdfa9b40254e331a6617c50b422212f4c | refs/heads/master | 2020-08-14T00:39:52.948272 | 2020-01-22T13:54:58 | 2020-01-22T13:54:58 | 215,058,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,877 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------------------... | [
"usama.blavins1@gmail.com"
] | usama.blavins1@gmail.com |
83b7004eea334ee2de741d6827b7f0e1e5f8beab | 8cb7180300bebd3d126829ea11eefe04dd84795d | /ninja_gold/apps/ninjaGold/urls.py | 78094f3883f0b6af2db83a4a604f8835dde0915e | [] | no_license | ohis/Python-Django-Projects | c993f0ff7dabb6379c2464247031d0784be9b7da | a9725e10d2636d4da4c885321ad8c251b294f0df | refs/heads/master | 2021-08-29T15:39:41.550181 | 2017-12-14T05:41:53 | 2017-12-14T05:41:53 | 114,206,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | from django.conf.urls import url,include
#from django.contrib import admin
from . import views
urlpatterns = [
url(r'^$',views.index),
url(r'^process$',views.process)
]
| [
"ohifeme.igbarumah@mavs.uta.edu"
] | ohifeme.igbarumah@mavs.uta.edu |
b9710bc99119365d8ee82ca778fcb6fd6aef0822 | f31ecf0ccb793d48b09f9d8ff0cfceb559777503 | /my_proj/my_proj/urls.py | 297e660d695ad8554d405b13ccbd94733b9fcc3e | [] | no_license | amit1234mishra/amit | c2abe720c1c092ab6ed716b9c1bc8d862eb2fe1a | 18dd05b97965fbff2d4ca9994190594be6a2c238 | refs/heads/master | 2023-03-23T10:25:22.650809 | 2021-03-21T08:21:40 | 2021-03-21T08:21:40 | 349,935,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | """my_proj URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"connect.technogripper@gmail.com"
] | connect.technogripper@gmail.com |
724dd7517d848bc94e9fabcca2df551568d677c0 | c15d376999142a6838dfd4d2cd9d435e05c81c79 | /node_modules/live-server/node_modules/fsevents/build/config.gypi | 189546fea25dd0954ac82c0997c36e55e8e17b6a | [] | no_license | waleedalikhan/project-for-adrian | 9e607df9b70cf77d50a3479fd8d3c9d68d797fc5 | 0037327134a44b4fdf81018cf4e9de4cd225501e | refs/heads/main | 2023-06-02T23:42:59.209735 | 2021-06-19T04:55:24 | 2021-06-19T04:55:24 | 365,641,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,886 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"dcheck_always_on": 0,
"debug_nghttp2":... | [
"waleedomore@gmail.com"
] | waleedomore@gmail.com |
0bf0bdcbca713d816b6bf06d52c9ea4f4fc29158 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2009.1/programming/language/python/pysqlite/actions.py | d4b2fc36f873b9ceae3f7fec989ac524da571a25 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (C) TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def install():... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
b981da78f6dd70eac3da54b275275e77340715aa | f537427134bac52e0274ecd73e664d597718a6a8 | /tests/hwsim/test_ap_hs20.py | d2d1af2b36bb40fc09bce469704b1f204da663f4 | [
"BSD-3-Clause"
] | permissive | liulk/hostap | a19d411d961ec6a0165db38b8b72f8ced6875594 | f3ff948753ebe5643b5c2d16546a4d16e2c9d20a | refs/heads/master | 2016-08-06T02:19:18.487269 | 2014-02-27T00:05:21 | 2014-04-11T16:22:00 | 14,415,674 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 74,104 | py | # Hotspot 2.0 tests
# Copyright (c) 2013-2014, Jouni Malinen <j@w1.fi>
#
# This software may be distributed under the terms of the BSD license.
# See README for more details.
import time
import subprocess
import logging
logger = logging.getLogger()
import os
import os.path
import subprocess
import hostapd
from wlante... | [
"j@w1.fi"
] | j@w1.fi |
ffe5c3943b89670d4c2cd914d2373ba8c95c5842 | e9c6fe6d43119b5e8a42785693e91ce1bcc4ac72 | /wikify/gen_trainrep_for_mention.py | 3db4082ce697805cd1767879084371407e36c3c5 | [] | no_license | Ryan-Amaral/wikisim | b66d9840b9c55def7d353f886fc81ca568426909 | adb8ee184e73bad91154846ecade6dbdd02da5f9 | refs/heads/master | 2021-01-20T08:37:50.151829 | 2019-03-27T17:37:40 | 2019-03-27T17:37:40 | 90,169,946 | 0 | 1 | null | 2017-05-03T16:24:22 | 2017-05-03T16:24:22 | null | UTF-8 | Python | false | false | 1,737 | py | """ Create a train-set
entity_id, query_id, scores1, score2, ..., scoren, true/false (is it a correct entity)
"""
from __future__ import division
from mention_detection import *
__author__ = "Armin Sajadi"
__copyright__ = "Copyright 215, The Wikisim Project"
__credits__ = ["Armin Sajadi"]
__license__ = "GPL"
__ve... | [
"sajadi@cs.dal.ca"
] | sajadi@cs.dal.ca |
63f8e5dbd56b2ba405a67bb4cd701ddcf47b4415 | a22acfdebc0c24d6801875df023910c7367e321d | /helloworld.py | 0272facad83911a317b051349c0416ff39249482 | [] | no_license | HeavenNC/helloworld | 7b70363ebf379182864df5b15bebaf4c7af7dc31 | bfe81a4728fb9bd190adc805391bab7c8cc7f560 | refs/heads/master | 2020-03-06T22:25:15.189310 | 2018-03-28T07:42:40 | 2018-03-28T07:42:40 | 127,102,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119,520 | py | # -*- coding: utf-8 -*-
from linepy import *
from datetime import datetime
from time import sleep
from bs4 import BeautifulSoup
from humanfriendly import format_timespan, format_size, format_number, format_length
import time, random, sys, json, codecs, threading, glob, re, string, os, requests, subprocess, six, ast, p... | [
"noreply@github.com"
] | HeavenNC.noreply@github.com |
fff38b37304a83e0abe473ef4f9fc641f5e97a45 | 6d37d2564e5b1f265c3ced41b71354ffc0a33215 | /testBlog/forms.py | 9503770c1713fa8499f1f4a692f47dca454823df | [] | no_license | isalasm/presentacion-SS | f2833edd35a02324d771d63d3afa7faabc746ead | d58cdfba0d3583c5d5c152f24621c54048a815e0 | refs/heads/master | 2021-09-11T01:31:01.350909 | 2018-04-05T18:36:28 | 2018-04-05T18:36:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 960 | py | from django.forms import ModelForm, Textarea, TextInput
from .models import article, comment
class articleForm(ModelForm):
class Meta:
model = article
fields = ('title', 'content', 'author')
widgets = {
'title': TextInput(attrs={'class' : 'form-control'}),
'content':... | [
"isalas012@gmail.com"
] | isalas012@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.