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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
885efec9df259eb8f15d01f19deacc378290ee8f | 4e382ae46cf997ea2dbdfcfa463a57d3e0e9ad97 | /sols/trapping_rain_water.py | 1bcddf8200efcff10f2e1c9a95121a651a6a9e03 | [] | no_license | hayeonk/leetcode | 5136824838eb17ed2e4b7004301ba5bb1037082f | 6485f8f9b5aa198e96fbb800b058d9283a28e4e2 | refs/heads/master | 2020-04-28T03:37:16.800519 | 2019-06-01T14:34:45 | 2019-06-01T14:34:45 | 174,943,756 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | class Solution(object):
def trap(self, height):
left = []
right = []
for h in height:
if not left:
left.append(h)
else:
left.append(max(left[-1], h))
for h in reversed(height):
if not right:
... | [
"31617695+hayeonk@users.noreply.github.com"
] | 31617695+hayeonk@users.noreply.github.com |
2ecef8bf5e66a3811d5954b32463e10dce32e217 | a55f45cc3768383d0ee5b53b8bdf5b1f0ad5fff0 | /turhousemanager.py | 9ea29c810c1ce8a31cd6f0d556c06f8944323998 | [
"Apache-2.0"
] | permissive | BuloZB/turhouse | e6efd6e997f754fbdf62f3fb35409f179a556fc6 | e76db0cdc96d9c9acfc5bd99ed94d9ad1dfecfa1 | refs/heads/master | 2021-06-26T15:24:26.870536 | 2015-10-07T19:52:32 | 2015-10-07T19:52:32 | 74,385,386 | 0 | 0 | Apache-2.0 | 2021-01-21T03:49:48 | 2016-11-21T16:56:07 | Python | UTF-8 | Python | false | false | 1,345 | py | # -*- coding: utf-8 -*-
import time
import datetime
import schedule
import logging
from pprint import pprint
from glob import Glob
from alarm.alarmmanager import AlarmManager
from event.notification import ezs_email
class TurhouseManager(AlarmManager):
'''
turhouse manager object
'''
def __init_... | [
"jan.redl@vizionet.cz"
] | jan.redl@vizionet.cz |
fd00da65cc9832503776c473d4bb563f72c5ed8c | e14ccc485b835c07c86717aa097e1f8bfd8d35b8 | /work/time/generate_sine_wave.py | 01c579509872e3e7cc17e13cb0a94a3f15a9778f | [] | no_license | LukeJaffe/trader | 1e0f39f4db39048f1ee5e9ef57e54854a372b84a | c92a6fe4b6588a30282f3f66108b913a88ca9305 | refs/heads/master | 2021-01-06T20:35:42.780569 | 2017-10-13T06:37:56 | 2017-10-13T06:37:56 | 99,526,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | import math
import numpy as np
import torch
T = 20
L = 1000
N = 100
np.random.seed(2)
x = np.empty((N, L), 'int64')
x[:] = np.array(range(L)) + np.random.randint(-4*T, 4*T, N).reshape(N, 1)
data = np.sin(x / 1.0 / T).astype('float64')
torch.save(data, open('traindata.pt', 'wb'))
| [
"lukejaffe1@gmail.com"
] | lukejaffe1@gmail.com |
3cc04765c66f4277a2adfe6dd975ae9a46c7e373 | 7ba9a63b02d1abd8bae028f8703ed7da9941a3a3 | /antlr/old/TParser.py | a08a183ccbd1cb74f81545db5ba5135c94240229 | [] | no_license | apnorton/ir-project | 40bd8ea9a52f07262b63ff1c0af3bb3c5e1dfdc1 | 47f487dd76125d923da5fb960a76ed33f87d8213 | refs/heads/master | 2021-01-10T13:56:10.635630 | 2016-03-02T16:36:01 | 2016-03-02T16:36:01 | 46,683,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,246 | py | # Generated from T by ANTLR 4.5.1
# encoding: utf-8
from __future__ import print_function
from antlr4 import *
from io import StringIO
def serializedATN():
with StringIO() as buf:
buf.write(u"\3\u0430\ud6d1\u8206\uad2d\u4417\uaef1\u8d80\uaadd\3")
buf.write(u"\n\36\4\2\t\2\3\2\3\2\3\2\3\2\3\2\3\2\5\... | [
"hskrus@gmail.com"
] | hskrus@gmail.com |
437b387c6980f53268b75171dcdcc65a88269569 | 691f3bf0e15f5bec4cf70ac451e7b4a3e92b6dbb | /setup.py | 031e600ceadd1dee4a0f42be3ec90e937ab915f8 | [
"BSD-3-Clause"
] | permissive | a-tal/pyweet | ac90699468bd8b3c450492068a50b93f321d1667 | 61bd9ab7a28ca8e917051977bfcf84904dd06c77 | refs/heads/master | 2021-01-17T10:22:10.966528 | 2018-03-10T18:21:58 | 2018-03-10T18:21:58 | 17,307,288 | 1 | 1 | BSD-3-Clause | 2018-03-05T00:49:25 | 2014-03-01T03:59:36 | Python | UTF-8 | Python | false | false | 1,523 | py | """Pyweet's setup/installer."""
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
"""Shim in pytest to be able to use it with setup.py test."""
def finalize_options(self):
"""Stolen from http://pytest.org/latest/goodpractises.html."""
... | [
"github@talsma.ca"
] | github@talsma.ca |
097a632a53b4401a64a6fe58723296b12a6b7b74 | a2cb0b841519db1b8442ce2bb100572d8683e861 | /ToggleBreakpoint.py | acacb88e03eb06c9460f83b82b037a2221875373 | [
"MIT"
] | permissive | Falven/Debug | ea159e3beeb98325ae43f3157f7c459252457671 | bf45898789d3539dd104a42ce33e18747dd3300b | refs/heads/master | 2016-09-05T17:14:17.974818 | 2015-04-19T01:28:42 | 2015-04-19T01:28:42 | 34,187,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | import sublime, sublime_plugin
def plugin_loaded():
global pluginLoaded;
pluginLoaded = True;
class ToggleBreakpointCommand(sublime_plugin.TextCommand):
def run(self, edit):
global pluginLoaded;
if pluginLoaded:
print("Toggled A Breakpoint.")
| [
"Falven2000@Hotmail.com"
] | Falven2000@Hotmail.com |
f6010c075c7e7f753c9b7e31b4b2e7208d97e792 | 4ec73d7b22ef19c0d1301b055a5bbaf2a0931807 | /main_app/migrations/0002_auto_20181204_0014.py | 7f834505cb2def39e1fe804ae1e31e8a3987da8d | [] | no_license | nicklogin/realec_testing_platform | 89138160f100d2028520f8ea6325863a82623113 | 541951ec8169120b66232a0c85015c2063be5a3d | refs/heads/master | 2023-01-28T02:10:53.205266 | 2020-04-18T09:27:29 | 2020-04-18T09:27:29 | 227,206,248 | 0 | 0 | null | 2023-01-04T13:57:06 | 2019-12-10T20:08:41 | TypeScript | UTF-8 | Python | false | false | 399 | py | # Generated by Django 2.1.3 on 2018-12-03 21:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main_app', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='question',
name='quiz',
... | [
"niklogin10v@yandex.ru"
] | niklogin10v@yandex.ru |
ae16dc3d50f09ea7a2439484841531bbbd5513dc | 5e715d3ab6769af0e16de3784b72ffc20b834c34 | /dags/milkyway/exotel_responses.py | bc181b2dc423da4b4d5e4555572d954a818e0e5e | [
"MIT"
] | permissive | goodhamgupta/mars | 6943483b428cffc77e1f1aa2e7d7ee3aa1d04ba5 | 06371dd35a94a5e3605e9256972f6d2a5197459f | refs/heads/master | 2023-03-25T17:09:30.780427 | 2020-03-06T15:42:01 | 2020-03-06T15:42:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # -*- coding: utf-8 -*-
# Airflow DAG for exotel responses
from operators.sqoop_emr_workflow import SqoopEmrWorkflow
from airflow import DAG
params = {
'schedule_interval': '0 13 * * *',
'source_app': 'milkyway',
'destination': 'exotel_responses'
}
dag = SqoopEmrWorkflow.create(params)
| [
"shubhamg2208@live.com"
] | shubhamg2208@live.com |
413db050c8202c87e9e287faeda03fcb45def5a5 | 2e7617666070ad05dab301069cfbe63d83d448b0 | /states/__init__.py | 43ad1580f1cb83ff8ddb4dd560c0126231b98c12 | [] | no_license | dmartinchick/tbot | 92f44e4bdb091ae759cfa0234ead699b2902709d | 094b5ef003b96278ee001b273a913309011f94f7 | refs/heads/master | 2023-06-03T02:30:04.298770 | 2021-06-17T16:54:48 | 2021-06-17T16:54:48 | 369,304,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | from . import add_result | [
"dmartinchick@gmail.com"
] | dmartinchick@gmail.com |
d5901153c01b4dc40f38bb9626832f79d17b7ca7 | eb3ebcd52ef137fc1560b6b65197627533eddf41 | /Utilize/web_scraping/6_bs4.py | d1c4650dc227c8d3d92e2616489def567cc3e2cc | [] | no_license | Kor-KTW/PythonWorkSpace | a0d14b3be9af1266b35440261fa2ec0a11534288 | e23ce4a4d104ff665d6a5544ce556b469c4d9d89 | refs/heads/master | 2023-01-04T05:10:38.362965 | 2020-11-06T05:11:09 | 2020-11-06T05:11:09 | 304,473,110 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py | import requests
from bs4 import BeautifulSoup
url = "https://comic.naver.com/webtoon/weekday.nhn"
res = requests.get(url)
res.raise_for_status()
soup = BeautifulSoup(res.text, "lxml") # 우리가 가져온 html을 lxml을 통해서 beautifulsoup으로 만든다.
# 페이지에 대한 이해가 높은 경우
# print(soup.title)
# print(soup.title.get_text())
# print(soup... | [
"xodn5492@naver.com"
] | xodn5492@naver.com |
116d0392934aa11564552e963f5f466650dfd304 | b30d74626b0e3de17507655b1afbc73e3b81720e | /TurretController.py | 83cec4f3c12c2ccd8439a52b38320272f30b1edd | [] | no_license | CRATOS-360NoScope/CRATOS-Server | 4d114c12c76781a1796a885e78974e9a11e2a178 | 841c017881a20d8a41cbaa69265519f5f22b2aff | refs/heads/master | 2021-01-20T00:58:40.123543 | 2015-12-02T20:33:47 | 2015-12-02T20:33:47 | 42,613,814 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,481 | py | import RPi.GPIO as GPIO
import time
import threading
class TurretController:
GPIO_PIN_YAW = 11
GPIO_PIN_PITCH = 12
GPIO_PIN_FIRE = 13
pwm_yaw = None
pwm_pitch = None
pwm_fire = None
min_pitch = 6.8 #was 0
max_pitch = 10.0 #was 12.5
current_pitch = 8.4
stopPitchFlag = False
DEBUG = False
pitchDelta = ... | [
"cwirt@purdue.edu"
] | cwirt@purdue.edu |
5542bd603d27b031d107e5285aa6a8d9e6700e91 | 436c9ee595ab3dc6f6b0dc2cd695c62de81c8ecd | /core/utils/data.py | 803e05c480370eaee1f1233e96384912e144b6cd | [
"Apache-2.0"
] | permissive | viep/cmdbac | f186768754bddededa15c1692c2882c18af65b18 | 2df4b7980d22bd42a8128d9468de101307fc52ac | refs/heads/master | 2021-01-18T00:21:43.040368 | 2016-05-09T12:23:38 | 2016-05-09T12:23:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,270 | py | #!/usr/bin/env python
import os, sys
sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir))
sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir))
import json
import logging
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cmudbac.settings")
import django
django.setup()
import lib... | [
"zeyuanxy@gmail.com"
] | zeyuanxy@gmail.com |
14346f5e4229b348c50f7dc83dd2a7143bad9b2d | 2ba64b9b4b91af5f4730a1617cb0329f766690e2 | /ML_uniform/network_test_nonuniform.py | 03ad230969f925ee628d285e75c9d38a9948df29 | [] | no_license | RalphKang/nonuniformity-effect-on-LAS--temperature-measurement | 601f7ffd4287839aa6895694c15b7e390ac74c29 | f35e30be38ffd37cd0d9db9e069c63e9fd040fe8 | refs/heads/master | 2023-04-08T07:14:11.752060 | 2022-11-08T08:38:09 | 2022-11-08T08:38:09 | 563,204,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,559 | py | from network_archive.vgg import *
from dataset import dataset_all, dataset_all_2
from sklearn.metrics import mean_squared_error
import torch
import numpy as np
"""
This code is used to test network models on nonuniform twins, and
record the predict temperature in temp_dif_aug_1e-x_xxx.csv
"""
#%% data reading
data_di... | [
"kang1528530671@gmail.com"
] | kang1528530671@gmail.com |
89f93a8916b99c5fd18697c7ee126f07ead61d2a | acbf4390b5892ea7c9e1095c5cc19a0227dbc8f7 | /src/utils/ticktock.py | d5a4acdaf22eca24d8b8ab203e739e1ffb594214 | [] | no_license | gongzhitaao/adversarial-text | 5d68d26bcac46b69b2df0f231bd642837cb9848c | 0b2009a504492edbb2a7f0c7f972b9efd7aa60f2 | refs/heads/master | 2021-10-23T09:12:49.032948 | 2019-03-16T15:15:23 | 2019-03-16T15:15:23 | 116,075,349 | 36 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,533 | py | from timeit import default_timer
from functools import wraps
import logging
__all__ = ['Timer', 'tick']
logger = logging.getLogger(__name__)
info = logger.info
class Timer(object):
def __init__(self, msg='timer starts', timer=default_timer, factor=1,
fmt='elapsed {:.4f}s'):
self.timer... | [
"zhitaao.gong@gmail.com"
] | zhitaao.gong@gmail.com |
078327eb8cbffb63249d9b201aee71f0e8110bbb | 84326f32d61d983826d7ae1d40951c43c47b0842 | /gy4/client_gyak3_f4.py | 5aae8cef28b6efcf35017f4451c828c514a1622d | [] | no_license | bkiac/ELTE.computer-networks | 749c82b92f83476ab714b3ae2f04da139a19debe | ee9b57359b28203e32acf471c64b409cef78a9aa | refs/heads/master | 2021-10-08T03:59:02.640867 | 2018-12-07T12:36:17 | 2018-12-07T12:36:17 | 149,986,172 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | import socket
import struct
connection = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server_address = ('localhost', 10000)
connection.connect(server_address)
values = (7.0, '-', 2.0)
packer = struct.Struct('f c f')
packed_data = packer.pack(*values)
print '%f %s %f' % values
connection.sendall(... | [
"benceknab.iac@gmail.com"
] | benceknab.iac@gmail.com |
0049ef5dfb5967e446a1664834ff89d8811bf15d | 1cd8c5548a5c1b6b0885f27f11b3f2300abbc563 | /index.py | 24753fa2dd05d305cd38cc208dbfaa49d98117ff | [] | no_license | KiroCarllos/Problem_Solving | 5cd0efd73009d47c4c1e7afdb3a5e7192c475efc | 73c87515bf297843ef9c095da0e9d749c015c7e2 | refs/heads/master | 2022-11-11T14:50:26.407643 | 2020-07-01T16:43:23 | 2020-07-01T16:43:23 | 276,431,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,292 | py | # 1- print Hello World
# employee = input('Enter Your Employee');
# print("Hello, "+ employee);
###################################
# 2- DataTypes
# ints,longs,chars,floats,doubles = input().split();
# print(int(ints))
# print(longs)
# print(str(chars))
# print(float(floats))
# print(doubles);
#########################... | [
"carloskiro217@gmail.com"
] | carloskiro217@gmail.com |
269fbdd3f5abe741ec26a396538010638017122d | 256c5100914832915192fb1958444389eff4a85f | /scripts/online/readStatusPyRoot.py | 169b70d5aa9093dd5e077de193930daf3269176e | [] | no_license | jetatar/snowShovel | ea9a45ddcb182ca6776752e08df9799ac6cd7439 | 69678a46cd8c20a57e4b8d8a8cc19b8900173775 | refs/heads/master | 2020-05-30T19:42:33.193932 | 2014-08-18T06:37:56 | 2014-08-18T06:37:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,417 | py | import sys
import struct
from AriUtils import *
def readStatus(msg):
status = None
evt = None
power = None
ssvers = ROOT.Long()
erv = ROOT.Long()
prv = ROOT.Long()
mcode = ROOT.Long()
mlen = ROOT.Long()
totb = msg.size()
br = 0
while ( br<totb ):
... | [
"jtatar@uw.edu"
] | jtatar@uw.edu |
10ae3cef498bf99f949b001c20ee00663182d0d4 | 843ed1bff5e3184ae9428e40354d726341418572 | /core/tests/providers_test.py | 9e6b67868f50a75c3e6e15b031331f6c81935d3d | [] | no_license | marquesds/juggler | 22f0bdbefe780c75ea20b17aa5c527441763169d | de2252d5ac37db968af4e9cc74ca890575bf5ffd | refs/heads/master | 2021-01-10T07:16:25.789252 | 2015-06-16T02:51:37 | 2015-06-16T02:51:37 | 36,475,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | from unittest import TestCase
from core.providers import *
class TestCassandraProvider(TestCase):
def test_connection(self):
cassandra = CassandraProvider(host=['192.168.0.7'], port=9042, database='system')
def test_close_connection(self):
pass
def test_show_tables(self):
pass
| [
"lucasmarquesds@gmail.com"
] | lucasmarquesds@gmail.com |
af5886042c006dc14b35138fd937d584761d7c01 | 8039370c0c6ad3b26fc8a3eed35a33df6cf4a00a | /example_optimization.py | d6422626ec4369035b73dd9c15feb999f77bb1c3 | [] | no_license | whateverforever/Differentiable-Polygons | 13d22f6a8fb62306cf91647a14b435e5334b1a44 | c18d262bb526584911c60c138d1b504ecca9d015 | refs/heads/master | 2022-12-25T05:20:25.371340 | 2020-10-02T16:11:53 | 2020-10-02T16:11:53 | 252,662,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,323 | py | """
End-to-end example of a simple optimization problem that makes use of the gradients
computed by the library. The problem is basically a very small inverse kinematics
problem with a unique solution.
"""
import timeit
import numpy as np # type:ignore
import matplotlib.pyplot as plt # type:ignore
from scipy import ... | [
"max@thousandyardstare.de"
] | max@thousandyardstare.de |
a7fb99e11451b0915e084a6a5fae76d23a581732 | fecaed6824eb6ed09c33f335c52410a6fe8fe212 | /kata-2/test_kata2_simple.py | 5476f7befde7be97d74aae45a26beddfbe969c09 | [
"MIT"
] | permissive | Laoujin/osherove-kata | d39876830d3f20e651da87bed07344a67f1ef967 | 0177bc3de5db1096ab2f47fc03189397cdcaf400 | refs/heads/master | 2021-05-16T03:06:48.004211 | 2017-11-02T21:45:45 | 2017-11-02T21:45:45 | 30,038,477 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | #!/usr/bin/python -tt
# String Calculator - Interactions
# http://osherove.com/tdd-kata-2/
import pytest
from mock import Mock
from Calculator import Calculator
####################### SIMPLE KATA-2 TESTS
# ex 1
def test_logger_writes_result():
logger = Mock()
calcer = Calculator(logger)
total = calcer.add("1,... | [
"woutervs@hotmail.com"
] | woutervs@hotmail.com |
ffce33738782672fb95e5b549b244d8f3d6b347a | ad901f2ecba8be5101a865f719460bd3daee4c3d | /euler12.py | 87c6846d271c2bb3b1852fc793a9930b016cc33d | [] | no_license | ajsabesirovic/EULER-EXERCISES | 9f1893f2f6aacedaab8d8fe899fe5036acde69ba | 61427ad60288b5fac6015208b6233898c7c7a7f1 | refs/heads/main | 2023-07-14T19:41:47.106809 | 2021-08-25T12:17:48 | 2021-08-25T12:17:48 | 397,927,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | br = 1
triBr = 0
while True:
triBr += br
dividers = []
for i in range(1,triBr+1):
if triBr % i == 0:
dividers.append(i)
if len(dividers) > 500:
print(triBr,dividers)
break
br += 1
| [
"besirovicajsa@gmail.com"
] | besirovicajsa@gmail.com |
39e8dfce80fabe8b3a7947dee64d4c360a3025f5 | 54de11abc7bf3ce3f89e5f502106c76bb14316bd | /manage.py | 7bfbed5b9383f6b08617db783ce7bbdfc2b43cf7 | [] | no_license | lordofhell-666/energymitra | 937058c753f73b4e1c2358cdc12484c4bf6a5061 | 855f7ddbe3787ee00f83da16e3272b7eefce87c5 | refs/heads/main | 2023-02-21T01:33:04.956955 | 2021-01-24T19:31:47 | 2021-01-24T19:31:47 | 332,535,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | 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', 'emitra.settings')
try:
from django.core.management import execute_from_command_line
except Impor... | [
"lordsaurabh.tripathy@gmail.com"
] | lordsaurabh.tripathy@gmail.com |
86692b6fe947d56b3a0c15ab8ec18205dc0077b1 | fa95ad476b1393de3d3cf16cdefbe0c2dc1ce437 | /DataCamp/02-intermediate-python-for-data-science/5-case-study-hacker-statistics/determine-your-next-move.py | d4b69da12e467b7dba2603af37375481d77d9444 | [] | no_license | vijaykumar79/Data-Science-Python | 95a6f6ba5f112cceeaf2fbfe8be3e7185d67ce3d | 0ed142ca1e9aaef19e11621bd9c54d29c1abe152 | refs/heads/master | 2020-03-29T19:22:09.814218 | 2020-01-02T08:23:14 | 2020-01-02T08:23:14 | 150,259,437 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | '''
Determine your next move
100xp
In the Empire State Building bet, your next move depends on the number of eyes you
throw with the dice. We can perfectly code this with an if-elif-else construct!
The sample code assumes that you're currently at step 50. Can you fill in the
missing pieces to finish the script?... | [
"noreply@github.com"
] | vijaykumar79.noreply@github.com |
e6c23d11dee1a24118f976e70873545bf5209e7c | 04514f86523d393a56960b07eadb28a2ab83eee7 | /old/09.06.00- jadi.py | e04923eedee58001af08c45d6434e433d70d20ad | [] | no_license | nceh/my_First | 6426162199cb42ecabe0fb309d19fd48e0b1276a | 0e4b1128fe270da9d864ee725068767a9444ad08 | refs/heads/main | 2023-08-04T01:43:20.301945 | 2021-09-17T19:03:56 | 2021-09-17T19:03:56 | 401,407,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,089 | py | #!/usr/bin/env python
# coding: utf-8
# In[3]:
reshte = input()
reshte.lower()
reshte=reshte.replace("a","")
reshte=reshte.replace("e","")
reshte=reshte.replace("i","")
reshte=reshte.replace("o","")
reshte=reshte.replace("u","")
# print(reshte)
khoroji=""
for i in range(0,len(reshte)):
khoroji +="."+reshte[i]
p... | [
"nceh.mousavinezhad@gmail.com"
] | nceh.mousavinezhad@gmail.com |
24b8ac225cb3cb0a355715ff7bcf224953641e30 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_tropes.py | 1f0a9f2ffa1386e6dabbb080f223e38e329f992c | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
#calss header
class _TROPES():
def __init__(self,):
self.name = "TROPES"
self.definitions = trope
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['trope']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
b1bdecdd030b7788d2e7c1815e23128df224612e | af90ae97d8dd90663beedd81539604242e677bbc | /vivo_api.py | 079f949c9c3a241ca093b15112d149ee002f1991 | [] | no_license | naomidb/api_tests | e9d1104a6d45995ded2dbd85da489d9995f8063f | 52ad7429c5b92b76a1ce5f964018880566c685aa | refs/heads/develop | 2022-12-11T16:40:39.535348 | 2019-04-02T17:54:21 | 2019-04-02T17:54:21 | 151,307,248 | 0 | 0 | null | 2022-12-08T02:55:34 | 2018-10-02T18:57:40 | Python | UTF-8 | Python | false | false | 2,652 | py | '''
A self-contained means of testing queries for the VIVO API.
You will need to edit this program with the query you want to run.
Usage:
python vivo_api.py (-q | -i | -d) <config_file>
Options:
-q Use the query endpoint
-i Use the update endpoint to insert (requires an account with admin rights... | [
"looseymoose@Naomis-Mistress.local"
] | looseymoose@Naomis-Mistress.local |
d8d87fc53e50b4ab9c6c03dcd73340f244b82016 | 0622f984a5094ec0d005a08eeeff79748941c316 | /users/urls.py | 51270d85aa3435a934749b5e532c0a5992191b4e | [] | no_license | maximgamolin/hw04_tests | a1e16a22f1774f88e22685aec6de18b63ae5678d | 549956cfccffedbb8b2d28013c3cce0bee63a3d6 | refs/heads/master | 2023-03-08T06:39:46.306143 | 2021-01-22T11:23:10 | 2021-01-22T11:23:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from django.urls import path
from . import views
urlpatterns = [
path("signup/", views.SignUp.as_view(), name="signup")
] | [
"artur.g.r@yandex.ru"
] | artur.g.r@yandex.ru |
bfa138c92d7cd595defd96b5cb36d943a9d4d195 | ccf3793329233d8407ca669683f59760c02817b1 | /forum/migrations/0005_auto_20181214_1448.py | 2ece165e4d4bfbe252b33aa08d34979a81a1306e | [] | no_license | clavos/cartoonWar | 44ae7ebf07496e452f3a94c74aaeb405e58fb50b | 7e9fa84d4a502a33b1f2bebf8936cddf5d830079 | refs/heads/master | 2020-03-28T14:39:29.569402 | 2019-01-22T16:00:09 | 2019-01-22T16:00:09 | 148,508,662 | 0 | 0 | null | 2019-01-22T16:04:21 | 2018-09-12T16:21:23 | Python | UTF-8 | Python | false | false | 790 | py | # Generated by Django 2.1.3 on 2018-12-14 13:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('forum', '0004_article_publish_date'),
]
operations = [
migrations.AddField(
model_name='comment... | [
"flores28.elodie@gmail.com"
] | flores28.elodie@gmail.com |
a71d029a16dd788af6d70cf6594d5e4458b21fe2 | 7bed99cbe12386739a292b1495e7f4d85ffac8b2 | /PasswordAE/architecture.py | b3699b82509d206f2eb77b73d913968b0070222a | [] | no_license | w0r1dhe110/PLR | 88e1d7562ed249a0a8958bd45341765d81fbb567 | fcd8bee1e612da50349ceb1176f929c4bc2dc2a6 | refs/heads/master | 2023-06-30T14:48:40.568349 | 2021-08-02T08:32:19 | 2021-08-02T08:32:19 | 391,857,147 | 0 | 0 | null | 2021-08-02T07:43:09 | 2021-08-02T07:43:08 | null | UTF-8 | Python | false | false | 16,668 | py | import tensorflow as tf
FILTER_SIZE = 3
def enc0_16(x, latent_size, training):
x = tf.layers.conv1d(x, 64, FILTER_SIZE, strides=1, padding='same', activation=tf.nn.relu)
x = tf.layers.conv1d(x, 128, FILTER_SIZE, strides=2, padding='same', activation=tf.nn.relu)
x = tf.layers.conv1d(x, 128, FILTER_SIZE, st... | [
"pasquini@di.uniroma1.it"
] | pasquini@di.uniroma1.it |
4eda93ef31bc1a3fd2991cda9afc50a579a4812f | dcfec1645e18e83383c82282e0064d16d57f2917 | /athospy/top_fcns.py | 173b542a3fff2b732e06e6bc19cb973a19209c23 | [] | no_license | Saynah/AthosPy | 4986d3174d3e445d086aaf6a1128388ab2b51e0c | 65841e7a39c68f27c770de30e57d579b3df32b1e | refs/heads/master | 2020-05-19T11:26:29.843050 | 2015-08-08T17:07:17 | 2015-08-08T17:07:17 | 40,409,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,907 | py | from __future__ import division
import os
import pandas as pd
import fnmatch
import difflib
import shutil
import numpy as np
# athospy packages
import visualization as viz
import calcs as clc
import fileops as fop
# ML
from sklearn import svm, metrics
def label_folders(basepath, write_dst):
'''Return datafram... | [
"msena505+git@gmail.com"
] | msena505+git@gmail.com |
dc8d52706c9e04a981453256b24c9e2111cb8438 | 29a0d522bc4caeb7efad8c59f9b2bab88e7cb274 | /Practical1/electricitybillestimator2.py | fd605d1f04af85d76ac1a63337f2e5862b3e0777 | [] | no_license | Kphoo/Programming2 | 20662a3594394d4b524d33adf149d6d4f18bf940 | 6ca3591d2e461b34dc2aeccb32706a6559a2b877 | refs/heads/master | 2020-04-09T11:27:49.498005 | 2019-01-16T17:50:27 | 2019-01-16T17:50:27 | 160,310,417 | 0 | 0 | null | 2018-12-04T07:36:21 | 2018-12-04T06:33:28 | Python | UTF-8 | Python | false | false | 840 | py | def bill_estimator():
MENU="""11 - TARIFF_11 = 0.244618
31 - TARIFF_31 = 0.136928
"""
print(MENU)
tariff_11=0.244618
tariff_31=0.136928
choice=int(input("Which tariff? 11 or 31: "))
if choice==11:
daily_use=float(input("Enter daily use in kWh: "))
billing_days=int(input("En... | [
"kphoothawnaing@my.jcu.edu.au"
] | kphoothawnaing@my.jcu.edu.au |
e6b01ab9367986908a5c83dd98fa4dde404f632f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03379/s654666202.py | c7f75f4f497f62efa5e1b77c9ad3d1f24f1abba9 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | N=int(input())
X=list(map(int,input().split()))
Z=sorted(X)
left=Z[N//2-1]
right=Z[N//2]
for i in X:
if i<=left:
print(right)
else:
print(left) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5faaccfffd1b0b28344509c56aeff8b0c12956bb | 808707d86f2cb92fc4b0c235b3b2e10d81d578da | /src/all_offense_month_from.py | 0bb72831d99803809841f9d07f25750bef4227d1 | [] | no_license | HoodPanther/crimeproject | 3eba91be240b17c87b1e2333ead5a34a9564bc6b | 87f55fcbc375d7c75df10f7bc0017444d28d015f | refs/heads/master | 2021-06-16T13:00:56.988862 | 2017-05-20T18:52:09 | 2017-05-20T18:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from __future__ import print_function
import sys
from operator import add
from pyspark import SparkContext
from csv import reader
if __name__ == "__main__":
sc = SparkContext()
lines = sc.textFile(sys.argv[1], 1)
lines = lines.mapPartitions(lambda x: reader(x)).filter(lambda x: x[0] != 'CMPLNT_NUM')
... | [
"da1933@nyu.edu"
] | da1933@nyu.edu |
8ed511529f375e6018227358ffe009f42d6fbfa0 | 8a0e14299d8b915c0a909cf9fa9a86589dc63d76 | /python/ray/rllib/agents/qmix/__init__.py | a5a1e4993b675531147b7cbe073dad0d4907c3e3 | [
"Apache-2.0",
"MIT"
] | permissive | natashamjaques/ray | 795e4271c3c5f3e261327afea40b81ffe6f362ac | aca9dd5ee7a8fef508a5383fdd26ad8ccdcb16e4 | refs/heads/master | 2020-04-12T05:58:15.680359 | 2019-03-06T22:08:10 | 2019-03-06T22:08:10 | 162,337,948 | 3 | 2 | Apache-2.0 | 2018-12-18T19:47:02 | 2018-12-18T19:47:01 | null | UTF-8 | Python | false | false | 288 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from ray.rllib.agents.qmix.qmix import QMixAgent, DEFAULT_CONFIG
from ray.rllib.agents.qmix.apex import ApexQMixAgent
__all__ = ["QMixAgent", "ApexQMixAgent", "DEFAULT_CONFIG"]
| [
"noreply@github.com"
] | natashamjaques.noreply@github.com |
0a72d6e577ced1da22d4cbd21c1a035716957133 | ce776194946ac395bde4d494e56a09a62dcd575f | /week4/RL8.py | 5a8186e9e4e6595df89a4e137e40edffe1b02f6a | [] | no_license | ZhangLiangyu5411/DRL-GWZQ | f607590852bdbc27558f0f8446e19a8ba3d79794 | 4b7a93bce6de676f1b54d27e2bb6df2f3561c829 | refs/heads/master | 2022-01-26T19:14:10.739940 | 2019-05-23T08:53:31 | 2019-05-23T08:53:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,236 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Mar 23 23:06:00 2019
@author: Xianglin ZHOU
Q learning agent with fake goal and observer
"""
import numpy as np
import pandas as pd
import time
import copy
import tkinter as tk
#actions
ACTIONS = ['LEFT', 'RIGHT', 'UP', 'DOWN']
ID_ACTIONS = list(range(len(ACTI... | [
"noreply@github.com"
] | ZhangLiangyu5411.noreply@github.com |
a2fe085654a21fee526d110b779f48dfeb6fe9d5 | a1fe62f072b68e64be0a761ea2fe93d2690dd8f9 | /store/urls.py | 2279630df5c9f2227850213bd38911aaed7bc5ef | [] | no_license | 1nonlyabhi/dukaan-assignment | 3ff9167ca98be6964ed9f9f3feebaa0cb776d797 | 5a4c14e4c167a5b025995bb44e67a4a5ea7f5c17 | refs/heads/main | 2023-08-15T14:57:57.538284 | 2021-09-26T16:52:29 | 2021-09-26T16:52:29 | 410,544,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | from django.urls import path
from account.views import *
from store.views import ProductView, StoreView, detail_store_cat_view, detail_store_view
app_name = "store"
urlpatterns = [
path('', StoreView.as_view(), name="store"),
path('<slug>/', detail_store_view, name="detail"),
path('<slug>/product', Prod... | [
"gabhishek0407@gmail.com"
] | gabhishek0407@gmail.com |
6308246f1f21cd53a6eb7e44e01b80b0e9f21ff8 | 6ce2982e30e9c14e0e71291879fe9c2dd81776dc | /jouaan/main/migrations/0001_initial.py | e2b35520529c67eac8a42f62d6871cb07b12e889 | [] | no_license | yacoublambaz/Jouaan | 6f3c88d32d3317dc3e713032e94d54c04138fb58 | c424029a765f5c2ae20cda7b354b68251e0fc143 | refs/heads/main | 2023-04-27T16:46:47.775709 | 2021-05-06T14:00:41 | 2021-05-06T14:00:41 | 352,722,587 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,733 | py | # Generated by Django 3.1.7 on 2021-03-30 17:20
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
""
] | |
11adadb04fae1383c61d747eea5e932bd6384471 | 1532c4117246d61be9f4e8fa0d283f579d884874 | /social/urls.py | cc523a8a58ab2c0be93e050fc7c5e1ad65394303 | [] | no_license | jkaalexkei/redsocial | ae11ab17aec6453416810166c840d1dee9d0f4ed | 25bb9141d0f730fa389bdefd259fd961b5f3c3ab | refs/heads/master | 2023-07-06T09:50:55.850379 | 2021-07-29T16:09:50 | 2021-07-29T16:09:50 | 389,832,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py |
from django.urls import path
from . import views
from django.conf import settings
from django.conf.urls.static import static
from django.contrib.auth.views import LoginView, LogoutView
urlpatterns = [
path('',views.feed,name='feed'),
path('profile/',views.profile,name='profile'),
path('profile/<str:userna... | [
"jkaalexkei@gmail.com"
] | jkaalexkei@gmail.com |
2fc951b9431678e1bdc9ccdae97502170f3490b3 | c10af00ed8ec3ffe10f2a65720d9e2aca4c4486c | /venv/Lib/site-packages/sportsreference/mlb/boxscore.py | f0a79f5dc347a007d3c0436e61e2cd7bd11d6c57 | [] | no_license | afornaca/nflstats | c590801d6415648bba2f6f88a0d66076cd5c1b20 | 4d7504be29724653ee09ac31ad60b906b216b927 | refs/heads/master | 2020-07-04T21:21:54.696209 | 2020-02-04T23:20:52 | 2020-02-04T23:20:52 | 202,420,370 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 68,009 | py | import pandas as pd
import re
from datetime import timedelta
from pyquery import PyQuery as pq
from .. import utils
from ..constants import AWAY, HOME
from ..decorators import float_property_decorator, int_property_decorator
from .constants import (BOXSCORE_ELEMENT_INDEX,
BOXSCORE_SCHEME,
... | [
"ajfornaca00@gmail.com"
] | ajfornaca00@gmail.com |
cc29071f7afda7eb0d4e1f64e8ee6ec5a02e93fd | 1375f57f96c4021f8b362ad7fb693210be32eac9 | /kubernetes/test/test_v2alpha1_horizontal_pod_autoscaler_list.py | 0ec877e8359999bd271c0535d574564c381630b9 | [
"Apache-2.0"
] | permissive | dawidfieluba/client-python | 92d637354e2f2842f4c2408ed44d9d71d5572606 | 53e882c920d34fab84c76b9e38eecfed0d265da1 | refs/heads/master | 2021-12-23T20:13:26.751954 | 2017-10-06T22:29:14 | 2017-10-06T22:29:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.7.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
3fbdf0023c9ffb85017d96d5d5f3397f36af5f0c | 2c6f4f3afbf4ddb4df79877ff3f4fa7748819117 | /MiniFlash/MiniFlash/wsgi.py | b74f588ce0874b2af52db1b99442bc84f5b0461d | [] | no_license | juree/MiniFlash | ccf8064b3b40fe9a7fa43baee3a8f4c32ba57eed | 4fc1b957f473c9dc22e3cbeb55c1eaa39f15454d | refs/heads/master | 2020-04-06T05:13:37.637203 | 2014-09-24T13:41:32 | 2014-09-24T13:41:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for MiniFlash 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.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "MiniFlash.settings")
from django.co... | [
"nejc.il92@gmail.com"
] | nejc.il92@gmail.com |
e2f9404bcc14f3e91ba1077a654b24afc62b635f | 12e1fcbeb0bb0c3866e9aa863016ebf5b8cf6fa9 | /torch/torch_net.py | 5e72c05b9578ebd1f08c20941d7e85bfb42276f8 | [] | no_license | Grid-Gudx/sound_classification | 0eee6c523e5c6732ce4456a297757ef20015753c | c79a83b5882c1b386254a33b2ac9ac44d0546f7b | refs/heads/main | 2023-08-18T14:51:33.181996 | 2021-09-15T07:54:53 | 2021-09-15T07:54:53 | 403,004,685 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,857 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 8 13:39:05 2021
@author: gdx
"""
import torch
import torch.nn as nn
import torchvision.models as models
from torchsummary import summary
import torch.nn.functional as F
class CNN(nn.Module):
"""
input_shape: batchsize * 1 * 640
output_shape: batchsize * num... | [
"56808862+Grid-Gudx@users.noreply.github.com"
] | 56808862+Grid-Gudx@users.noreply.github.com |
71428d1c474c76168a12ff0b2d4978909e64c792 | d0ae2b5919a2b679a62d70069b5b1531771266d7 | /data/bin/pip3.5 | 853217990c8a2e885ecbc5eae7cee8ec1c301367 | [] | no_license | felexkemboi/teamdata | 9ac60c8d7f7fba39afd9ce7ff81075f1771d46ac | df683f3561e87c24275967e6ae82fd6da0dc8642 | refs/heads/master | 2020-03-24T20:53:50.788654 | 2019-02-05T06:20:36 | 2019-02-05T06:20:36 | 143,002,423 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | 5 | #!/home/limo/Desktop/Django/teamdata/data/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"felokemboi10@gmail.com"
] | felokemboi10@gmail.com |
07e2328efa9184c76f36bc7feaf15a3d6ab7ec09 | a2736eb0f99b9316fba5194c8b2cc4b084f3bf13 | /src/behavior/normal.py | 421a90f43bcd2bddb876e8b79d11561b7bbe2ab5 | [] | no_license | tlelepvriercussol/primitiveWS | e9c1205821bd5689b66c986024c3027d783b0143 | 67cfa60b60441df11bd8a797f0fc16caf1f0a57c | refs/heads/master | 2021-01-18T13:28:25.076762 | 2016-01-16T10:11:46 | 2016-01-16T10:11:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | import time
import pypot.primitive
class NormalBehave(pypot.primitive.Primitive):
"A behave to put all motors at 0"
def run(self):
poppy = self.robot
for m in poppy.motors:
m.compliant = False
for m in poppy.torso + poppy.head:
m.goto_position(0, 2)
... | [
"tom.lelep@free.fr"
] | tom.lelep@free.fr |
7954f5dc67cd69db54a0bcb6a07e2a4c98ca869f | 5e1385521729efb8a5e90af19638dc43c2fadb88 | /day14/p1.py | a052874a1d91c68ab508602bb2193bac03186e6e | [] | no_license | pwicks86/adventofcode2017 | d8557f1496af0393b58e669f7f3c78a95565e871 | 11b5bd06ed900b857e726649c8ad2b8d619c2172 | refs/heads/master | 2021-08-30T16:17:15.609771 | 2017-12-18T15:59:21 | 2017-12-18T15:59:21 | 112,669,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | from functools import reduce
def knot_hash(s):
skip_size = 0
cur_pos = 0
lens = [ord(c) for c in s]
lens.extend([17, 31, 73, 47, 23])
nums = list(range(256))
for r in range(64):
for l in lens:
start = cur_pos
end = start + l
# reverse
for i... | [
"pwicks86@gmail.com"
] | pwicks86@gmail.com |
76af1bb31f3ea7a072427fe48eccc9c878f5d40d | 34f508116dc30ebefc5b7c604e28396296dfc438 | /real_time_curriculum.py | 99d362f9d25f5d3be461cd1f2d34c4863cfe0567 | [] | no_license | mlaico/cbas | 8038a1b1e09da21910b1019f5c5840814e7dad74 | b1fa2829568e0b9d672930a27181642c494af16f | refs/heads/master | 2020-03-14T04:08:09.334524 | 2018-05-10T15:46:10 | 2018-05-10T15:46:10 | 131,435,161 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,030 | py | import torch
import torchvision
import torchvision.transforms as transforms
from torch.utils.data.sampler import Sampler
import matplotlib.pyplot as plt
import numpy as np
from torch.autograd import Variable
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch import Tensor
cla... | [
"airmanfair@Davids-MacBook-Pro-5.local"
] | airmanfair@Davids-MacBook-Pro-5.local |
044b5038b2dc6e08eec058794d0aab40e361ee05 | a24be055d6df91f7d9df033b6986c228162b2e39 | /setup.py | 4775973d0d595192477681ffb0320c56267fc8da | [
"Apache-2.0"
] | permissive | mbukatov/tox-sitepackages-reproducer | 38c1542665258fbcc7e23080d26608443d1541a2 | 91fe327f5f8d725f70f24598540577f02e9fd559 | refs/heads/master | 2021-01-17T17:26:25.033849 | 2017-02-27T10:12:43 | 2017-02-27T10:39:55 | 82,937,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='reproducer',
version='0.0.1',
author='Martin Bukatovič',
author_email='mbukatov@redhat.com',
license='Apache 2.0',
url='https://github.com/mbukatov/tox-sitepackages-reproducer',
descripti... | [
"mbukatov@redhat.com"
] | mbukatov@redhat.com |
ec7444a5624a66b29237d928f9130d95128e3637 | f5bf18ababaa8ca5bed2ab1af4cb0349ec5284e1 | /Python/urlshortener/url/models.py | a889d3b1278ea6469961baa2f143fa7d2f67eccb | [] | no_license | rgsriram/Personal-Projects | c0377524f8d7e8f56940b24bfeacf243bb603917 | 44c634080e270bdee375cf6fee9ca6c313b80a1b | refs/heads/master | 2023-03-03T16:34:05.542497 | 2023-02-20T13:57:00 | 2023-02-20T13:57:00 | 125,975,423 | 0 | 0 | null | 2022-01-21T19:36:05 | 2018-03-20T07:08:27 | Java | UTF-8 | Python | false | false | 519 | py | from django.utils import timezone
from mongoengine import *
class URL(Document):
long_url = StringField(max_length=500)
short_url = StringField(max_length=500)
created_at = DateTimeField(default=timezone.now(), help_text='Url added at')
no_of_clicks = IntField(default=0)
domain = StringField(max_l... | [
"srignsh22@gmail.com"
] | srignsh22@gmail.com |
2c4990087a05486cd48b5d4446694d10cd2be69c | 044967f71c1a7b21163eb995165ea1bfcfc9c0fa | /text_processor.py | 490773c6fe588e00b776d0af836de5d60dbe0b21 | [] | no_license | H-Yin/owl | bc12d5388a3408c3c1b4d4048654a9f0770d6697 | 990f50cc083bf3baec01f846edf7b42449e58401 | refs/heads/master | 2021-06-23T17:05:30.299153 | 2017-08-17T01:15:25 | 2017-08-17T01:15:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,602 | py | # *--coding:utf-8--*
from datetime import datetime
import traceback;
import nltk
from nltk.stem.lancaster import LancasterStemmer
from nltk.corpus import stopwords, brown
class TextProcessor(object):
'''
process text inputed by user
'''
def __init__(self, text=""):
# text inputed by user
... | [
"nywzyinhao@163.com"
] | nywzyinhao@163.com |
aed4106be15ee2f60d1b655d64c873bd9310833d | 31900bdf5648061a3093230711c5394e20b90436 | /usr/lib/enigma2/python/Plugins/Extensions/MediaPortal/additions/porn/voyeurhit.py | f04bb7583010ba617ea271edcd837c8a6296914a | [] | no_license | linuxbox10/enigma2-plugin-extensions-mediaportal | aa6f14ecfc42ce91e22c487070541459a1ab820c | e6b388918c186442718e7200e03c83d0db260831 | refs/heads/master | 2021-05-01T18:50:50.332850 | 2018-02-10T11:33:48 | 2018-02-10T11:33:48 | 121,009,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,738 | py | # -*- coding: utf-8 -*-
###############################################################################################
#
# MediaPortal for Dreambox OS
#
# Coded by MediaPortal Team (c) 2013-2018
#
# This plugin is open source but it is NOT free software.
#
# This plugin may only be distributed to and executed ... | [
"jaysmith940@hotmail.co.uk"
] | jaysmith940@hotmail.co.uk |
0c72b38b1807ffdf0c0bbad486813abdc8249805 | 50dc7b063ca860d89717866ff6f844fef9164683 | /pwndbg/info.py | 4bdf15f2b6cc7acb34d683493bd756b46f006cca | [
"MIT"
] | permissive | sigma-random/pwndbg | 3519a0411dd95d254cda9f83ad1faf85c20c335a | da88e347f7e1b828f6ebee2753117c666f4dd97d | refs/heads/master | 2021-01-22T13:08:11.112154 | 2015-05-23T01:25:41 | 2015-05-23T01:25:41 | 36,412,538 | 2 | 0 | null | 2015-05-28T03:32:10 | 2015-05-28T03:32:10 | Python | UTF-8 | Python | false | false | 649 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Runs a few useful commands which are available under "info".
We probably don't need this anymore.
"""
import gdb
import pwndbg.memoize
@pwndbg.memoize.reset_on_exit
def proc_mapping():
try:
return gdb.execute('info proc mapping', to_string=True)
excep... | [
"riggle@google.com"
] | riggle@google.com |
2810e7ca25da235d2ad6cda17b2a2e24a0dbfc5c | 93d62f8f6525010cf25127e4cc9b8aba7cf03a77 | /authDjango/authApp/urls.py | 535af82d63d1b22f1a9b9c3416e2310a046926d5 | [] | no_license | pourmirza/DRF-React-Auth | fcc5e14dfe90d63bd6b236a72630c4f3edd73a2a | 5a545aac3d52c4415b5010ae47e8df081d80fdae | refs/heads/master | 2023-07-03T03:01:53.554414 | 2021-08-08T15:43:36 | 2021-08-08T15:43:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | from django.urls import path
from .views import set_csrf_token, login_view, CheckAuth
urlpatterns = [
path('set-csrf/', set_csrf_token, name='Set-CSRF'),
path('login/', login_view, name='Login'),
path('test-auth/', CheckAuth.as_view(), name='check-auth')
]
| [
"53014897+kieronjmckenna@users.noreply.github.com"
] | 53014897+kieronjmckenna@users.noreply.github.com |
80831e3880c0732805d920c03fde0582f8b7f7b8 | 0afed628ce737295ce370d4c397888e822937b66 | /expenses/migrations/0024_auto_20190203_1712.py | 701b6e67d5437e2760ab9f301b0d99b0446b8321 | [] | no_license | newbusox/expensetracker | 4cdae836d65604ba9f051bd8da40f0cd3acc0363 | 008cdc75962351e4271358575e5c8007c8263f1d | refs/heads/master | 2022-12-14T04:03:25.207888 | 2020-08-09T04:34:30 | 2020-08-09T04:34:30 | 169,085,053 | 0 | 0 | null | 2022-12-08T01:35:12 | 2019-02-04T13:48:16 | Python | UTF-8 | Python | false | false | 662 | py | # Generated by Django 2.1.5 on 2019-02-03 22:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('expenses', '0023_constructiondivision'),
]
operations = [
migrations.RemoveField(
model_name='constructiondivision',
... | [
"john.errico@gmail.com"
] | john.errico@gmail.com |
8f8e62220d50fa2f672496e56c1d1c509e1a83eb | 8a135e5e41b0648aaf10641705b1f0a83b5e144a | /test/core/045-hierarchy-sharedfs-b/local_hierarchy.py | d5f4f00e9f49c1a3ec55e1c47d6926deab1811e7 | [
"Apache-2.0"
] | permissive | fengggli/pegasus | 43fb182cf02d4545693b9500dc4fd7d08ac61ebc | 402bdbc67438afb0cdcc5868419cf28b4d229ff4 | refs/heads/master | 2020-11-26T16:57:06.577507 | 2019-12-19T18:15:42 | 2019-12-19T18:15:42 | 229,146,362 | 0 | 0 | Apache-2.0 | 2019-12-19T22:07:49 | 2019-12-19T22:07:47 | null | UTF-8 | Python | false | false | 1,199 | py | #!/usr/bin/env python
import os
import sys
import subprocess
if len(sys.argv) != 2:
print "Usage: %s CLUSTER_PEGASUS_HOME" % (sys.argv[0])
sys.exit(1)
cluster_pegasus_home=sys.argv[1]
# to setup python lib dir for importing Pegasus PYTHON DAX API
#pegasus_config = os.path.join("pegasus-config") + "... | [
"vahi@isi.edu"
] | vahi@isi.edu |
ed390fc5eb173e6c52436f931d003dbf4f303955 | 9c9b908a4697491c040b8d7877c1dacf253b836a | /venv/Scripts/easy_install-script.py | a145659108160ec633efca8aff4a1045c92dda70 | [] | no_license | aj1218/SeleniumTest | 37e796f42417326386002abdd7d7dedc70d4f203 | cd9375269335133978395aaad9cc24ffc9f35551 | refs/heads/main | 2023-01-25T04:54:16.380816 | 2020-12-03T07:29:25 | 2020-12-03T07:29:25 | 319,197,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | #!E:\SeleniumTest\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sy... | [
"nnczstar@NNCZStar-iMac.local"
] | nnczstar@NNCZStar-iMac.local |
71dd61e2b8ce662766a38021747136d4753a097b | faf2c4dca39486207868c74f13f69e62fd88e9b1 | /utilities/generate-header.py | 0046313cdd1b04984f619ad926cde31e20adab47 | [] | no_license | Unco3892/FaceRunner | 922f96fb99d5ea7d2dfff079f6367b64c4e1e262 | f862262dd19c6c41b510e862b6f7baf8602b5528 | refs/heads/main | 2023-02-26T02:28:41.990543 | 2021-02-01T21:06:54 | 2021-02-01T21:06:54 | 335,082,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | # This file was used to generate the header which was not palced directly in the main body as this method leaves some newlines which we desired to remove.
from pyfiglet import Figlet
header = Figlet(font='big')
subheader = Figlet(font='digital')
print(header.renderText("FaceRunner"))
print(subheader.renderText("By Il... | [
"unco3892@gmail.com"
] | unco3892@gmail.com |
1c1078806866c1170018081bf291d0fcc2d4ffe2 | 61f33d36c86e9961800976b927df6597ec47aa87 | /constant.py | 6320082fed6404ae75e38bca3c5c3aebac090aa6 | [
"MIT"
] | permissive | 29527/OKExPyWebsocket | accfbeca7fbdf75b16d14122023765410bfb6309 | d084373e0bf18ca533bcc8f4fc1ba051d6be0209 | refs/heads/main | 2023-07-17T08:29:12.956397 | 2021-09-02T07:49:16 | 2021-09-02T07:49:16 | 398,232,201 | 0 | 0 | MIT | 2021-08-20T10:00:50 | 2021-08-20T10:00:50 | null | UTF-8 | Python | false | false | 1,583 | py | class Operation(str):
# 操作
SUBSCRIBE = "subscribe"
UNSUBSCRIBE = "unsubscribe"
ERROR = "error"
# 登陆
LOGIN = "login"
# 下单、撤单、改单相关
ORDER = "order"
CANCEL_ORDER = "cancel-order"
AMEND_ORDER = "amend-order"
class Channel(str):
"""
私有频道中的channel
"""
ACCOUNT = "accou... | [
"cl193931"
] | cl193931 |
16d466faf8885448bc782e7158f0b12d78f1ed4c | 72af42076bac692f9a42e0a914913e031738cc55 | /Do it! 자료구조와 함께 배우는 알고리즘 입문 – 파이썬 편/chap02/reverse.py | 36203133733209c57a24c7b4927b5f17ee2d9f8f | [] | no_license | goareum93/Algorithm | f0ab0ee7926f89802d851c2a80f98cba08116f6c | ec68f2526b1ea2904891b929a7bbc74139a6402e | refs/heads/master | 2023-07-01T07:17:16.987779 | 2021-08-05T14:52:51 | 2021-08-05T14:52:51 | 376,908,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | # [Do it! 실습 2-6] 뮤터블 시퀀스 원소를 역순으로 정렬
from typing import Any, MutableSequence
def reverse_array(a: MutableSequence) -> None:
"""뮤터블 시퀀스형 a의 원소를 역순으로 정렬"""
n = len(a)
for i in range(n // 2):
a[i], a[n - i - 1] = a[n - i - 1], a[i]
if __name__ == '__main__':
print('배열 원소를 역순으로 정렬합니다.')
nx ... | [
"goareum7@gmail.com"
] | goareum7@gmail.com |
c411bd03168f2f7f1423730ee2d476bd59141dae | 62b7a34776b851692ee7d9c18070e74f7ffbe13a | /app.py | 4a3ff116facd599a62b4e7e57fa4883b0b4b17af | [] | no_license | cathyann/flask-task-manager-project | a0153e0d95ce7fc6a18551dad17e7258cc7f0599 | f344df5422b1f3916a5e6b3e15b40aa5691eb0f1 | refs/heads/master | 2023-02-10T20:09:53.277767 | 2021-01-04T09:29:15 | 2021-01-04T09:29:15 | 322,547,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,529 | py | import os
from flask import (
Flask, flash, render_template,
redirect, request, session, url_for)
from flask_pymongo import PyMongo
from bson.objectid import ObjectId
from werkzeug.security import generate_password_hash, check_password_hash
if os.path.exists("env.py"):
import env
app = Flask(__name__)
app... | [
"cathyannsy@gmail.com"
] | cathyannsy@gmail.com |
9b5e5c683798764ef15363fbd2fdf392b0afaf11 | d4a6c3ae3b911cc1f3866c75e5934165d2fafb49 | /setup.py | d3633613e45988ed063dd11f2eb62cc7f8ab5a8e | [] | no_license | arthur-a/nativeview | a7ab4f7dac9a28f7c253dd5a882fe6b9ad2a6974 | 6fa5a5bff56a36783edb5b4dabc32c386498f2ea | refs/heads/master | 2016-09-01T23:25:05.197254 | 2015-11-10T06:14:48 | 2015-11-10T06:14:48 | 25,459,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | from setuptools import setup, find_packages
requires = [
'arrow>=0.4.4',
'translationstring'
]
setup(name='nativeview',
version='0.0',
description='nativeview',
classifiers=[
"Programming Language :: Python",
],
author='Arthur Aminov',
author_email='',
url='',
package... | [
"aminov.a.r@gmail.com"
] | aminov.a.r@gmail.com |
23f7e2bcf92de1dc1282410eb1cb672dcdcaf44f | 66ba6a582d8fd5ed7ba01742ca19b658a59cc28a | /crawlers/server/DianPing.py | ab1d169cc6c11e502e7692a7b2f83b8b9269ee65 | [] | no_license | BaymaxGroot/DataCrawler | 84417a470db3d425296214d0f524668e7bf61f5c | 43044ba6a51114518b22abcc8c082062c4507d6f | refs/heads/master | 2020-03-19T02:48:38.131595 | 2018-08-13T01:52:50 | 2018-08-13T01:52:50 | 135,662,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,350 | py | import os
import json
import requests
import random
import time
from crawlers.common.db_operation import batch_insert_update_delete,db_query
pro = ['192.155.185.43', '192.155.185.153', '192.155.185.171', '192.155.185.197']
head = {
'user-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML... | [
"lele.zheng@citrix.com"
] | lele.zheng@citrix.com |
21732b6a55f993398d367ce33a847b4d240dc182 | 9db06f1464974bbe20c87009b3f1b345a778df85 | /test/tiaoxingtu.py | 398664baf6b9f830683fe1100d2e0fee5d784495 | [] | no_license | wangyuntao1990/data_analysis | e83547404c8bc09acc6d371c035e7eac8218db77 | 380ab4a911773997e7745e470c1715808648545f | refs/heads/main | 2023-03-13T01:40:41.686533 | 2021-03-06T14:09:35 | 2021-03-06T14:09:35 | 341,168,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | # -*- coding: UTF-8 -*-
import matplotlib.pyplot as plt
import seaborn as sns
# 数据准备
x = ['Cat1', 'Cat2', 'Cat3', 'Cat4', 'Cat5']
y = [5, 4, 8, 12, 7]
# 用Matplotlib画条形图
plt.bar(x, y)
plt.show()
# 用Seaborn画条形图
sns.barplot(x, y)
plt.show()
| [
"253782489@qq.com"
] | 253782489@qq.com |
a572ce463403833a173873f566d1d844feb927d8 | 4ddd5aafb68cfdfd1afbf8a481711da00a674e13 | /Some Python Libraries for Data Science/Numpy Basics/numpyBasics.py | 3da9198138db6a0f1c313e9dc9c3472240e8efc3 | [] | no_license | MertUsenmez/Some-Python-Libraries-for-Data-Science- | b1a1c09a860ebcdc6cb3c09f4c0817975f738c46 | a7f4a12132b3af5985ec714d5d7a98a81f455244 | refs/heads/master | 2020-04-25T17:49:07.225840 | 2019-02-27T17:52:26 | 2019-02-27T17:52:26 | 172,962,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,718 | py | # -*- coding: utf-8 -*-
"""
@author: User
"""
#%% Numpy
import numpy as np
array = np.array([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]) #1*15 matrix(vector)
print(array.shape)
a = array.reshape(3,5)
print("Shape:",a.shape)
print("Dimension:",a.ndim)
print("Data type:",a.dtype.nam... | [
"noreply@github.com"
] | MertUsenmez.noreply@github.com |
3f21409f67a329d44c7e3650cbed075f5fb08512 | 0bc81c8742e6b7cd4bd3a804ac41cedee637c921 | /portalweb/services/instancegroupservice.py | 94912cd53481aa718386c5a0539d490129c83f52 | [] | no_license | TPAC-MARVL/portal | c7ff9445ea340774aaa1890e2b847001e6564379 | b9660d7b771f105360c814e1a861fb16dc036c2b | refs/heads/master | 2016-09-16T11:25:25.742221 | 2014-11-07T04:44:19 | 2014-11-07T04:44:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,361 | py | from portalweb.system.message import MessageManager
from portalweb.system.message import Message
from portalweb.decorators.transaction import transaction
from portalweb.system.util import Util
from baseservice import BaseService
from portalweb.cloud.entities.instance import InstanceState
class InstanceGroupService(Ba... | [
"fxmzb123@gmail.com"
] | fxmzb123@gmail.com |
77cc1bcafc3a1e60f67633790891d345b694ea52 | af4830183cc22bc93b392a8acea72f51a34c3103 | /genome.py | 91e7c4d000902763ba3d6865160184ee3e7b2b2e | [] | no_license | siekmanj/genetic-code-generation | e5e6d0dcc50a777584756ca52c261d87e0daada7 | ee713ad3f311de681ea3f711b1a901fa8dcda41e | refs/heads/master | 2021-09-20T23:41:57.486326 | 2018-08-16T21:34:59 | 2018-08-16T21:34:59 | 116,884,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | import random
#The only thing that this class should do is generate random 1s and 0s
#The other stuff should be in an intermediary class
#character interpretations
class Genome:
def __init__(self, genome_length):
self.genome = []
self.length = genome_length
random.seed()
for i in range(genome_length):
self... | [
"siekmanj@oregonstate.edu"
] | siekmanj@oregonstate.edu |
6ad58bb1abb0f28a69b2fda6bb4a2263fb8ebefd | 669fb7909b023a5315f3f20edffc9b40d57e28bb | /questionnaire_site/urls.py | 2d80a31a02f571a77eec0358376bdaa11c68d84d | [] | no_license | alinacristea/questionnaire_site | cc6dd8df56ef085c713f73a8fd49c9510389839e | f5302a468d36fbf3fad7004d9b27bd4292bea3de | refs/heads/master | 2020-05-02T02:39:06.841693 | 2016-01-28T18:57:53 | 2016-01-28T18:57:53 | 21,604,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
from questionnaire_site import views
# the URLs created for the application
urlpatterns = patterns('',
url(r'^$', views.index, name='index'),
url(r'^admin/', include(admin.site.urls)),
# when the re... | [
"alina.andreea.cristea@gmail.com"
] | alina.andreea.cristea@gmail.com |
04ae14073ae09d78e57d714a6833da4011531657 | 3108ebd916033991e8a6178e418d9caf2248056c | /media.py | 355d4e0ffefc5d48a2449611cde023c06cb97dcf | [] | no_license | demesvardestin/project-movie-trailer | ec7eb658e89ec3ed531df7df63b0ac241d5d8194 | b7ca0d56f37ca4fa59e06c6e4dc96f6baf12e51a | refs/heads/master | 2021-07-10T18:52:54.881675 | 2017-10-12T03:28:13 | 2017-10-12T03:28:13 | 106,588,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | import webbrowser
class Movie():
""" TrailFlix website source-code
Author: Demesvar D. Destin
"""
def __init__(self, title, movie_id, description, poster_image_url, trailer_youtube_url, genre, actors, box_office, release):
# initiate movie attributes
self.title = title... | [
"dddemesvar07@gmail.com"
] | dddemesvar07@gmail.com |
07d8d878ca7856a8bb99ddf171a7f718602f8ca1 | 718b810b7c8103795f54d934116c60715cbfb44b | /pixivlink.py | 23152c98e2050a4946e5ac8fe99ea09a9171d54b | [] | no_license | godofalb/PixivPicGet | 816c12f741a10477b7a63e0df10a10e7c8fc748f | 47f65036da75de49a64551ff0de0c49996287b04 | refs/heads/master | 2021-01-19T09:31:38.510983 | 2018-10-09T11:05:14 | 2018-10-09T11:05:14 | 100,656,805 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,075 | py | #-*- coding:utf-8 -*-
from httplib import HTTPException
from urllib2 import HTTPError
import cookielib, urllib2,urllib
from Cookie import CookieError
import re
import time
import types
import os
#import ssl
#关闭ssl验证
#ssl._create_default_https_context = ssl._create_unverified_context
false=False
true=True
import sys
r... | [
"xwl992365231@163.com"
] | xwl992365231@163.com |
34b03cd2b0561302a442746036964d970147b488 | aff33d74832ac5c4ba271d1735f41bf9f7048e9e | /JustesSite/wsgi.py | f2363782918d913441d82df70285eab7934af771 | [] | no_license | JustinaSavickaite/DjangoGirlsBlog | 1daa0277f5f77fe1a62591687ed11e22426cbc8b | edcd5340f7cb167000c7492966d289922b1cd588 | refs/heads/master | 2020-05-27T08:13:16.380610 | 2019-05-25T13:02:49 | 2019-05-25T13:02:49 | 188,541,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for JustesSite 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/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"justinaa.savickaite@gmail.com"
] | justinaa.savickaite@gmail.com |
59b9c718b121c393ba492ef0fab66fd9222c0f25 | 4c0b1c2477a1c1d9f35d3d1cdaccde8d11c5bf0c | /oz/bandit/actions.py | 6e441bf15b15f997cae021d8030b3884fd0c00b3 | [
"BSD-3-Clause"
] | permissive | dailymuse/oz | 5307af4066c054d5f027ba370ec18e4db3b91d22 | f4fec5078bba3258a15504247394339a100487de | refs/heads/develop | 2021-01-17T01:21:24.048074 | 2020-09-25T20:15:06 | 2020-09-25T20:15:06 | 12,148,880 | 36 | 4 | BSD-3-Clause | 2020-09-26T00:32:12 | 2013-08-16T02:28:00 | Python | UTF-8 | Python | false | false | 2,270 | py | from __future__ import absolute_import, division, print_function, with_statement, unicode_literals
import oz
import datetime
import oz.redis
import oz.bandit
from tornado import escape
@oz.action
def add_experiment(experiment):
"""Adds a new experiment"""
redis = oz.redis.create_connection()
oz.bandit.add... | [
"simonson@gmail.com"
] | simonson@gmail.com |
73e6a623d85f20031eb6facf7519a7542786ec9f | f59246a0b83df52c4a8d53f350e16c74333eb56c | /bin/epylint | 65b9cc758eea3c753eb0f53d23a166437dcf16a5 | [] | no_license | Angel-Chang/HSDBS | bcc4ffe679cd56898354f8d4e0aa21bd94fc2844 | df14e42beb17ad3f6262b3fdc50052b73d99fd25 | refs/heads/master | 2023-07-10T22:19:34.965001 | 2021-08-24T14:42:58 | 2021-08-24T14:42:58 | 399,503,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | #!/Users/dualwings/Projects/HappyCityDB/HSDBS/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_epylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_epylint())
| [
"huichi.chang@gmail.com"
] | huichi.chang@gmail.com | |
49418e89eb996edd410c9e539d7f89196d1c80c0 | 7a0adfa02066795cf426434f36469560e9731448 | /TokenExtract.py | 82faec4da27067fe03eb1f735690fb41508c5960 | [] | no_license | kevinkoo001/malClassifier | b5b7dc4287903eae6a69eb547d60f5d3e966f8d0 | 9c25bad29069afa030443284042e8d1fcbeb7233 | refs/heads/master | 2021-01-10T19:36:53.793962 | 2015-03-09T19:24:06 | 2015-03-09T19:24:06 | 30,928,405 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | __author__ = 'HEEYOUNG'
import csv
import numpy as np
import sklearn
import sys
from os import listdir
from os.path import isfile, join
import os
from pymongo import MongoClient
client = MongoClient('localhost', 27017)
db = client.Malware
BASEDIR = "H:/Malware_Data/"
if __name__ == '__main__':
TrainList = []
... | [
"kevinkoo001@gmail.com"
] | kevinkoo001@gmail.com |
dc7eb1f17fb333249a13d48e83e81c6eb1c15213 | 684a4b1b43810ed6ebe6bbb29b3de90038ee90a6 | /Decision_Trees/LMT/calculate_diff_sum_with_pos_neg_weights.py | 1e3b1bafee3c3991cb4d9c1d7de194bcc2a4385e | [] | no_license | liuyejia/Yeti-Thesis-Project | 47735120f3314e0041fe978d16ba2c922775b0fd | 3ce083c5f871b6efe0a581d8ce8db18116ea6ba4 | refs/heads/master | 2021-10-09T12:25:23.067022 | 2018-12-28T06:02:41 | 2018-12-28T06:02:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,085 | py | import csv
import pandas as pd
import numpy as np
# get the average value with sql "SELECT LeafNode, avg(DraftAge_norm), avg(Weight_norm), avg(CSS_rank_norm), avg(rs_A_norm), avg(rs_GP_norm), avg(rs_P_norm), avg(rs_PIM_norm), avg(rs_PlusMinus_norm), avg(po_P_norm), avg(po_PIM_norm), avg(po_PlusMinus_norm), avg(po_A_no... | [
"noreply@github.com"
] | liuyejia.noreply@github.com |
81b6956e40e1cd7df9d676045abb0fb86f48d988 | 3e08cffe70e114cdee33469c5b95e95e31dc668b | /common_tools/units.py | a9175bce0ff93735177f3d02fdda1232fc3321fa | [] | no_license | mzoll/common_tools | 7d5433daed4284b11df6eb5de6112d48eb9ac094 | 1a679f152727d52c9ce9e718f1d609c6f3d3fca4 | refs/heads/master | 2021-06-02T01:34:47.206657 | 2019-02-21T23:35:32 | 2019-02-21T23:35:32 | 125,834,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,777 | py | '''
Created on Sep 28, 2017
@author: marcel.zoll
define some commonly used units as multiplicative values, so that we wont have to guess what kind of factor they entail to standard definitions.
'''
class units:
""" defines conversion factors between units
Examples
--------
```
t = 1. * units.time... | [
"marcel.zoll@nowinteract.com"
] | marcel.zoll@nowinteract.com |
7a9a5b0d61016058241e1c30827b44586ea150a4 | 7649d4420c729eb1114d1159b35f9b7e05f40c42 | /dog.py | aa05e8daff6e94930b21c7a8244682bcb393f74f | [] | no_license | ninankkim/python-functions | 6492bfe5dc9151092179367effde1a4d733c2270 | 4b872849d7d527620b08e762536ca8b24d30f7f5 | refs/heads/master | 2022-12-23T09:00:23.183486 | 2020-09-24T02:31:52 | 2020-09-24T02:31:52 | 289,960,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | class Dog:
species = 'mammal'
def __init__(self, Nelson, age):
self.name = name
self.age = age
nelson = Dog("Nelson", 3)
print(f"{nelson.name} is {nelson.age}.")
def description(self):
return(f'{self.name} is {self.age} years old'. )
# nelson = Dog("Nelson", 3)
# print(f"{nelson.name} is {nels... | [
"noreply@github.com"
] | ninankkim.noreply@github.com |
ad2413067fa7f22525ccaa649449bf4eb0f75ac0 | 6633410f0b0922acc53a452a4fb379d322be60ae | /trydjango19/manage.py | 394fc3ba1c3c0abd172f8409d04987e6abc650f1 | [] | no_license | miradouro/django_rest | 40cf71eb26abe7da509aa417104503563295dca7 | 1250eed5860ee6e2b87ca1c0f7b90899e0eb7d44 | refs/heads/master | 2023-04-09T12:03:33.059053 | 2021-03-31T11:55:07 | 2021-03-31T11:55:07 | 352,301,531 | 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', 'trydjango19.settings')
try:
from django.core.management import execute_from_command_line
except ... | [
"rafaelmiradouro@gmail.com"
] | rafaelmiradouro@gmail.com |
7215c3ea37b0c050243a3ad04035d80c0d10a10d | a5d42f157dc642888564bca72d9ebfa18b7e8ee7 | /05-condicionales/ejemplo_if.py | 896d6dd4d392358a1077f0e341a8acfb3ce6546f | [
"MIT"
] | permissive | tulcas/master-python | 5cbc17881e4b2f3f3e3134f3edc61ecc73898f68 | ddac8aa1bf3e6448fe237eac239d27ce3fda705c | refs/heads/master | 2023-01-08T17:17:12.616654 | 2020-11-14T09:38:51 | 2020-11-14T09:38:51 | 275,884,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | # Ejemplo 1
print ("########################## EJEMPLO 1 ########################## ")
color = "rojo"
color = "verde"
if color == "rojo":
print("Enhorabuena!!!")
print("El color es: ROJO ")
else:
print("El color NO es: ROJO ")
# Ejemplo 2
print ("\n########################## EJEMPLO 2 ###############... | [
"andllanes@gmail.com"
] | andllanes@gmail.com |
cee26de311e1547ddda332a99951c846aae0f3a4 | 655f463e8a357a649972782b2a338be03044b119 | /h_index_P3.py | 86a598e5917d3e50c46750deb15af0c599528919 | [] | no_license | covy92/algorithmPrac | 01c29476ebe869c1bcd15133f95e44ba7e9b59b2 | 86c9691d86b6275026195e3c2fe0e34778f03159 | refs/heads/master | 2023-09-04T16:49:09.994580 | 2021-11-05T01:54:28 | 2021-11-05T01:54:28 | 422,837,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py |
citations = [0, 1, 1]
citations.sort()
print(citations)
count = 0
over_num = 0
answer_list = [0]
while count < len(citations)+1:
for i in range((len(citations))):
if citations[i] >= count:
over_num += 1
print(count, over_num)
if count <= over_num:
answer_list.append(count)
... | [
"tjddlf1232@gmail.com"
] | tjddlf1232@gmail.com |
3984eab721b23a8156156fad53f978306b280051 | 9275f3919f80c3d1525afa890a9422d86e2c745b | /coderbyte-TimeConvert.py | 4b13ee7d9dd3b5cd26688273943992491c5e4486 | [] | no_license | Jandeh7/coderbyte-solution | 3b97c1d6c9be5c00607b1d1d86b0f413c975f3d4 | 7614bc9a00787e92be67dc745f5c4b6de90aa27e | refs/heads/master | 2022-01-07T19:41:08.443776 | 2019-07-05T09:15:31 | 2019-07-05T09:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | '''
Have the function TimeConvert(num) take the num parameter being passed and return the number of hours and minutes the parameter converts to (ie. if num = 63 then the output should be 1:3). Separate the number of hours and minutes with a colon.
Use the Parameter Testing feature in the box below to test your code w... | [
"liangmanping@outlook.com"
] | liangmanping@outlook.com |
5c304c1203ea75a46905540701399371d11cb521 | 1f2cd2042e3ad8a3866a01ee6dcc9735537ffa28 | /Task 3.py | eed4903ddca70e5a5901d032feb5f256a160ffaa | [] | no_license | ADRITA-PARIA/TSF-tasks | f6613b68d55813ca14805f36a2a60c61a264d04d | 26975dd63096eb7d2750eff380cf0345c72b8d3c | refs/heads/main | 2023-02-27T05:46:57.990106 | 2021-02-10T13:30:55 | 2021-02-10T13:30:55 | 336,715,941 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,373 | py | #!/usr/bin/env python
# coding: utf-8
# # Data Science And Business Analytics Intern At The Sparks Foundation
# # GRIPFEB21
# # Author: Adrita Paria
# # Task 3=Exploratory Data Analysis(Sample Superstore)
# # Step 1: Importing standard ML libraries
# In[132]:
import numpy as np
import pandas as pd
import seabor... | [
"noreply@github.com"
] | ADRITA-PARIA.noreply@github.com |
b91f6ce958f69e9dfef51a067e91a094aa42930b | 99de523ddc847b29db4236ef87d39eb0c1f6ac1c | /python/searchMethodUI.py | a5e2497ec6aa9e548e9d45302a2fb5c00bd5efc7 | [] | no_license | sanfx/searchMethod | 28ffcbcee5c8e7adaed1ae410c033965b1dbf875 | 38392d0101c2f3c1435e50e52857df13e50a9943 | refs/heads/master | 2016-09-06T03:36:55.479814 | 2013-11-04T14:01:33 | 2013-11-04T14:01:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,091 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui/searchMethod.ui'
#
# Created: Sat Nov 2 02:20:15 2013
# by: pyside-uic 0.2.13 running on PySide 1.1.1
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
class Ui_searchMethodMainWidget(object)... | [
"skysan@gmail.com"
] | skysan@gmail.com |
939c889e2b58279d75e55db716e9309be7d5298d | c1a67f7650e7949ec66d0109c4a05326cfa7e976 | /travel_budy/urls.py | 278cd14802a1c21928a3ec5ecb46e93b193aa265 | [] | no_license | SaralynOgden/Travel_budy | 7dd7c12bf121996771291c418e72ed84d441aa00 | c57c39e8822febfa64deed1672dffc457a5f6037 | refs/heads/master | 2021-01-22T09:54:34.193167 | 2016-09-07T04:28:00 | 2016-09-07T04:28:00 | 81,977,291 | 0 | 0 | null | 2017-02-14T18:41:28 | 2017-02-14T18:41:28 | null | UTF-8 | Python | false | false | 792 | py | """dashboard URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/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-... | [
"lynam.emily@gmail.com"
] | lynam.emily@gmail.com |
81ae8a68197e4435c336fff6212a256e7cc3d667 | 174942d21c29300d79b03be2d43f7b8635d38b07 | /lesson_05/task_1.py | 471274cf7c804e4372102453ce1f46d23320edd0 | [] | no_license | HelenMaksimova/algorithms | 43a546295888470838bea8301db9acab7b58496b | 9b3676f2312cd79b28c984aa11dfeb4868237e46 | refs/heads/main | 2023-07-03T11:21:26.576778 | 2021-08-12T20:06:06 | 2021-08-12T20:06:06 | 395,431,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,893 | py | """
1. Пользователь вводит данные о количестве предприятий, их наименования и прибыль
за 4 квартала (т.е. 4 отдельных числа) для каждого предприятия.
Программа должна определить среднюю прибыль (за год для всех предприятий)
и вывести наименования предприятий, чья прибыль выше среднего и отдельно
вывести наименован... | [
"noreply@github.com"
] | HelenMaksimova.noreply@github.com |
5df80fcc727c5509aada718e3f6c68c69dd3230e | 6187eda12d02fbf8e309c9efdcead58dacc35b6f | /sdk/cogscale/client/service_client.py | f8cd9be0f71252ee6f0a50fc2c2c5001c347a4e6 | [
"Apache-2.0"
] | permissive | CognitiveScale/industry-models | 3f08fc8417357a19b78bef95a084d5aa7a983c93 | 9afc26f0b209fbec7bfd41e37d6ff7d86ea7d1c3 | refs/heads/master | 2021-01-20T20:14:28.253187 | 2016-07-21T18:29:54 | 2016-07-21T18:29:54 | 63,868,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,946 | py | #
# Copyright 2016 CognitiveScale, Inc.
#
# 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 in wr... | [
"msanchez@cognitivescale.com"
] | msanchez@cognitivescale.com |
9aa9512ec6fb84ba8b0f2c3e7cff52f2a54cf02c | 8c11893f10a1eef5deec2a5cb16eaeeaf5d5ef01 | /src/100818/042719/nnn_disorder_spinup_gf_QSHlead.py | be85edaef513c86cbb2a2a864e3d3c4b29d9fd06 | [] | no_license | yuhao12345/topological_propagation | a2b325f11d4e6117581f94d2339c3fba3190271d | ef4bf7ee9fdb8a0e0bd04115250a131f919fdac9 | refs/heads/master | 2023-07-19T14:55:00.224328 | 2021-09-17T05:05:45 | 2021-09-17T05:05:45 | 307,262,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,421 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 14 15:34:19 2019
@author: ykang
"""
import numpy as np
from matplotlib import pyplot
import scipy.io as sio
import os.path
import random
import kwant
from kwant.digest import uniform
from random import choices
from time import time
from joblib import Parallel, delayed
im... | [
"yuhaok@uchicago.edu"
] | yuhaok@uchicago.edu |
ed16fecfd1164b433a4d9af495e35147b69f90a2 | 20a2789ddd20ee35c069cd72724b1a0a5df76194 | /alte Klausur/3. Mal PK.py | 96736ffd3d48f401262035cabbc415a7e2012e02 | [] | no_license | KKainz/Uebungen | 9c63e691b37fa678ed578f38668b278ad82837d5 | 372473e91a44e8ec244e8a9312b5464ffe36e147 | refs/heads/master | 2023-02-09T18:12:47.220168 | 2021-01-10T17:26:42 | 2021-01-10T17:26:42 | 325,608,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,670 | py | from typing import List, Dict
import abc
import math
class Instrument:
def __init__(self, name: str, lautstaerke: float):
self.name = name
self.lautstaerke = lautstaerke
class Musikant(abc.ABC):
def __init__(self, anzahl_beine: int, instrument: Instrument):
self.__anzahl_beine = anza... | [
"kristina.kainz@edu.campus02.at"
] | kristina.kainz@edu.campus02.at |
9da49f42c6d8aaedf68d9d5f35f09e8d3c89dbf6 | f201a096b9c74bccd13648ae0137e41397e3c0a2 | /ec_curves.py | d13df3fee4e4750ebe995930c93e5cbb06724669 | [] | no_license | vickraj/Elliptic-Curve-Crypto | 48344286307fb54bb186c01ff97eaa654ce608e5 | 5d01f0c9498b040f62a8e6d93d677fbef0e1fc77 | refs/heads/master | 2020-03-21T08:23:06.516227 | 2018-06-24T00:58:16 | 2018-06-24T00:58:16 | 138,339,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,128 | py | from ec_fields import f_add, f_mult, f_inv, f_sqrt, f_rand
from sympy import *
import numpy as np
###A module containing the two classes, Curves and Points, and related methods.
class Curve: #all curves initialize as the trivial elliptic curve.
def __init__(self):
self.q = 0; #q is the size of t... | [
"noreply@github.com"
] | vickraj.noreply@github.com |
bad518a75ce094b830ad4c3e9d91bb3752671f3e | 8a4556e3ea8aa24e795fb8c55f4e518dd748e4b9 | /src/networks/unet_mini.py | c435723b7fd3f509efcf525432088b0859fef733 | [] | no_license | MostafaGazar/lines-segmentation-pytorch | 673f74fa2e5b45afdebad0d4dfd3e079541e174f | 6a2dfff4c72913479653af4aed0b5cd2d3d16333 | refs/heads/master | 2022-11-23T08:58:19.705910 | 2019-09-14T19:49:00 | 2019-09-14T19:49:00 | 208,118,988 | 4 | 3 | null | 2022-11-22T04:16:45 | 2019-09-12T18:29:38 | Jupyter Notebook | UTF-8 | Python | false | false | 2,646 | py | import torch
from torch.nn import Module
from torch.nn import Sequential
from torch.nn import Conv2d, Dropout2d, MaxPool2d, ReLU, UpsamplingNearest2d
# Based on https://github.com/divamgupta/image-segmentation-keras/blob/master/keras_segmentation/models/unet.py#L19
class UNetMini(Module):
def __init__(self, num_... | [
"mmegazar@gmail.com"
] | mmegazar@gmail.com |
268f582b8020642e0d04afced2cadbd446bcd957 | d0dce965ee97847397e12c741d247941b72a086d | /platform_msg/AppAllInfo/AppAllInfo/spiders/feixiaohao_notice.py | fee9a49f44ad8534773849c17954a40d427a2fad | [] | no_license | xuxin8911/wechat_robot | 21e04b53c34cd34148767ba0bfa1bf076271bea5 | 49b6ed2d452144913c78ec457bcea0def14beb43 | refs/heads/master | 2021-05-05T21:49:37.019674 | 2018-01-24T08:07:01 | 2018-01-24T08:07:01 | 116,029,119 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,334 | py | # -*- coding:utf-8 -*-
import scrapy
from scrapy.selector import Selector
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
from scrapy.http import Request
from AppAllInfo.items import *
from AppAllInfo.settings import APP_NAME
import codecs
class feixiaohao_notice(scrapy.Spider):
name = "feixi... | [
"xuxin@gdbigdata.com"
] | xuxin@gdbigdata.com |
ac1afcab6467a272667166b1b5f392fec0281043 | 116d445b32192a4ae441c4a345d8562b2ecbfead | /Chapter_04/prg_01.py | 76f41a0b19ed2a55bac6f2b64fb94b649df52f3c | [
"MIT"
] | permissive | lokeshvishwakarma/computer-vision | f7003feb677b60ae3a194b31330a210f784ebaa4 | af4bff3b10e11f6ffca4468378a13c9313328226 | refs/heads/master | 2022-07-16T03:42:49.607690 | 2020-05-18T13:02:28 | 2020-05-18T13:02:28 | 262,029,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | # Shapes and Texts
import cv2
import numpy as np
# Create a matrix with zeroes
img = np.zeros((512, 512, 3), np.uint8) # This creates a black image of 512 x 512
print('Original Image', img.shape)
# img[:] = 255, 0, 0 # Puts blue color to the full image
img[200:300, 100:300] = 255, 0, 0 # Puts blue color to the spec... | [
"uvishwakarma3@gmail.com"
] | uvishwakarma3@gmail.com |
a063e35a31c7a672b1914db46992b226b0604ce9 | b21cc7127132b5b3abbbea7aabd43eb8c89f91d8 | /TP3/redblacktree.py | f287c4c76eab2067fbfad0ebf79fdeeec4ca37a3 | [] | no_license | LucianoAlbanes/AyEDII | 4f338c67fc7b2fbb4b1373c74145c0a88f58c294 | ceba670f6b2b4df46b2edb695e82ccba69d8257d | refs/heads/master | 2023-06-16T22:10:32.968978 | 2021-07-08T17:28:20 | 2021-07-08T17:28:20 | 375,737,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,082 | py | # Red-Black Tree implementation
from mybinarytree import getNode, insertAux, searchAux, moveNode, search, access, update, traverseInPreOrder
# Define classes
class RedBlackTree:
root = None
class RedBlackNode:
parent = None
leftnode = None
rightnode = None
key = None
red = No... | [
"lucianoalbanes@gmai.com"
] | lucianoalbanes@gmai.com |
8fb50491315368de4dda83ceec98b10bce12cc65 | 90fb6f665e6c8c83f1c8207e0a2e793833fc3c6d | /NLP/chapter01.py | b4c083d4041d757f9e866a99623ce48e01eae74f | [] | no_license | hello-wangjj/Introduction-to-Programming-Using-Python | 8698ced3067714ab639328f5e3e78ccbbb4905c4 | ff24118d1779d589e37aa6ab88002176e8f475c3 | refs/heads/master | 2021-09-13T22:29:00.355794 | 2018-05-05T07:28:29 | 2018-05-05T07:28:29 | 57,047,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | # -*- coding:utf-8 -*-
"""
用途,文档说明
"""
from nltk.book import *
def lexical_diversity(text):
# 词汇
return len(text)/len(set(text))
def percentage(count,tatal):
return 100*count/tatal
| [
"576988736@qq.com"
] | 576988736@qq.com |
7cbb4ec069723b56e751ab29d7c238522f85aab6 | a65bff31e28a6abd615dee40a0d44b8a31004045 | /templator.py | bcae71c821bf6a6346f734eaf8d9938729c0e3f2 | [] | no_license | artmikh/Patterns.Framework | 138b4a241ffa9a3b568672f5236cb92c3ae01898 | 2e9df931ad1ebd5417fc2d8db8a57aa976f4c738 | refs/heads/main | 2023-04-21T08:52:01.960031 | 2021-05-14T20:20:01 | 2021-05-14T20:20:01 | 362,932,020 | 0 | 0 | null | 2021-05-16T21:43:39 | 2021-04-29T19:56:05 | Python | UTF-8 | Python | false | false | 499 | py | import settings
from jinja2 import FileSystemLoader
from jinja2.environment import Environment
def render(template_name, **kwargs):
env = Environment()
# Загружаем папку с шаблонами
env.loader = FileSystemLoader(settings.TEMPLATES_ROOT)
# Открываем шаблон по имени
template = env.get_template(temp... | [
"artmikh@yandex.ru"
] | artmikh@yandex.ru |
9e51363e2a976dbbdb4bd24a0d2cec4b15627703 | ecbc9493c2584b926845276fd31aeeb7363c5c0f | /textutils/views.py | 1e59596d62e5bf8ce93ea60af4f74dca833d3b51 | [] | no_license | AsifNasim/Publish | 72c717e15814ecc6a03c927a980f31b8f0ab00ed | 4713db85c6179793999693bdf9b5ec4970c834b6 | refs/heads/master | 2023-04-28T03:32:08.107524 | 2020-04-05T06:22:15 | 2020-04-05T06:22:15 | 253,167,987 | 0 | 0 | null | 2023-04-21T20:54:14 | 2020-04-05T06:11:21 | Python | UTF-8 | Python | false | false | 2,062 | py | from django.contrib import admin
from django.urls import path
from django.http import HttpResponse
from django.shortcuts import render
def index(Request):
return render(Request,'index.html')
def analyze(Request):
#Get the text
djtext = Request.POST.get('text', 'default')
# Check checkbox values
... | [
"asifnasimofficial@gmail.com"
] | asifnasimofficial@gmail.com |
7621c014a8edf7806405f6fc76c6539e4aef5ef0 | 0cc61991d526eb761ba603438647561cc1337ef4 | /astar_multi.py | cb1b67b77bc0f35bbcb8eedd1ecfd11b6fb5acdb | [] | no_license | etahirovic1/gmstar | 0d6d4e9e9cace84ddded070ed115657398ee6301 | 2e93c4c20bde0df881e83e83e0ac5eb11a273921 | refs/heads/main | 2023-08-11T11:47:05.133278 | 2021-09-16T16:17:02 | 2021-09-16T16:17:02 | 404,886,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,954 | py | import heapq
import random
class Node:
def __init__(self, parent=None, position=None, value=0):
self.parent = parent
self.position = position
self.value = value
self.g = 0
self.h = 0
self.f = 0
def __eq__(self, other):
# return self.position == other
... | [
"noreply@github.com"
] | etahirovic1.noreply@github.com |
9884cae2f8e8ccc4f6c642f95ef5bf620d4a2864 | fabcd19d61549304dd4127c7227dc49974a9d628 | /app/import_fide.py | edaea39a1b31e2392475f0f6e01e9edd25ffecaa | [] | no_license | JulesCourtois/mychesshub | 94614ee2d98db99a67e9c7a492199cda665da982 | d9989276b75f83e6a9343375f01e856fddeced52 | refs/heads/master | 2020-04-14T23:57:22.657988 | 2019-01-11T12:03:01 | 2019-01-11T12:03:01 | 164,222,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | import os
import urllib.request
import zipfile
from app import db
from app.models import Federation, Ranking
def import_fide(anonymous_user):
temp_txt = "standard_rating_list.txt"
url = "http://ratings.fide.com/download/standard_rating_list.zip"
downloaded_zip, headers = urllib.request.urlretrieve(url)
... | [
"jules.courtois@epfl.ch"
] | jules.courtois@epfl.ch |
c0370459eef6f39c24d1f261241c974acc5577f3 | b00c2a7c74c46b3d0ad3af4b57c19b7edbb0f61f | /proxy.py | dbc720d98bf87d41a01d61a275cacaeb24aa417d | [] | no_license | rauldoe/cpsc551proj3 | 1cce0b7c4a3851ff370ed6dac63693d56a332fac | 68e1d645563cb3e741cce0e58f089d24ed07e16c | refs/heads/master | 2020-09-23T15:18:32.242618 | 2019-12-18T11:51:13 | 2019-12-18T11:51:13 | 225,529,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | import re
import typing
import xmlrpc.client
# Credit to Yu Kou (<yuki.coco@csu.fullerton.edu>)
# for making this suggestion and working on type mappings.
class TupleSpaceAdapter:
PYTHON_TO_RUBY = {
'str': 'String',
'int': 'Numeric',
'float': 'Numeric'
}
RANGE_TYPE = type(range(0)... | [
"khoado@csu.fullerton.edu"
] | khoado@csu.fullerton.edu |
131c53910d35f10cf9f46abe44064b5c63681d5d | 781029dcc468a7d1467a17727870d526da1df985 | /django/crud_form/articles/urls.py | 20033f90e9434504b066dd2f73e7934e94e26923 | [] | no_license | Huijiny/TIL | 5f0edec5ad187029e04ed2d69e85ae4d278e048d | d1a974b3cacfb45b2718f87d5c262a23986c6574 | refs/heads/master | 2023-09-03T15:28:11.744287 | 2021-10-21T12:38:10 | 2021-10-21T12:38:10 | 335,220,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | from django.urls import path
from . import views
app_name = 'articles'
urlpatterns = [
path('index/', views.index, name='index'),
path('create/', views.create, name='create'),
path('detail/<str:pk>', views.detail, name='detail'),
path('update/<str:pk>', views.update, name='update'),
path('delete/<s... | [
"jiin20803@gmail.com"
] | jiin20803@gmail.com |
074260b13dd38e71d53c4becd4a84f776db80e2b | a003919560c569114a54182e1d977bd2cd3e67dd | /cs231n-assignment2/cs231n/classifiers/fc_net.py | 087ccbbb0810102b9e9a9a191980552e30a0d92e | [] | no_license | MohdElgaar/ML-assignments | 282bd73d35e171dbf305451c9c0b7049e75382e8 | 7c68452906e68b8d3e6ba75fe65b59e6660053df | refs/heads/master | 2020-04-18T17:33:20.557874 | 2019-01-26T06:28:34 | 2019-01-26T06:30:50 | 167,657,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,086 | py | from builtins import range
from builtins import object
import numpy as np
from cs231n.layers import *
from cs231n.layer_utils import *
class TwoLayerNet(object):
"""
A two-layer fully-connected neural network with ReLU nonlinearity and
softmax loss that uses a modular layer design. We assume an input dim... | [
"mohamed@kaist.ac.kr"
] | mohamed@kaist.ac.kr |
048e35e12a0d93a9ac53cb672c5f2ec95f0eae85 | 15421e75dab5775e53bf8a20da50f0de6d78d410 | /ascii_chan/ascii_chan.py | 8c0b1ca0b4e7fd287e6b5aff170d38912118ddcf | [] | no_license | etmoore/intro-to-backend-udacity | 292dd98d0fb9ebed95d295b41d5abde2e2610544 | dc3435e43a6a6c89f0c832431667bb0bc4ad99e1 | refs/heads/master | 2020-12-26T03:43:15.067050 | 2017-02-13T23:43:35 | 2017-02-13T23:43:35 | 68,500,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | import os
import jinja2
import webapp2
from google.appengine.ext import db
# configuration for jinja
template_dir = os.path.join(os.path.dirname(__file__), 'templates')
jinja_env = jinja2.Environment(loader = jinja2.FileSystemLoader(template_dir),
autoescape = True)
class Art(db.Model)... | [
"etmoore@gmail.com"
] | etmoore@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.