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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3a313ab15b3f7e0d84fb3d680f99f1286426f1d8 | 22732060163036dedd2413c621b885bd2d0c2361 | /loss.py | 04f3a39cb2387dd577527adcc73165e9aeacf63e | [] | no_license | choujujua/myProject | b1119afbf3667ccc45a856a6ce93b30dd38abc3b | 31b18d70f823f419e16040e64b539718beeed401 | refs/heads/master | 2023-07-13T22:54:10.320306 | 2021-08-23T13:08:45 | 2021-08-23T13:08:45 | 396,321,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | import torch.nn as nn
def get_loss(pred, target):
bce = nn.BCELoss(pred, target)
return bce
| [
"1215051195@qq.com"
] | 1215051195@qq.com |
07587773169543b5934b85d5235a792e92efd751 | eef41f047b357747d32ca1313e245fbbdabf52f5 | /lint/DigitsCount.py | 454f12fa83d8e4a97940d73a3de5f7c25ac82654 | [] | no_license | Sri0405/Algos_DS | 65d58e789f2dadd85d14ed37042da9acc7b7b581 | beeb1cfaa2a3ecd490a60dacbe8f5398a5c8fd1c | refs/heads/master | 2021-01-23T22:31:51.874941 | 2016-01-04T21:37:25 | 2016-01-04T21:37:25 | 42,870,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | __author__ = 'sridhar'
class Solution:
# @param k & n two integer
# @return ans a integer
def digitCounts(self, k, n):
res = 0
for i in range(n + 1):
string = str(i)
string =list(string)
print string
res += string.count(str(k))
retu... | [
"sridharb@buffalo.edu"
] | sridharb@buffalo.edu |
060606488502548c6affe994eaa7d8d0fd80c047 | 32c1b207b9a890580b5af2456467cba209fd983d | /django_auth/django_authapp/urls.py | 7cee9a80a0f29ca533e433662a781cf4afdf48e0 | [] | no_license | pushpswati/my_project_jwt | d3968ced7eb0359c180fb7dbbb9a0079968a956f | d6929b98643d1cdf16fb3b9bcc02a2955baf17d7 | refs/heads/master | 2020-03-26T02:29:45.509269 | 2018-08-11T19:40:51 | 2018-08-11T19:40:51 | 144,412,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | from django.conf.urls import url
from .views import CreateUserAPIView
urlpatterns = [
url(r'^create/$', CreateUserAPIView.as_view()),
url(r'^update/$', UserRetrieveUpdateAPIView.as_view()),
]
| [
"pushpswati@gmail.com"
] | pushpswati@gmail.com |
65e0ac96fa03bc4c5d8b73113cbf7696a1137df2 | 958685165bfeb4122cc3473659a6d0c89c5cae95 | /crea8s_warehouse/stock.py | 784d425ff8259ded6339e857f54c984518363ce3 | [] | no_license | tringuyen17588/OpenERP-7.0 | 44efee7735af65d960c5adb4b03a1a329f5c4a57 | 2486261e4d351d4f444ec31e74c6b0e36ed2fb82 | refs/heads/master | 2021-01-10T02:45:24.320726 | 2016-02-19T06:05:21 | 2016-02-19T06:05:21 | 52,064,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,556 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"tri@crea8s.com"
] | tri@crea8s.com |
ebfd68dbb4a458dad9d13347e978225cc33202c3 | 35d52eb779e9ce971f75b764cad37bbaa15640ef | /data_process/dataset_split.py | 109825f5108aff6080ca60dc60e739a6917460b0 | [] | no_license | eumenide/BugLocalization_single | 16d32694a64b76ee1f1981cb126210712497eef1 | 1d2003371ceb822a6dbd61fc2d70778e07ccd0f6 | refs/heads/master | 2020-04-23T02:10:27.973949 | 2019-04-08T08:10:58 | 2019-04-08T08:10:58 | 170,837,284 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,601 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
import logging
import json
import numpy as np
import pandas as pd
logger_main = None
main_dir = '../datasets/'
project_name = 'aspectj'
project_prefix = 'org.aspectj/'
ratio_train = 0.6
ratio_test = 0.2
ratio_valid = 0.2
logging.basicConfig(format='%(asctime)s : %(leve... | [
"eumescan@qq.com"
] | eumescan@qq.com |
05328d889b2bd5b2aac460432ec80864da0f8d26 | a61fc1f38d96c3344b2842130483f18869d6ee9a | /garbledcircuit/degarbling.py | 36515a5b9e2c84f78a4c5fbcd9277a8b2c8bdcd1 | [
"MIT"
] | permissive | babak1369/TemplateSecurity | 808ac391668bbc67fe5e833f8fa705c9f21ca90d | 3b4aa70d51e02f3fa0d99e2e068cadd7a865baf0 | refs/heads/master | 2020-12-20T22:52:17.218472 | 2020-02-20T23:33:29 | 2020-02-20T23:33:29 | 236,232,173 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,126 | py | import numpy as np
def group_degarbling_( encrypted_table, given_keys,circuit,security):
batch_size = given_keys.shape[0]
for i in range( circuit.shape[0]):
key1 = given_keys[:, circuit[i, 0]]
key2 = given_keys[:, circuit[i, 1]]
row = 10 * key1[:, security] + key2[:, security]
... | [
"babak@tripleblind.market"
] | babak@tripleblind.market |
7093b6aa80bcb85ef1101ee34c3c1c300ed44f2d | 8c57cd68dc7b690cd67f872286191b938ed94dd9 | /djangonautic/articles/urls.py | f1d3f5f2f11943c88a1653d95961d4f60c0df5f0 | [] | no_license | bunnydev26/django-netninja | 6a7f8d8cc9e54be093325b22d47c0881218cd161 | 1d2f1f50f7b5cceb9420199f813b47bad9d8cb8e | refs/heads/master | 2021-05-14T12:36:47.299230 | 2018-01-18T18:42:51 | 2018-01-18T18:42:51 | 116,412,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | from django.conf.urls import url
from . import views
app_name = "articles"
urlpatterns = [
url(r'^$', views.article_list, name="list"),
url(r'^create/$', views.article_create, name="create"),
url(r'^(?P<slug>[\w\-]+)/$', views.article_details, name="detail"),
]
| [
"amithapa1994@gmail.com"
] | amithapa1994@gmail.com |
6801cdfd546e4d6267fe06cd6e03cbe17529a639 | bde607d5c75179861cd1bae62fa40861b984ee4b | /datalive/datalive_cust_veh/migrations/0038_insurance_insurance_accident_phone.py | 17b494fe3e8628616fe39944ae984d06b99775da | [] | no_license | simba999/Geofence-project | 1658f1473b1b2a554607596872448928c1ccac77 | 7c01b55ff0ff3537fd63ea10182b12c5e1f107fa | refs/heads/master | 2021-03-31T00:51:57.811563 | 2018-03-08T19:22:12 | 2018-03-08T19:22:12 | 124,434,299 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-12-12 21:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('datalive_cust_veh', '0037_insurance_address'),
]
operations = [
migrations.... | [
"oliverking8985@yahoo.com"
] | oliverking8985@yahoo.com |
b6742b1202739ec60419f8f23681a7bb827e3aa0 | 8fbcb5eb7a527b700486ec161c09225dfdd30bbb | /Actividades/AC20/14632152_11633905.py | 47b2a52023588612eeeb6b43f2633acc9a7ee741 | [] | no_license | rjherrera/IIC2233 | 388eae95ed9a32e2de7239f4c99277b2c01f5223 | 6637ff92ee225092b7a598d765012153c39713ee | refs/heads/master | 2021-01-21T14:38:50.939337 | 2015-12-10T22:21:32 | 2015-12-10T22:21:32 | 95,313,145 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,535 | py | from PyQt4 import QtGui, uic
from calc_financiero import calcular_jub
form = uic.loadUiType("hexa.ui")
class MainWindow(form[0], form[1]):
def __init__(self):
super().__init__()
self.setupUi(self)
pixmap = QtGui.QPixmap('logo_argentum.png')
self.label_15.setPixmap(pixmap)
... | [
"rjherrera@uc.cl"
] | rjherrera@uc.cl |
4ff6afbe261b2b15be7761df1e57a2dac8e380b1 | ef8ac4dfb73d346a8fe1b7fef18d9a61cc91269c | /algo/gen_algo/commons.py | 096c99526aabf2e98d61ae668c296a69eb1125c8 | [] | no_license | smarttransit-ai/EnergyOptCode-AAAI | 4302ca3ed009b5cecd8139f26e5c653c134e1d1e | 8964dbbde64b2cb9979b5d43223c482da6aca801 | refs/heads/master | 2023-06-08T20:51:28.132956 | 2021-07-06T20:54:51 | 2021-07-06T20:54:51 | 294,603,988 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,403 | py | # -------------------------------------------------------------------------------- #
# SEPARATED BUILDING BLOCKS OF GENETIC ALGORITHM #
# -------------------------------------------------------------------------------- #
import random
from datetime import datetime
from algo.greedy.Gre... | [
"asivagnanam@uh.edu"
] | asivagnanam@uh.edu |
0eb1b9c4b0eafc6dede86454f62bbe5133f81b0b | 53ccfb6b91d9387d996ff4d5ea9f228df7a72f5e | /exercise/migrations/0017_auto_20191028_1730.py | 4e5a09a5ecb8ae527b23f77742d77ab02478bcd2 | [
"MIT"
] | permissive | cybsafe/phishtray | 74d631949da1cb3189506da7e6e8bfb1ead99b89 | 767a2d5af0dd3135b4bfd634711edbdd649e1e75 | refs/heads/master | 2022-12-15T16:35:29.881042 | 2022-12-09T11:53:05 | 2022-12-09T11:53:05 | 134,699,570 | 2 | 11 | MIT | 2022-12-09T11:53:45 | 2018-05-24T10:28:15 | Python | UTF-8 | Python | false | false | 730 | py | # Generated by Django 2.2.6 on 2019-10-28 17:30
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('exercise', '0016_auto_20191025_1624'),
]
operations = [
migrations.AlterField(
model_name='exer... | [
"noreply@github.com"
] | noreply@github.com |
5d90c7c8469e0b914663c45f3b039bfd1e2d49f4 | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/3/ising2d_microstates_20200505224503.py | 7e59314942b34605b3e6386332a64b58176c61ce | [] | no_license | jearistiz/Statistical-Physics-Projects | 276a86407b32ded4e06b32efb2fadbd8eff8daed | d9c5b16a50856e148dc8604d92b6de3ea21fc552 | refs/heads/master | 2022-11-05T03:41:23.623050 | 2020-06-28T06:36:05 | 2020-06-28T06:36:05 | 254,909,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,266 | py | # -*- coding: utf-8 -*-
from __future__ import division
import os
from time import time
import datetime
import collections
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.colors as colors
import pandas as pd
script_dir = os.path.dirname(os.path.abspath(__file__))
def save_csv(data, data_headers... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
2b71d246d5268f637c02d2e0d5046484889ecf61 | 1d0b9901e364ec064b03e7b8eb7f960e3d3a8915 | /demo/pca_demo.py | a8c32c09005110a2d0ad3da567522829bcecfa70 | [
"Apache-2.0"
] | permissive | JobQiu/PrototypicalNetwork | 9db272a802f2b0ca1cea7e66d01f34ef7ca419aa | b46c34f8847946c4cd41774f4c8ee87c3486474c | refs/heads/master | 2020-05-04T06:42:46.267661 | 2019-04-29T21:34:50 | 2019-04-29T21:34:50 | 179,012,012 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | import tensorflow as tf
inputs = tf.placeholder(tf.float32, shape=()) # type, shape, name
s, u, v = tf.svd()
| [
"congminqi@gmail.com"
] | congminqi@gmail.com |
69a816894a6ec40e31d2dbbb7971d5636797f545 | f97cb743b5066538428584dcae3f986dce926ad2 | /src/data/make_3D_simulation-trans.py | a47b5fee89d9008f71ec36d6555519aae9a59dbe | [
"MIT"
] | permissive | jeammimi/replication_yeast | 0769f0d943e96b994c2d517199191796cf807fdf | 8daaf17d9c85f67397ff2f11d1d27aaeb2455f91 | refs/heads/master | 2020-05-27T13:56:08.240027 | 2018-05-28T09:25:11 | 2018-05-28T09:25:11 | 82,554,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,452 | py | import sys
sys.path.append("./")
from replication.simulate_trans import simulate, load_parameters
import os
import json
import copy
import errno
import numpy as np
def make_sure_path_exists(path):
try:
os.makedirs(path)
except OSError as exception:
if exception.errno != errno.EEXIST:
... | [
"jeanmichel.arbona@gmail.com"
] | jeanmichel.arbona@gmail.com |
53bf9667ea8fb0efb9cff8568fb61d002e0f172b | 126dc9699be845b1f6957d4ffa6812dc9468770e | /line.py | 7aba147ecaf88fbf8b0e7d14e9bfbbab9739d0c9 | [] | no_license | yhoazk/CarND-AdvancedLine-P4 | bc5547a2b98c1a81e680eeac316df83f8f2e8faa | 81ca011638004000d7c347499c73c044fa5cdd23 | refs/heads/master | 2021-01-09T05:35:35.716245 | 2017-02-13T07:07:54 | 2017-02-13T07:07:54 | 80,797,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,150 | py | import numpy as np
from img_proc import *
import cv2
class Line(img_proc):
def __init__(self, side='l', debug=False):
super().__init__()
# was the line detected in the last iteration?
self.detected = False
# Number of frames to save
self.FRAMES = 6
# x values of the... | [
"yhoazk@gmail.com"
] | yhoazk@gmail.com |
44deee25bd721ba3b1e5f31587692afa7f3bce16 | 3c73609eea12d6784ffc0be5acc6994cda19dc57 | /Codeforces Difficulty 500-700/749ABachgoldProb.py | 4cefb4124f4f1af645594d719bbdb2a464837732 | [] | no_license | TanveshT/Competitive-Programming | 0cf7a8ebc20a74cb6fd8505e67fbfec5bac6b8c2 | 47acc0a2af2711c86bb0da06e961677a8ec1e7d3 | refs/heads/master | 2022-12-19T01:44:46.033633 | 2020-09-25T06:57:23 | 2020-09-25T06:57:23 | 258,095,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | n = int(input())
result = ''
if n%2 == 0:
result += ' '.join(['2'] * (n//2))
else:
result += ' '.join(['2'] * ((n-2)//2))
result += ' 3'
print(n//2)
print(result) | [
"tanveshtakawale26@gmail.com"
] | tanveshtakawale26@gmail.com |
02f8e1ccea30158e536df652d0d478878aae36ea | 35e07566801d95a2dc44b5d8039af3acb2bdff1e | /SortingAndSearching/FerrisWheel/s.py | b90924996a1f6c4b1d9c4979b07ca0db4d6e2ba8 | [
"MIT"
] | permissive | 0x5eba/CSES-solutions | 4c252a5bd62c232d7679521eb270517936fc35d2 | c18b66262f5dbef44b58d793f5185c3d0cf3a77c | refs/heads/master | 2020-06-30T19:48:25.633803 | 2019-11-22T10:33:32 | 2019-11-22T10:33:32 | 200,934,186 | 27 | 9 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | n, x = list(map(int, input().split()))
p = list(map(int, input().split()))
p.sort()
# print(p)
a = 0
b = len(p)-1
c = 0
while a <= b:
calc = p[b] + p[a]
if calc <= x:
a += 1
b -= 1
else: # calc > x
b -= 1
c += 1
print(c)
| [
"sbiollo@gmail.com"
] | sbiollo@gmail.com |
16daeb56f11614418b4f30863ce071178a5e1432 | 7fb22e6d4f67fad14d6b1abab2c7484c1ce749fc | /lab-1/test_suite.py | a41bf52435a55caf57b43abef740a1f78f0f3df6 | [] | no_license | vojtakopal/npfl123 | fe4f67a1ddf30b6842f84dbbcb5ed2b1e9d3cc6a | cbe0f8db5c43cabf9489a32f1447ae5c790a8550 | refs/heads/master | 2020-04-28T01:54:24.473269 | 2019-03-11T22:44:02 | 2019-03-11T22:44:02 | 174,877,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | from distance import dist, wer
print(dist(hyp='', gold=''))
print(dist(hyp='a a a', gold='a a a'))
print(dist(hyp='a b', gold='a a a'))
print(dist(hyp='a b c a', gold='a a a'))
print(dist(hyp='a b c a d a a', gold='a a d a'))
print('zero wer', wer(hyp='a a a', gold='a a a') == 0)
print('si wer', wer(hyp='a b', gold='... | [
"vojtech.kopal@gmail.com"
] | vojtech.kopal@gmail.com |
718d72ed56398bf36ff79851a900d5fc1dc3117c | 1864af9eda58307024acbf7fe5d5f2f39f435e44 | /module_1/python/reverse_list.py | c8c318922bfd95015188f65af585098c10945cc5 | [] | no_license | vprusso/6-Weeks-to-Interview-Ready | c393bbfe071d97cba12f0f0668e53a25fb25986f | 8105e1b20bf450a03a9bb910f344fc140e5ba703 | refs/heads/master | 2021-08-11T04:48:34.252178 | 2020-08-09T22:54:55 | 2020-08-09T22:54:55 | 210,997,768 | 6 | 2 | null | 2019-09-26T04:12:44 | 2019-09-26T04:12:44 | null | UTF-8 | Python | false | false | 1,578 | py | """
Title: Reverse linked list.
Problem: Reverse a singly linked list.
Execution: python reverse_list.py
"""
import unittest
class ListNode:
"""Basic node class for linked list."""
def __init__(self, x):
self.val = x
self.next = None
def reverse_list_iterative(head: ListNode) -> ListNode:... | [
"vincentrusso1@gmail.com"
] | vincentrusso1@gmail.com |
831fa7afce258eaefe2d09b668885866549fd4c9 | 99aa9b2be5199bf1b2f670bc9bb1a5bc7cec1c89 | /BFS_topological/L207_Course_schedule.py | 5fdbab7f22cbf7d4e144ae1cf2db55a5f348e331 | [] | no_license | SimonFans/LeetCode | 5196e85dec886b18cb2350419a4a2ae3c751966c | 0a34a19bb0979d58b511822782098f62cd86b25e | refs/heads/master | 2023-02-08T00:49:30.916655 | 2023-01-31T06:32:32 | 2023-01-31T06:32:32 | 145,938,196 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,585 | py | There are a total of n courses you have to take, labeled from 0 to n-1.
Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as a pair: [0,1]
Given the total number of courses and a list of prerequisite pairs, is it possible for you to finish all course... | [
"noreply@github.com"
] | noreply@github.com |
8c7a3e6b0fb2244bf9a051a5e0fd52af9b05a262 | 3449e5511dc8da19fc841af767dbe8d216e26ffb | /mmServer/api/views/transaction.py | d862b5b36594d84932e91b3afcccfc5f6ca247cd | [] | no_license | erikwestra/mm-server | 8ba2af0ee7acd372949589b6f8d429099a38ea58 | bead1ad439541211e33fdc60264a869f18a99ae9 | refs/heads/master | 2021-01-10T21:14:23.636707 | 2015-05-27T21:22:54 | 2015-05-27T21:22:54 | 28,573,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,226 | py | """ mmServer.api.views.transaction
This module implements the "transaction endpoint for the mmServer.api
application.
"""
import logging
from django.http import *
from django.views.decorators.csrf import csrf_exempt
from django.db.models import Q
from django.conf ... | [
"ewestra@gmail.com"
] | ewestra@gmail.com |
b71f1123f83ffaf3ce2f566d6804e6a8c649113d | c277b5c4ea35587c69e19c6a40ec68437edd0b95 | /inheritance.py | 959ad0f7fe8b0fe674e5c65182b27c9759910c73 | [] | no_license | DavidGilkeson/python-basics | ce23d747e40ac3e38de5f806a7040751f67548c6 | afac606fb6988828ebfb12aff4346420d210663f | refs/heads/main | 2023-03-11T09:22:18.239175 | 2021-02-27T23:58:47 | 2021-02-27T23:58:47 | 326,065,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,062 | py | # Python Inheritance
# Inheritance allows us to define a class that inherits all the methods and properties from another class.
# Parent class is the class being inherited from, also called base class.
# Child class is the class that inherits from another class, also called derived class.
# Create a Parent Class
# A... | [
"davidgilkeson8@gmail.com"
] | davidgilkeson8@gmail.com |
9626dbf79437c068cb995a80b57e8c2a45796fd1 | 539193367db78df5895770b24963e249e3f57557 | /sys.py | 71061208ccdef296d643016390140feade887c0f | [] | no_license | jackieturkey/python | e1a7b51888e91e3eb2077a300623c10610c3dcd9 | b8667f63e99ee155dbaa5aebcd9be7a171f93297 | refs/heads/master | 2021-09-02T23:04:50.787540 | 2018-01-04T02:00:23 | 2018-01-04T02:00:23 | 116,105,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
' a test module'
__author__ = 'Jackie Ji'
import sys
def test():
args = sys.argv
if len(args)==1:
print("it's a beautiful night")
elif len(args)==2:
print('hello,%s!' % args[1])
else:
print('too many args')
if __name__ == '__main_... | [
"jijiawei@shadt.com"
] | jijiawei@shadt.com |
9132da0e6d4babe5a123bb4b0ccc7a8bb1cb97e0 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_117/505.py | 1738dd39c2a21f537d1057b58316f37a1bfb3b13 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | #!/usr/bin/python3
from common import *
def testcase(x):
n, m = readintegers()
a = [0] * n
for i in range(n):
a[i] = readintegers()
row_maxes = [0] * n
col_maxes = [0] * m
for i in range(n):
for j in range(m):
if a[i][j] > row_maxes[i]:
row_maxes[i]... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
77b053e29f462f7b34cceef50edc285d2fda168e | 6984fd7eca0e35087b50c245a2c4f55b3b1c0964 | /Miscellaneous/temp.py | 17dce8965129e1e749f6cd7400e2bafb9944c7fc | [
"MIT"
] | permissive | junpenglao/Planet_Sakaar_Data_Science | 20620b5b0de0705fd7f7dcf0a477745325fa43c1 | 4366de036cc608c942fdebb930e96f2cc8b83d71 | refs/heads/main | 2023-04-13T15:06:08.128262 | 2023-04-05T08:56:32 | 2023-04-05T08:56:32 | 127,780,588 | 55 | 14 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | import pymc3 as pm
import numpy as np
import matplotlib.pylab as plt
data = np.ma.masked_values([42] * 100 + [-1] * 100 + [42] * 100, value=-1)
with pm.Model() as model:
s = pm.GaussianRandomWalk('s', sd=1e-2, shape=len(data))
n = pm.Normal('n', mu=pm.math.exp(s), observed=data)
trace = pm.sample()
plt.... | [
"junpeng.lao@unifr.ch"
] | junpeng.lao@unifr.ch |
8bdd2497a97572bed77d320f0ad608ddf2546bc8 | e3e5ea93a45ae8fcd49cae3e16ec54cff522df79 | /bpnn_cls.py | 0e8da12bcea18055b4b9e250981203702188c659 | [] | no_license | Lukaschen1986/mla_test | 7539f5cbd07c8fcd28b5164d444ba9e20445c54d | c6309b22bc21ce84f1ace8969f2735adbc53a2bd | refs/heads/master | 2021-06-08T12:30:09.751544 | 2021-05-28T13:11:51 | 2021-05-28T13:11:51 | 99,296,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,951 | py | # -*- coding: utf-8 -*-
# http://scikit-learn.org/stable/modules/neural_networks_supervised.html
from __future__ import division
import os
os.getcwd()
import numpy as np
import pandas as pd
import random as rd
from sklearn import datasets
from sklearn import linear_model
from sklearn.neural_network import MLPClassifier... | [
"noreply@github.com"
] | noreply@github.com |
257d50fce51c9ec884492fd4f1d6d0b538eceef6 | 99078b5d47a6b9bb476bdf27cd466a4fb1e78538 | /src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_template_builder.py | af4017fec40e0af9590fe3545f07422bc14fe51f | [
"MIT"
] | permissive | enterstudio/azure-cli | 949c54464fbce7ff596665c6bcc3d4aeefe54b53 | b0504c3b634e17f1afc944a9572864a40da6bc18 | refs/heads/master | 2023-07-14T11:09:45.925689 | 2017-02-03T18:26:09 | 2017-02-03T18:26:09 | 81,024,949 | 0 | 0 | NOASSERTION | 2023-07-02T22:24:59 | 2017-02-05T21:53:49 | Python | UTF-8 | Python | false | false | 17,448 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | noreply@github.com |
70628ca85c8384d1653472822b2b2b4abdd6d5ca | c1821386649f0f9eba031492baa89cada05a2080 | /Face-emotion-recognition/model/resnet18.py | c4766435ec2540a86b52733dcb018dd6cb12cd49 | [] | no_license | 1193700079/contest | a1dbc3774fd100755bcead90b5822120a1a4c220 | ca7d55789dbc1cb26c4cd908272de9beef2e17fc | refs/heads/main | 2023-07-08T13:53:22.027740 | 2021-08-15T08:10:49 | 2021-08-15T08:10:49 | 396,265,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,190 | py | from numpy.core.numeric import outer
import torch.nn as nn
import math
import torch.utils.model_zoo as model_zoo
import torch.nn.functional as F
model_urls = {
'resnet18': 'https://download.pytorch.org/models/resnet18-5c106cde.pth'
}
def conv3x3(in_planes, out_planes, stride=1):
return nn.Conv2d(in_pl... | [
"1193700079@qq.com"
] | 1193700079@qq.com |
36c478ede922066342b964075b4aae13192218e1 | 0be4e42ea2a6f66c7a170b1b558b60b3e69167e6 | /urHct/UR201022/rbctrl/mpyctrl.py | 62b0212c76122537aafd87c2f578a96db4a50da0 | [] | no_license | oseongjin/urHCT | 0e249040d6c587ebd7cd768114ff4bbb85cce5fe | c9607f67f078b046dfef28d65e2a8e9f6fdea00c | refs/heads/master | 2023-02-19T03:30:18.156602 | 2021-01-18T03:31:32 | 2021-01-18T03:31:32 | 330,543,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,979 | py | import sys
import serial
import argparse
from time import sleep
parser = argparse.ArgumentParser(description='Robot Control')
parser.add_argument('--act', type = str, default ="read", help='Work Value')
parser.add_argument('--sen', type = str, default =None, help='Sensor Move, "move"')
parser.add_argument('--wing', ty... | [
"ooohhhjim@naver.com"
] | ooohhhjim@naver.com |
78fd1c1b9c6255b86eb86fa6400f1a03645d11c2 | 76fc0abbb123a6e15b78e87733dab764c4436d6f | /__Mengo/app_relf/back/videos_backend/settings.py | bdae99a7dc5ef6cc4456e3823edb2591141c9a54 | [] | no_license | paskalk/sweatshop | 4c76e4234f2674d410a947b246386d95fbba69c0 | e70df73f8aa4c65f9e0272e22d64eefd50d13c80 | refs/heads/master | 2022-12-24T15:44:59.385833 | 2020-09-26T14:54:10 | 2020-09-26T14:54:10 | 289,920,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,268 | py | """
Django settings for videos_backend project.
Generated by 'django-admin startproject' using Django 3.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pa... | [
"paskalk@gmail.com"
] | paskalk@gmail.com |
60df2de014de6a9da38b852a02395c7365e9f2c1 | 41fd80f9ccc72a17c2db16b7019312a87d3181e8 | /zhang_local/pdep/network509_1.py | 459fb9592378991924c9f90b3e693788fa829b6c | [] | no_license | aberdeendinius/n-heptane | 1510e6704d87283043357aec36317fdb4a2a0c34 | 1806622607f74495477ef3fd772908d94cff04d9 | refs/heads/master | 2020-05-26T02:06:49.084015 | 2019-07-01T15:12:44 | 2019-07-01T15:12:44 | 188,069,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97,706 | py | species(
label = '[CH2][C](OO)OC[CH]CC(1239)',
structure = SMILES('[CH2][C](OO)OC[CH]CC'),
E0 = (169.452,'kJ/mol'),
modes = [
HarmonicOscillator(frequencies=([360,370,350,3025,407.5,1350,352.5,2750,2783.33,2816.67,2850,1425,1450,1225,1275,1270,1340,700,800,300,400,3000,3100,440,815,1455,1000,275... | [
"dinius.ab@husky.neu.edu"
] | dinius.ab@husky.neu.edu |
90e59adfbd25d683cc19cc3009db2d452bccb47f | 6a60965da58643ae0d096bd8556952bc3e5cad4c | /2IWIL_Repo/utils.py | aaafaa97cb864a8e09398ab9748b8f7caba5bfb0 | [] | no_license | DhruvaBansal00/DMP-Imperfect-Demonstrations | b0db942670eac83130d91b51d27d3c90c2184b24 | c21ef46e70ce5799caa9ef35222bb5a5570920e9 | refs/heads/main | 2023-04-13T18:07:13.516505 | 2021-04-30T06:15:05 | 2021-04-30T06:15:05 | 353,177,277 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,632 | py | import math, os
import numpy as np
import torch
def normal_entropy(std):
var = std.pow(2)
entropy = 0.5 + 0.5 * torch.log(2 * var * math.pi)
return entropy.sum(1, keepdim=True)
def normal_log_density(x, mean, log_std, std):
var = std.pow(2)
log_density = -(x - mean).pow(2) / (
2 * var)... | [
"dbansal36@gatech.edu"
] | dbansal36@gatech.edu |
903d5b1cbb67d4fc22d60865ccf6289d5ccaf4f1 | 1a7c65219907f61b97fa9bc3e9765acef87e8069 | /lib/radio_station_list.py | f93fb9a094cf20751c39d08d695c50b4aa6156da | [
"Apache-2.0"
] | permissive | radiodns/RadioVisDemo | ea1136d9aca9ffbba2f424e940e07dad71eb4d71 | e6c88f07e76ba0567f02f39ce2bcdea09836c0ce | refs/heads/master | 2022-03-31T08:16:28.606029 | 2020-01-03T15:39:00 | 2020-01-03T15:39:00 | 267,900,120 | 1 | 0 | Apache-2.0 | 2020-05-29T16:07:27 | 2020-05-29T16:07:27 | null | UTF-8 | Python | false | false | 3,599 | py | # Copyright 2019 British Broadcasting Corporation
#
# 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 agree... | [
"chris.needham@bbc.co.uk"
] | chris.needham@bbc.co.uk |
a4f050d3fe0117d1d1e5b940b06dad2b44faa936 | 9ab3123c3560bf505e09ba297421850ab79db346 | /IndianPines/2N/Concatenated/BandSplitExperiments/25-75/testmodels.py | 13ae9177f74545658f0b5b2980ae6542ccd0499c | [] | no_license | GuoShuaiXu/featurehallucination-cgan | 3d8a04b54f2fff282a49a9e1722195a911f8b338 | 251fae66b34c427d793023be199962bf402e8150 | refs/heads/master | 2023-03-17T01:19:35.216074 | 2020-09-09T15:23:07 | 2020-09-09T15:23:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,565 | py |
n_features = 200
latent_dim=100
import scipy.io as sio
import numpy as np
np.random.seed(666)
import tensorflow as tf
#from tensorflow.math import reduce_sum
#import tensorflow.math
import os
from keras.backend.tensorflow_backend import set_session
config = tf.ConfigProto()
os.environ["CUDA_VISIBLE_DEVICES"]="0"
... | [
"avinandanbanerjee99@gmail.com"
] | avinandanbanerjee99@gmail.com |
c4eba0ea3affcd98a04f01f8e015ad252e0b2ada | 28a778d43fad52fb985538edb50f5ed3b1a6ca60 | /tests/__init__.py | 7cbe0eac724caa7edaabdc1910b3c050ae293a73 | [] | no_license | frayandy/movies | adf7812f045bce17234e043b1000b186578fe87b | 43b6311e7bfa32c064e50e11492a195ceb5156e5 | refs/heads/master | 2021-02-08T14:05:03.992295 | 2020-03-01T14:28:42 | 2020-03-01T14:28:42 | 244,159,743 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | from unittest import TestCase
class FakeResponse:
def __init__(self, data=None, status_code=None):
self._data = data
self._status_code = status_code
@property
def status_code(self):
return self._status_code
def json(self):
return self._data
class BaseTestCase(TestC... | [
"pandrii@deloitte.com"
] | pandrii@deloitte.com |
e514dc3beddc46257b3b11f8b6d04f6df6b2a0b9 | dcdd5ce6a622bd9bb5980eafed99f963b281a84e | /com500/items.py | 2c1cf0b13c30e1af88226c8c4653bc1f81bfc59c | [
"BSD-3-Clause"
] | permissive | just4id/com500 | 3777690354e394b9b3c209142272a4d08d9c2555 | 16b24505f64c1332f23f72a8539e89f1b65edd69 | refs/heads/master | 2021-01-17T14:34:40.639212 | 2017-12-07T06:33:58 | 2017-12-07T06:33:58 | 84,093,139 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class Com500Item(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
pass
| [
"ming-gui.zhang@hp.com"
] | ming-gui.zhang@hp.com |
fdf130ce99c963365259ac1145667c88ec5d0f9b | db733fd367bb7becfb82d9a84514576e3dab4263 | /Project2/Code/IO/code_to_create_csv_files/createDummyFiles.py | 6083a7cf97b371150fa35e0e80ac28831f5b53e3 | [
"MIT"
] | permissive | LHagendoorn/TeamGreaterThanBrains | 07ebfa834d6ffd880adba6e9f766c4c88cf7d0e9 | 78b2417c90116336ac02036d4c148eb221f73830 | refs/heads/master | 2022-05-01T20:07:32.187785 | 2016-06-19T18:30:17 | 2016-06-19T18:30:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | '''
This script creates dummy csv files, by selecting the first 10 images from the traindata and putting their features, filenames,
indices and labels in separate csv files.
@author: Diede Kemper
'''
import pandas as pd
import csv
from itertools import chain #to flatten lists
#FEATURES
df = pd.read_csv('traindata_caf... | [
"diede.kemper.18@gmail.com"
] | diede.kemper.18@gmail.com |
26f76611c215781c36e6cc4a244cdd1c6af2e16b | a8e2c66b3ebadfc17ee9aee197b3f466534cee16 | /ytn11/tp/tp/middlewares.py | 1fc214e18a4f61ea17d33486d46c0fa18bf80064 | [] | no_license | yintiannong/98kar | 49b6db186a4543a7c50671df990bb491846c1a98 | 3863529f57e9d2d9bc1bdf8188916e25ad289db0 | refs/heads/master | 2022-01-07T05:49:31.566453 | 2019-05-22T07:04:45 | 2019-05-22T07:04:45 | 187,794,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,589 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class TpSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy acts ... | [
"1532295578@qq.com"
] | 1532295578@qq.com |
2fd17d039640ebcfe7513d8756a6c6da16c64ad5 | ccac97b8b67dcef16b9a10b7952ff08ae010967d | /My-Music/DjangoAPI/manage.py | 8bc17765087c5d76b05bebfe8813efee2fc54c69 | [] | no_license | NishantKr97/Django-Projects | fb21940c7c6f61377a62ecd28546f94c24bf64a5 | af605faffe13350efbd67deca098622c02d60f46 | refs/heads/master | 2022-11-28T07:53:42.108926 | 2018-02-27T06:44:36 | 2018-02-27T06:44:36 | 121,529,507 | 0 | 1 | null | 2022-11-14T19:15:26 | 2018-02-14T15:54:54 | Python | UTF-8 | Python | false | false | 541 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "DjangoAPI.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Ar... | [
"nishantkr1997@gmail.com"
] | nishantkr1997@gmail.com |
5feecad72644044e417b8b7c9516a67d724261ba | 634136cf13a2486c2ed38d2e1e89241c2264bfab | /CSV Pull.py | 55583e275e10436f57ef8a679757e62bd72c17cc | [] | no_license | Ebenezer319/Data-Pull | db4986848cfdcc60f3d3655c84ddcd5202e59250 | 5cd5226e15239454fcfb2c847160597df4453722 | refs/heads/main | 2023-06-24T17:51:50.159803 | 2021-07-28T11:18:20 | 2021-07-28T11:18:20 | 389,838,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,912 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 26 21:33:09 2021
@author: ebenezer.an
"""
import requests
import pandas as pd
import string
import numpy as np
# In[Class for Pulling Data]
class DataPull:
def __init__(self, lowercase_letters, path):
self.lowercase_letters = lowerca... | [
"noreply@github.com"
] | noreply@github.com |
e54d67ed93f891ad51db0dedf210b96f8d9ac83f | ba29f289c7ca90ebb9ee212b17883f403980548a | /data_assembler/assemble_diffusion_features.py | 3915b6a04da9ea08478f6ea04caeb790dbf98294 | [
"MIT"
] | permissive | liuchyi/SZZUnleashed | d9bae533e9dec56174f5f9c66045d2d759d1eec5 | 2f2bec04ad7199ecf55f6f3daec25dd1b888caab | refs/heads/master | 2021-04-02T00:20:38.127799 | 2020-04-02T12:33:04 | 2020-04-02T12:33:04 | 248,223,655 | 0 | 1 | MIT | 2020-03-18T12:19:31 | 2020-03-18T12:19:30 | null | UTF-8 | Python | false | false | 7,790 | py | """
Script for extracting diffusion features from a git repository.
"""
__author__ = "Oscar Svensson"
__copyright__ = "Copyright (c) 2018 Axis Communications AB"
__license__ = "MIT"
import csv
import os
import sys
import time
from argparse import ArgumentParser
from multiprocessing import Process, Manager, cpu_count
... | [
"oskars@axis.com"
] | oskars@axis.com |
cc35c7e80f05a9082a044b997421fc00c8c1701f | ad12c09caef6c15eb8224fb60615f34ccfaa351c | /gpib_measurement/cap_balancing/pilawa_instruments.py | 7f732ea7c011bd24726bbaf0d3c574a328f61eea | [] | no_license | leileibill/research-python | 330308a0c4379a8597caee8b58c7f4ab7310a2c2 | f755292a2ab948aeef872cd8e7d57e3c2df816c4 | refs/heads/master | 2021-01-12T12:36:13.769755 | 2019-06-24T04:30:29 | 2019-06-24T04:30:29 | 69,612,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | print '================================================='
print 'Pilawa Instruments 1.160627'
print '-------------------------------------------------'
print 'Pilawa Research Group'
print 'Department of Electrical and Computer Engineering'
print 'University of Illinois at Urbana-Champaign'
print '======================... | [
"leileibill@gmail.com"
] | leileibill@gmail.com |
afdbb74bf6a441dd4f43be3b7078256719c71ce2 | a58af2041b34dc59721a05519ae4f804a43b622d | /Python/Random.py | 388af6ab934a94fd31c32cbe06a33d78dcaf7c82 | [] | no_license | Harshit-Saxena/Project | db98913a016a18c85ad9e22490ff2423e22129ca | f05c6a6a0b693fc45a6ce12b6c89fd8df0f13bc5 | refs/heads/master | 2023-07-08T18:13:49.941543 | 2021-08-11T13:38:35 | 2021-08-11T13:38:35 | 395,012,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | import random
# to get 2 random num btw 0 and 1
for i in range(2):
print(random.random())
print()
# to get 2 random num btw 10 and 20
for i in range(2):
print(random.randint(10,20))
print()
# to get a random choice from the list
food = ['Corns','Ice cream','Pasta','Noodles','Spring Roll']
order = random.c... | [
"77536409+Pulkit-s21@users.noreply.github.com"
] | 77536409+Pulkit-s21@users.noreply.github.com |
49fd1384dc8ba7086de556d2e7d0271db0bea020 | 7eb5f22ef681b7f8251bc52c239995566a78a47c | /Statistical_Methods_AI/AS2/q1/letter_classification/letter_classification_svm_submission.py | b0bab65b42fcc45035c8e90151d780d60949852f | [] | no_license | shyam671/Courses | f713eb83305293c1381b2a3f3b9c566ba0991916 | b13158a35634441733c5f73e34e25e4f3e566bad | refs/heads/master | 2021-04-29T23:11:44.156576 | 2018-02-14T19:00:31 | 2018-02-14T19:00:31 | 121,548,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,847 | py | """
Course: Statistical Methods in Artificial Intelligence (CSE471)
Semester: Fall '17
Professor: Gandhi, Vineet
Assignment 2: SVM using scikit-learn.
Skeleton code for implementing SVM classifier for a
character recognition dataset having precomputed features for
each character.
Dataset is taken from: https://archiv... | [
"shyam.r13@iiits.in"
] | shyam.r13@iiits.in |
b3bb8295e1f8097ef0bf5eb4415a84fdefcbdd3d | e19b87545bfec777fad2ed480f04d3aa6c716c3b | /Oppgave 8b.py | 81a07b551972d3015bd613858a37801ef713e810 | [] | no_license | sigvehamiltonaspelund/Oving_9 | a44f1cdb0a7f1504cacb47babbda447c4e8518ce | 4e9197a413cbbed16d809b885e21f3337764364e | refs/heads/main | 2023-08-24T12:00:32.499156 | 2021-10-24T11:43:47 | 2021-10-24T11:43:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Oct 23 16:47:22 2021
@author: sigve
"""
class Question:
def __init__(self,ask="", alt=[], rikt=""):
self.ask = ask
self.alt = alt
self.rikt = rikt
def __str__(self):
return(f"{self.ask},{self.alt}")
de... | [
"noreply@github.com"
] | noreply@github.com |
d09674f587f5f10c75b3a2ce6d2e616b645244d7 | 1b40b5b8ab173771b3d0a9b3a063fb1211c4178b | /Project 1/project1_ANN.py | 0a4b00e9dd6460ebfefbbccee0075421faed9f21 | [] | no_license | isazobu/Two-Project-ML-ANN | 741161f3974896de5b680ca773c8400a8a6f2b22 | 703f882a9caceb5b6a87fba744f97080cf6bc84d | refs/heads/main | 2023-02-10T00:13:25.026240 | 2021-01-06T14:59:23 | 2021-01-06T14:59:23 | 327,344,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py |
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('cars.csv')
X = dataset.iloc[:, 0:5].values
y = dataset.iloc[:, 5].values
# Feature Scaling
from sklearn.preprocessing import StandardScaler
sc_X = StandardScaler()
X = sc_X... | [
"noreply@github.com"
] | noreply@github.com |
25d4425d890768f1930bca1948224a2c53e95234 | 0868cc4bc47d0da986a4bdca9083b2509a7a36e8 | /extensions.py | e2e1710eed3fe0f583471bb24fb8986a4a4be640 | [] | no_license | zhaopengxin/Photo_management_website | de03881bf4613725bdb0ee1de7c2d9a658d53ea0 | a7fa91d23657988e22d41e4afb5c0a149959d3fc | refs/heads/master | 2021-01-18T22:15:59.941446 | 2017-03-08T23:24:07 | 2017-03-08T23:24:07 | 84,375,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,658 | py | import MySQLdb
import MySQLdb.cursors
import config
import re
import hashlib
import uuid
########## global variable ############
sequencenum = 30
########## general-use functions ############
def connect_to_database():
options = {
'host': config.env['host'],
'user': config.env['user'],
'passwd': config... | [
"zhaopengxin@ZhaomatoMacBook-Pro.local"
] | zhaopengxin@ZhaomatoMacBook-Pro.local |
f416a9d3a2e5d9a0b12ce4ab8714321d592176d1 | feb8c44a17ba6e9619c4063c20ce126f8d132c4f | /ex035.py | 7bac775fc2706da0150c9ac8420dd813acbcd8b4 | [] | no_license | moniqueds/FundamentosPython-Mundo1-Guanabara | e4b380d55bd892189ad072431146841d7bd1f8a5 | 79d0dfdcf0248e00cc261fb4d254118450565b2e | refs/heads/main | 2023-08-27T17:11:48.735157 | 2021-11-05T11:20:22 | 2021-11-05T11:20:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | #Desenvolva um programa que leia o comprimento de três retas e diga ao usuário se elas podem ou não formar um triângulo.
from time import sleep
print('-='*20)
print('Analisador de triângulos.')
print('-='*20)
sleep(2)
print('Digite na sequência os segmentos (medidas) para análise...')
sleep(2)
print('-='*20)
... | [
"noreply@github.com"
] | noreply@github.com |
07a7a2077d751678ee39b393f3af7b403554570b | e3fb176d1e641e67f28d0369a47b25aba02050d8 | /1. GUI features in OpenCV/drawing function in opencv.py | e3586e5ffed9588ec23decde387678aa52e64048 | [
"MIT"
] | permissive | Vibhugupta10616/OpenCv-tutorial | ec3547ae30252603e2f53bc77b9692ef3a7b8772 | 2fd0abb4c766b3c6525288b9232a1a27484aaea4 | refs/heads/master | 2022-12-21T19:42:22.221446 | 2020-09-24T16:51:36 | 2020-09-24T16:51:36 | 298,525,540 | 1 | 1 | MIT | 2020-09-25T09:17:54 | 2020-09-25T09:17:54 | null | UTF-8 | Python | false | false | 238 | py | import cv2 # python-opencv
import numpy as np
width, height = 800, 600
x1, y1 = 0, 0
x2, y2 = 200, 400
image = np.ones((height, width)) * 255
line_thickness = 2
cv2.line(image, (x1, y1), (x2, y2), (0, 255, 0), thickness=line_thickness) | [
"deepak008@live.com"
] | deepak008@live.com |
ad3bccd5f5c0938d4ef0c702293960cec7e513ff | 45bd50e1e63346f77a46c2a75d9bda8c19fe97de | /Basic Concept Zoning World Prelim 2 2019/Test Scripts/Zoning/ZoningShow.py | fad8d27b7d260c9f54284db7440e4057d7a3785f | [] | no_license | Hackin7/Space-Through-CoSpace | 40a5d8fad18c392dc3f2ae6f3f83f8ae290166a8 | d93541e8f0cd8b331ca8a179617ca4204ab43e3b | refs/heads/master | 2022-11-13T01:35:49.052934 | 2020-06-29T08:54:36 | 2020-06-29T08:54:36 | 222,223,987 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,671 | py | from tkinter import *
from tkinter.filedialog import askopenfilename
from PIL import Image
from PIL import ImageTk
from PIL import ImageGrab
from ctypes import windll #Makes app DPI Aware
user32 = windll.user32
user32.SetProcessDPIAware()
###Drawing Path
text_ids=[]
import sys,os
from sys import stdin, stdout
sys.pat... | [
"zunmun@gmail.com"
] | zunmun@gmail.com |
c60f86488c082f54ba820f45b8c5257da0055c7d | 50609b491ba8495e6688b2753c890e456b4c9171 | /94_Inorder_Traversal.py | 45f96abd1ade958d48625cc3a8a870d0f6b0b91c | [] | no_license | lokendra1704/LeetCode | cd83f4aa6ebe743f48b99af225eb5a7c9848d532 | 8035605f0666899981a4f61bfb74d2eb69f60de6 | refs/heads/master | 2022-12-23T19:42:38.107695 | 2020-10-07T22:10:16 | 2020-10-07T22:10:16 | 272,093,038 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | # Definition for a binary tree node.
# class TreeNode
# def __init__(self, val=0, left=None, right=None)
# self.val = val
# self.left = left
# self.right = right
from collections import deque
class Solution:
def inorderTraversal(self, root):
stack = deque()
result = []
... | [
"lokendrabairwa@gmail.com"
] | lokendrabairwa@gmail.com |
2a5b7da11ee0fe4c7f442ba49b502dab037f3ec9 | ab687f52033a05ec2998f4481ec09e86106f163a | /DHT11/node_modules/serialport/build/config.gypi | 53ae89376ad7902ab8f5945ae5eac520b5438f11 | [
"MIT"
] | permissive | vegetka/ArduinoWeb | 6daf742c51e8768527724d57c8fcf1f629612d44 | 11881575dd10e79a6a0cd3c84bf7b3e9d91904d1 | refs/heads/master | 2020-03-23T16:24:08.001601 | 2018-08-06T12:13:33 | 2018-08-06T12:13:33 | 141,807,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,696 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"debug_http2"... | [
"vegetka@gmail.com"
] | vegetka@gmail.com |
5d994d70ede0404961b4d942db36f3643bd9503f | 32990df5dec98f4774c9d75e5b5600099177595e | /Feden_Django/wsgi.py | 94d442ffb37a55530a9d936f03f80b74abc720bd | [] | no_license | feden2906/Feden_Django | f5f5b2d3abf51b202ca5cbc2852f240dc9695e30 | 9607711be1b99cdf53c4546ec6ff3d6295065d89 | refs/heads/master | 2023-05-05T01:40:50.226229 | 2021-05-24T18:33:58 | 2021-05-24T18:33:58 | 370,448,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for Feden_Django 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"beluh.c.s@gmail.com"
] | beluh.c.s@gmail.com |
c04e1e435a744f533b0944a0ea3134ef61116836 | dc9865587582f65e5be010a8a831972845c8dbb4 | /django_mri/analysis/utils/get_fsl_dir.py | af09a89d0ca61d4cb60c3ac84de9d587a485c39c | [
"Apache-2.0"
] | permissive | TheLabbingProject/django_mri | d31bd15613c82a55e2a42eba1fa3617e952e8b72 | 5b5ca1b119144d01e526825d2b2a2b87541b4d4a | refs/heads/master | 2023-04-07T03:22:09.366540 | 2023-03-29T08:18:01 | 2023-03-29T08:18:01 | 205,411,473 | 7 | 2 | Apache-2.0 | 2023-02-17T08:22:53 | 2019-08-30T15:42:45 | Python | UTF-8 | Python | false | false | 215 | py | import os
from pathlib import Path
def get_fsl_dir():
return os.getenv("FSLDIR")
def get_template_fa():
fsldir = Path(get_fsl_dir())
return fsldir / "data" / "standard" / "FSL_HCP1065_FA_1mm.nii.gz"
| [
"hershkovitz1@mail.tau.ac.il"
] | hershkovitz1@mail.tau.ac.il |
934c3e068918a7a0b5a3c3661e806411078d37be | 9123169180aa9b96bc733b68c3f2ac60797c02ad | /stores/generator.py | ce3c256e6a64ad79632e7b13d132584d253c433f | [] | no_license | info3g/Alomafit | 584e0929ab6260b2c68a0c30393175744bab768e | e4c94bfcbc26709fe34f20032646b76aa7294081 | refs/heads/master | 2020-09-09T09:05:39.923307 | 2019-11-13T08:24:07 | 2019-11-13T08:24:07 | 221,407,111 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,383 | py | import random
from stores.serializers import *
def updateProduct_factory(product, ignore_variant=False):
"""
Here we assume that product is partially filled as if its instantiated
when syncing with shopify.
it updates all product's variants with dummy validated values
an... | [
"noreply@github.com"
] | noreply@github.com |
51b3f70d3b01fef741ffcc155cff6236d71ef932 | 14fee4b5ee62e02b51f33d8b66426d1d0a2d92d8 | /EstruturaSequencial/es12.py | 10286dc8c9f5784187c9b2f2e3d2a1fb228e43e7 | [] | no_license | irandijunior1903/SI---Monitoria | 41d6e3cbcf4f1cba450896074df75ab45e6e6a83 | 7940c7ef1f3274850c075050c59e9c9defc7c583 | refs/heads/master | 2021-07-12T02:09:01.353325 | 2017-10-12T22:25:51 | 2017-10-12T22:25:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | altura = float(input("Digite a sua altura: "))
pesoIdeal = (72.7*altura) - 58
print("O seu peso ideal é de %.2f kg!" %pesoIdeal)
| [
"irandi.machado@dce.ufpb.br"
] | irandi.machado@dce.ufpb.br |
67df29376bdc92abd2a7b5e08c2a985eba4879e0 | 2bd851979ca23b1289cffb2304be2b4a0d612328 | /0x05-python-exceptions/3-safe_print_division.py | 8e7e26cb89271692cb5b1803fa3d32d1c48b5bf3 | [] | no_license | fikepaci/alx-higher_level_programming | 6fdeda0a538147483a401e95fb1ac70b3b1da87b | 66f15e86c5ba40a26e8a889ed87546b1e43ac1b5 | refs/heads/master | 2023-05-01T05:47:42.465608 | 2021-05-12T17:13:42 | 2021-05-12T17:13:42 | 319,888,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | #!/usr/bin/python3
def safe_print_division(a, b):
"""Returns the division of a by b."""
try:
div = a / b
except (TypeError, ZeroDivisionError):
div = None
finally:
print("Inside result: {}".format(div))
return (div)
| [
"pacifiquemachine@gmail.com"
] | pacifiquemachine@gmail.com |
188553b42af704e15e28d627a6b689ddccdb9a8b | b391498124fdcaef989bf3ebafffb0df43e3e07f | /pygccxml-0.8.2/unittests/decl_string_tester.py | 2e539a882efae0042f2ee800be1a0a8f58ad8294 | [
"BSL-1.0"
] | permissive | glehmann/WrapITK-unstable | 9a0dd9d387ecd59c9439465dcc32cca552e14576 | 402fc668f1f3c3dd57d0751a61efa3b1625d238b | refs/heads/master | 2021-01-10T22:02:04.715926 | 2008-05-25T16:53:07 | 2008-05-25T16:53:07 | 3,272,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,138 | py | # Copyright 2004 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
import unittest
import autoconfig
import parser_test_case
import pygccxml
from pygccxml.utils import *
from pygccxml.par... | [
"gaetan.lehmann@jouy.inra.fr"
] | gaetan.lehmann@jouy.inra.fr |
eb95b61f88db8e087d22cb83e991f168a8b35adf | 2d1447d18972c1521edc7ddd3af5cf669213ee43 | /Missions_to_Mars/app.py | bb8cf7ba48f21457b90b4f180f41ed2943b4466e | [] | no_license | robmir22/web-scraping-challenge | 5f5da55e004a2eea7ea07b0e6d6d6b27837e8d49 | dae6b3c67215011c56304a5e76b77b0f934512b1 | refs/heads/main | 2023-05-29T00:26:21.434354 | 2021-06-13T03:14:51 | 2021-06-13T03:14:51 | 376,364,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | from flask import Flask, render_template, redirect
from flask_pymongo import PyMongo
import scrape
app = Flask(__name__)
mongo = PyMongo(app, uri="mongodb://localhost:27017/mars_db")
@app.route("/")
def index():
mars = mongo.db.collection.find_one()
return render_template("index.html", mars=mars)
@app.rou... | [
"roberto.miranda.gomez@gmail.com"
] | roberto.miranda.gomez@gmail.com |
cb7e7df7d3e7efa91123a54b0420d67565acae87 | 22d84f804271a629a395cec785b7eb4b47f72f36 | /eelbrain/data/tests/test_data.py | 298853b71bf4ac8d11837e8d1fed7bf42b3e0240 | [] | no_license | imclab/Eelbrain | bb787294218a2ba00f90f447af0e629abadeac88 | e52eb3a5bd8bf8fc9aece2fb4413e0286e080c46 | refs/heads/master | 2021-01-21T23:34:15.673295 | 2014-05-02T19:17:04 | 2014-05-02T19:17:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,466 | py | '''
Created on Dec 2, 2012
@author: christian
'''
import os
import cPickle as pickle
import shutil
import tempfile
import mne
from nose.tools import (assert_equal, assert_is_instance, assert_true, eq_,
ok_, assert_raises)
import numpy as np
from numpy.testing import assert_array_equal, assert_... | [
"christianmbrodbeck@gmail.com"
] | christianmbrodbeck@gmail.com |
9b621df2c41f8644922512d536384407a7715ac4 | 8e1c2bbb4398f0f86404ca7d9b99d7bf8791ee81 | /QuickSort_Algorithm.py | 9655d8df18877de10e136bf2ca0b57d04278665c | [] | no_license | ThreeSR/Algorithm-Toolbox | 301373f8a405fedfa3cdd4c0f6460d0a3edd409d | db03e0808adc7bd065e0f262c35ccf8707512aa3 | refs/heads/master | 2023-02-28T12:06:49.470125 | 2021-02-06T03:27:09 | 2021-02-06T03:27:09 | 298,819,634 | 0 | 0 | null | 2020-09-26T13:32:36 | 2020-09-26T13:25:34 | null | UTF-8 | Python | false | false | 572 | py | # Reference: Grokking Algorithms: An illustrated guide for programmers and other curious people
# Aditya Bhargava
def quicksort(S):
# Baseline
if len(S) < 2:
return S
else:
pivot = S[0]
greater = [i for i in S[1:] if i > pivot]
less = [i for i in S[1:] if i < pivo... | [
"noreply@github.com"
] | noreply@github.com |
761792f87be2af9725838fd2e45005f8cbb7e3b7 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/tensorflow/python/keras/api/_v2/keras/mixed_precision/experimental/__init__.py | 557964bda8534e5d71a39df895b2a0954a2758d7 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a99d880d11e16bc170b4e38a2ed534d30a03cdcd4c9dc919e44db72fb592db6d
size 562
| [
"github@cuba12345"
] | github@cuba12345 |
868e8f3ac440a2ecac29205e6766fa826f74a538 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /SimPPS/DirectSimProducer/python/profiles_2017_cff.py | 8a061e8b9f1d46bcf27e0173d8962304a61ec24f | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 2,948 | py | import FWCore.ParameterSet.Config as cms
from SimPPS.DirectSimProducer.profile_base_cff import profile_base as _base
from CalibPPS.ESProducers.ctppsOpticalFunctions_non_DB_cff import optics_2017 as _optics
# base profile settings for 2017
_base_2017 = _base.clone(
ctppsLHCInfo = _base.ctppsLHCInfo.clone(
b... | [
"laurent.forthomme@cern.ch"
] | laurent.forthomme@cern.ch |
a53304161eea7e4683a2ad91f06991ca9bfca485 | 0ddf1bc59adfb1f7edcd4ee6e80b8f8328cf5db8 | /compute_dist_from_groundingline.py | 0576a205660f7df0fe07edc5bd94f3a8ab5bb5dc | [] | no_license | adityarn/antarctic_margins_MEOP | f113edcfc811b8660ae13f376c9b5b6c28c609cc | 93ba6d106f4435c2950e0ad66ef1b043051f98a6 | refs/heads/master | 2020-12-07T01:46:20.794784 | 2020-08-26T06:53:23 | 2020-08-26T06:53:23 | 232,603,168 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | from shapely.geometry import Point
import pandas as pd
import numpy as np
from scipy.spatial.distance import cdist
from haversine import haversine
import geopandas as gpd
dfmg = pd.read_csv("dfmg.csv")
dfmg['DIST_GLINE'] = np.empty(len(dfmg))
grndLine = gpd.read_file("/media/data/Datasets/Shapefiles/AntarcticGroundin... | [
"adityarn@gmail.com"
] | adityarn@gmail.com |
dffcc7ece524557716250f6c4e07da48d352718b | 8d8875f84c6ee3d082d53554af1736b716e7b3cf | /tools/plot_tcpdump.py | 1344044d78fc18ffc891508d963ef7bb30d79c38 | [] | no_license | ANRGUSC/brokerbc | e1414beb405da677d842a77bee8c569afa6a8573 | c9bdec20c4cbef59d44d2c691e5cadeba8f469e3 | refs/heads/master | 2020-03-18T20:17:58.816433 | 2019-02-08T16:34:59 | 2019-02-08T16:34:59 | 135,205,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,598 | py | #!/usr/bin/env python
from __future__ import division
import argparse
import Queue
import matplotlib.pyplot as plt
from collections import defaultdict
from os import listdir
from os.path import isfile, join
# Command line arguments
parser = argparse.ArgumentParser(
description='Plot data from MQTT probe log')
p... | [
"kwamelaw@usc.edu"
] | kwamelaw@usc.edu |
99992476badbc64112ba26825bd1c2496bd73e6b | 1e6d80e758eccc094eb259ac14297a712c377b2d | /CapstoneDesign_PythonCode/welfare_crawling/crawling.py | 163b668c1bf81b5f8825d8b838ac64f5e4ab9bfc | [] | no_license | tom950711/-_15gg_- | a65c92510e257267da5af882e68c42a2f20b9165 | 4da5f8b729b1d169e56062ed6d0d724eb415db74 | refs/heads/master | 2022-11-17T21:52:27.039864 | 2020-06-30T15:20:54 | 2020-06-30T15:20:54 | 276,131,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,006 | py | from bs4 import BeautifulSoup as BS
import requests
from selenium import webdriver
import time
def crawling(Service_URL):
driver = webdriver.Chrome('chromedriver.exe')
search_url = Service_URL #웹 드라이버로 띄울 URL
driver.get(search_url)
time.sleep(3)
html = driver.page_source # 페이지의 elements 모두 가져오기
... | [
"tommmmmmm@naver.com"
] | tommmmmmm@naver.com |
2b6a3dd2306c6267bd3b4723905ad8e96699bc58 | 6a8d047b4502507c67120a0a32640c6a3e60d8a5 | /apps/profiles/migrations/0015_auto_20171128_2324.py | 318ad8f57eac31c224e44335024c2a8c50376817 | [] | no_license | dwebdevcore/BoardDirector_dashboard | 320f110d7581c065920b7607ef06a457851c4bb4 | 7cd2b2abe1c660531a805d84930c8a6183b863b6 | refs/heads/master | 2020-05-26T05:32:37.501642 | 2019-05-22T22:33:25 | 2019-05-22T22:33:25 | 188,122,429 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-11-28 20:24
from __future__ import unicode_literals
import common.utils
import django.core.files.storage
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0014_auto_20170915_0653'),
... | [
"dwebdevcore@gmail.com"
] | dwebdevcore@gmail.com |
06d359ab83ebd94e088630437b38facd02e3ad67 | aa6cce4ff31ca12594b6cf34c6174fb0e4fc837b | /Network/dgm4nlp/dgm4nlp/ibm_study/embedalign_tr-en_test.py | 7c9954fcac72cb59c836b35633644d41bd558a46 | [
"Apache-2.0"
] | permissive | Brednas/char_morph_nmt | 1f87dc5ac58718a32305ea072f0886248aac5a08 | 134ae436a598e9121170c1fd463a018703a17bcc | refs/heads/master | 2020-04-02T07:53:40.604609 | 2018-12-04T23:03:20 | 2018-12-04T23:03:20 | 154,216,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,029 | py | """
:Authors: - Adapted by Sander Bijl de Vroe, originally by Wilker Aziz
"""
import os
os.environ["THEANO_FLAGS"] = "device=cuda0"
import theano
import numpy as np
import logging
import tempfile
import shutil
from datetime import datetime
from keras import optimizers
from dgm4nlp.embedalign.autoencoder import test_... | [
"sander.bijldevroe@gmail.com"
] | sander.bijldevroe@gmail.com |
e834353d333ccba88523fb0f98ca8d906b270acb | f4e8783549c2f283e4adc0b22edf7532dee97ac9 | /tests/module/module_topology_distmat_test.py | 6849e5b2237ba2dd6b7a8100fe52a7772987a103 | [
"Apache-2.0"
] | permissive | Takshan/MDInteract | 3e1aeaa94521f9a3e228c41885d36d965defb28f | 55bb51d27ec8d4095118837a997eea7467c2ac53 | refs/heads/master | 2022-03-23T20:19:24.715109 | 2019-12-18T14:27:13 | 2019-12-18T14:27:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,465 | py | # -*- coding: utf-8 -*-
"""
file: module_topology_distmat_test.py
Unit tests for distance matrix computations
"""
import os
from pandas import DataFrame
from interact.md_system import System
from tests.module.unittest_baseclass import UnittestPythonCompatibility
class DistanceMatrixTests(UnittestPythonCompatibil... | [
"marcvdijk@gmail.com"
] | marcvdijk@gmail.com |
f78a1bf26e7d667c445146ab03fcb08bc86d0faf | 46546fc5329fc82a1819b080d8a8e0ec65e7694d | /tests/components/hassio/test_update.py | 6f1271f07fbe3f606a814f4e47229d4ff36baa32 | [
"Apache-2.0"
] | permissive | aronsky/home-assistant | 548f722388fd1c0c4f1ebc99fc22f2078e0993c6 | 9008556457575de11920c19a3a68bd37fb322334 | refs/heads/dev | 2023-03-07T12:25:03.278333 | 2023-02-12T21:54:04 | 2023-02-12T21:54:04 | 81,301,357 | 0 | 0 | Apache-2.0 | 2023-02-22T06:18:11 | 2017-02-08T07:35:05 | Python | UTF-8 | Python | false | false | 18,204 | py | """The tests for the hassio update entities."""
import os
from unittest.mock import patch
import pytest
from homeassistant.components.hassio import DOMAIN
from homeassistant.components.hassio.handler import HassioAPIError
from homeassistant.core import HomeAssistant
from homeassistant.exceptions import HomeAssistantE... | [
"noreply@github.com"
] | noreply@github.com |
7c821d47e2c0b18de1677553f8a8a07bbfc4b643 | da14c413d2113e1c7278c7fef1753c89beab5612 | /src/ctg/data/args.py | 14e8600a6c8ab45ca6f3a86945b3f0cb45545d4f | [] | no_license | MathieuTuli/transformers-practice | e225e5f48ed2ae9d6ad77dec7d424e8fecb68273 | 1ddf30a93a97fdb036bfedb2a4cf10ca7de09d22 | refs/heads/master | 2023-04-27T13:51:18.315482 | 2021-05-17T02:26:32 | 2021-05-17T02:26:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,115 | py | """
@author: Mathieu Tuli
@github: MathieuTuli
@email: tuli.mathieu@gmail.com
"""
from onmt.opts import _add_dynamic_corpus_opts, _add_dynamic_fields_opts,\
_add_dynamic_transform_opts, _add_reproducibility_opts
from argparse import ArgumentParser
def build_vocab_args(sub_parser: ArgumentParser,
... | [
"tuli.mathieu@gmail.com"
] | tuli.mathieu@gmail.com |
eb7743840173ebacd9715a3594e8cbe849d2e20c | eb7047d5a8c00d4370a55c2806a2f051287b452d | /tests/pytests/problems/TestSingleObserver.py | b8d8b92a1d2272e25463babe394d08632e7fed5a | [
"MIT"
] | permissive | mousumiroy-unm/pylith | 8361a1c0fbcde99657fd3c4e88678a8b5fc8398b | 9a7b6b4ee8e1b89bc441bcedc5ed28a3318e2468 | refs/heads/main | 2023-05-27T18:40:57.145323 | 2021-06-09T19:32:19 | 2021-06-09T19:32:19 | 373,931,160 | 0 | 0 | MIT | 2021-06-04T18:40:09 | 2021-06-04T18:40:09 | null | UTF-8 | Python | false | false | 1,384 | py | #!/usr/bin/env nemesis
#
# ======================================================================
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University of Chicago
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://g... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
d7be1314bf31d799caa82ab59cb4e11bdaf7b308 | ed70bb131c89dd74c7aa3de9c25935ae8c6121d5 | /chapter_2/0203_name_case.py | f28117ce7c273656e4fe35c751178d6dc9ed8ba2 | [] | no_license | notesonartificialintelligence/07-01-20 | e4257f5eb713ca977d0eebc02bf83996c470df98 | e7c0e1e1621e44690ff36f4a7ba2472851b3ea47 | refs/heads/master | 2020-12-06T09:28:43.007097 | 2020-02-02T15:39:49 | 2020-02-02T15:39:49 | 232,423,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | # Use a variable to represent a person's name, and then print that name in lower, upper and title case.
name = "DaVid cOlEman"
print(f" {name.title()}\n {name.upper()}\n {name.lower()}\n") | [
"noreply@github.com"
] | noreply@github.com |
36c5ad05521c8a3482a95602c6f4ca79a27ddc34 | c90be956c58d8aa1cd4ef2cd7b3a5e7bc7d6b3bc | /hellodjango/settings.py | 7259dacb45d235324752f9f783e7abc007da2b05 | [] | no_license | craigkerstiens/django-helloworld | 4bd60d48fec6ffc7aba6765f914c5db7f89d071a | 0595e017c75c2e22d108df9a24533c12c55c35a0 | refs/heads/master | 2021-01-22T06:59:22.040882 | 2011-12-09T01:38:39 | 2011-12-09T01:38:39 | 2,944,239 | 3 | 2 | null | 2014-06-20T21:15:56 | 2011-12-09T00:30:35 | Python | UTF-8 | Python | false | false | 5,041 | py | # Django settings for hellodjango project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAM... | [
"craig.kerstiens@gmail.com"
] | craig.kerstiens@gmail.com |
794a613a9d0f5d34d09ddbb7cad78d49e670c820 | 4e45d134e09af47025deae667805f0eb79d4f516 | /neuroConstruct/pythonScripts/RunTestsL5PC.py | f275b53a4451da444342a7f07e133d5e957a5ed2 | [
"MIT"
] | permissive | OpenSourceBrain/L5bPyrCellHayEtAl2011 | 46c5721e21eed58cd23e96ced0cdafae58315473 | 75da6c136254b50b96dd9156b27244c083313156 | refs/heads/master | 2023-08-16T10:36:36.618573 | 2023-03-30T12:31:13 | 2023-03-30T12:31:13 | 8,250,486 | 5 | 1 | NOASSERTION | 2023-09-06T12:42:46 | 2013-02-17T12:48:49 | AGS Script | UTF-8 | Python | false | false | 2,678 | py | #
#
# File to test current configuration of project
#
# Author: Padraig Gleeson
#
# This file has been developed as part of the neuroConstruct project
# This work has been funded by the Wellcome Trust
#
#
import sys
import os
try:
from java.io import File
except ImportError:
print "No... | [
"p.gleeson@gmail.com"
] | p.gleeson@gmail.com |
13b48acf8bdc528ac7d7b07819b7bffedcd0aa8f | fda08a558dea163972e232439d574f9037f76648 | /samplecode/Test1.py | 7bbbd949baa8190ca6f00360af47656ef42e8e9a | [] | no_license | necoak/dev | 5b515cd47485d3272ddadad42b5eba5bd3f63aa1 | 2232bd19d2e6d23dfad9b0432569cdbe50746db7 | refs/heads/master | 2022-05-20T10:15:35.221892 | 2022-03-17T14:57:55 | 2022-03-17T14:57:55 | 6,262,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | import unittest
def add1(v):
return v + 1
class TestAdd1(unittest.TestCase):
def test_call(self):
self.assertEqual(add1(1), 2)
def canDivideBy2(v):
return ((v % 2) == 0)
class TestCanDivideBy2(unittest.TestCase):
def test_call(self):
self.assertTrue(canDivideBy2(4))
self.... | [
"kaneko1983g@gmail.com"
] | kaneko1983g@gmail.com |
44731f900af4921b1d0ed7abf5dfc153e66e29f4 | 2a61db2991fd3f52cdd8de830fbaf822df099b03 | /blog_clone/blog_app/urls.py | 854b5290ef9f2f6be4668dcddebdddd753a87624 | [] | no_license | felixghy/myblog | 03515b94d2148df425ed185491f90436fef77e79 | a273040d0bbc33c474838245107a44eb65687289 | refs/heads/master | 2020-08-23T15:08:03.563343 | 2019-10-21T19:28:03 | 2019-10-21T19:28:03 | 216,647,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,901 | py | """blog_clone URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"felixghy@gmail.com"
] | felixghy@gmail.com |
c684cc582083e417216c5f9146e96613d963643b | 748b69566159eea2a878285a1f38c6ede61a4161 | /katas/6kky_Who_has_the_most_money.py | c919657a65d583728cb532529efe692b2031bcdb | [] | no_license | Whit3bear/yogurt | 5f450d37d7118eb6a9e22792213eed75d017e357 | 873e58c2ae17a701984955881ce4a5acb80070ab | refs/heads/master | 2023-05-25T07:55:53.418223 | 2020-11-16T11:31:38 | 2020-11-16T11:31:38 | 209,098,839 | 0 | 0 | null | 2023-05-22T22:51:35 | 2019-09-17T16:05:30 | HTML | UTF-8 | Python | false | false | 1,444 | py | """ You're going on a trip with some students and it's up to you to keep track of how much money each Student has. A student is defined like this:
class Student:
def __init__(self, name, fives, tens, twenties):
self.name = name
self.fives = fives
self.tens = tens
self.twenties = twe... | [
"55454147+Whit3bear@users.noreply.github.com"
] | 55454147+Whit3bear@users.noreply.github.com |
da8fee0572ab0970812978f401f4150a9d655cae | 11095279bb6550474c3a84a6a8b1041063d1e36c | /project.py | ee42015671eb305eed4feabf6c2bde39bf31b7e3 | [] | no_license | madhan1807/CatalogApp | b0c2f51c62912deffde56cada2aa0a3b5286a4d6 | 3fa585229394a6e3c539619307146cb1e8f2117a | refs/heads/master | 2020-03-10T17:21:48.806220 | 2018-04-14T08:34:27 | 2018-04-14T08:34:27 | 129,498,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,115 | py | from flask import Flask, render_template, request, redirect, jsonify, url_for, flash
from sqlalchemy import create_engine, asc, desc, join
from sqlalchemy.orm import sessionmaker
from database_setup import Base, Category, CatalogItem, User
from flask import session as login_session
import random
import string
from oaut... | [
"madhan1992@gmail.com"
] | madhan1992@gmail.com |
7bc6fcf6f8ffe335001af6daa7352f346337db72 | 63d45a629d896dddba79fc0421d17df03cb1d86c | /Ejercicios/Funciones/Ejercicio5.py | 666d774099fff316ad52fc45436322fcbafe117d | [] | no_license | mruiz54/Ejercicios-Curso-de-Iniciaci-n-a-la-Programaci-n-en-Python | 2aafdcd1905b899358436418a128cdb742b58b33 | 7b754f98037e91997ec52152d979d0124b19f531 | refs/heads/master | 2023-04-28T01:24:13.201516 | 2023-04-13T11:51:43 | 2023-04-13T11:51:43 | 236,489,052 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # 5. Crea una función que reciba la base y la altura de un triángulo y devuelva su área. A = ½ bh.
print("Ejercicio 5")
def Área_triángulo (base, altura):
A = 0.5*base*altura
return A
base = float (input("Introduzca la base del triángulo: "))
altura = float (input("Introduzca la altura del triángulo: "))... | [
"maribelruizmar@gmail.com"
] | maribelruizmar@gmail.com |
9d8d583eef808f59b4ced60ba7501cf88b654f86 | ea638660eba44752ea4292c40c0903e70fc624b9 | /0x04-python-more_data_structures/2-uniq_add.py | b7e0072555c9ca964cb3db1d90002ad29fd80606 | [] | no_license | mounirchebbi/holbertonschool-higher_level_programming | 38df80f1ddb291badb31968ff766e1ebfe23cb57 | 5bbf6265c1c661d9f4de8cc451b67100e8b91fa3 | refs/heads/master | 2023-03-31T15:58:47.837219 | 2021-04-03T00:01:49 | 2021-04-03T00:01:49 | 319,455,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | #!/usr/bin/python3
def uniq_add(my_list=[]):
history = []
sum = 0
for i in range(len(my_list)):
if i == 0:
history.append(my_list[i])
sum += my_list[i]
if history.count(my_list[i]) == 0:
sum += my_list[i]
history.append(my_list[i])
return s... | [
"2157@holbertonschool.com"
] | 2157@holbertonschool.com |
75ad6581b844b7b873b40ee25a2bfda6a8cc64bc | 2e439ee70508eba8bba79ad307d05b692ecb121d | /Task1.py | 592ce237df3f6321c7821b2fe069951cd2939b46 | [] | no_license | GasserElbanna/Python-GUI | b24c08590f2f0054bba40b6a2fa753b70085ba34 | 0b4b87b6ad36e76541f8b9b1a9aae5dc46aab23f | refs/heads/master | 2020-04-22T01:52:50.790293 | 2019-02-19T09:44:37 | 2019-02-19T09:44:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,462 | py | import sys
import time
import numpy as np
from scipy import fftpack
from PIL import Image
import qimage2ndarray
import matplotlib.pyplot as plt
import cv2
from PyQt5 import QtGui, QtCore
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QMainWindow, QApplication, QPushButton, QMessageBox, QProgressBar,... | [
"noreply@github.com"
] | noreply@github.com |
2a31b6d0a99aa4b442108e9ec29995e73012d425 | 4922a9a9f807dacf9f7995cd6ea3f3e357cd4340 | /app.py | 951836542f239a8c7d45a604b3687b70d74b29c8 | [] | no_license | kiteena/zenden_database_ui | 3914bae4e46eb968dfbf97a767a300bf947299ab | 80bc56b3cf833a319c9c1d10dab8d69ea810c046 | refs/heads/master | 2022-12-10T12:09:18.559153 | 2019-09-09T02:40:11 | 2019-09-09T02:40:11 | 206,916,190 | 0 | 0 | null | 2022-12-08T06:08:10 | 2019-09-07T04:38:08 | HTML | UTF-8 | Python | false | false | 3,739 | py |
from flask import Flask, render_template, request, url_for, redirect
import requests
app = Flask(__name__)
api_url_users = 'https://zenden-api-heroku.herokuapp.com/api/Users'
api_url_houses = 'https://zenden-api-heroku.herokuapp.com/api/Houses/'
api_url_matches = 'https://zenden-api-heroku.herokuapp.com/api/Matches'... | [
"kristina.milkovich@agilent.com"
] | kristina.milkovich@agilent.com |
e4e2d58658dd6c7e4adf95dd2a78fe739427c58f | 63f917864d85f0f9e810cbb4e6163f48611a8b3d | /home_content/admin.py | dcbef84ea0014ed258e07963b93519ce4277c9fd | [] | no_license | davidraywilson/suit_materialized | 37aa521d52f8dd746b55b121262501147dffb95c | 035405defedd5ee8257b42aac82749794080af4f | refs/heads/master | 2021-01-18T14:05:01.797452 | 2015-06-03T02:03:55 | 2015-06-03T02:03:55 | 32,526,877 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,052 | py | from django.contrib import admin
from home_content.models import HomeSection, Billboard, MiniBillboard
class SectionAdmin(admin.ModelAdmin):
model = HomeSection
list_display = ('name', 'order', 'is_published')
list_editable = ('order', 'is_published')
fieldsets = (
(None, {
'field... | [
"davidraywilson@live.com"
] | davidraywilson@live.com |
b0c54db2f1581683a41cb7a8e3b288453a6c541c | 4349b2e2897c135ff0c1f1175302cc2a42c46e57 | /pyBingSearchAPI/g4sjb.py | c26d9b82bab001ed74f5ba885f9329126943c33e | [] | no_license | garima87/IR | cd33bfe0c6e7d55354eac42f79481143946aa71d | fe84d4cce8354f466529c89963323c3b6f1c5efc | refs/heads/master | 2020-03-29T19:57:01.155227 | 2013-04-22T02:53:11 | 2013-04-22T02:53:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | READCACHE = False
WRITECACHE = True
def read_results():
search_results = {}
searchresults_file = open(filename, 'rb')
search_results.update(marshal.load(searchresults_file))
searchresults_file.close()
return search_results
def write_results(search_results):
print 'Saving search results.'
s... | [
"garima.mnnit@gmail.com"
] | garima.mnnit@gmail.com |
04eba8ccc752f4609ae8ab9f64bf33ba2236e49a | bda3657091e2381f45f9b8350696f4dca10949ba | /cakeshop/services/categoryservices.py | 278129b5251468779556bb39784eab47c1ea617e | [] | no_license | albertgeorge/cakeshop | acfa999d8d351851777ef6602b22c1e182dffa51 | 6643c11700b386e025c84a383afecdd7c05fa7d8 | refs/heads/master | 2021-01-10T22:03:19.293144 | 2014-01-16T12:28:53 | 2014-01-16T12:28:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | from cakeshop.csmodels.models import ItemCategory
class CategoryService(object):
def get_categories(self):
cat_list= []
all_categories = ItemCategory.objects.all()
for category in all_categories:
cat = {"id":category.id,"name":category.name}
cat_list.append(cat)
... | [
"albert.george@outlook.com"
] | albert.george@outlook.com |
12f7a3c11427c65b6e35a1eef150d330d683d5f7 | 3c9531de6549913ddc3a381f936063adbda5dae7 | /CA4/1.py | 8206f8297def39a7523c04476572fd4224d41600 | [] | no_license | marymirzaie/DesignAlgorith-Fall98 | 81630bb1713fb45ae8593745fca7b0109ee7dec9 | 26a39b8607cee3afac99eaf72743ca0d8d2fc3ce | refs/heads/master | 2023-04-02T20:40:09.876766 | 2021-03-31T12:23:19 | 2021-03-31T12:23:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,449 | py | import pprint
from collections import defaultdict
class Graph:
def __init__(self,graph):
self.graph = graph
self. ROW = len(graph)
def BFS(self,s, t, parent):
visited =[False]*(self.ROW)
queue=[]
queue.append(s)
visited[s] = True
while queue:
u = queue.pop(0)
for ind, val in enumerate(... | [
"mary.mirzaie@cafebazaar.ir"
] | mary.mirzaie@cafebazaar.ir |
4d1ab8865f2772836681225092650fcc589073c1 | dd83b5d3249c5d85d64ed64a62d9756083778dac | /C2 - Week1/tree2.py | 699ba7420c3f538df5add0b4f3ccb9e184acdc30 | [] | no_license | JuhiSrivastava/Data-Structures | ef24ff02657aa5f245924255850c71010d3955e3 | b133566f348826adab909c4083925eccd66b8ae4 | refs/heads/main | 2023-02-10T03:39:29.745549 | 2021-01-06T18:25:03 | 2021-01-06T18:25:03 | 327,395,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 2 15:28:35 2020
@author: Juhi Srivastava
"""
n = int(input())
nodes = list(map(int,input().split()))
li ={}
c =0
for i in range(n):
if nodes[i] == -1:
c = i
else:
if li.get(nodes[i]) == None:
li[nodes[i]] = [i]
else:
... | [
"juhi2812@gmail.com"
] | juhi2812@gmail.com |
68641c1c2902ef1dfae6b1a37b4024cdeccb4d0e | aca4382ed47636e1d7cdab91c1f29f4fead7033a | /clo_plo.py | 4514306d10a98788b049e8ed906ba7f368b7ee3e | [] | no_license | alfir-v10/IoTSamsungProject | 3eb1961b48c98ccf75e0574013d17041e4047f50 | a1a99d394feccd2d6b9470fc572074521b7eb367 | refs/heads/main | 2023-04-18T17:31:23.506408 | 2021-05-08T20:55:44 | 2021-05-08T20:55:44 | 365,606,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,529 | py | import webdav3.client as wc
import time
import re
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from datetime import datetime
import os
import matplotlib.dates as mdates
eui = ['807B8590200005D9', '807B8590200005AF']
def check_file_on_cloud(hum1, hum2, temp1, temp... | [
"noreply@github.com"
] | noreply@github.com |
a9631a6411f099359301c0f1709dc4854de83442 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02792/s333976944.py | 822b45df844116947cf79fed9d47791edd103ea9 | [] | 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 | 352 | py | def solve():
N = int(input())
cnt = [[0]*10 for i in range(10)]
for i in range(1, N+1):
target_str = str(i)
cnt[int(target_str[0])][int(target_str[-1])] += 1
ans = 0
for i in range(1, 10):
for j in range(1, 10):
ans += cnt[i][j] * cnt[j][i]
print(ans)
if __n... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2d958e2f237cd20c67b5ba807f09343e987da8c2 | 5a7a9b7765ef775a9dff6893b84cfc1f2a10e4ba | /src_eval/vote.py | a5611508791d3295c04d800a06d6a672a70551b3 | [] | no_license | rgtjf/SemEval2018-Task12 | 48ad592757d4d9b477955d5c8aa747d931fba3d6 | 21a42e861b17c089e9e9eb2888799dc96ebef73a | refs/heads/master | 2021-03-29T04:15:34.770910 | 2018-04-07T05:32:53 | 2018-04-07T05:32:53 | 108,555,749 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,554 | py | # coding: utf8
from __future__ import print_function
import os
import argparse
import numpy as np
from collections import Counter
import sys
sys.path.append('../src')
sys.path.append('../src_nn')
import evaluation
class Classify(object):
def __init__(self, strategy):
self.strategy = strategy
def __c... | [
"rgtjf1@163.com"
] | rgtjf1@163.com |
948a66162b9ef1d5bb7a5c654f401c1ecd122279 | e516a6fe6c566b70ec767ef253da5a9a6fd90225 | /runScraper.py | 338f8e88490c69ccdac8c5de32886ea9f41bd371 | [] | no_license | btamadio/AirbnbScraper | bcf4eb74ed7841b8e527ea1d9409169e3b9f3d75 | fdf1428b493bba8e196f09f3f3701b2f0fac5c81 | refs/heads/master | 2021-01-11T17:44:00.163475 | 2017-01-25T18:13:51 | 2017-01-25T18:13:51 | 79,827,987 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | #!/usr/bin/env python
from cityScraper import cityScraper
c=cityScraper()
#c.writeRoomIDs('San-Francisco--CA','Private%20room','test.txt')
c.scrapeRooms('data/SF_roomList_private_2.txt','data/SF_data_private_2.csv')
| [
"brian@Brians-MacBook-Air-2.local"
] | brian@Brians-MacBook-Air-2.local |
30cd33a9b3373ba95a306bbf6a3f0ac631a70720 | 876cd0697e019009bd513a43e6d82c997111ad81 | /watches/forms.py | 5c04e17f2fe6ed016394d89c564afe577c925996 | [] | no_license | l0nelyhermit/p4-timeless | 2d9a141f8f767228dfd069bcb534fc114c778bcc | e1c88b8a629be5886a511b5dcedfc7b0e68ce13e | refs/heads/master | 2023-04-03T12:56:17.702090 | 2021-03-18T03:22:05 | 2021-03-18T03:22:05 | 348,276,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | from django import forms
from .models import Watch
class NewWatch(forms.ModelForm):
class Meta:
model = Watch
fields = ('watch_brand', 'watch_model', 'description', 'watch_price')
| [
"mrjonathangoh@gmail.com"
] | mrjonathangoh@gmail.com |
bfe9031d3c5da7284c29c3344d18127362dadb2e | 9c01350ff70d17504990d1f0077df50d6a47b0c6 | /molgym/agents/dqn_variable_actions.py | 63b4dc25c134101aa3a3b9d34ea48ae47b390cce | [] | no_license | WardLT/molecular-dqn | 0a5d1018bbc577ebb26ff58ade0ad6e0c2e1014a | 14dc46c1539088c591dde0c60947a9484353e9a9 | refs/heads/master | 2021-02-13T09:20:34.811407 | 2020-03-03T16:21:22 | 2020-03-03T16:21:22 | 244,683,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,462 | py | import random
import logging
import numpy as np
from collections import deque
from keras.models import Model
from keras.engine.network import Network
from keras.layers import Dense, Input, Lambda, Subtract, Concatenate
from keras import backend as K
from gym_exalearn.envs.exalearn_electrolyte_design import Molecule
l... | [
"ward.logan.t@gmail.com"
] | ward.logan.t@gmail.com |
22350b45874de8f26c9469ab1e625debf0b87eb1 | 9a0e94c7a81b190dbe0ceb71686be9efd62635c4 | /src/pimouse_run_corridor/scripts/wall_stop_accel.py | c271eeb170c57626596bd4e2647ed3682e94ec5e | [] | no_license | Ogiwara-CostlierRain464/pimouse_tutorial | 48f2ac576273464b74bda2ea5772929d3c4e6a83 | 8b337e05b80809e5a43a52557a0de96a5cd5f16b | refs/heads/master | 2023-02-27T00:56:18.720940 | 2021-02-03T03:25:46 | 2021-02-03T03:25:46 | 335,492,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | #!/usr/bin/env python
import rospy, copy
from geometry_msgs.msg import Twist
from std_srvs.srv import Trigger, TriggerResponse
from pimouse_ros.msg import LightSensorValues
class WallStop():
def __init__(self):
self.cmd_vel = rospy.Publisher("/cmd_vel", Twist, queue_size=1)
self.sensor_values = LightSensorValues... | [
"yushiogiwara@gmail.com"
] | yushiogiwara@gmail.com |
0658167edc8f419ac574b279a7fe950487abfd50 | 3167cb95dcf683f4dc2d49e3fdccbf0dae3de056 | /Python/whats_your_name.py | 834af8ab90449295cb8fa38f2772638ed07050be | [] | no_license | amishbni/HackerRank | f761bf93ccf422c4e04547f8cd984d3025857f83 | 5aa089bb144b9d6371c3c4e7dee7f6298a88746f | refs/heads/main | 2023-08-22T12:04:23.632924 | 2021-10-18T16:52:29 | 2021-10-18T16:52:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | # https://www.hackerrank.com/challenges/whats-your-name/problem
def print_full_name(first, last):
print(f"Hello {first} {last}! You just delved into python.")
if __name__ == "__main__":
first_name = input()
last_name = input()
print_full_name(first_name, last_name)
| [
"amirshabani011@gmail.com"
] | amirshabani011@gmail.com |
6088bcce1e0e71bca1ed27d25cdb98d7774b4b30 | 8a4f0d4aad4a901bd08fd5eb92b2a31fb1bac167 | /dizoo/procgen/maze/envs/test_maze_env.py | ebbcb7bebde90feee04225266ee24dedf0f8ca7f | [
"Apache-2.0"
] | permissive | lichuminglcm/DI-engine | 3977eed854dc634f8796764e0a7e0b71b615747f | e9052f195d231a9875afb053ba815c6341857571 | refs/heads/main | 2023-08-21T05:09:49.931351 | 2021-10-11T12:32:36 | 2021-10-11T12:32:36 | 415,903,070 | 0 | 0 | Apache-2.0 | 2021-10-11T12:32:37 | 2021-10-11T11:48:26 | Python | UTF-8 | Python | false | false | 807 | py | import pytest
import numpy as np
from easydict import EasyDict
from dizoo.procgen.maze.envs import MazeEnv
@pytest.mark.unittest
class TestMazeEnv:
def test_naive(self):
env = MazeEnv(EasyDict({}))
env.seed(314)
assert env._seed == 314
obs = env.reset()
assert obs.shape ==... | [
"noreply@github.com"
] | noreply@github.com |
fc185c9fb354be9e8d349d17c52d973ba4196481 | fb6a056e101203d62b62124db2d243c7fd6701c4 | /test.py | 40d5b01152d02b9e158709ad6396086c7b5b8863 | [] | no_license | sumonbis/BoaNotebook | e42e61075a8bb6d195ead46534867857edd8c2d9 | bd3cfdb40d8ec5695c994b818cc95748616c0b12 | refs/heads/master | 2022-11-28T04:56:10.231221 | 2020-08-06T00:48:53 | 2020-08-06T00:48:53 | 275,645,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,715 | py | import matplotlib.pyplot as plt
import numpy as np
from sklearn.metrics import accuracy_score
from sklearn.linear_model import LogisticRegression
from sklearn.svm import SVC
from sklearn.gaussian_process import GaussianProcessClassifier
from sklearn.gaussian_process.kernels import RBF
from sklearn import datasets
iri... | [
"noreply@github.com"
] | noreply@github.com |
80a6f8ff020cb35909e7bf5fa5937217a5c73d9a | 723b8dbce31f44e0748d094a5a5bc6e882399b2d | /rest_api_demo/api/restplus.py | c8867d983339ca5b894157a0035a2d1b30c56822 | [] | no_license | gilescaunter/auction | 6f6952e50ba34dba55e58f2eb0adfabb561f0b79 | 5ee3965d3993ec6fae21aea213b266793a0d2ae0 | refs/heads/master | 2021-01-02T08:42:28.004843 | 2017-08-01T22:18:32 | 2017-08-01T22:18:32 | 99,048,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | import traceback
from flask_restplus import Api
from sqlalchemy.orm.exc import NoResultFound
from rest_api_demo import settings
api = Api(version='0.1', title='My Auction Test Mock API',
description='Simple Auction Mock using ideas from web')
@api.errorhandler
def default_error_handler(e):
message = ... | [
"giles53716@gmail.com"
] | giles53716@gmail.com |
0296081c7b5ffd91876af93bf00f5ccdda287dd6 | 292cec77b5003a2f80360d0aee77556d12d990f7 | /src/bentoml_cli/worker/grpc_api_server.py | 87a8e336eb31fd6ceeb1eba0e4e6b26cc1e24fd8 | [
"Apache-2.0"
] | permissive | yubozhao/BentoML | 194a6ec804cc1c6dbe7930c49948b6707cbc3c5f | d4bb5cbb90f9a8ad162a417103433b9c33b39c84 | refs/heads/master | 2022-12-17T00:18:55.555897 | 2022-12-06T00:11:39 | 2022-12-06T00:11:39 | 178,978,385 | 3 | 0 | Apache-2.0 | 2020-12-01T18:17:15 | 2019-04-02T01:53:53 | Python | UTF-8 | Python | false | false | 4,379 | py | from __future__ import annotations
import json
import typing as t
import click
@click.command()
@click.argument("bento_identifier", type=click.STRING, required=False, default=".")
@click.option("--host", type=click.STRING, required=False, default=None)
@click.option("--port", type=click.INT, required=False, default... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.