blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e3656c3a8b753864e8154ec4f8a46ac7e789e3b0 | 9decd5901a491d08e9235abc7fb8dade362d215e | /pastepwn/database/__init__.py | d67e426275658725e14ea82b809b9e95828cb0b9 | [
"MIT"
] | permissive | jonahrosenblum/pastepwn | b4e7644fefd289d8ffb2a1cc6e77224dd1545c46 | 26c9e426a195d403894f00638eca6c5687cbd959 | refs/heads/master | 2021-01-02T22:03:26.922322 | 2020-02-04T23:36:08 | 2020-02-04T23:36:08 | 239,809,524 | 0 | 0 | MIT | 2020-02-11T16:27:06 | 2020-02-11T16:27:05 | null | UTF-8 | Python | false | false | 209 | py | # -*- coding: utf-8 -*-
from .abstractdb import AbstractDB
from .mongodb import MongoDB
from .mysqldb import MysqlDB
from .sqlitedb import SQLiteDB
__all__ = ('AbstractDB', 'MongoDB', 'SQLiteDB', 'MysqlDB')
| [
"d-Rickyy-b@users.noreply.github.com"
] | d-Rickyy-b@users.noreply.github.com |
8b309898363353e6bd452f929f6c8eefda2058ae | 3ad6bae048a9b9fad9ec11750171cefb68fca682 | /amigaextractor.py | f07a9fb2de9e8e7f7b671a83a8c6e8c3d40e5a45 | [] | no_license | sonnenscheinchen/lha-tools | 7e0432496a9f09401f61ad47d7cff0157fa3a3fd | d0c7dada9c7cedc48e9270b57376e1d270115a0b | refs/heads/master | 2021-01-02T08:45:52.435986 | 2015-09-26T17:31:42 | 2015-09-26T17:31:42 | 24,298,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,863 | py | #!/usr/bin/env python3
from lhafile import LhaFile
import os.path
class LhaExtractor(LhaFile):
def __init__(self, lha_file_name, *args, **kwargs):
super().__init__(lha_file_name, *args, **kwargs)
self.total_file_size = sum(
[ f.file_size for f in self.filelist ])
self.total_c... | [
"jbl007@gmail.com"
] | jbl007@gmail.com |
5916cab7601c0e5c624fc9ceba4c6c08f6c28f4b | fa8a3be42546079930987e61dd24f417838d26f8 | /torch_fcn/train_fcn.py | 2ae4d66696bd40a1275cddf80f47614b27a17597 | [] | no_license | fsong666/nn | 2f3fd29d25086f6922ea86d5427f5e22ec9fd61b | 49b6cc7b76fd7558d60d23b6a9dd67e358d3c0d0 | refs/heads/master | 2023-01-18T22:14:02.651038 | 2020-11-29T11:35:36 | 2020-11-29T11:35:36 | 264,522,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,714 | py | from FCN import FCN
import torch
import torch.nn as nn
import random
class TrainModel:
def __init__(self, training_data=None,
test_data=None, validation_data=None,
learning_rate=1.0, mini_batch_size=4, epochs=1, num_class=1):
self.num_class = num_class
self.traini... | [
"602079852@qq.com"
] | 602079852@qq.com |
902324c23e786d6f2fd449172d60caee96d15dce | 0a64c5f696235206ec493586a985c126283d96ec | /src/test.py | 2c9631779f62c96ac0b911ff6a534c6d0823ad51 | [] | no_license | 1987mxy/Jarvis | c59f48039aafd9817b9e3d1df1e2fb2f853f7ae6 | 011d2f6f578daac9af95916207867307b8deb8f8 | refs/heads/master | 2020-12-23T20:55:13.109994 | 2017-02-11T15:49:40 | 2017-02-11T15:49:40 | 58,322,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | # encoding: utf-8
'''
Created on 2016年1月9日
@author: xiaoyong.mo
'''
class test(object):
a = None
def __init__(self):
pass
def setA(self, av):
test.a = av
def showA(self):
print test.a
if __name__ == '__main__':
t1 = test()
t2 = test()
t2.setA(3)
t1.setA(2)
t2.showA() | [
"1987mxy@gmail.com"
] | 1987mxy@gmail.com |
99e20206326032b464229b458f20e97520f807a9 | 39c78c15add32734d30eb1c27721b76994cb26d8 | /healthy_salad_chooser/tests/test_views.py | aade7be3ed1f0aaff7f62e56d5045e3fdde7a4a0 | [] | no_license | Ooblioob/salad-bar-showcase | 4812b17b5033f117f59ea0669a6d50279286f272 | c406a249304d673458b1a7bbed52b3a106b69e51 | refs/heads/master | 2021-01-19T14:30:09.716877 | 2014-05-10T03:12:23 | 2014-05-10T03:12:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | from django.test import TestCase
from django.core.urlresolvers import reverse
class TestViews(TestCase):
def test_home_page(self):
"""
Tests the home page appears with no errors
"""
resp = self.client.get(reverse('index'))
self.assertEqual(resp.status_code, 200)
| [
"mike.brown@excella.com"
] | mike.brown@excella.com |
ade677f8e988685507a1c948ac73be652ce39b49 | f0d3b759d9b0d2000cea2c291a4974e157651216 | /apps/goods/migrations/0001_initial.py | 303ea309f8cf6f7ee582bdc2901bd642b7490841 | [] | no_license | PYBPYB/Fresh-every-day | 526265ae0a9b1fe8e8f8944e0320ea8a47b8571c | 5b62fda9effe327a5da9ce45644bf44ee9d7108f | refs/heads/master | 2020-04-12T14:39:31.325736 | 2019-05-31T02:31:54 | 2019-05-31T02:31:54 | 162,558,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,310 | py | # Generated by Django 2.1.3 on 2018-11-26 09:10
from django.db import migrations, models
import django.db.models.deletion
import tinymce.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Goods',
... | [
"you@example.com"
] | you@example.com |
44762a4814983fa8bf97ed7e32c784edabcc09aa | 2c3714ea2421272fb816d7a18cfb3cce8f742c85 | /webpages/urls.py | 8af47ab5233c6b5adaefb9d72e53b0cc657697df | [] | no_license | RishabhSheyoran/Flight_Price | c23e92ec57c7bdd97127e0eb65047292bba55138 | a042fbfe2dc81c7954a6ea372d408ebe142ad0e2 | refs/heads/main | 2023-04-08T08:55:27.764535 | 2021-04-16T09:50:39 | 2021-04-16T09:50:39 | 358,377,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | from django.urls import path
from . import views
urlpatterns = [
path('' , views.home, name="home"),
path('about', views.about, name='about'),
path('services', views.services, name='services'),
path('contact',views.contact, name= 'contact'),
] | [
"chaudharydavidson@gmail.com"
] | chaudharydavidson@gmail.com |
a1cd8b70bf39f6855eb613d7d0e46b7d75fb9390 | f6c2b98e2b4a247bcd5b3dc1da6a268391a554aa | /anagram/anagram.py | f035124d987d7fb90db3a9532dd2c8aa049ce070 | [] | no_license | Zer0-lab/EpreuvesDuFeu | a28793ff4d8607ae637b82f6db8ff2151ddd0041 | 6d6efa9227c6b85263ac4a2031cefea4fb46b716 | refs/heads/master | 2022-10-18T04:56:18.852495 | 2020-06-07T15:54:28 | 2020-06-07T15:54:28 | 267,621,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | #!/usr/bin/python3
import sys
wordList = list(open("fr.txt"))
anagram = str(sys.argv[1::])
#anagram = "arbre"
def removeSpace(list):
newList =[]
for i in list:
newList.append(i.strip())
return newList
def toSepare(word):
word2 = ""
for i in sorted(word):
word2 += ''.join(i)
r... | [
"kevin.dhoust@gmail.com"
] | kevin.dhoust@gmail.com |
1eec26df7970c6497bf3752cec174cf6f8b1cc80 | 55d5bacab6eca6e1b02e5e5172e4eddf6fe981be | /hackKUReadGeneric.py | e2d86289cdd838b9a3a2e992b37bee509d2b49e1 | [] | no_license | harryl6798/HackKU_RFID | 1ca7b3b81c6fd6e944fac730dc33a4951e47a2f5 | 7e284fe0eccaaafdb1f52fabcb40334315a128f9 | refs/heads/master | 2020-04-16T09:25:57.661997 | 2019-01-13T07:03:32 | 2019-01-13T07:03:32 | 165,463,966 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | import RPi.GPIO as GPIO
import SimpleMFRC522
import time
from squid import *
reader = SimpleMFRC522.SimpleMFRC522()
led = Squid(18, 23, 24)
print("Hold a tag near the reader")
def flash(color, times, delay):
for i in range(0, times):
led.set_color(color)
time.sleep(delay)
led.set_color(OF... | [
"harryl6798@gmail.com"
] | harryl6798@gmail.com |
23af418c31e44728eb36720b928cfc71e6a061e2 | 7955043be474031601135404cb85b0f25c1df8e3 | /cno/uc2_settings.py | 3df298f94d9bbe3ecd64e036ea3d4ffd08e2f21d | [] | no_license | redblade/5gmedia | ec70b206cd3c76bb89fbe83c88c05cdbcb255e05 | 6630f283baa2d1256df101d1267ff52cab300992 | refs/heads/master | 2020-08-03T15:37:15.310357 | 2019-09-25T09:59:38 | 2019-09-25T09:59:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,883 | py | from os import path, pardir
#PROJECT_ROOT = "C:\\Users\\magni_000\\Documents\\PyCharm\\fivegmedia\\monitoring-data-translator"
#PROJECT_ROOT = '/opt/monitoring-data-translator'
PROJECT_ROOT = '/opt/sim'
# =================================
# WHITE LIST OF MONITORING METRICS
# =================================
METRICS_W... | [
"m.kheirkhah@ucl.ac.uk"
] | m.kheirkhah@ucl.ac.uk |
b8c56a5dc06d9862a2e84b2c0c240d7aff30a454 | 2baaee5ddc12ac6da88c5485a7eaa6e33902610b | /CaseStudies/noPCM/src/Python/Testing/compareMatlabTest.py | 6cfe00815d0ffe858ae39d620464ae7968c0d62e | [
"BSD-2-Clause"
] | permissive | smiths/caseStudies | 39b4374ba37a2cc68a22e0accc1657f041272f4d | d50527d4cbeec88848b4505c71271970ca835e82 | refs/heads/master | 2023-07-08T22:11:55.202669 | 2023-06-27T19:37:42 | 2023-06-27T19:37:42 | 110,840,691 | 3 | 2 | null | 2018-12-21T18:21:26 | 2017-11-15T14:01:05 | C | UTF-8 | Python | false | false | 4,050 | py | #Commented sections pending removal
#No valid comparison tests available for NoPCM hence the lack of action. If/when useable data becomes available,
#apply the same setup as compareFortranTest.py as seen in test_CM5
import sys
sys.path.insert(0, '.')
import unittest
import PCM_Error
class TestCompareMatlab(unittest.... | [
"moria@mcmaster.ca"
] | moria@mcmaster.ca |
30f66664bec93fdb54ccc45aa6bf98513ac891b5 | b35831afb2c0ad70f3e24f185f3d23e89786afe3 | /read/extremes.py | c05d43e56ca46b0c68b47a5406aca6f5b59f92e2 | [
"MIT"
] | permissive | lapic-ufjf/evolutionary-ACS-benchmark | daf4c59f6c4e267daa7fed46495be17e237465a9 | 0c13f3493819db3baa512268d80b099f9d31b952 | refs/heads/master | 2022-11-19T02:37:52.386132 | 2022-11-09T20:28:42 | 2022-11-09T20:28:42 | 249,778,084 | 2 | 1 | MIT | 2022-11-09T20:28:44 | 2020-03-24T17:48:52 | Python | UTF-8 | Python | false | false | 881 | py | import os
import pickle
def create_extremes_name_list(instances, num_objectives_list):
extremes_name = [(instance, num_objectives) for instance in instances for num_objectives in num_objectives_list]
return extremes_name
def get_extremes_name(instance, num_objectives):
name = '%s_%s.pickle' % (instance,... | [
"martins.adw@gmail.com"
] | martins.adw@gmail.com |
6578ffb4c1cedb97046b4b8c9f593ef686292eda | bfa901539e3e8f7deccf34d4e448598906cfa1bb | /action-Search-tvshow.py | 287e731ab5d0eef1e7d243e656aef536d78a817b | [] | no_license | Ianouu/snips-kodi-actions | 3fcfd5be394cad309f0c542d7daf07de5a03d6c3 | 177b7e18cb4d2949705b8f451be898bbf727baa6 | refs/heads/master | 2020-04-16T07:19:23.292473 | 2019-01-18T14:44:45 | 2019-01-18T14:44:45 | 165,381,960 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,568 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
import ConfigParser
from hermes_python.hermes import Hermes
from hermes_python.ontology import *
import io
import simplejson
import requests
import time
CONFIGURATION_ENCODING_FORMAT = "utf-8"
CONFIG_INI = "config.ini"
class SnipsConfigParser(ConfigParser.SafeConfigPa... | [
"clementian067@gmail.com"
] | clementian067@gmail.com |
27c0b921e96a11906286be5d2fb8bac1c678ad1c | 20c20938e201a0834ccf8b5f2eb5d570d407ad15 | /abc152/abc152_f/9661160.py | 040bdabbffd7805e7f362fb6eff11285789dc375 | [] | no_license | kouhei-k/atcoder_submissions | 8e1a1fb30c38e0d443b585a27c6d134bf1af610a | 584b4fd842ccfabb16200998fe6652f018edbfc5 | refs/heads/master | 2021-07-02T21:20:05.379886 | 2021-03-01T12:52:26 | 2021-03-01T12:52:26 | 227,364,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | import collections
from itertools import combinations
N = int(input())
ab = [tuple(map(int, input().split())) for i in range(N-1)]
M = int(input())
uv = [tuple(map(int, input().split())) for i in range(M)]
def popcount(x):
x = x - ((x >> 1) & 0x5555555555555555)
x = (x & 0x3333333333333333) + ((x >> 2) & 0x33... | [
"kouhei.k.0116@gmail.com"
] | kouhei.k.0116@gmail.com |
08503202388d0af78b6d0d168bb172fdbc48da95 | f008634e359ea39e209dcb29eaa00a0637e25e03 | /TT/TT/asgi.py | 0fa14606b0ca280ec474d6b891702090a42d9fc8 | [] | no_license | Maxzkp/TT | 5c57599290cc1e7b33f4fb9ac4dcd41897e1a92a | f9760b3304af6ccc617d61896be7998e646a1451 | refs/heads/main | 2023-05-18T21:17:33.354160 | 2021-06-11T02:23:43 | 2021-06-11T02:23:43 | 369,038,098 | 0 | 0 | null | 2021-06-07T02:51:24 | 2021-05-20T00:46:47 | Python | UTF-8 | Python | false | false | 381 | py | """
ASGI config for TT project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS_M... | [
"max.zkp@gmail.com"
] | max.zkp@gmail.com |
fa3b4ee4882f9584a72b51f66e015f7c15963038 | e6c944d9f03bf8f7d99f9ba0b50f1374c8903e54 | /base.py | 6ed2b3e8d7518690b25ffddbd2f808d6ff259331 | [] | no_license | ukolov-pavel/AIST | 4fe5d113e1a8439d6f4a1858bf75b7c233b515c8 | d0f44bfb057d7748851a79aaf9009be0ba12b757 | refs/heads/master | 2020-03-09T23:26:37.510021 | 2018-05-18T15:01:38 | 2018-05-18T15:01:38 | 115,633,839 | 0 | 0 | null | 2018-01-16T16:00:25 | 2017-12-28T15:03:28 | Python | UTF-8 | Python | false | false | 1,382 | py | from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
import requests
class Driver(object):
__instance = None
@classmethod
def get(cls, type='ff'):
... | [
"noreply@github.com"
] | noreply@github.com |
cc18d34559e1246f1965d54091acbefdaad2f778 | 4668ab207f426d48db7d42d47238db02e4e78c31 | /Finalized Weight Converter.py | 4cdf6d795a2fee02605e02167a32a35566e367a8 | [] | no_license | Alee49/this_school_project | de734f7f2a38b01c3c8a9e2ff5c4a4d291ad04c7 | 5578a49b583a214abe7ac73589bf47c2b19114e4 | refs/heads/master | 2021-07-13T00:54:32.243554 | 2017-10-17T15:20:46 | 2017-10-17T15:20:46 | 105,920,549 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,015 | py | print("Welcome please use the abriviated units for the following")
print("We support Pounds(lb), Kilogram(kg), Gram(g), Milligram(mg), Ounce(oz)")
unit1 = input ("Which unit would you like to convert from: ")
unit2 = input("Which unit would you like to convert to: ")
num1 = input("Enter value: ")
Ref = {'lb':0.453592,... | [
"noreply@github.com"
] | noreply@github.com |
2de3b0defebf228a952abc69a7eaf5fad8fea8db | 30a98dfa909dafc237423cbae47076287740de4b | /app/my_geo_utils.py | 5ecb2dbc001f11999c84a6cb9162471a695bb652 | [] | no_license | pgaval/moveable-weather | da3c55b080b16da99fa1cb43fe04cb9994f171f9 | 333b1a40298ab7f2baaa6a662ac29726f5cafbc0 | refs/heads/master | 2020-06-03T11:29:39.143624 | 2010-12-12T13:22:03 | 2010-12-12T13:22:03 | 32,232,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,121 | py | from google.appengine.ext import webapp
# from math import sin, cos, sqrt, atan2, asin, floor
# from math import *
import math
# For each co-ordinate system we do, what are the A, B and E2 values?
# List is A, B, E^2 (E^2 calculated after)
abe_values = {
'wgs84': [ 6378137.0, 6356752.3141, -1 ],
'osgb' : [ 6377563.3... | [
"egilchri@gmail.com@3cd864e4-babe-1b84-cbc2-118daab562f7"
] | egilchri@gmail.com@3cd864e4-babe-1b84-cbc2-118daab562f7 |
be0d795ee4a482be60cebd7782452cdb1ec3243e | 5593b35f326748f18053e7ea042c98fe6b70a850 | /tqt/function/_utils.py | fcfe437056c27c6c9f5efbfe6e9d8517486bdff4 | [
"BSD-3-Clause"
] | permissive | sicdl/TQT | 7dfe3bce2bb5dace9a467945512e65525a0c3be9 | 27b73fcf27ddfb67cd28f6ed27e49341f27c9f16 | refs/heads/main | 2023-04-14T18:28:23.224689 | 2021-04-22T14:46:46 | 2021-04-22T14:46:46 | 362,503,682 | 0 | 0 | BSD-3-Clause | 2021-04-28T14:45:14 | 2021-04-28T14:45:13 | null | UTF-8 | Python | false | false | 153 | py | import torch
def number_to_tensor(x, t):
r'''
Turn x in to a tensor with data type like tensor t.
'''
return torch.tensor(x).type_as(t) | [
"you@example.com"
] | you@example.com |
8175e5f799827ea47e4107f34fc78482b2f29126 | 8b4fd96a11afc15359403c1f2c4f63f03648e5b7 | /21_extract_full_name/extract_full_name.py | 4d98315245c36ff71bf5cd703705230c8783f972 | [] | no_license | SpencerPulliam/pythonDsPractice | 3d321f5e938887447a8f3455dcfcd408b1b9204a | f41e92c87a42c395542af7758f6fbd850d6cdb5a | refs/heads/main | 2023-07-14T05:09:48.568081 | 2021-08-28T21:26:01 | 2021-08-28T21:26:01 | 400,893,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | def extract_full_names(people):
"""Return list of names, extracting from first+last keys in people dicts.
- people: list of dictionaries, each with 'first' and 'last' keys for
first and last names
Returns list of space-separated first and last names.
>>> names = [
... {'... | [
"spencer_pulliam@yahoo.com"
] | spencer_pulliam@yahoo.com |
9b689b192e40c5c293e15d203c6ae833f5cb0a70 | e31f84c20af7be8646f03faf22ac55ad041444a3 | /tests/test_selection/test_drop_duplicate_features.py | 5d33b3d5d837340cc6fbd7cb372ec75f6777f0eb | [
"BSD-3-Clause"
] | permissive | feature-engine/feature_engine | 564aa2f298bb1beb0606bd5d51261b4d1085a8df | 3343305a01d1acfeff846b65d33a5686c6e8c84f | refs/heads/main | 2023-08-07T09:19:24.315277 | 2023-06-08T06:27:45 | 2023-06-08T06:27:45 | 163,630,824 | 874 | 105 | BSD-3-Clause | 2023-09-13T14:02:23 | 2018-12-31T01:47:18 | Python | UTF-8 | Python | false | false | 3,967 | py | import numpy as np
import pandas as pd
import pytest
from feature_engine.selection import DropDuplicateFeatures
@pytest.fixture(scope="module")
def df_duplicate_features():
data = {
"Name": ["tom", "nick", "krish", "jack"],
"dob2": pd.date_range("2020-02-24", periods=4, freq="T"),
"City":... | [
"noreply@github.com"
] | noreply@github.com |
15995f5051114e73ac2f6967098ef13f81fb0bf6 | 934d6deb551b03a657e5fb56ff12ef45ed062752 | /util/parse_snp_pos.py | 84848d0d32fac4f55b6474d4cc5d0961561feda3 | [] | no_license | ChuShin/bioinfo | dd3bd6ccad48f7bab4a73cd3ce094c428b4c75bd | ed1171af31fc96a445b2d8ce5fae2c30724e4e66 | refs/heads/master | 2021-12-24T08:10:42.388544 | 2021-12-10T18:32:34 | 2021-12-10T18:32:34 | 30,745,191 | 2 | 0 | null | 2015-07-16T01:57:20 | 2015-02-13T07:22:36 | Python | UTF-8 | Python | false | false | 3,027 | py | #!/usr/bin/env python
from __future__ import division
from __future__ import print_function
import argparse
import sys
import pysam
"""parse_snp_pos.py: Calculate where a base is located on the reference
given read alignment (SAM) file and base positions(BED) on the reads, ."""
HI_CONF = 95.0
def load_pos_in_bed_f... | [
"ChuShin.Koh@gmail.com"
] | ChuShin.Koh@gmail.com |
f7322bfe24f366e1da7e22987d6cb7ed70e9b213 | 2031771d8c226806a0b35c3579af990dd0747e64 | /pyobjc-framework-SecurityInterface/PyObjCTest/test_sfchooseidentitypanel.py | 128a8fe463da4b1756ea2b16a7730993712ab6e7 | [
"MIT"
] | permissive | GreatFruitOmsk/pyobjc-mirror | a146b5363a5e39181f09761087fd854127c07c86 | 4f4cf0e4416ea67240633077e5665f5ed9724140 | refs/heads/master | 2018-12-22T12:38:52.382389 | 2018-11-12T09:54:18 | 2018-11-12T09:54:18 | 109,211,701 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | from PyObjCTools.TestSupport import *
import SecurityInterface
class TestSFChooseIdentityPanelHelper (SecurityInterface.NSObject):
def chooseIdentityPanelShowHelp_(self, v): return 1
class TestSFChooseIdentityPanel (TestCase):
def test_classes(self):
SecurityInterface.SFChooseIdentityPanel
def t... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
d3159cc0e9ff7137a95d0711e6f9b502070a0fda | 0667af1539008f9c6c0dcde2d3f50e8bbccf97f3 | /source/rttov_test/profile-datasets-py/div52_zen50deg/036.py | a78064452fb7611b980d7bf251e9df26e12cb8da | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bucricket/projectMAScorrection | bc6b90f07c34bf3e922225b2c7bd680955f901ed | 89489026c8e247ec7c364e537798e766331fe569 | refs/heads/master | 2021-01-22T03:54:21.557485 | 2019-03-10T01:47:32 | 2019-03-10T01:47:32 | 81,468,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,625 | py | """
Profile ../profile-datasets-py/div52_zen50deg/036.py
file automaticaly created by prof_gen.py script
"""
self["ID"] = "../profile-datasets-py/div52_zen50deg/036.py"
self["Q"] = numpy.array([ 1.60776800e+00, 4.99817300e+00, 4.07414300e+00,
6.67667600e+00, 8.13295200e+00, 7.49870800e+0... | [
"bucricket@gmail.com"
] | bucricket@gmail.com |
8c3c13cc482d32dd464ff37915995f1722df6615 | 4420e702da9a18462a33374bfe9f28b6a60f5963 | /shapes.py | f2eeb8be080aaed6dfb4e62e736f505bedb9c030 | [] | no_license | NickMateus11/Wireframe-Cube-Rotation | 15ddc66edd51f725d0eebc59c48cf0386a240a6a | 9aa1affcde3106304160795446c1d028856175a9 | refs/heads/main | 2023-04-21T20:49:32.306623 | 2021-05-15T19:05:24 | 2021-05-15T19:05:24 | 367,680,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,892 | py | from numpy.lib.function_base import average
import pygame
import numpy as np
screen = None
BLACK = pygame.Color("black")
WHITE = pygame.Color("white")
GREY = pygame.Color("grey")
def init(surface):
global screen
screen = surface
class Cube():
def __init__(self, center_pos, s):
self.s = s
... | [
"mateus.nicholas@gmail.com"
] | mateus.nicholas@gmail.com |
b13dbaba2116bbe5a4c5edca8e578cbcee9beada | a07906f5b93cb01e74ca90fdd0f8411787dfbc96 | /py_sandbox/requests_sandbox.py | 786edc0164ee2dfd26cc80367ec9923a2e825f65 | [] | no_license | a22wong/sandbox | 7ff9b747c75ee9bdbe8e1035f8a293a4089523bf | d666ea7b95c6e8f001f828082703bdfec907c242 | refs/heads/master | 2020-12-02T03:55:33.004303 | 2019-12-30T08:43:48 | 2019-12-30T08:43:48 | 230,880,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | import requests
import json
# url = "https://en.wikipedia.org/w/api.php"
# querystring = {"action":"query","format":"json","prop":"description","list":"search","srsearch":"accenture","srlimit":"1","utf8":"1","formatversion":"2"}
# payload = ""
# headers = {
# 'Accept': "application/json",
# 'cache-control': ... | [
"alexander.wong@accenture.com"
] | alexander.wong@accenture.com |
31ed6c30bfa05d19e3016c09f17692f3adb24092 | ed80f898ae27ade7be78163b80ee8f294f147301 | /src/algo.py | 87b2be19c0d04fdde2e303498609003928a1c2a1 | [] | no_license | Dec1mo/Routing-Robots | c82a388b69ad869e700d786181bf11cf536889bf | df9e60b6d61d065996f4b05b0642e029900c1b16 | refs/heads/master | 2020-06-20T12:22:26.155767 | 2019-07-17T11:19:05 | 2019-07-17T11:19:05 | 197,120,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,058 | py | import queue
import threading
INFINITY = 99999999
def mahatan_distance(a, b):
return abs(a[0] - b[0]) + abs(a[1] - b[1])
class Algo():
def __init__(self, warehouse):
self.warehouse = warehouse
def find_dest(self, requests):
for request in requests:
min_dis = INFINITY
goal_pos = list(request.keys())[0... | [
"thai.dec1mo@gmail.com"
] | thai.dec1mo@gmail.com |
2230054695ed61325071dcdfbeabe36fae8ac99a | 80656f239628f9b3a3c815cb18e972c15f41ea2a | /Python Path Planning/heightmap_planner.py | 418ea6e48cbf32913826108a9d6fa08f9f493257 | [] | no_license | BoveyRao/Rover | c70cb4116f6d4956b9095cde3433d2ae77061b03 | ab2b0cb23118822eb60d3b040798d514c1ab296e | refs/heads/master | 2021-08-23T06:59:27.742160 | 2017-12-03T23:53:43 | 2017-12-03T23:53:43 | 112,981,297 | 0 | 0 | null | 2017-12-04T01:46:46 | 2017-12-04T01:46:45 | null | UTF-8 | Python | false | false | 5,577 | py | import util
import visualizer as vis
import copy
import math
# load ieghtmap file as list of [x, y, height]
inputfile = open('coordinates.txt')
lines = inputfile.read()[2:-2].split('), (')
height_map = dict()
for line in lines:
val = line.split(', ')
x = int(float(val[0])-0.5)
y = int(float(val[1])+0.5)
h = int(... | [
"albertchien@Alberts-MBP-2.local.tld"
] | albertchien@Alberts-MBP-2.local.tld |
a86e68874b93cdcfc9b7faeb9e7b9c2c6d6080a7 | 73b8a5ade0e13b7ba5e6cc31c2b2f1eb29cf74e1 | /servicionacidosvivos/manage.py | 941363f3ffd6a5029996dfb3960cbc49c60e6121 | [] | no_license | jblandonsv/nacidos-vivos | d377af7c3f7f0fc12172803a85e5d6140c6a1f54 | 81ecbde6881dd6f87ec6e84b6dadb946f6b19be4 | refs/heads/master | 2020-05-27T08:58:33.736988 | 2013-07-12T16:43:11 | 2013-07-12T16:43:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "servicionacidosvivos.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"blandon.jaime@gmail.com"
] | blandon.jaime@gmail.com |
a463d23256ed3b7f0178434ea5256ff915ef0430 | 4bb1a23a62bf6dc83a107d4da8daefd9b383fc99 | /work/abc034_d2.py | 4afb3860d7f983c4de267f774fec7425d98c023d | [] | no_license | takushi-m/atcoder-work | 0aeea397c85173318497e08cb849efd459a9f6b6 | f6769f0be9c085bde88129a1e9205fb817bb556a | refs/heads/master | 2021-09-24T16:52:58.752112 | 2021-09-11T14:17:10 | 2021-09-11T14:17:10 | 144,509,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | n,k = map(int, input().split())
wpl = [list(map(int, input().split())) for _ in range(n)]
def f(w,p,x):
p = p/100
return p*w - w*x
def check(x):
l = [f(wpl[i][0], wpl[i][1], x) for i in range(n)]
l.sort(reverse=True)
return sum(l[:k])>=0
ok = 0
ng = 1
while abs(ng-ok)>10**-7:
mid = (ok+ng)/2
... | [
"takushi-m@users.noreply.github.com"
] | takushi-m@users.noreply.github.com |
38f612204aaf7a5bb92d2ddfc8514649d07bdcad | a73cc710aa370be94b70248f2268d9c3b14059d0 | /server/src/weblab/core/web/quickadmin.py | 1fba2f6ba62d2380539e03e37e0669230626b289 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | weblabdeusto/weblabdeusto | 05692d4cc0a36287191544551d4a1113b3d95164 | 62e488afac04242a68efa4eb09fd91d7e999d4dd | refs/heads/master | 2023-05-10T23:14:05.407266 | 2022-08-31T14:16:23 | 2022-08-31T14:16:23 | 5,719,299 | 19 | 23 | BSD-2-Clause | 2023-05-01T20:18:53 | 2012-09-07T16:24:03 | Python | UTF-8 | Python | false | false | 7,417 | py | from __future__ import print_function, unicode_literals
import datetime
import calendar
from flask import render_template, request, send_file, Response, url_for
from functools import wraps, partial
from weblab.core.web import weblab_api
from weblab.core.db import UsesQueryParams
def check_credentials(func):
@wraps... | [
"pablo.orduna@deusto.es"
] | pablo.orduna@deusto.es |
307afce7174d1f60914d4a08060660c34b82e628 | 794be26e4ab7bdd9af017ce1d0c6ce1f087d968d | /functional_tests/test_create.py | b0b5e0c8678060723a0834273615afdbe0ad3866 | [
"Apache-2.0",
"LGPL-3.0-only"
] | permissive | jasinner/elliott | 02fcc2f67b56d4e16eef28f0323d276fbd954593 | 67d77913517d0f7954dc02d918eb96ba78ec1ea8 | refs/heads/master | 2021-06-18T19:59:45.878716 | 2021-04-29T21:33:51 | 2021-04-29T21:33:51 | 215,217,286 | 0 | 0 | Apache-2.0 | 2019-10-15T05:52:13 | 2019-10-15T05:52:13 | null | UTF-8 | Python | false | false | 662 | py | from __future__ import absolute_import, print_function, unicode_literals
import unittest
import subprocess
from functional_tests import constants
class GreateTestCase(unittest.TestCase):
def test_create_rhba(self):
out = subprocess.check_output(
constants.ELLIOTT_CMD
+ [
... | [
"yuxzhu@redhat.com"
] | yuxzhu@redhat.com |
c806ba4082228cc8c2b36ecdef168a9341dec251 | 647d3d4c32940ccbebf1c00fc0dbf74ec70ba8c2 | /SoSR/Training/data/util.py | a84c825c5f85b2aa746cdfef07f8c5a4c7ab5199 | [] | no_license | AlanZhang1995/TwoStreamSR | e1f8b02e9d0cc680df9d297ce45929f61ef5ca59 | 6b3857075ccca6cd7b620c8ad580be494cba13e9 | refs/heads/master | 2020-04-08T15:20:19.231186 | 2020-02-11T05:12:54 | 2020-02-11T05:12:54 | 159,474,176 | 21 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,790 | py | import os
import math
import pickle
import random
import numpy as np
import lmdb
import torch
import cv2
import logging
IMG_EXTENSIONS = ['.jpg', '.JPG', '.jpeg', '.JPEG', '.png', '.PNG', '.ppm', '.PPM', '.bmp', '.BMP']
####################
# Files & IO
####################
def is_image_file(filename):
return a... | [
"277212623@qq.com"
] | 277212623@qq.com |
9c5f16cd2a1ba89806e4e52d73c3d4589d700dee | d5816b32da217392cfdca4aa07ca46529c3487e4 | /invoices/migrations/0004_auto_20140930_0106.py | ea9ba813e442303aff699b0f70e25c5a39edc2d3 | [] | no_license | devthrashnull/hamventory | 032102ab5ef744271ab94874a7df2a0bf4a09945 | 7508f48e7201743c0b0d3083c4bcfe772b721168 | refs/heads/master | 2016-09-05T12:01:38.494061 | 2014-09-30T01:20:08 | 2014-09-30T01:20:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('invoices', '0003_auto_20140930_0106'),
]
operations = [
migrations.AlterField(
model_name='item',
na... | [
"fautz@jetastudio.com"
] | fautz@jetastudio.com |
edb3f6fcb237274c99a4d039bed953c644093ac5 | c2e4ecc177c04e4672767da97da5d9f8c892e7fc | /littlenn/layers/dropout.py | 74d7f24f3dcd70bc2d8233a99a4f868ab153993c | [
"MIT"
] | permissive | qbeer/littlenn | 828a313507dead5dea8fcade32453b912af8c7f0 | e783cb5d713f5669449fa993b3001848c028309b | refs/heads/master | 2021-11-05T01:53:11.632316 | 2021-10-28T18:15:59 | 2021-10-28T18:15:59 | 238,507,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | import numpy as np
from littlenn.layers.abstract_layer import Layer
class Dropout(Layer):
def __init__(self, keep_prob):
super(Dropout, self).__init__()
self.keep_prob = keep_prob
def _create_weights(self, dim_in):
self.dim_out = dim_in
def _init_optimizers(self, optimizer_factory... | [
"olaralex@phys-gs.elte.hu"
] | olaralex@phys-gs.elte.hu |
b0d4e0f15425ad655928fbe37779c555a3728775 | 48d995e31da9cc2dd63a1cc7561a274cb32dc38f | /MyBlueButterfly/MyBlueButterfly/settings.py | f1529f583dd7e60763e510cb21091723a044065c | [] | no_license | Blu3M0nkey/MyBlueButterfly | 2fbeeff6ef1936a11d50ec096fc140879d4f269a | 345823ebef4484729136a9fc7a9d0c7aba892717 | refs/heads/master | 2020-04-14T10:47:51.327237 | 2019-01-05T03:52:20 | 2019-01-05T03:52:20 | 163,796,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,323 | py | """
Django settings for MyBlueButterfly project.
Generated by 'django-admin startproject' using Django 1.9.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
impo... | [
"samedina86@gmail.com"
] | samedina86@gmail.com |
594eaa6cce6464e3ce1165188820b67175525a11 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /opsworks_write_f/rds-db-instance_update.py | 3257b4557a10fe6a781cb6c9086bdfa3b85a8b86 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
061e1a704629d8949be1743454ac0c89316349fb | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/agc025/C/2618079.py | c2927f9e67892662b56299b7a9fff478e70376c2 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | n = int(input())
l = []
r = []
for i in range(n):
lt, rt = map(int,input().split())
l.append(lt)
r.append(rt)
l.append(0)
r.append(0)
l.sort()
r.sort()
l.reverse()
ans = 0
i = 0
while r[i]<l[i]:
ans += 2*(l[i] - r[i])
i+=1
print(ans) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
e0b51af08de583fc6d2449bff3c69e61e59ce414 | 3f3f2b3eaab992d3cc8f49fcd03e4824a11fddab | /diamond.releng.jenkins/job.scripts/email_owners_of_submittable_changes.py | 7bfd821419fa2722938f0131ed624a2ce5f2ba3e | [] | no_license | DiamondLightSource/diamond-releng | 7bff1926e3fd2f9df3c056d8af5521b4e74aaf41 | ba15336e7f7d3c160d3c3bc28316817cb4585305 | refs/heads/master | 2021-01-25T03:19:25.403769 | 2019-01-02T16:05:28 | 2019-01-02T16:05:28 | 19,986,689 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,159 | py | #!/usr/bin/env python3
###
### Requires Python 3
###
'''
Identify Gerrit changes that are ready to submit, and email the owners
'''
from email.message import EmailMessage
from email.headerregistry import Address
import datetime
import itertools
import json
import logging
import operator
import os
import os.path
impor... | [
"matthew.webber@diamond.ac.uk"
] | matthew.webber@diamond.ac.uk |
0f8e80f05d97ef7fe563582b689f04d41f18e890 | a2387d301fb7da453ecc84765debdcf42b1696d0 | /ansible/modules/storage/netapp/vasa_storage_systems_remove.py | 4012f037474ead09c8d8e4cd65e8537e7dd540d3 | [
"Apache-2.0"
] | permissive | sapcc/vasa | 9730949ba7b6a830e1561f46882cebc1b428806f | acb6fd7e1e211f6040f94a535699e3af46e1e2b1 | refs/heads/master | 2022-07-17T09:26:26.829656 | 2019-06-12T09:34:15 | 2019-06-12T09:34:15 | 132,451,367 | 0 | 0 | Apache-2.0 | 2022-04-22T12:29:49 | 2018-05-07T11:32:54 | Python | UTF-8 | Python | false | false | 2,896 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Author Hannes Ebelt <hannes.ebelt@sap.com>
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
from __future__ import absolute_import, division, print_function
from ansible.module_utils.basic import AnsibleModule
from pyvasa.sto... | [
"hannes.ebelt@sap.com"
] | hannes.ebelt@sap.com |
f7d5c61567a7f79b5b7b6781b04b1cfb36979cca | 240f66f2d212532f778bf1d5ab00f78c9bce2d8e | /trumpplan/blog/apps.py | 17f8fbd6fb3e740e2556d39bcf09573ab4fad961 | [] | no_license | ddfunt/trumpplan | 317edad24d73edcfd1cdfc7ac73a8bb49d594a63 | 623ee2961095a6e3a3c5fd060102de40422f8c04 | refs/heads/master | 2021-06-07T20:22:37.535628 | 2016-12-08T02:23:26 | 2016-12-08T02:23:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class BlogConfig(AppConfig):
name = 'trumpplan.blog'
| [
"matt.muckle@brightspec.com"
] | matt.muckle@brightspec.com |
62626f1793367e14eb35b3f0c5c118c92e7da3f2 | 0bd4ea611bcfb2ce5ab08889b97dd13dd5cbb0a5 | /mysite/mysite/settings.py | ca603c9c966197e7f9d2c3b46f0da241055f72ed | [] | no_license | sparsh0204/djangoblog | 27ff316f370480b4ef15fb98bc39c32006c9c8e0 | 12f022d1b362c335e7c2889d9a59c1acb1184cbc | refs/heads/master | 2021-01-25T11:57:41.575673 | 2017-06-23T17:48:23 | 2017-06-23T17:48:23 | 93,953,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,096 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.10.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
... | [
"sparshcode@gmail.com"
] | sparshcode@gmail.com |
2793957c54e342208e9431576ae1c201b305deef | 6020701c2929eb0d5ace7aefd1aaa88853403830 | /3-Looping/for1.py | dab13e9b60fafea1e48887e8def1fa9db9b4bbda | [] | no_license | AnaTrzeciak/Curso_Python | e24d06f2d23de6943e14515e07f12f3eb380ad99 | 78c8528fed34f7eb3f5d735ebdecd07836e39631 | refs/heads/master | 2020-03-29T06:32:49.862308 | 2019-11-21T16:30:56 | 2019-11-21T16:30:56 | 149,629,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | #ecoding:utf-8
#Crie um script que imprime todos os dias da semana na tela
semana= ['segunda', 'terça', 'quarta', 'quinta', 'sexta', 'sabado', 'domingo']
for dia in semana:
print(dia)
| [
"amgtrzeciak@gmail.com"
] | amgtrzeciak@gmail.com |
0004d354c35de36b3b80793b9bad3091b1cef4e3 | 8ffe9be9c89881fe85a74d80ae7154e7bbf9045e | /api/views.py | 47e5c29f40a06ebaac5552b3266d7408b0e837b9 | [] | no_license | fabriccio27/djangorestframework-react | 4c48ea117d4e99b1488d3a9d3565b0d72af1b7ae | eb541a157dfa7c93a842735cf22a6610f75f9111 | refs/heads/main | 2023-06-19T08:44:25.612174 | 2021-07-17T13:29:42 | 2021-07-17T13:29:42 | 381,804,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,602 | py | from django.shortcuts import render
from django.http import JsonResponse
from rest_framework.decorators import api_view
from rest_framework.response import Response
from .serializers import TaskSerializer
from .models import Task
# Create your views here.
""" JsonResponse lo que hace es que el browser interprete lo... | [
"fabricio_inc27@hotmail.com"
] | fabricio_inc27@hotmail.com |
56e7042919359660f1204a7150332bfc1ea4c9ad | 66320eda70f67cda9aa351a6f6bf5817a04b9e57 | /uuv_docs/package.py | 9543c3d06ded03a19660c7f68e5145d76a10ebaa | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | FangYuanFYO/uuv_simulator_docs | 1789dd2d9266fbd0d253f22d767d70a7bd730353 | 2c4e2ca91c1b9381387659e5d742b2824dbd0215 | refs/heads/master | 2020-06-05T02:20:38.588402 | 2019-05-30T12:05:25 | 2019-05-30T12:05:25 | 192,280,057 | 1 | 0 | Apache-2.0 | 2019-06-17T05:24:45 | 2019-06-17T05:24:44 | null | UTF-8 | Python | false | false | 1,931 | py | # Copyright (c) 2016-2019 The UUV Simulator Authors.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | [
"musa.marcusso@de.bosch.com"
] | musa.marcusso@de.bosch.com |
e1a24bee538f55419b12446f7f37bc4f25bc8e38 | 03c8d75d11dd34a253d265ce5b44bf7984311bab | /root2yoda | ddf417c19d865e0e7c684d83a4ebafd3e9738188 | [] | no_license | raggleton/QGAnalysisRIVET | e8a57fbfa1380e1c67365b0d5a944119f715813b | 0703bdf81bf27f5fc91d8eedb6e44651d978749a | refs/heads/master | 2021-06-08T19:29:53.683282 | 2021-04-06T07:22:56 | 2021-04-06T07:22:56 | 142,179,672 | 0 | 1 | null | 2020-11-03T17:19:58 | 2018-07-24T15:40:48 | Gnuplot | UTF-8 | Python | false | false | 1,656 | #! /usr/bin/env python
"""\
%prog rootfile [yodafile]
Convert a ROOT data file to the YODA data format.
"""
import yoda, os, sys, optparse
from yoda.script_helpers import parse_x2y_args, filter_aos
parser = optparse.OptionParser(usage=__doc__)
parser.add_option("-m", "--match", dest="MATCH", metavar="PATT", default... | [
"robin.aggleton@cern.ch"
] | robin.aggleton@cern.ch | |
49eb497ffcfb331fc89dc4d4e403951ac1ca37c3 | e0d38dc7dee7efab7bf80c56fccea6475ba02bc0 | /condicionais.py | 81115284bbf1e042b10f55519fa60456c5ce3d4b | [] | no_license | franciscocesar/python-lp | 9696856e4a7d73d77098766009e4aca1bf5fbb0a | db3cd770559bff923dbc3589f84a6c822e014ecf | refs/heads/main | 2023-08-25T19:58:07.580532 | 2021-11-03T07:34:20 | 2021-11-03T07:34:20 | 424,115,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | """
Condições IF, ELIF e ELSE
"""
if False:
print('Verdadeiro')
elif True:
print('Agora é verdadeiro')
nome = input('Qual o seu nome? ')
print(f'Seu nome é {nome}')
else:
print('Não é verdadeiro')
print('Ola')
| [
"francisco.mateus@souunit.com.br"
] | francisco.mateus@souunit.com.br |
241ad1f6e201d8905fd6858c9f73078ea0a50482 | 7d6a3f76525a1bddb2f9d74dd752edf65ccb8f2d | /M4/lgb_un_p.py | 2352495db6a13e1263df53b9e23783923e611732 | [] | no_license | ImChenxii/DC-SWUFE | d1ba170fbb7ea03eca1cc1d7c24c8c5bcb1c50a4 | 34fa79a2a920b0be8bb11b7ddcc42cbd16379a89 | refs/heads/master | 2020-04-02T13:11:19.261277 | 2018-10-24T09:22:37 | 2018-10-24T09:22:37 | 154,471,017 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,106 | py | import pandas as pd
import numpy as np
import gc
import datetime
import os
from sklearn.neighbors import NearestNeighbors
from sklearn.preprocessing import LabelEncoder
from sklearn.model_selection import StratifiedKFold
from imblearn.combine import SMOTETomek
from sklearn.metrics import auc, roc_auc_score
import xgboo... | [
"im.chenxi@hotmail.com"
] | im.chenxi@hotmail.com |
c8e9d0c8bd3bb3f4b56908f31da123b5dd79705c | 71e0cb631066f840df17fc6df0700a1d76cb1121 | /django_imgur/storage.py | 1ced32e91322f21a7733119a14b63fc6762394eb | [] | no_license | preetamherald/django-imgur | 1a33ad7f8c56c2c79cd44f42e88e3e946c874913 | 2741958a9d31593331b0ec22c6c9222b15592ad9 | refs/heads/master | 2020-04-05T16:21:07.462882 | 2018-11-10T18:24:03 | 2018-11-10T18:24:03 | 157,008,266 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,859 | py | import os.path
import base64
try:
from io import StringIO
except ImportError:
from io import StringIO
from django.core.cache import cache
from django.core.files import File
from django.core.files.storage import Storage
from django.utils.encoding import filepath_to_uri
import requests
from imgurpython import Im... | [
"preetamherald@gmail.com"
] | preetamherald@gmail.com |
ded2b610f5f4fd5f3d8166d7da825b28689454ef | 9b748c24629089268dc8c6f84e13ca4af77ebc58 | /fanmelegacy/social/migrations/0020_auto__add_field_notificacion_descripcion__add_field_notificacion_nombr.py | a1ac2ce63f63b0e15f31a15fa469ed6b9dcb89af | [] | no_license | emilioramirez/fanme | 5f01215c208d5c612357ffd8036621d959e73829 | 60ede12c0af8082d0f778429e5ea30b73c60daf8 | refs/heads/master | 2021-01-16T19:14:19.301946 | 2014-02-18T19:17:48 | 2014-02-18T19:17:48 | 32,593,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,079 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Notificacion.descripcion'
db.add_column('social_notificacion', 'descripcion', self.gf('dja... | [
"munozmatiasn@gmail.com"
] | munozmatiasn@gmail.com |
4de0f9cafa6f1fa9712f8f63f4d5c125cf87f748 | 512d5801157204f9e57b8e2b27f4df9a405ec771 | /0x04-python-more_data_structures/9-multiply_by_2.py | 8cef95fa4b7cb1d4c6c4ac889afb97d291f51e52 | [] | no_license | CSant04y/holbertonschool-higher_level_programming | f27c223107e342b5da2cd2e1b23c044de0302424 | 016c416c8060f8caab1664adeaa3ee23de670a75 | refs/heads/master | 2023-04-23T15:35:52.192397 | 2021-05-12T20:56:55 | 2021-05-12T20:56:55 | 319,377,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | #!/usr/bin/python3
def multiply_by_2(a_dictionary):
new_dic = a_dictionary.copy()
for i in new_dic:
new_dic[i] *= 2
return new_dic
| [
"esquivelcarlos27893@gmail.com"
] | esquivelcarlos27893@gmail.com |
0ea698c8cea14b0b8495c8fd1b0de1862d550635 | 2dc7d42e73ce37716156fc71651d0cddbe6ad890 | /script/test_loginihrm.py | 2ad63c5bcbc1b44c740ce47dc5cdcd028932d692 | [] | no_license | nihao545720/apiTestIHRM | 31ce7b18731235f76a8aab968fda4f9b81ac5689 | 02a32c50a98b72ccd35128581fc8ca793a097377 | refs/heads/master | 2020-09-27T08:15:23.348759 | 2019-12-07T07:29:24 | 2019-12-07T07:29:24 | 226,472,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,720 | py | # 导包
import logging
import unittest
import app
from api.loginapi import LoginApi
from utils import assert_common
class TestLoginIhrm(unittest.TestCase):
def setUp(self):
pass
@classmethod
def setUpClass(cls):
cls.login_api = LoginApi()
pass
def tearDown(self):
pass
... | [
"stan@123.com"
] | stan@123.com |
cc66e6b71b2aeb27a3f682be7c8f5e6662f88ec1 | 370c6f73e69b361d2921c297fbe3f503ccea292c | /seq_gan.py | d66f4cbbb9d9d5046746d697efe7010755836934 | [] | no_license | jackakarafotas/MarketAlgorithms | 4380dd79ec36f9a4a7caa1afc4cec8d0a634fe8c | 83ac34fada85fcc34857500684f3eb7c9ec6631e | refs/heads/master | 2020-03-17T19:02:32.905752 | 2018-11-19T23:08:38 | 2018-11-19T23:08:38 | 133,843,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,216 | py | import tensorflow as tf
import numpy as np
import sys
from math import ceil
from generator import Generator
from discriminator import Discriminator
class SeqGan():
def __init__(self,data,start_return,batch_size,mle_epochs,adv_epochs,pt_steps,pt_epochs,at_steps,at_epochs,g_hidden_size,d_hidden_size):
self.data = d... | [
"jackakarafotas@gmail.com"
] | jackakarafotas@gmail.com |
9d931265bebb430bda611c707c72bb659e21d359 | fc820d29cdb776de29e2dcd10f47dbd84ac66f42 | /tests/utils/HttpUtilsTest.py | 59889ea66b97c4931bda1ffcac7334df0ef6f208 | [] | no_license | tw-wh-devops-community/homework-tracker-pyapi | c027153e8f3e2e62ccdafffccd66b4c6befaec28 | 54132f93d667d8fdc168e909219f0695c9c349b3 | refs/heads/master | 2020-03-22T05:08:39.443293 | 2018-07-06T06:28:38 | 2018-07-06T06:28:38 | 139,545,114 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | import unittest
from app.constants import WxConstants as wxconstants
from app.model.ResponseBean import ResponseBean
class HttpUtilsTest(unittest.TestCase):
def test_create_assignment_message(self):
message = {'interviewwxId': '陈玮', 'interviewName': '陈玮', 'candidateRole': 'DEV', 'candidateName': '胡红翔', 'p... | [
"gohuhx@163.com"
] | gohuhx@163.com |
766973ba9748fa74c5378e42398721badd887cf3 | 2612f336d667a087823234daf946f09b40d8ca3d | /python/lib/Lib/site-packages/django/utils/decorators.py | 17f2ea30b337f624c0f984698e31aebbb19f6d37 | [
"Apache-2.0"
] | permissive | tnorbye/intellij-community | df7f181861fc5c551c02c73df3b00b70ab2dd589 | f01cf262fc196bf4dbb99e20cd937dee3705a7b6 | refs/heads/master | 2021-04-06T06:57:57.974599 | 2018-03-13T17:37:00 | 2018-03-13T17:37:00 | 125,079,130 | 2 | 0 | Apache-2.0 | 2018-03-13T16:09:41 | 2018-03-13T16:09:41 | null | UTF-8 | Python | false | false | 4,290 | py | "Functions that help with dynamically creating decorators for views."
try:
from functools import wraps, update_wrapper, WRAPPER_ASSIGNMENTS
except ImportError:
from django.utils.functional import wraps, update_wrapper, WRAPPER_ASSIGNMENTS # Python 2.4 fallback.
class classonlymethod(classmethod):
def __g... | [
"dmitry.trofimov@jetbrains.com"
] | dmitry.trofimov@jetbrains.com |
5a505771f17c609e5d1161fc4855299fd1f0388d | 7e7944f4d5546b4c28b87aa38ddcb7bf76bcc1f2 | /python_control/up_control.py | 9caaf2d46541871d3aa6905b8b6dcd26012ac6d5 | [] | no_license | TubeChip404/105_rov_undersea | f45819bc7e837723644afa2f009b3ab5ad9bba85 | 36fef8129365dfe4413911587f5e4a29f790fcb8 | refs/heads/master | 2020-03-27T16:36:28.616678 | 2018-08-30T19:05:03 | 2018-08-30T19:05:03 | 146,794,654 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 7,163 | py | from socket import *
import time
import serial
from threading import Thread
#Configure
raspi_addr='192.168.0.112'
raspi_port=6666
power_addr='192.168.0.7'
power_port=20108
joypad_com='COM6'
joypad_band=115200
network_timeout=1
serial_timeout=1
joypad_data_frame_length=24
network_send_delay=0.05
thruster_horiz_lef... | [
"42848004+TubeChip404@users.noreply.github.com"
] | 42848004+TubeChip404@users.noreply.github.com |
c880c38f9b96a1ed61de4fabbf9406f0315f03bc | 14b8c915ba6cbd867c7af7a7e43aaa60a7eefc9d | /blogs/views.py | dca9f3ca69ab12512ec1ab98e644ac850958bf15 | [] | no_license | champ1567/DjangoDemo | 68e251821f322b6d83ad554a03cabab269bb2492 | 29efc56ca6b602737822e738859540d3dc7337d1 | refs/heads/main | 2023-06-12T19:08:41.012717 | 2021-07-05T01:12:20 | 2021-07-05T01:12:20 | 382,603,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return render(request,"frontend/index.html")
| [
"champ.inwe@gmail.com"
] | champ.inwe@gmail.com |
36aa9e739f1297f2c9b50e04747db5d5837c0382 | a4352b7436fc17794ba7e5b6435f16ddf9b9acae | /programação dinamica.py | 3b4345b133768377a6168a1f57b1a52dbc6d4f3e | [] | no_license | pedfalcao/Algoritmos | 9b7773cd8b6d572958076e2052f3627ff044ce6f | dfe7833ebd684c20ea345613793a948136f3e4a5 | refs/heads/main | 2023-03-14T01:21:21.038089 | 2021-03-02T01:04:55 | 2021-03-02T01:04:55 | 343,580,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | '''
legenda:
d - qtd de dinheiro disponivel p/ contratacoes
n - qtd de jogadores disponiveis p/ contratacao
j, js = jogador, jogadores
p, ps = pontuacao, pontuacoes
c, cs = custo, custos
r = resultado
v = valor
'''
def dinamica(d, n, js, ps, cs):
'''
realiza o calculo de maneira dinamica
'''
k = [[(0, ... | [
"paaf2@cin.ufpe.br"
] | paaf2@cin.ufpe.br |
1e80f914cc4276ed069e4a1b44beb5b6f1b0141e | 17e6d820f00b9904c3ece76aab758439d2db3452 | /mysite/settings.py | 3eb4de28ae25321c378da76c34a2cab35ee53b1d | [] | no_license | AnubisMx26/my-first-blog | ca88ca6045706cac0835aca85b535fca2d60f8f8 | cc454f3495ae0da1f35770c548b53532c5952587 | refs/heads/master | 2021-08-28T10:07:10.483357 | 2017-12-11T23:49:28 | 2017-12-11T23:49:28 | 113,909,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,694 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build paths i... | [
"rsandoval@planseguro.com.mx"
] | rsandoval@planseguro.com.mx |
4dee0daf77fa48f37448dd8cf7d857f94c9426d5 | e91ba13a71dc8757e4c6f483d300bb32db8947d4 | /kubernetes-mastery/slides/markmaker.py | d7ef7a0356e368ba4cf696f9414f7f69f63ba6cc | [
"Apache-2.0"
] | permissive | sijoonlee/kubernetes_study | 752788d4ecf542072436e13ad98b9c67c3b3db2c | 668abacf4f855b55f23562486e420d29397bbe6d | refs/heads/master | 2022-12-22T06:52:51.224364 | 2020-09-30T17:38:18 | 2020-09-30T17:38:18 | 276,719,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,687 | py | #!/usr/bin/env python
# transforms a YAML manifest into a HTML workshop file
import glob
import logging
import os
import re
import string
import subprocess
import sys
import yaml
logging.basicConfig(level=os.environ.get("LOG_LEVEL", "INFO"))
class InvalidChapter(ValueError):
def __init__(self, chapter):
... | [
"shijoonlee@gmail.com"
] | shijoonlee@gmail.com |
c839093885f967b6ea909ba7c8bab8b319dde49d | 30de1d37044cfba76b18cb0ecb1bb543ba4a4e22 | /Lec3/ascii/ascii.py | 84f63460df233477e91d15ee0f54436597bcae20 | [] | no_license | cocoaaa/WebDev | 28574990d4bd1b6cc0e8023b3eb0a642d122ede8 | 21e18dc0f4d1f99c59c7b63db610a7df0991a8b9 | refs/heads/master | 2016-08-11T15:51:06.777475 | 2016-02-04T23:39:34 | 2016-02-04T23:39:34 | 49,907,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,717 | py | import os, json, urllib2, collections
import webapp2 #python webframe
import jinja2 #python template engine
import logging
import time
import tools
from google.appengine.ext import db
#Templates directory: relative to the directory this current python file is in.
template_dir = os.path.join(os.path.dirname(__file__), "... | [
"hjsong@mit.edu"
] | hjsong@mit.edu |
6c12e13fb624ce346c269a8345b61228787d6dd0 | b5177ab489d2c137b1204833bb20d6545c6fe409 | /Week5/TODO/main/models.py | f1a94d4044bf7982d0305b7a8eadf47cce1d66ce | [] | no_license | Aru09/JangoRepo | 816dd2e58df9e93c6c54908542814dda5612f20e | 5ebbde23fe83481aba39cf487bbb7cea50b65bc2 | refs/heads/master | 2020-03-27T21:26:44.553035 | 2018-11-27T14:05:33 | 2018-11-27T14:05:33 | 147,144,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from django.db import models
class Task_list(models.Model):
name = models.CharField(max_length = 255)
def __str__(self):
return self.name
class Task(models.Model):
task_name = models.CharField(max_length = 255)
created = models.DateTimeField(auto_now_add = True)
due_on = models.DateTimeField()
owner = mode... | [
"noreply@github.com"
] | noreply@github.com |
6000a2d804783a5d4220d63e4e1a31dae8e8d95a | f47a4199c4a67eeaaf52faa64105d84f3996b15a | /ICP2/source/1.py | 57e9fcdf76d2ab560fb6492b42e6f563c704c8c0 | [] | no_license | gowtham304/python | a7f7aa555a8cfe189ef7addd1ec6b0e8a5c19d4c | c76a190c4d7ea6945dc6407735804d02ce4b71ab | refs/heads/master | 2021-08-27T22:55:21.468012 | 2021-08-12T22:18:42 | 2021-08-12T22:18:42 | 190,480,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | n = int(input("How many numbers do you have? "))
lb=[]
for i in range(n):
s = int(input("Enter a number >> "))
lb.append(s)
print(lb)
kg = [(x/2.2046525820) for x in lb]
print(kg) | [
"47073384+gowtham304@users.noreply.github.com"
] | 47073384+gowtham304@users.noreply.github.com |
131b266d1db9276b440977307e8f0b3feee3d07f | c5e6f0445ecbfa128c1149393740f650f3d8102b | /1/2/2.2.2.py | 96e0aa29e73d11f157af042fa6151f3e2fe67136 | [] | no_license | xyz-to/Imagetoken | 6eb4cd35a40b002f69c04820a5c8b43b91a9537e | 19d61d9c826bdfeb58eeb5523c8fd6433a5bd3ee | refs/heads/master | 2023-08-01T02:42:18.860506 | 2021-09-12T15:44:26 | 2021-09-12T15:44:26 | 405,266,390 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,860 | py | """将灰度值转换为RGB值的图像"""
from matplotlib import pyplot as plt
import numpy as np
from skimage import data, color
L = 255
def GetR(gray):
"""转换灰度值的R通道部分"""
if gray < L / 2:
return 0
elif gray > 3 * L / 4:
return L
else:
return 4 * L - 4 * gray
def GetG(gray):
"""转换灰度值的G通道部分""... | [
"2282661074@qq.com"
] | 2282661074@qq.com |
43b9efcb67283c12ab78d41bf4a139edda32f6a5 | 8101c599bdf68e0fcc2dbc8188640abfebc4a790 | /test/test.py | f651e500372ecdf139f269049f79c37f139d61d8 | [
"BSD-3-Clause"
] | permissive | symbooglix/boogie-runner | 2a39ddc86d1fee8e3750db6c07f3d20363195390 | 01e1fe993d5eacf7055f1d950a209583c0405fd6 | refs/heads/master | 2021-01-21T04:37:04.636241 | 2016-04-05T16:28:27 | 2016-04-05T16:28:27 | 28,610,541 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,484 | py | #!/usr/bin/env python
# vim: set sw=2 ts=2 softtabstop=2 expandtab:
import argparse
import logging
import os
import pprint
import re
import shutil
import subprocess
import sys
import yaml
testDir = os.path.dirname(os.path.abspath(__file__))
repoDir = os.path.dirname(testDir)
# Hack
sys.path.insert(0, repoDir)
from Bo... | [
"daniel.liew@imperial.ac.uk"
] | daniel.liew@imperial.ac.uk |
0abd2fdc02ec2dc86d229d0283aa88cfd9cdb26e | 083f753d872fb735ac1f76465b1aefe239a8ab38 | /conc_HTTP_server.py | 7ef6643606091b0bd882a5e3da723907b1318ae4 | [
"MIT"
] | permissive | miramzz/network_tools-1 | fc3c8168f373b7c1c1364b763230bfef5a1657d9 | 88aa23868d4bc8d00a568844f203e926e31fa76d | refs/heads/master | 2021-01-15T17:59:41.873258 | 2014-06-18T20:43:43 | 2014-06-18T20:43:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,922 | py | import socket
import os
import mimetypes
import SocketServer
from HTTPExceptions import HTTPException
from HTTPExceptions import HTTP400Error, HTTP404Error, HTTP405Error
def request_parser(raw_request):
raw_request = raw_request.split('\r\n')
keys = ('method', 'URI', 'protocol')
request = dict(zip(keys, r... | [
"corinne.hutchinson@gmail.com"
] | corinne.hutchinson@gmail.com |
a577a93ea9080e600a4aba8dc03b1a09b3d3ccd3 | 0c3fa93ed9c3929061f667fe574fb75e04f4f6ff | /find_number_sentence.py | ec3b9e2b9c94727e6ff7765eb7da98ac632f641b | [] | no_license | nandu7180/Python | 21af5c40a6edb1d73c7d444d3b2070816442bf59 | 16471f95669aa3acd37583a9b29b1fb2caca0c55 | refs/heads/master | 2020-03-11T22:37:27.788604 | 2018-04-21T07:51:07 | 2018-04-21T07:51:07 | 130,297,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | import re
a = "Iam2ragh34va21"
lis = map(int, re.findall('\d+', a))
nsum = sum(lis)
print nsum
| [
"noreply@github.com"
] | noreply@github.com |
a7ec1d0348a449cc52d594b3b29f306f779fd8e4 | a5292f369caff6fc1b9c0384031042a745fb44c5 | /Templates/Deck of cards.py | d3835508a925f2e5a20e742cdbe10cdbd6f2c49e | [] | no_license | yukiya727/pycharm | 56f0c3011c9ecb9dc6d6802f8819e77129c5a589 | 3f0b78fdfec7d9698d65584f4b050a22f2161a02 | refs/heads/master | 2022-11-21T16:04:39.493448 | 2020-07-19T07:58:00 | 2020-07-19T07:58:00 | 278,785,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,330 | py | import random
import time
import threading
class Card():
def __init__(self, suit, value):
self.suit = suit
self.value = value
self.values = ['A', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K']
def __str__(self):
return "%s of %s" % (self.value, self.suit)
de... | [
"yukiya727p@gmail.com"
] | yukiya727p@gmail.com |
3092c08a731b61558189665e7d2e63d08603ab03 | d9eafd325ab775b7b32af2dd0b63afc7310be53d | /pfwra/home/migrations/0004_auto_20210323_0728.py | 3678a7c488fe83d6dd909f1c2f80b1f809a9fe79 | [
"MIT"
] | permissive | johnkellehernz/pfwra | 54b0db7debaed629d6003e0826a15bde2fd4a197 | 5b8c718bb2f1aaa34e9a718e07baf270294f7ba6 | refs/heads/main | 2023-05-01T14:39:42.419993 | 2021-05-13T11:00:07 | 2021-05-13T11:00:07 | 353,514,688 | 0 | 0 | MIT | 2021-03-31T23:15:32 | 2021-03-31T23:15:31 | null | UTF-8 | Python | false | false | 1,670 | py | # Generated by Django 3.0.11 on 2021-03-23 07:28
from django.db import migrations, models
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = [
('home', '0003_auto_20210219_0827'),
]
operations = [
migr... | [
"jordi.joan@gmail.com"
] | jordi.joan@gmail.com |
814bbf98eeee530f21372492d0a0d9f8a9ce62d1 | d8f7b9943049bd483189fe58fd4abf37163866dd | /GUI Code/search.py | 9d83c91ad738a58d3a07107996a978d96e19663f | [] | no_license | NagahShinawy/python-data-structures-algorithms | d14ecd478caa13e36c4f2dcdf942e5f9e9f351e5 | c254f12dca78444e3b2bbd667d4508a699b9fb89 | refs/heads/main | 2023-05-12T17:26:23.477742 | 2021-05-10T07:08:30 | 2021-05-10T07:08:30 | 365,436,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,940 | py | """
Python Data Structures - A Game-Based Approach
Robin Andrews - https://compucademy.net/
Search Algorithms for use in GUI.
"""
import config
import heapq
import helper_functions as helpers
from collections import deque
class PriorityQueue:
def __init__(self):
self.elements = []
def is_empty(self):... | [
"E-n.Shinawy@lean.sa"
] | E-n.Shinawy@lean.sa |
15612575ea6312e20252678f637619af3da8dd28 | 7625f99ef06958df0d69668f612841e6f9749344 | /manage.py | c2c9664e6b4b1e3875c108ec866b39fa468ffe03 | [] | no_license | KewinEvers96/tournamentManagerNWK | d9fa11059c3de4b8da43932a35c0053feb647867 | 98fa632768ee3b1b2520284b97994d7c210d2ce6 | refs/heads/main | 2023-07-26T19:41:49.565687 | 2021-08-10T04:56:40 | 2021-08-10T04:56:40 | 394,169,787 | 0 | 0 | null | 2023-07-16T07:20:42 | 2021-08-09T06:05:24 | Python | UTF-8 | Python | false | false | 673 | 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', 'tournamentManager.settings')
try:
from django.core.management import execute_from_command_line
e... | [
"keversy@unal.edu.co"
] | keversy@unal.edu.co |
599edb1ee8ffd3b0dc26ea6189d552c48e759329 | b71482c9e035ade758bbd0275794154b1318cefc | /Library/deployModels/test/pipeline.py | 44aed53cded90ed507536f9a4a76820c21fd12d4 | [] | no_license | UCSD-SEELab/smarthomeDeploymentCode | 9615fcab9b1dd58889d1767eb523c390b8a62163 | 7d9be41b5229f84402c25e7d66b9b3626af5dad6 | refs/heads/master | 2020-04-08T23:19:44.662756 | 2018-12-01T04:50:48 | 2018-12-01T04:50:48 | 159,819,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | import sys
sys.path.append('../../')
from deployModels.HLdeployer.communicate import *
import json
def blah(mosq, obj, msg):
print(str(msg.payload))
with open("./config.json", 'r') as confFile:
conf = json.load(confFile)["local"]
ab = communicate(conf, [blah])
ab.sendData("crk", str(12))
ab.startListeni... | [
"rishikanthc@gmail.com"
] | rishikanthc@gmail.com |
d33e66fbe2c3010ddfa1f442b382780ecfe03b90 | 3edcb7f381d6acda50bf8bd9f8b25ddeb2dfa71a | /PracticeStuff/ex20.py | d5c571203f523414f9322d61b4655144a6490fb8 | [] | no_license | Mr-Clean-Code/Python | e7273e3689e940e00d7a0bde7bbbe69ddd764a3c | 11145d2939cefa84b4afe2469f2bd336c2987ca5 | refs/heads/main | 2023-06-12T03:45:09.663939 | 2021-07-08T08:54:58 | 2021-07-08T08:54:58 | 384,059,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | from sys import argv
script, input_file = argv
def print_all(f):
print f.read()
def rewind(f):
f.seek(2)
def print_a_line(line_count, f):
print line_count, f.readline()
current_file = open(input_file)
print "First let's print the whole file:\n"
print_all(current_file)
print "Now let's re... | [
"noreply@github.com"
] | noreply@github.com |
b1509a8fd4ca04578be6136ee76e723603784297 | 3e1e3acbc40ee3b52b90043c6b72d6069471d09a | /lc153_rotatedArray.py | 68f7c6c30a353356708821b5df28b20f75a6c138 | [] | no_license | WagonsWest/Leetcode | ef84b8ccbf87e37d0fc1cc16a859d514c8348bc1 | 2bf72dd56a8d1d7f56289ddc54176ab9765d69c9 | refs/heads/master | 2023-06-05T16:39:18.862260 | 2021-06-29T08:48:38 | 2021-06-29T08:48:38 | 371,731,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | class Solution(object):
def findMin(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
left = 0
right = len(nums)-1
while left < right:
mid = left + (right-left)/2
if nums[left] < nums[mid] and nums[mid] < nums[right]:
... | [
"z667zhan@uwaterloo.ca"
] | z667zhan@uwaterloo.ca |
85e8c8ce2254a08de1b00abc2d3dc1954d1d61fc | 543ae8c2829892f2dc0383cf52478526acb3213f | /0301-0400/0301-0350/0318MaximumProductOfWordLengths/demo.py | 9cf8e6aea3666b964973a2216a6f4a41f5ad6eb0 | [] | no_license | BLZbanme/leetcode | 04795331acf4191f64555c472f8003756287bdcf | 26ba5bdc254366ecf80dfabcbbc9320757e17c34 | refs/heads/master | 2022-02-07T12:06:11.633897 | 2022-01-29T12:13:03 | 2022-01-29T12:13:03 | 185,048,357 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | class Solution:
def maxProduct(self, words: List[str]) -> int:
maskMap = dict()
if not words or not len(words):
return 0
N = len(words)
valueList = [0] * N
aCode = ord('a')
for i in range(N):
word = words[i]
for s in word:
... | [
"swordcome@gmail.com"
] | swordcome@gmail.com |
8635a03985fe50c6d62a963dd2a677a3d2382066 | ee9d1da814af64064de49e777e6fe983f92e7621 | /old/vdh_script.py | 26da9294add192a677d965804ba76f9e1ecad294 | [] | no_license | nm96/MSc_project_code | 8506fab47b291cffb4a9558da52a486a4dca290f | 7b8b02b6b5dce0c09adf8e5ca2c3f464c4e6eff1 | refs/heads/master | 2022-12-14T20:34:53.432790 | 2020-09-13T15:06:31 | 2020-09-13T15:06:31 | 274,463,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,009 | py | # Van der Heijden Script
# ----------------------
import numpy as np
from scipy.integrate import solve_ivp
from scipy.fft import rfft
import matplotlib.pyplot as plt
import time
from solutions import *
from models import *
t0 = time.time()
fn = 0 # Initialize figure number for plotting
# Rename basic functions and... | [
"as19538@bristol.ac.uk"
] | as19538@bristol.ac.uk |
44a16f28b318d131dbeefaf200012cfa5e1bd8de | 3395a234e7c80d011607e79c49cd48bf516f256b | /dependencies/jedi/third_party/typeshed/tests/pytype_test.py | ee7ac0bb9cb9d9175b955f913e9188cc8bbc75a2 | [
"MIT",
"Apache-2.0"
] | permissive | srusskih/SublimeJEDI | 67329b72e184bc9584843968dcc534a002c797a1 | 95c185d778425c04536d53517b0e3fe6dedf8e59 | refs/heads/master | 2023-08-24T11:30:37.801834 | 2022-08-30T09:04:17 | 2022-08-30T09:04:17 | 6,241,108 | 669 | 125 | MIT | 2022-08-30T09:04:18 | 2012-10-16T08:23:57 | Python | UTF-8 | Python | false | false | 7,915 | py | #!/usr/bin/env python3
"""Test runner for typeshed.
Depends on pytype being installed.
If pytype is installed:
1. For every pyi, do nothing if it is in pytype_blacklist.txt.
2. Otherwise, call 'pytype.io.parse_pyi'.
Option two will load the file and all the builtins, typeshed dependencies. This
will also disc... | [
"srusskih@users.noreply.github.com"
] | srusskih@users.noreply.github.com |
ae0680848978d297a36259c8c88173bd004503b1 | 327e45972e9c36433e9b17c377833b783793162b | /Drafts/ASASASAD.py | 84a9c7e6806b1deddf01ff3db7755df7115cdacc | [] | no_license | SashaPoraiko/GitTest | 44ea5018078682f50b07fba95417830207b10958 | 8d183382169a0c88a8e0e6af3b1d5a7db204e07b | refs/heads/master | 2020-06-02T14:59:06.749132 | 2019-09-19T14:53:43 | 2019-09-19T14:53:43 | 191,198,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py |
commands = ['end', 'write', 'read', 'calculate']
def calculate_things_semester(file_name):
semester = input('Enter the semester number: ')
disc_list = listed_disciplines(file_name)
total_hours = 0
for discipline in filter(lambda x: x[1] == semester, disc_list):
total_hours += int(discipline[... | [
"poraiko.alexandr@gmail.com"
] | poraiko.alexandr@gmail.com |
0082cc077df1735c971c44820d6af60113964d09 | 3f3aa41bbb5dac460318c214b2e06a9a4d384f93 | /current_model_code/decisions.py | 8db36e97485cc79c06f344e299a16f34f2a8aebc | [] | no_license | quao627/ABM_py | f576e7cfc93961a2844e19b95b1a76278ef3bcd6 | 15cbf6cc8316b86a463c4c5caade208f54360c89 | refs/heads/master | 2023-03-18T13:17:05.913734 | 2021-03-15T21:53:11 | 2021-03-15T21:53:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Working definition of decision class for ABM
of environmental migration
@author: kelseabest
"""
#import packages
import random
import math
import numpy as np
import matplotlib.pyplot as plt
class decision :
#method decide returns True or False
#subclass of ... | [
"kelsea.b.best@vanderbilt.edu"
] | kelsea.b.best@vanderbilt.edu |
0c78396cacf3dcb777ca52b8bb646c14114b8fd8 | b323fe5968aea700322428ba6bd239b45bc88c00 | /sohpen/website/migrations/0004_auto_20170518_0707.py | 9cbdfebe44d099d22afdb59741aada8fb2fc3ec3 | [] | no_license | aakashres/sophen | a1862be0fe4aaac51a03f111c1943c1e44f517cb | d84b8e8640f10eef22a79b8afba3e226405f9e5d | refs/heads/master | 2022-11-08T01:46:05.697691 | 2017-11-06T11:10:22 | 2017-11-06T11:10:22 | 273,651,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-18 07:07
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('website', '0003_auto_20170518_0544'),
]
operations... | [
"aakash.shres@gmail.com"
] | aakash.shres@gmail.com |
b794a12562f904bc4635f5b9ed68facb83139732 | a7da58ad91b007b3650003708eb91928f1e3684a | /bt5/erp5_safeimage/DocumentTemplateItem/portal_components/document.erp5.TileImageTransformed.py | 466787ccecd19c9b734940556b1aa542d84022ef | [] | no_license | jgpjuniorj/j | 042d1bd7710fa2830355d4312a6b76103e29639d | dc02bfa887ffab9841abebc3f5c16d874388cef5 | refs/heads/master | 2021-01-01T09:26:36.121339 | 2020-01-31T10:34:17 | 2020-02-07T04:39:18 | 239,214,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | from Products.ERP5.Document.Image import Image
from zLOG import LOG,INFO,ERROR,WARNING
class TileImageTransformed(Image):
"""
Tile Images split images in many small parts and then store informations as sub objects
"""
def _setFile(self, *args, **kw):
"""Set the file content and reset image information."""... | [
"seb@nexedi.com"
] | seb@nexedi.com |
617d7e2db0c09938a95dc1544a51167769b0c787 | a22464ad72a7e0cf346e599452b41840d2fec0fc | /CodeJam/2019/2019Qualification/testing_tool.py | f91474cf7f1dde11a33d4d6b0c294513f025d3f3 | [] | no_license | lzy960601/Google_Coding_Competitions | 997ed05f611ee0f1947001d74860bb98adbdb11e | 67e3235a7388c1dcda2e3b7589b91000aa3a2d5d | refs/heads/master | 2022-10-11T07:06:06.325829 | 2022-10-04T16:22:04 | 2022-10-04T16:22:04 | 177,498,727 | 156 | 15 | null | 2020-10-18T17:14:53 | 2019-03-25T02:17:19 | C++ | UTF-8 | Python | false | false | 7,157 | py | # Usage: `testing_tool.py test_number`, where the argument test_number
# is 0 for Test Set 1 or 1 for Test Set 2.
from __future__ import print_function
import random
import sys
import re
# Use raw_input in Python2.
try:
input = raw_input
except NameError:
pass
_ERROR_MSG_EXTRA_NEW_LINES = "Input has extra newlin... | [
"21952652+lzy960601@users.noreply.github.com"
] | 21952652+lzy960601@users.noreply.github.com |
c2448e93ec7f3156bcafb8652128d8a28a335313 | 00da97c7d54ae6666ea202db7c7391ef5599e2c0 | /guoyu/migrations/0002_auto_20180806_1646.py | 25d402aa62d9e5fa97e40385de678b4705738073 | [] | no_license | Sean609/Learn-Chinas- | c986327479ab225fd768f3b43ee0765e5947df8a | d052a295d11a7ff1f324206f3ffc01a3454b9ac0 | refs/heads/master | 2022-12-10T03:47:28.346088 | 2018-10-04T12:37:11 | 2018-10-04T12:37:11 | 151,568,133 | 0 | 0 | null | 2022-11-22T02:52:50 | 2018-10-04T12:29:05 | JavaScript | UTF-8 | Python | false | false | 1,064 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-08-06 16:46
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('guoyu', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"abliz@bluemouse.com.cn"
] | abliz@bluemouse.com.cn |
e9af0ba3018a1b4b710debbc65ec77f0108e0de3 | 9a8472865830b5f4fe39c69e4235da4b3272170f | /shower/migrations/0017_eye.py | d84381299080b6a4e4c85672dfd9ec0d6bd7e4cb | [] | no_license | KimberleyLawrence/babybook | ed9b2fb599fda0e8567a556c2e18b9bbe28bf4b2 | a03753822cafd49d0c247029e2fab4c9365890b4 | refs/heads/master | 2021-01-10T16:44:12.940468 | 2016-04-19T03:52:38 | 2016-04-19T03:52:38 | 51,638,144 | 1 | 1 | null | 2016-03-23T03:39:06 | 2016-02-13T08:23:21 | Python | UTF-8 | Python | false | false | 828 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-03-02 06:02
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependen... | [
"kimberleynedic@gmail.com"
] | kimberleynedic@gmail.com |
74587b67f842719cafc4fa195d739f55ed2fa651 | 7d75f44a9486b6e2bb0e58c72d22be436cc308af | /EventSelector/share/skimZtautau_r17.py | b31398f3d40146374158a5dfb51487f1b8a5eba0 | [] | no_license | zinon/RawData | f95dbef4c12eb9db73adbae8e94c031781bc3bef | 38743ed4d52f532a03e53dfee774abfa49e82988 | refs/heads/master | 2021-01-19T20:18:15.971916 | 2015-02-25T11:30:18 | 2015-02-25T11:30:18 | 31,310,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,166 | py | #!/usr/bin/env python
"""
Author: E. Feng (Chicago) <Eric.Feng@cern.ch>
Modified: B. Samset (UiO) <b.h.samset@fys.uio.no> for use with SUSYD3PDs
Modified: C. Young (Oxford) for use with a trigger
Modified: A. Larner (Oxford) & C.Young to filter on lepton Pt and for use with TauD3PDs to filter on lepton Pt... | [
"zinon123@gmail.com"
] | zinon123@gmail.com |
75c8f6a38a04378c5ffdf3154ad83a7999aaaf00 | ceb35ffff93e0dd0cc305af46f51bd8015f0849a | /book/algorithms/algorithms_one_liner_05.py | 0ce50b263e196278a381be2f5eb8cdf91a423886 | [] | no_license | shoaibdipu/PythonOneLiners | 76d35129641414acf60d08fb6fff81fe075dfeb5 | 7e216558c5c6c8009dbc51a39808237f451b185d | refs/heads/master | 2023-08-04T12:50:00.030175 | 2021-09-22T19:44:32 | 2021-09-22T19:44:32 | 409,334,647 | 0 | 0 | null | 2021-09-22T19:41:46 | 2021-09-22T19:41:46 | null | UTF-8 | Python | false | false | 324 | py | # Calculating the Powerset by Using Functional Programming
# Dependencies
from functools import reduce
# The Data
s = {1, 2, 3}
# The One-Liner
ps = lambda s: reduce(lambda P, x: P + [subset | {x} for subset in P], s, [set()])
# The Result
print(ps(s))
'''
[set(), {1}, {2}, {1, 2}, {3}, {1, 3}, {2, 3}, {1, 2, 3}]
... | [
"noreply@github.com"
] | noreply@github.com |
647e8796a012abf04250fb60a973bca50dd8a759 | 4b058d88820f1443f279569bb85288c54d35f67a | /src/services/hotel-v1-python/app/routes/hotels.py | 6a8ca207ed324b057972521a8ca33cc065c7fc0c | [
"LicenseRef-scancode-dco-1.1",
"Apache-2.0"
] | permissive | 1154046/instana-openshift | ccd658b000cdb563ec34fe924d14d54db93e8fc1 | 90a56dcffebf795fd0967f4e630527db55c75035 | refs/heads/main | 2023-09-02T17:44:03.219543 | 2021-11-21T19:43:14 | 2021-11-21T19:43:14 | 430,455,801 | 0 | 0 | Apache-2.0 | 2021-11-21T19:05:11 | 2021-11-21T19:05:10 | null | UTF-8 | Python | false | false | 4,798 | py | from app.services import data_handler
from app.errors import tag_not_found, item_not_found
from app.jaeger import Jaeger
from flask import jsonify, request, Blueprint
from datetime import datetime
from pybreaker import CircuitBreaker
hotels_blueprint = Blueprint("hotels_blueprint", __name__)
info_breaker = CircuitBre... | [
"magicmax33@gmail.com"
] | magicmax33@gmail.com |
35db2a331b65c35385546534a82e6d1381874fc8 | 5141e92d15c1493b85a45b7ba7b3723874345fe3 | /repos/system_upgrade/el7toel8/actors/opensshpermitrootlogincheck/libraries/opensshpermitrootlogincheck.py | 0cb90819c7cdcad2c62488ee74b8c52dbbabe8ce | [
"Apache-2.0"
] | permissive | zdohnal/leapp-repository | ccb1cf734cd40413f7b2d3b3e6ae689563fd153e | 8220b707c9b576712f1289d3aaa8767cadeeb788 | refs/heads/master | 2022-01-19T09:40:05.194100 | 2022-01-07T17:15:15 | 2022-01-07T17:15:15 | 183,820,028 | 0 | 1 | Apache-2.0 | 2020-01-02T13:35:48 | 2019-04-27T20:44:15 | Python | UTF-8 | Python | false | false | 506 | py |
def semantics_changes(config):
globally_enabled = False
in_match_disabled = False
for opt in config.permit_root_login:
if opt.value != "yes" and opt.in_match is not None \
and opt.in_match[0].lower() != 'all':
in_match_disabled = True
if opt.value == "yes" and ... | [
"vsokol@redhat.com"
] | vsokol@redhat.com |
9e18e432aa9b22ce8b954341a277acd526ffeb4f | 0f454697abe311b0398ce106cf896c7781417b41 | /old/backup/script/simplenet.py | f2929c992d834d936a804d244987b0c7ddb3cd49 | [] | no_license | securitysystem/SecuritySystem | c4e51edbf156559ecad2a31908f78240818bd1ba | ee56a045972199dba9d07f748c81f86aa1bfcac5 | refs/heads/master | 2021-01-20T22:41:13.381400 | 2015-01-23T00:27:46 | 2015-01-23T00:27:46 | 29,707,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,659 | py |
#########################################################
#Code Author: OmniBean
#Go to:
#http://www.omnibean.96.lt/
#for more by OmniBean.
#########################################################
"""
The SimpleNet Library for Python 3 is a library written by OmniBean
that allows anyone to easily set up networking ... | [
"pwnetwork.pwteam@outlook.com"
] | pwnetwork.pwteam@outlook.com |
de8015a0be9d5dab9f49de71d3750d89eff1ad29 | c839a6780637cc2fe7f22bde1fab50d848adfd92 | /NavdharaTech/asgi.py | 35aab73c5da90968f3dd47c40ff0b75eae09b66f | [] | no_license | Ganesh-Thorat-01/NavdharaTech | 3412ee415d4aa385f7f64471212f0fd5cce13357 | b303a2e67b24d5dc30f7beb461fe5a3106a1a5a5 | refs/heads/main | 2023-03-16T14:58:58.305297 | 2021-03-16T18:10:43 | 2021-03-16T18:10:43 | 314,438,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
ASGI config for NavdharaTech project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_... | [
"thorat.ganeshscoe@gmail.com"
] | thorat.ganeshscoe@gmail.com |
df63bca0d301825b33a9357cf855adc7db3c3879 | eaad54d45fbffe978479ee4bca15ec5457fa5f51 | /scraping/bin/pylint | 4af42c18e077012d0f10d2536b0f7505258c4742 | [] | no_license | able-leopard/recipe_scraping | 8fc6eb0d53c2f5ea53824b9bb30dde7d29279517 | ddf6cfbad9cc46f38dc8e8d6d11cb84f6b01e365 | refs/heads/master | 2021-06-27T15:11:17.665357 | 2019-12-03T16:00:11 | 2019-12-03T16:00:11 | 224,886,436 | 0 | 0 | null | 2021-06-02T00:43:28 | 2019-11-29T16:14:41 | Python | UTF-8 | Python | false | false | 256 | #!/home/hzren/Environment_Scraping/scraping/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pylint())
| [
"alexren268@gmail.com"
] | alexren268@gmail.com | |
d1ef866323ca68278fc0640ad5012b626ffbcc97 | 0e0cc706ec416a8488742b31079bb9ce5291ca2a | /texttemplates/selectivediff.q.py | f846c008c5ed2fc416730c7ed0c2969aaf356eda | [] | no_license | serviceprototypinglab/fipe | 444473a0c2a04f38c8deca455e8f32b80eac3c22 | 3f22115def870c8852cbba66a918178c274b18cd | refs/heads/master | 2023-08-10T21:17:56.637654 | 2021-09-28T12:20:43 | 2021-09-28T12:20:43 | 344,916,608 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,024 | py | """
Das nachfolgende Skript führt eine mathematische Berechnung gemäss einer
spezifischen Formel durch. Die Formel muss nicht weiter verstanden werden.
Vervollständigen Sie das Skript an den kommentierten Stellen, so dass
es lauffähig wird und schliesslich das Resultat ausgibt.
Etwas 'Tüfteln' und aufmerksames Lesen vo... | [
"spio@tougener2"
] | spio@tougener2 |
5493039aa43679a7833c4d327c208b17172a747b | 15a530b8fd2fbf34ff00e292958128b62d292d18 | /tsp/population_search/acs/__init__.py | 4fa1e000a157a9f43bd7cceacaa828e544cfde7a | [] | no_license | mikitachab/pea | 2dfb9cddc642eff64d9647020262473143dd4125 | 46aab99445b0cd4fbefdbe42d19eb502654e820b | refs/heads/master | 2021-07-16T12:51:29.252980 | 2020-05-16T15:52:42 | 2020-05-16T15:52:42 | 155,883,320 | 0 | 0 | null | 2019-07-21T14:14:06 | 2018-11-02T15:13:08 | Jupyter Notebook | UTF-8 | Python | false | false | 64 | py | from .acs import AntColonySystem
__all__ = ['AntColonySystem']
| [
"mikita.chabatarovich@gmail.com"
] | mikita.chabatarovich@gmail.com |
2a4411ff798f42c21fba6e8035ff401a33c2dbe3 | 9555a30ff8e19c48c51a6eaa9cbc6ca8ed629391 | /Algorithms/Implementations/Encription.py | 8d450f79cdfb108a46d840f43763609feb1931d4 | [] | no_license | Mister-eX/Hackerrank-solutions | f3636d35c35cd22b3b4102b7650add1ca3a2a078 | d786b3043de04efada296bad7e4424eb897ced72 | refs/heads/master | 2022-12-21T12:37:55.462937 | 2020-09-28T14:15:04 | 2020-09-28T14:15:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | import math
from collections import deque
def encryption(s):
n= len(s)
x = math.sqrt(n)
r = math.floor(x)
c = math.ceil(x)
if r * c < n:
r += 1
for i in range(c):
j = i
while j < n:
string = string + s[j]
j += c
string = string + ' '
r... | [
"sapanravidas@gmail.com"
] | sapanravidas@gmail.com |
1d4da51a32831508e08ce8b958a79530db4fe284 | 6d65bac3ee30bd32aaa1d143b878556bfe7d7bb1 | /Cloud Data Warehouses/Data Warehouse Project/sql_queries.py | 94bf5d85a4d7a611ad257d6af9ce0d0531c04035 | [] | no_license | iopkelvin/Data_Engineer_Nanodegree | d870d552a8f9e7057dbf8a6406d8c85b43a59700 | edc631f7e29c57ff7a477700e91f5832bf97db88 | refs/heads/master | 2022-07-03T18:26:27.039059 | 2020-05-16T09:39:53 | 2020-05-16T09:39:53 | 260,390,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,008 | py | import configparser
# CONFIG
config = configparser.ConfigParser()
config.read('dwh.cfg')
# DROP TABLES
staging_events_table_drop = "DROP TABLE IF EXISTS staging_events"
staging_songs_table_drop = "DROP TABLE IF EXISTS staging_songs"
songplay_table_drop = "DROP TABLE IF EXISTS songplays"
user_table_drop = "DROP TABL... | [
"iopkelvin@gmail.com"
] | iopkelvin@gmail.com |
8850d3ec8a458b5fc000f3faba63ac1042c98579 | d1e96475c745ca11915593e92311404b7666f6a2 | /simpleapi/database/crud.py | 2d44722d728e54e91bd6d55b2aa7f8b4d5968518 | [] | no_license | noFrostoo/simpleApi | 7b6f611198dddae374f151dd13445be05b330c7d | 48ee19e5cc132a993249fad5c045676f03dce0fe | refs/heads/main | 2023-04-26T01:48:12.551267 | 2021-05-21T14:36:31 | 2021-05-21T14:36:31 | 368,916,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,098 | py | from datetime import datetime, timezone
from typing import List, Optional
import uuid
from sqlalchemy.orm import Session
from simpleapi.api import schemas
from . import models
def create_message(db: Session, message: schemas.MessageBase) -> models.Message:
new_message = models.Message(**message.dict())
db.ad... | [
"nofrost1a@gmail.com"
] | nofrost1a@gmail.com |
c9f286b5ec419b0973157fc14f2d484d6c5346d3 | e8d3b04a19ba1b6373877068c3200e91f5142932 | /lastfour_main/main.py | 1cfe3e63008b494f2f398b341fbc8fe73958ea72 | [] | no_license | kpavankumar623/cricket-project | 46005ebc7586979deef4d9071441c13b726b095a | d83ed4400080d1bf8f40f086cd88d5e71957e3ba | refs/heads/master | 2020-07-16T14:15:03.475153 | 2019-09-20T13:08:06 | 2019-09-20T13:08:06 | 205,804,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | import sys
sys.path.append('..')
from player import Player
from innings import Inning
from match_rules import MatchRules
import helper
player1 = Player("Kirat Boli", prob=[5, 30, 25, 10, 15, 1, 9, 5])
player2 = Player("N.S Nodi", prob=[10, 40, 20, 5, 10, 1, 4, 10])
player3 = Player("R Rumrah", prob=[20, 30, 15, 5, 5, ... | [
"kpavankumar623@hotmail.com"
] | kpavankumar623@hotmail.com |
582d8df350455a0ac4ead2662303513df51bc4e8 | 9dfc5bf5d286c7b7f13ce4c17a8def1eb829d2b4 | /engine/fut/engine/fut_strategyAberration_1.py | 148503356e2de5a64ce79e517a46464f60ac4fbf | [] | no_license | chenzhenhu-yeah/nature | a463058fb4cc600fbcbd6a41edb7df485008aad6 | 368f52181f1ac7c0c8b06623c15faf77b7fc5e36 | refs/heads/master | 2021-06-24T10:20:03.796435 | 2021-01-16T06:40:31 | 2021-01-16T06:40:31 | 193,628,719 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 14,747 | py | # encoding: UTF-8
import os
import pandas as pd
from csv import DictReader
from collections import OrderedDict, defaultdict
from nature import to_log, get_dss, get_contract
from nature import DIRECTION_LONG,DIRECTION_SHORT,OFFSET_OPEN,OFFSET_CLOSE,OFFSET_CLOSETODAY,OFFSET_CLOSEYESTERDAY
from nature import ArrayManage... | [
"chenzhenhu@yeah.net"
] | chenzhenhu@yeah.net |
e747773591efce5226afdebb21cdbb4fc8ae5846 | 54e0c677471942aa35386e810e7fa54753bbecce | /Assignment 3 submission/main.py | 972f9cae5b5f4cd5c77246ef33e85972329b07e1 | [] | no_license | itsuncheng/COMP4901I_Assignments | b27dd86d4e5a438c54c1298478bcc07efe2ea879 | 3bbe115056900515a4fa8fee1973219f9efdf334 | refs/heads/master | 2021-05-16T21:39:59.170470 | 2020-03-27T08:43:26 | 2020-03-27T08:43:26 | 250,479,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,652 | py | import pandas as pd
import re
import numpy as np
import pickle
import argparse
from tqdm import tqdm
import torch
import torch.nn as nn
import torch.utils.data as data
import torch.nn.functional as F
from sklearn.metrics import f1_score, classification_report, accuracy_score
from model import WordCNN
def trainer(... | [
"itsuncheng2000@gmail.com"
] | itsuncheng2000@gmail.com |
30aec9891a46dbbe643a92b765ac61393ad4a416 | 56bd9b3518f21080a0493f5330249bf5e85289fd | /engineering/common/econstants.py | 6c98788eeb4a4ac58e6294df9a553babe863a6f2 | [
"Apache-2.0"
] | permissive | kevin-zhangsen/badam | da680bf8669722b5bc922381537bc4762fa5c228 | 6823f7dcd7c1b54c3b38edeffe59c16317598a2c | refs/heads/master | 2020-04-01T13:43:03.300155 | 2015-10-29T01:07:46 | 2015-10-29T01:07:46 | 45,371,347 | 2 | 0 | null | 2015-11-02T04:02:50 | 2015-11-02T04:02:47 | null | UTF-8 | Python | false | false | 7,858 | py | __author__ = 'nash.xiejun'
import os
class OperationType(object):
CFG_ALL_IN_ONE = 'cfg-all-in-one'
CFG_HOST_NAME = 'cfg-hostname'
DEPLOY_CASCADING = 'deploy-cascade-openstack'
DEPLOY_HYBRID_CLOUD = 'deploy-hybrid-cloud'
class EndpointType(object):
COMPUTE = 'compute'
VOLUME = 'volume'
VOL... | [
"nash.xiejun@gmail.com"
] | nash.xiejun@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.