blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7ad59bbfa56cda908299f7f4a5dfcf82d3c06fb4 | e5710631da687ea4a1df3c185e21dc83932e9748 | /django_facebook/__init__.py | b1939f849adaeeeca3e577a0343acdfa0450519c | [
"BSD-3-Clause"
] | permissive | muratmeran/Django-facebook | 58f4e38ce0bc29d3baede10becf389c236dbad12 | 709be6c5f88509a8b6053e4022b3c4a7f8481af2 | refs/heads/master | 2021-01-16T20:07:56.096301 | 2011-11-27T17:45:55 | 2011-11-27T17:45:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | __author__ = 'Thierry Schellenbach'
__copyright__ = 'Copyright 2010, Thierry Schellenbach'
__credits__ = ['Thierry Schellenbach, mellowmorning.com, @tschellenbach']
__license__ = 'BSD'
__version__ = '3.3.0'
__maintainer__ = 'Thierry Schellenbach'
__email__ = 'thierryschellenbach@gmail.com'
__status__ = 'Production'
... | [
"thierryschellenbach@gmail.com"
] | thierryschellenbach@gmail.com |
2a13ce75068aeabef2de307284377ff0496a07fe | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/348993582/_curses_panel.py | 02b9903f84fd4d1b5c3a566953335114ce0f803c | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | # encoding: utf-8
# module _curses_panel
# from /usr/lib64/python2.6/lib-dynload/_curses_panel.so
# by generator 1.136
# no doc
# no imports
# Variables with simple values
version = '2.1'
__version__ = '2.1'
# functions
def bottom_panel(*args, **kwargs): # real signature unknown
pass
def new_panel(*args, **kw... | [
"pkalita@princeton.edu"
] | pkalita@princeton.edu |
29dcf3a532626a3c6bb98525ed6d95d7d40d1e04 | 3d14c54de44a752b73f1314308e2ed22ec66bb24 | /ecl/exceptions.py | 725ebccc585b89b4423d762ace05d8b55ea9630c | [
"Apache-2.0"
] | permissive | kazshinohara/eclsdk | 768aafad910882a1e7383d2dfcfe1e02e3927a84 | c6eb9ac3ca5e48133bca07f155896ca11b47deb3 | refs/heads/master | 2021-09-01T09:50:37.541821 | 2017-12-26T09:56:35 | 2017-12-26T09:56:35 | 115,408,733 | 0 | 0 | null | 2017-12-26T09:41:38 | 2017-12-26T09:41:37 | null | UTF-8 | Python | false | false | 4,632 | py | # Copyright 2010 Jacob Kaplan-Moss
# Copyright 2011 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | [
"h.ohta@ntt.com"
] | h.ohta@ntt.com |
56cf291bdfffe563f6efc7991dcc451d90dd0f42 | 9c337ea179ce44d1570219647b60b78c84ed54a7 | /ad_donation/migrations/0014_auto_20190325_2127.py | e5941c471787fb8e2fbc5a4e585c316260695272 | [] | no_license | timshin43/donaddcom | aa9cb5616907f145b388f290429dd9d1fd61f73b | d372b6677a15d699abc634f8f49581b8aa23f9a0 | refs/heads/master | 2022-12-10T10:10:26.494884 | 2020-12-08T02:10:48 | 2020-12-08T02:10:48 | 180,018,996 | 0 | 0 | null | 2022-12-08T02:31:05 | 2019-04-07T20:20:16 | Python | UTF-8 | Python | false | false | 809 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-03-26 04:27
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('ad_donation', '0013_auto_20190325_211... | [
"timshin.sergei@gmail.com"
] | timshin.sergei@gmail.com |
43d73559a494d28f9ee14423919e0ed8eea4fbc7 | 06c9edb02884ced68c62b5527d2be0e1a2e65bf1 | /11004.py | e44753c964c1b89988fe0b54a302cf8348946096 | [] | no_license | 0x232/BOJ | 3c5d3973b62036bfe9b761c88c822cf7fe909bce | 5f135ac51b1c304eff4630798fb5c516b666a5c6 | refs/heads/master | 2021-07-03T02:56:00.132987 | 2020-10-31T02:18:19 | 2020-10-31T02:18:19 | 191,161,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | import sys
import heapq
N, K = map(int, sys.stdin.readline().split())
A = list(map(int, sys.stdin.readline().split()))
heapq.heapify(A)
num = 0
for i in range(K):
num = heapq.heappop(A)
print(num)
| [
"51640066+0x232@users.noreply.github.com"
] | 51640066+0x232@users.noreply.github.com |
7cb838bdffceaec1281d73911237844ec1ebf6e7 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /NbZ2cMeEfH3KpQRku_7.py | 63e5310dd9e1b9d34db9781daecbbd6fbca11f2e | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py |
def percentage_happy(numbers):
happy = 0
for i in range(1,len(numbers) - 1):
if numbers[i - 1] == numbers[i] or numbers[i] == numbers[i+1]:
happy += 1
if numbers[0] == numbers[1]:
happy += 1
if numbers[-1] == numbers[-2]:
happy += 1
return happy/len(numbers)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
484bba2b3b70d0689ab91b28dcf27ff7c77f69c2 | 48202a21204cb0b21cd792afd22e4c16b321cdbd | /r_csv.py | 9e0f5cf594a8c0af894026ba8ccd312dc059aa02 | [] | no_license | awaddell77/R_server | 1783c7077014b99c8543263ac15e962193ff1d4b | 8bf811b7a5ecd096a614c567a1b03779f2d71c1d | refs/heads/master | 2020-09-09T21:29:05.635836 | 2020-01-24T00:13:22 | 2020-01-24T00:13:22 | 221,576,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | import csv
def r_csv(x,mode='rt', delim = ','):
l = []
csv_in = open(x, mode, encoding = 'utf-8')
myreader = csv.reader(csv_in, delimiter = delim)
for row in myreader:
l.append(row)
csv_in.close()
return l | [
"waddell.andrew@gmail.com"
] | waddell.andrew@gmail.com |
4c4ab613085b22b955e640f9be0db6be9c2c9d02 | ab2802cd1db32d58478e979420d6738118aeb114 | /venv/bin/easy_install-3.6 | 465a2751cfc24abdb47589dce8086ebe1d645207 | [] | no_license | cosmic-byte/django-seed | 2bb9e7eb891a631ac21dfc78e5ce8056fc9d8c4f | 4790843cf3545654431dd8c5285f307056da963d | refs/heads/master | 2020-03-17T10:07:41.918905 | 2018-05-15T10:40:57 | 2018-05-15T10:40:57 | 133,490,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | 6 | #!/home/bionic/PycharmProjects/test/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', ... | [
"gregobinna@gmail.com"
] | gregobinna@gmail.com |
9742b92765ee7e9dee46ad7db41c41f135687fcc | 2fde997657c37a1adaece0b86fe546069c28b28f | /pyxrf/core/tests/test_yaml_param_files.py | 5560e8d6cbeeca94d4804247650c8ffacb58ef4e | [
"BSD-3-Clause"
] | permissive | NSLS-II/PyXRF | 770f0579963a06332640a4eff533ae9ca6373dd8 | d109a8217e20989edbeb85ae60f8155eb6e9e40b | refs/heads/master | 2023-08-11T15:26:49.006600 | 2023-07-19T14:39:57 | 2023-07-19T14:39:57 | 33,327,345 | 28 | 22 | BSD-3-Clause | 2023-07-19T14:39:58 | 2015-04-02T19:19:56 | Python | UTF-8 | Python | false | false | 16,244 | py | import os
import jsonschema
import numpy as np
import pytest
from pyxrf.core.yaml_param_files import (
_parse_docstring_parameters,
_verify_parsed_docstring,
create_yaml_parameter_file,
read_yaml_parameter_file,
)
def _generate_parameter_set():
"""
Generates sample parameter dictionary for t... | [
"gavrilov.dvs@gmail.com"
] | gavrilov.dvs@gmail.com |
4e8f6dfe59eaee96cce606f21d45dedf80e39ce6 | 286b6dc56323f982092ffafbfac8a32dbbaeb7ef | /Day_01/self/dec_to_bin_oct_hex.py | 486a83c9cd07ed7ca9a783875addbcd05f00b0b5 | [] | no_license | learndevops19/pythonTraining-CalsoftInc | ccee0d90aadc00bfdb17f9578620f6bf92f80a4c | c5f61516b835339b394876edd1c6f62e7cc6f0c3 | refs/heads/master | 2021-02-05T04:27:17.590913 | 2019-11-20T17:27:06 | 2019-11-20T17:27:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | dec = int(input(" Enter the Decimal no : "))
print(" The inputted decimal no is :", dec)
print("The binary value of input is :", bin(dec))
print(" The octal value of input is : ", oct(dec))
print("The hexadecimal value is : ", hex(dec))
| [
"rajpratik71@gmail.com"
] | rajpratik71@gmail.com |
c7b92a5724e679e83959abd039930b20441d9e61 | e4cae3759a053ca88a936e87e3329aec203608db | /sdk/communication/azure-communication-chat/tests/test_chat_thread_client_e2e_async.py | e3deffa02236e4670417679726c590d2a61e365f | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | a-santamaria/azure-sdk-for-python | c9413858747ccfcec2fbbefd50922c515cb4f634 | 9dec418ad621ac75f217e56e901f15b6624800b0 | refs/heads/master | 2022-05-19T00:01:07.604118 | 2021-02-01T22:52:25 | 2021-02-01T22:52:25 | 202,599,021 | 0 | 0 | MIT | 2019-08-15T19:22:33 | 2019-08-15T19:22:32 | null | UTF-8 | Python | false | false | 10,041 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import pyt... | [
"noreply@github.com"
] | a-santamaria.noreply@github.com |
bcc986c38a4c561a71f3b1dd8baabed50ebdd368 | fcb10b01ab653bb26b9039d274234551aaecb9c5 | /tensorflow/MNIST/mnist/ref.py | 7a67f6b1358a7052d54a889c47d620c976f42b9a | [] | no_license | KonroyZhu/ML_learn | cecbd796cf9df578ec82af04d3af2faa892f08f3 | a435e52303b58665c5aae44c258a621b34de84e9 | refs/heads/master | 2021-04-06T11:11:35.047869 | 2018-03-10T11:47:13 | 2018-03-10T11:47:13 | 124,650,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,818 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"1433192948@qq.com"
] | 1433192948@qq.com |
6faadfbaa76a5344e352c87d531681521e11782a | b248ab2c8d5eebf7afe39db0901cb1e4e1b6d9cb | /NMC/NeuroML2/nmllite/Sweep.py | b66f20c47e25b524c2c3cf19aeef6fbc762f57aa | [
"MIT"
] | permissive | OpenSourceBrain/BlueBrainProjectShowcase | 33a2c0abdbf655c73edae3805f77e9b5e822253d | 4bd625198c12fb73c359adc2db378bcf2c61a13a | refs/heads/master | 2023-08-16T10:24:05.414176 | 2023-08-11T13:11:19 | 2023-08-11T13:11:19 | 17,436,997 | 29 | 20 | NOASSERTION | 2023-03-24T15:11:50 | 2014-03-05T10:30:26 | AGS Script | UTF-8 | Python | false | false | 7,903 | py | import sys
import pprint; pp = pprint.PrettyPrinter(depth=6)
from neuromllite.sweep.ParameterSweep import ParameterSweep
from neuromllite.sweep.ParameterSweep import NeuroMLliteRunner
from GenerateExamples import colors
if __name__ == '__main__':
heatmap_lims=[-110,-20]
if '-all' in sys.argv:
... | [
"p.gleeson@gmail.com"
] | p.gleeson@gmail.com |
bca6b6b0979cefd20fe74ee0db1c580a2aca8167 | 34599596e145555fde0d4264a1d222f951f49051 | /pcat2py/class/20d2f1d6-5cc5-11e4-af55-00155d01fe08.py | 7644a9f56b70fab86a5829b7e69eb85d7d65089e | [
"MIT"
] | permissive | phnomcobra/PCAT2PY | dc2fcbee142ce442e53da08476bfe4e68619346d | 937c3b365cdc5ac69b78f59070be0a21bdb53db0 | refs/heads/master | 2021-01-11T02:23:30.669168 | 2018-02-13T17:04:03 | 2018-02-13T17:04:03 | 70,970,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py | #!/usr/bin/python
################################################################################
# 20d2f1d6-5cc5-11e4-af55-00155d01fe08
#
# Justin Dierking
# justindierking@hardbitsolutions.com
# phnomcobra@gmail.com
#
# 10/24/2014 Original Construction
################################################################... | [
"phnomcobra@gmail.com"
] | phnomcobra@gmail.com |
32582da1315dc131b64b91975d6fac0802e9b48b | 218b80ce669a5a06729b130dc6a0b7f824872f12 | /climetlab/datasets/hurricane_database.py | 5feca766b358bdf69d04a952f3adc3b47060cfd8 | [
"Apache-2.0"
] | permissive | NewHarmony/climetlab | 2147275ec8938a7fac8652d74135ca95403fb81c | a91a1e960033e6d39210cc6f588f6d1ea5235d3d | refs/heads/master | 2023-03-25T23:24:08.904920 | 2021-03-20T16:58:34 | 2021-03-20T16:58:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,541 | py | # (C) Copyright 2020 ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
# In applying this licence, ECMWF does not waive the privileges and immunities
# granted to it by virtue of its status as an intergovernmenta... | [
"baudouin.raoult@ecmwf.int"
] | baudouin.raoult@ecmwf.int |
1ecc4d1c932e305124f799a3d8100f0ad456f425 | 3bb9db98b70cc63151324499f650531fc21df59f | /src/users/urls.py | 5ef98774105113262a2e722ed8e5deea157e7144 | [
"MIT"
] | permissive | NestorMonroy/docker-django-blog | fbe724d53c565c0fb4b438e80efdcf8bb6b882c4 | a1aba04c4b56110a1dab0d4844c670c30f5d58dd | refs/heads/master | 2023-04-20T07:40:26.548043 | 2021-04-23T01:33:04 | 2021-04-23T01:33:04 | 354,080,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | from django.urls import path, re_path
from django.contrib.auth.views import LogoutView
from src.users.views import users as users_views
app_name = "users"
urlpatterns = [
path("signup/", users_views.SingupView.as_view(), name="signup"),
path("login/", users_views.LoginView.as_view(), name="login"),
path(... | [
"nestor.monroy.90@gmail.com"
] | nestor.monroy.90@gmail.com |
5eb628668c6a868116b923dee275da59c35293ae | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/428/usersdata/278/107751/submittedfiles/jogoDaVelha_BIB.py | 9c61e5748d4603fa7f8c0c1d8ac497cb1cef0cf6 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,857 | py | # -*- coding: utf-8 -*-
# COLOQUE SUA BIBLIOTECA A PARTIR DAQUI
def simbolo_escolhido ():
s = str(input("Qual símbolo você deseja utilizar no jogo? "))
while (s!="X" and s!="O"):
print("Símbolo inválido! Tente novamente.")
s = str(input("Qual símbolo (X ou O) você deseja utilizar no jogo... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d99fa128e786e13bdeebee9173062024f9ca6bb9 | 692b907d07eee8ce3ee32a1fda74b6d92fd6c548 | /tests/models/validators/v1_3_0/jsd_83a3b9404cb88787.py | e82aab5d136f126fd8f3385104b13e98fca0c0ef | [
"MIT"
] | permissive | AltusConsulting/dnacentercli | 04c9c7d00b25753a26c643994388dd4e23bf4c54 | 26ea46fdbd40fc30649ea1d8803158655aa545aa | refs/heads/master | 2022-12-16T04:50:30.076420 | 2020-07-17T22:12:39 | 2020-07-17T22:12:39 | 212,206,213 | 0 | 0 | MIT | 2022-12-08T06:39:49 | 2019-10-01T21:50:42 | Python | UTF-8 | Python | false | false | 18,446 | py | # -*- coding: utf-8 -*-
"""DNA Center Get Template Details data model.
Copyright (c) 2019 Cisco and/or its affiliates.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includi... | [
"wastorga@altus.co.cr"
] | wastorga@altus.co.cr |
a902ec6fa3217ef0e3461790a9f238148c2e3f14 | 3f2090a9564150506103d41735db2c0f5016e8a5 | /test_ui.py | d81d8b46c08e6438a3a0453008523cc158677d8a | [] | no_license | ENPH353/PyQt5_demo | c9b3fb3e5f0358aa1deb0d43ba55cc6e629d5fb3 | 3c223584514dcab413f743ac82577e23e39677ba | refs/heads/master | 2020-09-11T08:37:55.007416 | 2019-11-15T21:39:26 | 2019-11-15T21:39:26 | 222,007,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | import sys
from PyQt5 import QtCore, QtGui, QtWidgets, uic
class Window(QtWidgets.QMainWindow):
def __init__(self):
super(Window, self).__init__()
uic.loadUi("my_test.ui", self)
self.myPushButton.clicked.connect(self.printSomething)
def printSomething(self):
self.myTextEdit.ap... | [
"you@example.com"
] | you@example.com |
152d300c9e836dbdcc0934c264f91c40a903a84d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02995/s812355939.py | 50ce1f6f26f9a6992b286d5660219344fbd81716 | [] | 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 | 300 | py | A, B, C, D = map(int,input().split())
def gcd(x,y):
if x<y:
x, y = y, x
r = x%y
while r!=0:
x = y
y = r
r = x%y
return y
def lcm(x,y):
return (x*y)//gcd(x,y)
L = lcm(C,D)
lenB = B-(B//C+B//D-B//L)
A-=1
lenA = A-(A//C+A//D-A//L)
print(lenB-lenA) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1bf717e56e34d6f7b1aa10cc98425fb0f3dfe06b | 59f7175a2ce7a2f8b757a5f3818a8920e2482ab8 | /src/run_evaluation_google.py | 74cb8362bb58df0487e6f3f12afd7fdebdbe376e | [
"MIT"
] | permissive | indonesian-nlp/multilingual-asr | 1b22e9fadca260a8395b7e86f5753f7e4aa53d63 | f57b6708761984549e2c7ac0bfd585aa57a08a80 | refs/heads/main | 2023-05-22T20:50:40.012810 | 2022-10-05T10:05:50 | 2022-10-05T10:05:50 | 422,496,260 | 37 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,788 | py | from datasets import load_dataset, load_metric
from pathlib import Path
import re
import unidecode
from util.text_processor import TextProcessor
transcript_file = Path("transcription_google.tsv")
chars_to_ignore = [",", "?", ".", "!", "-", ";", ":", '""', "%", "'", '"', "�", "‘", "’", "’"]
chars_to_ignore_regex = f'[{... | [
"cahya.wirawan@gmail.com"
] | cahya.wirawan@gmail.com |
14e06051e1420b77e93d97ade1c6d98aa3184095 | eb73d6d495b26091fd25d17fd813e5277a2c6da7 | /examples/adis16448/init-test/robot.py | 427f91ddb252062a5af9e7ed15eb38ed2cad2426 | [
"MIT"
] | permissive | robotpy/robotpy-adi | f2f5ebdeee6365f74820d75ecd5d79fe53255123 | d68ce95a96e5a05c56a30bc248afab8dea28a0f6 | refs/heads/main | 2022-01-26T22:40:55.788770 | 2022-01-09T04:31:16 | 2022-01-09T04:31:59 | 247,611,581 | 0 | 1 | NOASSERTION | 2021-01-15T08:08:00 | 2020-03-16T04:36:04 | C++ | UTF-8 | Python | false | false | 549 | py | #!/usr/bin/env python3
from wpilib import run, IterativeRobot, SPI
from adis16448 import ADIS16448_IMU
class MyRobot(IterativeRobot):
def robotInit(self):
print("Starting gyro init...")
self.myGyro = ADIS16448_IMU(ADIS16448_IMU.IMUAxis.kZ, SPI.Port.kMXP, 4)
print("Gyro init completed.")
... | [
"dustin@virtualroadside.com"
] | dustin@virtualroadside.com |
59f2b789430b909c464e4c9b4e2a18727f35fd9f | 037877a31670a85fa78b61df9ceabe981cfdfbf6 | /sympy/mpmath/visualization.py | 798993fb8e3247c301967816d8c6fab16eb3895e | [
"BSD-3-Clause"
] | permissive | certik/sympy_gamma | 6343b02e5d6d1c7d511a3329bbbd27cd11cd7ec8 | b0e555ca03f8476533cb1c19575f4461533837de | refs/heads/master | 2020-12-25T03:52:40.132034 | 2010-02-15T08:02:31 | 2010-02-15T08:02:31 | 344,391 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,638 | py | """
Plotting (requires matplotlib)
"""
from mptypes import mpc, inf, isnan, isinf, arange, complex_types
from functions import sqrt, arg
from colorsys import hsv_to_rgb, hls_to_rgb
plot_ignore = (ValueError, ArithmeticError, ZeroDivisionError)
def plot(f, xlim=[-5,5], ylim=None, points=200, file=None, dpi=None,
... | [
"ondrej@certik.cz"
] | ondrej@certik.cz |
eca0523e4b4d84985910d654935e02840c54c207 | 765e32aac083e750cf5ccab05e6a9692ef11392f | /generators/thrsend.py | 3b88ed5e46008809de3273d4c22597af08276f49 | [
"MIT"
] | permissive | Chyi341152/chyi-book | eeed268ba1133e0ab1ef3e6a853fb060f41a2d87 | ddeaf49d69a68f5718c20c3b7fe6fd37381d21eb | refs/heads/master | 2021-01-25T13:17:16.892385 | 2018-03-26T15:16:12 | 2018-03-26T15:16:12 | 123,544,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | py | # thrsend.py
#
# Send items to consumer threads
from queue import Queue
import threading
class ConsumerThread(threading.Thread):
def __init__(self,target):
threading.Thread.__init__(self)
self.setDaemon(True)
self.in_queue = Queue.Queue()
self.target = target
def send(self,item):... | [
"chyiyaqing@gmail.com"
] | chyiyaqing@gmail.com |
86c1cb9bcee334f622829f4e19954d6ca0119f7d | 681d742a69a403bbd3ec24b586fa6c5075fd9da6 | /bottle/setup_pypy.py | 21acfc2484fad2629a7e54064226e203b0278ae2 | [] | no_license | thangchung/FrameworkBenchmarks | 3e31fa6800b34f8fa645285ec223fab651e039ef | 925dd59dde25bed4aca12f876cf5672d0c567dd7 | refs/heads/master | 2020-12-25T01:50:10.735493 | 2013-07-31T00:12:37 | 2013-07-31T00:12:37 | 11,941,889 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | import subprocess
import setup_util
import multiprocessing
import os
bin_dir = os.path.expanduser('~/FrameworkBenchmarks/installs/pypy/bin')
NCPU = multiprocessing.cpu_count()
proc = None
def start(args):
global proc
setup_util.replace_text("bottle/app.py", "DBHOSTNAME", args.database_host)
proc = subpr... | [
"inada-n@klab.com"
] | inada-n@klab.com |
69f48fc66c71495385c542e497ef1e1123cd2cb6 | 5e8a936891f0687a28425cef248a49480511119d | /pydl/pydlspec2d/spec1d/findspec.py | d695f2be2e8f91819b2e4024ec067dd58417f776 | [
"BSD-3-Clause"
] | permissive | bsipocz/pydl | 426a4cdae003b8c4e86249ec36005925d8ffa341 | f8719699c71806f9b55dd41f843e5f35c64c770b | refs/heads/master | 2020-12-07T15:43:01.554352 | 2015-09-24T03:15:14 | 2015-09-24T03:15:14 | 45,721,009 | 0 | 0 | null | 2015-11-07T03:30:30 | 2015-11-07T03:30:29 | null | UTF-8 | Python | false | false | 6,117 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
from __future__ import print_function
#
def findspec(*args,**kwargs):
"""Find SDSS/BOSS spectra that match a given RA, Dec.
Parameters
----------
Returns
-------
"""
import os
import os.path
imp... | [
"benjamin.weaver@nyu.edu"
] | benjamin.weaver@nyu.edu |
1743c3527fa84ef489826f7f2b3e46c0ac05a3e7 | fc5fa8501e8a62291a48c82611e1b74b961ca561 | /tft/script_hyperparam_opt.py | ea8270fe39d34c1dff67f5b9b9e9265346eb2a5d | [
"Apache-2.0"
] | permissive | hitesh-hk/google-research | fa3d3e31cce995fa6da89322dab4993bf1c1ead8 | ddc22300c4cb3223654c9a981f892dc0f6286e35 | refs/heads/master | 2021-02-17T18:57:31.267570 | 2020-01-17T14:49:25 | 2020-01-17T14:54:27 | 245,119,290 | 1 | 1 | Apache-2.0 | 2020-03-05T09:24:01 | 2020-03-05T09:24:00 | null | UTF-8 | Python | false | false | 7,849 | py | # coding=utf-8
# Copyright 2019 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
7816a2aae200e2b9fe30179e9e91079c13ffdc54 | 4738be4be8cda375e33ef606dbe82998d6e60bef | /crawlers/common/download_path_exemplo.py | a0876c36c974cb3fd006649695916d9b17a905fa | [
"MIT"
] | permissive | Arieugon/Pesquisas | 39723d6ee642d50708f4a883b8d13faf5d018c3c | 87e3923c571d44774c36d4bc54e444cb1003b43b | refs/heads/master | 2023-01-21T10:23:53.645736 | 2020-12-02T19:23:48 | 2020-12-02T19:23:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | path = '/home/XXXX/Downloads' | [
"danilopcarlotti@gmail.com"
] | danilopcarlotti@gmail.com |
d77c342943e48df02b70dd96ba23ce843d9cd9d6 | 6460537882fdfdac0ca254ecb28c8085f27a7059 | /lte/gateway/python/magma/enodebd/devices/baicells.py | 6c4ed83a7e5aab02ad5bb5e60ec90c668483f229 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | swadhin/magma | c38d5361f69d44d27a6fb8967178ff159b326926 | 8d4001aac9ff5022ea83011a8f1d7b164a4fd617 | refs/heads/master | 2020-04-28T07:48:43.279637 | 2019-03-11T23:23:13 | 2019-03-11T23:34:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,935 | py | """
Copyright (c) 2016-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.
"""
from typing import Optional... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
7a61284ab2cb8d7cf7ad4ae89463da31b88ad669 | 673f9b85708affe260b892a4eb3b1f6a0bd39d44 | /Botnets/App/App Web/PDG-env/lib/python3.6/site-packages/sklearn/mixture/bayesian_mixture.py | 8ed280e560bd230f52cfca71337556241f6c93e9 | [
"MIT"
] | permissive | i2tResearch/Ciberseguridad_web | feee3fe299029bef96b158d173ce2d28ef1418e4 | e6cccba69335816442c515d65d9aedea9e7dc58b | refs/heads/master | 2023-07-06T00:43:51.126684 | 2023-06-26T00:53:53 | 2023-06-26T00:53:53 | 94,152,032 | 14 | 0 | MIT | 2023-09-04T02:53:29 | 2017-06-13T00:21:00 | Jupyter Notebook | UTF-8 | Python | false | false | 504 | py |
# THIS FILE WAS AUTOMATICALLY GENERATED BY deprecated_modules.py
import sys
from . import _bayesian_mixture
from ..externals._pep562 import Pep562
from ..utils.deprecation import _raise_dep_warning_if_not_pytest
deprecated_path = 'sklearn.mixture.bayesian_mixture'
correct_import_path = 'sklearn.mixture'
_raise_dep_w... | [
"ulcamilo@gmail.com"
] | ulcamilo@gmail.com |
f74cd21730fe258498d15bbef18d8bee72fbe12c | 6a07912090214567f77e9cd941fb92f1f3137ae6 | /cs101/Unit 6/10.py | ad1706059a31a56815fdc8c36609f9c5881217bc | [] | no_license | rrampage/udacity-code | 4ab042b591fa3e9adab0183d669a8df80265ed81 | bbe968cd27da7cc453eada5b2aa29176b0121c13 | refs/heads/master | 2020-04-18T08:46:00.580903 | 2012-08-25T08:44:24 | 2012-08-25T08:44:24 | 5,352,942 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # cs101 ; Unit 6 ; 10
# Define a procedure is_palindrome, that takes as input a string, and returns a
# Boolean indicating if the input string is a palindrome.
# Base Case: '' => True
# Recursive Case: if first and last characters don't match => False
# if they do match, is the middle a palindrome?
def is_palindrome(... | [
"raunak1001@gmail.com"
] | raunak1001@gmail.com |
94d47861a758b46c58b1c97198c254ccc1f68c81 | 5b93930ce8280b3cbc7d6b955df0bfc5504ee99c | /nodes/Muller17Introduction/H_Chapter7/C_RepresentingText/A_ApplyingBagofWords/index.py | 03cf3279b117acb8847f8520f36c08cdbf508b1f | [] | no_license | nimra/module_gen | 8749c8d29beb700cac57132232861eba4eb82331 | 2e0a4452548af4fefd4cb30ab9d08d7662122cf4 | refs/heads/master | 2022-03-04T09:35:12.443651 | 2019-10-26T04:40:49 | 2019-10-26T04:40:49 | 213,980,247 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,517 | py | # Lawrence McAfee
# ~~~~~~~~ import ~~~~~~~~
from modules.node.HierNode import HierNode
from modules.node.LeafNode import LeafNode
from modules.node.Stage import Stage
from modules.node.block.CodeBlock import CodeBlock as cbk
from modules.node.block.HierBlock import HierBlock as hbk
from modules.node.block.ImageBlock ... | [
"lawrence.mcafee@gmail.com"
] | lawrence.mcafee@gmail.com |
d47c2d31dfc536f601e72a935b9d8adcd61b66f7 | 0df79fddbbf5c345869f3b25ab2f5a0861228173 | /cumulus/queue/sge.py | 125026bef2176b3fbd1ea18c8e5eee9a8d8ae20d | [
"Apache-2.0"
] | permissive | psavery/cumulus | 46268c42afd9b989c7f4867e4825ddc8bbd1602d | 23fe761915288383085d09183ee75871fb205b6c | refs/heads/master | 2020-03-25T11:48:17.696347 | 2018-08-08T16:28:01 | 2018-08-08T16:28:01 | 143,749,156 | 0 | 0 | null | 2018-08-06T15:37:33 | 2018-08-06T15:37:32 | null | UTF-8 | Python | false | false | 3,352 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# Copyright 2015 Kitware Inc.
#
# Licensed under the Apache License, Version 2.0 ( the "License" );
# you may not use this file except in compliance with the License.
# You may obtain a cop... | [
"chris.harris@kitware.com"
] | chris.harris@kitware.com |
1e0b1a2a47b6f0d6eef1e05a9841519805793a60 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/tintbrowser/testcase/interestcases/testcase2_2_1_7_0_3_3_020.py | 0de51ad15bbc5f55eed9ce70fcac227d0451a4af | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,996 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
a4d0f23a350288a85d106420e5ca0e884e819ad5 | eac7ae395c4832ac394087054ab014d1d6a9f6a6 | /python_experiments/data_analysis/paper_figures_sigmod18/my_utils.py | 2e3078968a431dd062e8b1b1439ebbdeca338b75 | [
"MIT"
] | permissive | mexuaz/AccTrussDecomposition | 21be22007e1c50ca4b7df6fbbad1dfbf4c2fffae | 15a9e8fd2f123f5acace5f3b40b94f1a74eb17d4 | refs/heads/master | 2022-12-14T03:41:05.133564 | 2020-09-03T00:35:33 | 2020-09-03T00:35:33 | 291,565,779 | 0 | 0 | MIT | 2020-08-30T22:57:55 | 2020-08-30T22:57:55 | null | UTF-8 | Python | false | false | 262 | py | import json
def get_name_dict():
with open('config/data_names.json') as ifs:
return eval(''.join(ifs.readlines()))
def get_algorithm_name_dict():
with open('config/algorithm_info.json') as ifs:
return json.load(ifs)["algorithm_abbr"]
| [
"yche@cse.ust.hk"
] | yche@cse.ust.hk |
a8b47ce283f763c972ecd4be534e5bfe03c497f3 | dbde9338e87117397c2a7c8969df614f4dd4eacc | /examples/pytorch/eager/medical_imaging/3d-unet/nnUnet/nnunet/training/network_training/nnUNet_variants/architectural_variants/nnUNetTrainerV2_3ConvPerStage_samefilters.py | 19ebdd781078e11f9f1a1571e0159cd743e3983b | [
"Apache-2.0",
"MIT",
"Intel"
] | permissive | leonardozcm/neural-compressor | 9f83551007351e12df19e5fae3742696613067ad | 4a49eae281792d987f858a27ac9f83dffe810f4b | refs/heads/master | 2023-08-16T17:18:28.867898 | 2021-09-03T06:44:25 | 2021-09-03T06:54:30 | 407,043,747 | 0 | 0 | Apache-2.0 | 2021-09-16T07:57:10 | 2021-09-16T06:12:32 | null | UTF-8 | Python | false | false | 2,203 | py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# 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://w... | [
"feng.tian@intel.com"
] | feng.tian@intel.com |
4ef1624781289d9cc23002af1f0d3b7947a76f50 | ac9e7550b15ab417813a8cf0d21e200a6755c4cc | /z_temp/temp1.py | ed4e0b28b5365db1fd886ffa9399bdd4b08fd88d | [] | no_license | jerryhan88/beacon_projects | 16a6df7650317bc0db70872a9ca2b46754259a2f | eca75468b1aa888ac9a188b49912b52ba304d781 | refs/heads/master | 2021-01-22T09:09:32.129837 | 2017-04-17T08:59:29 | 2017-04-17T08:59:31 | 81,932,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,065 | py | import wx
class Mywin(wx.Frame):
def __init__(self, parent, title):
super(Mywin, self).__init__(parent, title=title, size=(350, 250))
panel = wx.Panel(self)
vbox = wx.BoxSizer(wx.VERTICAL)
hbox1 = wx.BoxSizer(wx.HORIZONTAL)
l1 = wx.StaticText(panel, -1, "Text Field")
... | [
"jerryhan88@gmail.com"
] | jerryhan88@gmail.com |
86fd1a92e80ffc61f62104a0b8c318f2beb50325 | 000f57fa43ecf9f5353ca80ced3ad505698dbecb | /modeldelete/school/migrations/0001_initial.py | c43e3e37bcfc26010ba23e88808097c2207b87c0 | [] | no_license | kamal0072/imagegallary | 846e9ef43f6e0c42c98a4a4ad5cb22faef295936 | 91effde764710fd9bfc31b7dec238d143833e31e | refs/heads/master | 2023-05-02T07:32:35.805297 | 2021-05-21T05:35:05 | 2021-05-21T05:35:05 | 359,541,161 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | # Generated by Django 3.1.6 on 2021-04-07 16:07
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
('id', models.AutoField(... | [
"hasan.kamaal0072@gmail.com"
] | hasan.kamaal0072@gmail.com |
ff427bf4af0bf56ea5160c5496805e6e3bf51b4f | f1ddac68280cf55252ab4925f13843517caffc0f | /lepidoptera/migrations/0022_auto_20190823_1509.py | b6604d5dad809b924d09418841ce340f0711f85a | [
"BSD-2-Clause"
] | permissive | BelgianBiodiversityPlatform/catalogue-lepidoptera-belgium-webapp | b5d5af5796fbcc2caedc193bd56ee08fb957a276 | c0ed7fde78f9af5afbd91c53ed3f543046e8dd41 | refs/heads/master | 2022-12-02T11:37:28.897214 | 2019-09-17T11:26:18 | 2019-09-17T11:26:18 | 149,598,470 | 2 | 0 | NOASSERTION | 2022-11-22T02:21:23 | 2018-09-20T11:26:21 | Python | UTF-8 | Python | false | false | 1,475 | py | # Generated by Django 2.0.13 on 2019-08-23 13:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lepidoptera', '0021_observation_data_migration'),
]
operations = [
migrations.RemoveField(
model_name='observation',
... | [
"nicolas@niconoe.eu"
] | nicolas@niconoe.eu |
1fd2f86910cb9e65ca688fb2c8926e6d0ad229b5 | d117dbfcdd7c952e3d27f6fa9767889442268fc1 | /analyses/control_check.py | ca5df5ea2e57935cce2591e88184588eda8b4edc | [] | no_license | Heringer-Epson/routines_DTD | b9ea54cf85e34b3c56956e111e59a42da860b81d | f42714eb4508d7d697407e8c5b90e5460073da99 | refs/heads/master | 2021-04-12T08:10:19.765251 | 2019-08-10T19:32:45 | 2019-08-10T19:32:45 | 126,042,891 | 0 | 0 | null | 2018-11-29T19:35:54 | 2018-03-20T15:48:16 | Python | UTF-8 | Python | false | false | 2,917 | py | #!/usr/bin/env python
import numpy as np
import pandas as pd
def get_full(fpath, redshift_entry):
df = pd.read_csv(fpath, header=0, low_memory=False)
ID = df['objID'].values
z = df[redshift_entry].values.astype(float)
cond = ((z >= .01) & (z <= .2))
#cond = ((z >= .2) & (z <= .4))
ID_z = ID[... | [
"epson.heringer@gmail.com"
] | epson.heringer@gmail.com |
b8ab8cf88b9a27d1a83d011e4784d7e8415ad4cc | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2081/60581/250265.py | c10a780cc40c920e923d67287c33f27f919ab3ee | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | import sys
lst = []
for line in sys.stdin:
if line.strip()=="":
break
lst.append(line)
input = []
#读入处理
for i in range(0,len(lst)):
theLine = []
j = 0
while j < len(lst[i]):
str = ''
if (lst[i][j]>='A' and lst[i][j]<='Z') or (lst[i][j]>='a' and lst[i][j]<='z'):
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
3faf97e6676e44308d5997cbcb8e779ff7342b77 | c5812664601b4c4e36f49c2522e637cec397485d | /pytorch_inferno/model_wrapper.py | 8af33d0a25ad81cbec16706f4fbcc20a6077eed5 | [
"Apache-2.0"
] | permissive | GilesStrong/pytorch_inferno | 4e15af05f7e50707a60638fbf9ad160b7bc9e3ba | ebee7305d3fbf5fe50b6b7075294a4ec14033e01 | refs/heads/master | 2023-04-15T19:59:57.176067 | 2022-05-24T08:05:42 | 2022-05-24T08:05:42 | 299,618,987 | 5 | 2 | Apache-2.0 | 2023-04-12T06:06:09 | 2020-09-29T13:02:27 | Jupyter Notebook | UTF-8 | Python | false | false | 4,427 | py | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/01_model_wrapper.ipynb (unless otherwise specified).
__all__ = ['ModelWrapper']
# Cell
from .callback import AbsCallback, PredHandler
from .utils import to_device, device
from .data import DataPair, WeightedDataLoader, DataSet
from typing import Optional, Union, List, ... | [
"giles.strong@outlook.com"
] | giles.strong@outlook.com |
56b977afaa963869265f60e336534e7bc088fa9e | 3e5ecad4d2f681f2f4f749109cc99deea1209ea4 | /keras/keras19_diabets4.py | 8a216f02bd8101656a4232838ea31f79b6da3806 | [] | no_license | SunghoonSeok/Study | f41ede390079037b2090e6df20e5fb38f2e59b8f | 50f02b9c9bac904cd4f6923b41efabe524ff3d8a | refs/heads/master | 2023-06-18T06:47:55.545323 | 2021-07-05T00:47:55 | 2021-07-05T00:47:55 | 324,866,762 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,176 | py | # 실습 : 19_1, 2, 3, 4, 5, EarlyStopping까지
# 총 6개의 파일을 완성하시오.
import numpy as np
from sklearn.datasets import load_diabetes
dataset = load_diabetes()
x = dataset.data
y = dataset.target
print(x[:5])
print(y[:10])
print(x.shape, y.shape) # (442, 10) (442,)
print(np.max(x), np.min(x))
print(dataset.feature_names)
prin... | [
"76455292+SunghoonSeok@users.noreply.github.com"
] | 76455292+SunghoonSeok@users.noreply.github.com |
3c6e3d5d7f06f8e6ea12456cfbf278ad21a749c5 | 551dabfe10ea6778546f380d3ee9f0500f352b0f | /2.2 Logistic Regression/2.2.2.1.py | 97e299896b8e6f84a21da8708b514527347d23be | [] | no_license | mohamedalemam/sklearn | c32843b6a04fe4b2a326870ba3658e8c1fc3b424 | 387c21357b165a1bc3593f8303ac5f9a672bd62a | refs/heads/main | 2022-12-29T15:38:06.534505 | 2020-10-17T21:26:59 | 2020-10-17T21:26:59 | 301,839,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | #Import Libraries
from sklearn.linear_model import SGDClassifier
#----------------------------------------------------
#Applying SGDClassifier Model
'''
#sklearn.linear_model.SGDClassifier(loss='hinge’, penalty=’l2’, alpha=0.0001,l1_ratio=0.15, fit_intercept=True,
# max_iter... | [
"noreply@github.com"
] | mohamedalemam.noreply@github.com |
f56e60661ef9503d72a46f7384d667a73d842498 | c180333a152eb3efd39ec1a6f92965c2124d41fd | /Dojo/Python_Stack/Django/001time_display/main/main/urls.py | a5dc4cf6bd89dd4fea1650082b0e942baeb0ac1c | [] | no_license | AlexFloresGreer/Branching_and_Merging | 3399a91dfb9f23e6d3ec163d40d004d27bc330ab | 3d53fb814345d075a79a6078a63c9ef7ccfa09bc | refs/heads/master | 2021-01-15T09:15:27.153736 | 2016-08-24T18:02:58 | 2016-08-24T18:02:58 | 64,349,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | """main URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"floresalexx@gmail.com"
] | floresalexx@gmail.com |
0220c229d69e7d19398673d7a93aa523a77f1cbb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02795/s788554102.py | 4f342582680e129ea5381f45518ba8f769a5f439 | [] | 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 | 86 | py | h=int(input())
w=int(input())
n=int(input())
ans=min((n+h-1)//h,(n+w-1)//w)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d59fa7bfdc8e46aed9a9d657ed71d407ec77cc95 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2786/60889/273981.py | c34785181a9693e4b295aedda595805cb753a46d | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | def findLeast(limit,ai):
loc = 0
questions = 200001
for i in range(len(ai)):
if ai[i]>=limit:
if ai[i]<questions:
questions = ai[i]
loc = i
if questions == 200001:
return -1
else:
return loc
days = int(input())
ai = input()... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
786a83488b5bf517c2570003d9bbc58bc3235727 | 6ff4a7e4743e6574a9584ef5f672a976d4976baa | /python_idiom/code/list_comprehension_bad_code.py | 56b8424a57f7e80f14c0cbb3d82619b5cf754a7a | [
"BSD-2-Clause"
] | permissive | lsieun/learn-python | 1c7d6eeb80aa6e47e5e94a055ba9b674fd886cb9 | ce067202e8e77351de1fc99897185b6363d98219 | refs/heads/master | 2021-06-26T07:41:32.393981 | 2018-10-20T04:21:54 | 2018-10-20T04:21:54 | 111,169,474 | 1 | 1 | BSD-2-Clause | 2019-05-07T12:52:34 | 2017-11-18T02:21:19 | Python | UTF-8 | Python | false | false | 520 | py | #!/usr/bin/env python3
# Last modified: 2018-08-24 01:08:51
def is_prime(n):
if n == 2 or n == 3: return True
if n < 2 or n%2 == 0: return False
if n < 9: return True
if n%3 == 0: return False
r = int(n**0.5)
f = 5
while f <= r:
print('\t',f)
if n%f == 0: return False
... | [
"331505785@qq.com"
] | 331505785@qq.com |
993a1414244ce8431e4a1b1e95284a9fb2a09fbf | 0e52322996589cbd1af830471d3e15111d88fd1e | /alligator/backends/sqs_backend.py | 5421a192971c2a5c0b339875352290eff871dfa3 | [
"BSD-3-Clause"
] | permissive | philippeowagner/alligator | 8285a5f4bb97232b32223194ff5eee5886d533a2 | f18bcb35b350fc6b0886393f5246d69c892b36c7 | refs/heads/master | 2021-01-15T09:56:25.277188 | 2015-04-01T05:07:46 | 2015-04-01T05:07:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,928 | py | import boto.sqs
from boto.sqs.jsonmessage import JSONMessage
try:
from urllib.parse import urlparse
except ImportError:
from urlparse import urlparse
class Client(object):
def __init__(self, conn_string):
"""
A Amazon SQS-based ``Client``.
:param conn_string: The DSN. The region ... | [
"daniel@toastdriven.com"
] | daniel@toastdriven.com |
af688ef0d131bf96c75477824a93a5319782fea5 | 2dc9ee4a8c39d00c255f52e8af2486e7c2891a98 | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_12_01/aio/operations/_private_endpoint_connections_operations.py | afb6d10c95317080d57f681d1533c225e41334c5 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | JoshuaLai/azure-sdk-for-python | fd780c2ab145a35ec0bf9519c4d08c928081e79c | 07614796a332bcfeed35dddee9dbfc2f5487a39f | refs/heads/master | 2023-04-04T17:49:58.177790 | 2021-04-06T21:31:48 | 2021-04-06T21:31:48 | 348,842,434 | 0 | 0 | MIT | 2021-03-17T20:24:55 | 2021-03-17T20:24:54 | null | UTF-8 | Python | false | false | 18,927 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | JoshuaLai.noreply@github.com |
be259b304bd8b6df6a7812237935474baae8ca71 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/staunton.py | 69b1dffd463e27adbe53aa353625a302bc02003b | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 334 | py | ii = [('RogePAV2.py', 2), ('SadlMLP.py', 32), ('AubePRP2.py', 5), ('PettTHE.py', 1), ('PeckJNG.py', 3), ('AubePRP.py', 2), ('ClarGE2.py', 3), ('CoolWHM.py', 2), ('LyelCPG.py', 4), ('WestJIT2.py', 2), ('WadeJEB.py', 1), ('KirbWPW2.py', 1), ('MereHHB3.py', 1), ('BentJRP.py', 1), ('BabbCRD.py', 1), ('ClarGE3.py', 3), ('Ki... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
450d9b56b11fba1809472e9f565aedf668f7dec8 | 8f5043bde2efb30eebbccba5a14467028762b334 | /lists/tests/test_forms.py | 7149b5c2794741027ee073f8fbd51c4acc9f4ab1 | [] | no_license | frimmy/TDD_With_Python | da27947af172c6f2e81df232b1ef1416b40b6249 | 7e0644941bbd16f9c179e93de4af9cadaa8b7b8a | refs/heads/master | 2021-01-22T05:06:25.125756 | 2017-03-24T19:24:01 | 2017-03-24T19:24:01 | 29,847,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | from django.test import TestCase
from lists.forms import ItemForm
from lists.models import Item, List
from lists.forms import EMPTY_ITEM_ERROR
class ItemFormTest(TestCase):
def test_form_renders_item_text_input(self):
form = ItemForm()
self.assertIn('placeholder="Enter a to-do item"', form.as_p()... | [
"adrian.frimpong@gmail.com"
] | adrian.frimpong@gmail.com |
b06a4d1ef4289f9087f71390f764f1c64a9359d9 | e1f941604b7a8bf4b86b700a2a0fd302dbe70434 | /GTupdate2_diameters_rid2.py | 0a510d532497dced97cbb4d65e8b129a66c9b01b | [] | no_license | frenchd24/gt | fcc0bfee6b7f3c68871218f237e31c395889b5de | e0840800d8a3f906844b30701b294f102b030243 | refs/heads/master | 2021-06-03T18:05:10.797021 | 2020-07-06T04:22:37 | 2020-07-06T04:22:37 | 109,777,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,997 | py | #!/usr/bin/env python
'''
By David M. French (frenchd@astro.wisc.edu)
$Id: GTupdate2_diameters_rid2.py, v 2.4 01/03/17
Calculate diameters by normalizing to 2MASS K_s "Total" values:
Uses:
return_pa_full.csv
combined with distance data from: return_basic_full.csv
Reminder: return_basic_full.csv, return_phot_full.... | [
"frenchd24@gmail.com"
] | frenchd24@gmail.com |
805475566a16b3d6a82b3c8f6938d8c68a204090 | b15848c78b6ed07d27cae74b90ae99a27d7acf24 | /DataParser/DataParser/wsgi.py | 01422b5ee74a14a65b8de16fc02553236f2e8d24 | [
"MIT"
] | permissive | CodeBoss86/DataParser | ba988462de6e1cc1ae156e3407fbdea06fa5efc8 | c9e09f0975145a4ca0a3645699ee91adee49cd2c | refs/heads/main | 2023-01-19T01:51:31.178645 | 2020-11-17T13:38:47 | 2020-11-17T13:38:47 | 316,596,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for DataParser 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"mattode@outlook.com"
] | mattode@outlook.com |
073ba87e84a2c0db6c2b3aa1fad84756753c3a04 | b66be582abfb3715d5d0f1ccc77a8684eb8098ed | /fb/views/create_post/api_wrapper.py | 7338909fc063e845deb407ac094ec0c1fa291e82 | [] | no_license | naveenvadaga/fb_posts | fe816992ca1d050b36d523ebf1127c3c25d490ac | c4187a3ef7713b8b8da91a88bdf17225de04bcf9 | refs/heads/master | 2022-05-14T16:15:12.222130 | 2019-07-29T04:00:31 | 2019-07-29T04:00:31 | 197,704,064 | 0 | 0 | null | 2022-04-22T21:57:54 | 2019-07-19T04:51:46 | Python | UTF-8 | Python | false | false | 744 | py | from django_swagger_utils.drf_server.utils.decorator.interface_decorator \
import validate_decorator
from .validator_class import ValidatorClass
@validate_decorator(validator_class=ValidatorClass)
def api_wrapper(*args, **kwargs):
from fb.presenters.json_presenter import JsonPresenter
from fb.storages.sto... | [
"naveenvadaga@gmail.com"
] | naveenvadaga@gmail.com |
6705b90d8b85b505de50ff1592d7e420fad9e061 | 5f3fb04f8e04f8aa9d15bb9cded75b98fa53422f | /fofo_account_import/__openerp__.py | 78cdbf796a914173327c80357bacc8255424ce28 | [] | no_license | kittiu/fofo | 49a5b9110814bc8512e22fd101e821e6820b2f0a | b73e2009e220fd843e91d9ea414f514ae113b76c | refs/heads/master | 2020-04-16T20:12:44.309677 | 2018-08-03T14:53:12 | 2018-08-03T14:53:12 | 63,481,415 | 0 | 1 | null | 2018-08-03T14:53:13 | 2016-07-16T12:13:16 | Python | UTF-8 | Python | false | false | 1,612 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2015-Today Ecosoft Co., Ltd. (http://Ecosoft.co.th).
#
# This program is free software: you can redistribute it and/or modify
# it under the ter... | [
"kittiu@gmail.com"
] | kittiu@gmail.com |
85d032ab840dfd21cb160be4814672a24ea798b5 | ac2c3e8c278d0aac250d31fd023c645fa3984a1b | /saleor/saleor/site/migrations/0024_sitesettings_customer_set_password_url.py | 46eb90850228292f0736c461a7959c3bb7d3dd21 | [
"BSD-3-Clause",
"CC-BY-4.0"
] | permissive | jonndoe/saleor-test-shop | 152bc8bef615382a45ca5f4f86f3527398bd1ef9 | 1e83176684f418a96260c276f6a0d72adf7dcbe6 | refs/heads/master | 2023-01-21T16:54:36.372313 | 2020-12-02T10:19:13 | 2020-12-02T10:19:13 | 316,514,489 | 1 | 1 | BSD-3-Clause | 2020-11-27T23:29:20 | 2020-11-27T13:52:33 | TypeScript | UTF-8 | Python | false | false | 414 | py | # Generated by Django 2.2.6 on 2019-10-21 11:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("site", "0023_auto_20191007_0835")]
operations = [
migrations.AddField(
model_name="sitesettings",
name="customer_set_password_url... | [
"testuser@151-248-122-3.cloudvps.regruhosting.ru"
] | testuser@151-248-122-3.cloudvps.regruhosting.ru |
31c53099a4dc85551725edcbcec07bd5ae54dfaa | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03363/s869890648.py | 32ffc78b4ce7a8f1c4a6958c07a263bde2f9d77b | [] | 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 | 327 | py | import collections
def subarraySum(nums, k):
count = total = 0
cache = collections.defaultdict(int)
cache[0] = 1
for num in nums:
total += num
count += cache[total - k]
cache[total] += 1
return count
A = input()
nums = list(map(int,input().split()))
k = 0
print(subarraySum(nu... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
aecffbdedb02559661e713140abafa995183108f | e5a3cfa21f78259dfcf9d991f6f67f0840d9c93c | /python/2_6_6.py | d8b31cf9ecf19dabba1df2d39aba3c74dbf848c4 | [] | no_license | Glittering/pythonLearn | ac91ed73cb615e3604d1c4bfde3692cf4efef6e3 | 0097b8fd5fc587a69f6c1bad95b08fe42481bf7c | refs/heads/master | 2021-01-13T05:46:24.974340 | 2017-04-17T12:58:59 | 2017-04-17T12:58:59 | 77,099,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | class Rational(object):
def __init__(self, p, q):
self.p = p
self.q = q
def __int__(self):
return self.p // self.q
def __float__(self):
return float(self.p) / self.q
print float(Rational(7, 2))
print float(Rational(1, 3))
| [
"zhaoshichengzhao@sina.com"
] | zhaoshichengzhao@sina.com |
058fcb33c9fe4e0acfddd9d3153b9d074a2f52a6 | f55a5a67e5485040eef1d53f08fb15306513d227 | /melons.py | 36394b30d6d7f2646664511f689a3ca2ffc0ffa5 | [] | no_license | agstaples/classes-melons | 41f8175a760b50ba0caf1daa12a33b138dca7dc3 | 05bb6d66421fbb1d3979a33d2eb73a2a754ef332 | refs/heads/master | 2020-03-22T02:27:56.091035 | 2018-07-02T00:10:58 | 2018-07-02T00:10:58 | 139,371,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | """Classes for melon orders."""
class AbstractMelonOrder:
"""An abstract base class that other Melon Orders inherit from."""
def __init__(self, species, qty, order_type, tax):
"""Initialize melon order attributes."""
self.species = species
self.qty = qty
self.shipped = False
... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
e475d0e2579b14323f9d8382ea94b045fd451563 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03673/s251568512.py | d2e6e11c8ff98ec8161145d8f6001f91305fb6a6 | [] | 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 | 362 | py | from collections import deque
def solve():
n = int(input())
A = list(map(int,input().split()))
q = deque()
for i in range(n):
if i % 2 == 0:
q.append(A[i])
else:
q.appendleft(A[i])
ans = list(q)
if n % 2 != 0:
ans.reverse()
print(*an... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5c93d0f3b1cfc33ac5e87185b670900bee3dc061 | 70cdf0741a22c678401a306229003bf036ffe5a6 | /ocbind/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/ipv6_reachability/prefixes/prefix/subtlvs/subtlv/tag64/__init__.py | 49b9857485c7bd040cc1ab21158aec6e478fc8db | [] | no_license | zsblevins/nanog81-hackathon | 5001e034339d6b0c6452ae2474f06916bcd715cf | 1b64fd207dd69837f947094fbd6d6c1cea3a1070 | refs/heads/main | 2023-03-03T09:39:28.460000 | 2021-02-15T13:41:38 | 2021-02-15T13:41:38 | 336,698,856 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,066 | py | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | [
"zblevins@netflix.com"
] | zblevins@netflix.com |
1839e5d49ad3e06db973e90b40c4f85013e63ee5 | e9c547bfed55c05dac524e67b758b655d00da587 | /tests/test_validator.py | bc15329748ec83ce957abe71cdb50f991ef5140b | [
"Apache-2.0"
] | permissive | hooshmandshr/yass | 919009a04fa76e15034e53c687816b85e7bb2535 | 96fa9a03028d37f0291a4c2a3d9b16b18ee8a539 | refs/heads/master | 2021-05-01T19:52:46.647709 | 2018-02-07T16:09:56 | 2018-02-07T16:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,191 | py | import pkg_resources
import pytest
from yass.config.validator import Validator
def test_rejects_dict_with_missing_required_sections():
d = dict(a=1, b=2)
required_sections = ['a', 'b', 'c']
optional_sections = dict(d=4)
validator = Validator(d, required_sections, optional_sections)
message = 'Th... | [
"fkq8@blancas.io"
] | fkq8@blancas.io |
6403da2b1d472425cedadbfa95114132ae15381d | 11e0b8c2f0ddbc1cc0d49b581908eee495428ffd | /randomword/settings.py | 716e3e09ac15967112b144b591bd6d9938e56690 | [] | no_license | CaliforniaSoil/Password_Generator | a6983b60718a7caa4296e46a6af69d53efcae7b9 | 5b9c934944d9edeae7d58162c75f249c2fcd0657 | refs/heads/master | 2021-07-15T01:20:31.733187 | 2017-10-18T22:01:04 | 2017-10-18T22:01:04 | 107,467,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,132 | py | """
Django settings for randomword project.
Generated by 'django-admin startproject' using Django 1.10.
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 o... | [
"admin@Admins-MacBook-Pro.local"
] | admin@Admins-MacBook-Pro.local |
29396374354a4101d3830b12fe3ff394b75da8b2 | d87483a2c0b50ed97c1515d49d62c6e9feaddbe0 | /.history/buyOne_20210203142031.py | 70f9f28fd38bd5e0cfdf27a7fa1b9cd402ada1d7 | [
"MIT"
] | permissive | HopperKremer/hoptrader | 0d36b6e33922414003cf689fb81f924da076a54b | 406793c10bc888648290fd15c7c2af62cf8c6c67 | refs/heads/main | 2023-06-12T15:51:00.910310 | 2021-07-06T16:15:41 | 2021-07-06T16:15:41 | 334,754,936 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | import requests
from tda import auth, client
from tda.orders.equities import equity_buy_market
from tda.orders import EquityOrderBuilder
from tda.orders.common import Duration, Session
import os, sys
import time
from selenium import webdriver
import json
currentdir = os.path.dirname(os.path.realpath(__file__))
parentd... | [
"hopperkremer@gmail.com"
] | hopperkremer@gmail.com |
7e64ed300e36eaee0eec6f18b53e9cb3fd057d65 | 6dedbcff0af848aa979574426ad9fa3936be5c4a | /cengal/entities/copyable/versions/v_0/copyable.py | 3021a456bb93671480cff9409f13c9bb94c6b6eb | [
"Apache-2.0"
] | permissive | FI-Mihej/Cengal | 558d13541865e22006431bd1a1410ad57261484a | d36c05f4c90dfdac7296e87cf682df2f4d367e4b | refs/heads/master | 2023-06-08T00:39:39.414352 | 2023-06-05T21:35:50 | 2023-06-05T21:35:50 | 68,829,562 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,449 | py | #!/usr/bin/env python
# coding=utf-8
# Copyright © 2012-2023 ButenkoMS. All rights reserved. Contacts: <gtalk@butenkoms.space>
#
# 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:... | [
"gtalk@butenkoms.space"
] | gtalk@butenkoms.space |
0d0990b772822ea0986df01d3646f915d83b7cc0 | 59b40b7cd6f0119a71f19c581b44daa590639946 | /train.py | 0b81283d7f6b60a24670a673c55a06d08476a9f0 | [] | no_license | iqbal-chowdhury/vqa.pytorch | 5c4f342fb38b0350245303c8e0a7b5e3d752200c | 57752d6689c760c5ec6c1ea99f23d91ab5e87c45 | refs/heads/master | 2020-12-02T21:14:10.737513 | 2017-06-14T09:48:52 | 2017-06-14T09:48:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,674 | py | import argparse
import os
import shutil
import yaml
import json
import click
from pprint import pprint
import torch
import torch.nn as nn
import torch.backends.cudnn as cudnn
import vqa.lib.engine as engine
import vqa.lib.utils as utils
import vqa.lib.logger as logger
import vqa.lib.criterions as criterions
import vq... | [
"remi.cadene@icloud.com"
] | remi.cadene@icloud.com |
575a674e42f68a875c1d65bb2e5b3e6df83c0681 | 13ba7c9ab2f22084d1ea0e64c21191637c6da96b | /examples/policy_gradient/vpg/policy.py | 7e46692f4c6ca69a7cda2c95d9a344d2b51dff51 | [
"MIT"
] | permissive | lewisKit/lagom | 8796806fa84377e03c2fa66860ea0b75c6bfdad7 | b5b3c086e4469064879e869ae4a771c73e4dd1e1 | refs/heads/master | 2020-04-02T11:40:51.370179 | 2018-10-18T18:13:52 | 2018-10-18T18:13:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from lagom.core.networks import BaseNetwork
from lagom.core.networks import BaseRNN
from lagom.core.networks import make_fc
from lagom.core.networks import ortho_init
class Network(BaseNetwork):
def make_params(self, config):
... | [
"zuoxingdong@hotmail.com"
] | zuoxingdong@hotmail.com |
61423904929a28a501c8d500a0cc754dd564e06b | 747f759311d404af31c0f80029e88098193f6269 | /extra-addons/mgmtsystem_audit/__openerp__.py | d5f807bae08abd38bfb7d1164abde03abccb3a54 | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
#
# This program is free software: you can redistribute it and/or modify
# it... | [
"geerish@omerp.net"
] | geerish@omerp.net |
3ef2c19888235dc6208ee990de6b26c292cc9b74 | db0b0935c069a877a7e583cc6cbbe006f3ea271d | /Section2/076.py | 63505ac35a2ab9849ea50577ea1c9066dcf919cf | [] | no_license | partrita/biopython | 9294033c8809441190ea861e484b7678dbb2909a | a488559820980bd054b67395756e01cffa738965 | refs/heads/master | 2020-05-05T13:28:12.465422 | 2019-04-08T06:03:49 | 2019-04-08T06:03:49 | 180,078,766 | 4 | 1 | null | 2019-04-08T05:51:39 | 2019-04-08T05:51:39 | null | UTF-8 | Python | false | false | 98 | py | #076.py
s1 = {'Phe', 'Gly', 'Cys', 'Ala'}
s2 = {'Gly', 'Val', 'Phe'}
print(s1.intersection(s2))
| [
"partrita@gmail.com"
] | partrita@gmail.com |
b55835402c9543923119cd7b30dd965f2fe2ce9a | 9767ddafea187ebd52c06667175be7089635b652 | /python/test/test_terms.py | 4ec277249c359fbc74dee0957d73cb3195107e14 | [
"MIT"
] | permissive | jacksonloper/celerite2 | 80a8fe432d7613838feeb257cf37d7fc95d76c16 | e413e28dc43ba33e67960b51a9cbbac43c2f58df | refs/heads/main | 2023-02-01T05:15:41.330003 | 2020-12-22T18:23:58 | 2020-12-22T18:23:58 | 323,702,767 | 0 | 0 | MIT | 2020-12-22T18:23:14 | 2020-12-22T18:23:13 | null | UTF-8 | Python | false | false | 4,023 | py | # -*- coding: utf-8 -*-
import numpy as np
import pytest
from celerite import terms as cterms
from celerite2 import terms
test_terms = [
cterms.RealTerm(log_a=np.log(2.5), log_c=np.log(1.1123)),
cterms.RealTerm(log_a=np.log(12.345), log_c=np.log(1.5))
+ cterms.RealTerm(log_a=np.log(0.5), log_c=np.log(1.12... | [
"foreman.mackey@gmail.com"
] | foreman.mackey@gmail.com |
3c8f61f66b5eacc93e63222b00e435a2b0af8f3f | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/TauES_test/up/emb/DoubleMu/StoreResults-Run2012A_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/PAT_CMG_V5_16_0_1374851248/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_23/run_cfg.py | 93919a2ff3fe6c6fc9aed9e87067cfd312f2ef5d | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69,002 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/TauES_test/up/emb/DoubleMu/StoreResults-Run2012A_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/PAT_CMG_V5_16_0_1... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
cc1cd697d5fd03baf6fbcd13623eea306e7aa899 | eb0711915d6bba2f765f052736e33ac9a9a397a6 | /HE0435/model/glee_samp_fix_qso/samp60/glee_chain.py | 31167a1d70e2122063fcb7c326bd5f3a3c3a8c7d | [] | no_license | dartoon/GL_HostGalaxy | cd2166f273ae7e0397a7d2d39f760ab59e86f014 | 7469f1c1e640d176a75cc6e9497920e494ad656a | refs/heads/master | 2016-08-11T13:27:17.545360 | 2016-04-07T19:04:57 | 2016-04-07T19:04:57 | 46,524,027 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | import numpy,subprocess
file1 = open('HE60.001.mcmc','r') #should changed with right name
para = numpy.loadtxt(file1)[-30:,0]
file1.close()
i=int(para[0])
#subprocess.call(["echo int(para[0])"],shell=True)
#subprocess.call(["glee -S ${i} HE60.001.001"],shell=True)
#print para.shape
#print para.astype(int)
g=open('... | [
"dingxuheng@mail.bnu.edu.cn"
] | dingxuheng@mail.bnu.edu.cn |
a5b87d65b9cd9c781d7d3fd2ffc88537bd4bee07 | e912af291e1457c61606642f1c7700e678c77a27 | /python/652_find_duplicate_subtree.py | 1bce3d52d89f1729859849c0c553ea9afd953bab | [] | no_license | MakrisHuang/LeetCode | 325be680f8f67b0f34527914c6bd0a5a9e62e9c9 | 7609fbd164e3dbedc11308fdc24b57b5097ade81 | refs/heads/master | 2022-08-13T12:13:35.003830 | 2022-07-31T23:03:03 | 2022-07-31T23:03:03 | 128,767,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
# Time Complexity: O(N ^ 2)
# Space Complexity: O(N ^ 2)
def findDuplicateSubtrees(self, root: TreeNode) -> List[TreeNode]:
... | [
"vallwesture@gmail.com"
] | vallwesture@gmail.com |
5ad091ec783e01aac0a2b4a7e6f96c7ae23c4471 | cd792e76c3530d4dc0c97f8f4f8a2ea8c9f4fde8 | /OpenVenTum/scripts/sklearn_lib/neighbors/__init__.py | 9813434ef20268d317121f90b092386ae2b1a521 | [] | no_license | ederjc/hackaTUM | 4e143b3abf01f7bbed02c657d715a15b2bfeeba2 | e819b73c456d2931c7071423f580e576d5ecfb02 | refs/heads/master | 2022-04-18T13:13:17.630706 | 2020-04-19T06:48:54 | 2020-04-19T06:48:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,339 | py | """
The :mod:`sklearn_lib.neighbors` module implements the k-nearest neighbors
algorithm.
"""
from ._ball_tree import BallTree
from ._kd_tree import KDTree
from ._dist_metrics import DistanceMetric
from ._graph import kneighbors_graph, radius_neighbors_graph
from ._graph import KNeighborsTransformer, RadiusNeighborsTr... | [
"50597791+KalinNonchev@users.noreply.github.com"
] | 50597791+KalinNonchev@users.noreply.github.com |
7fd6f7e8098cd53560f7fefeab4ea820e25d348c | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/models/email_channel_py3.py | 7a9e9af59e743ffab2d62fbd80c7794a3ecb46ed | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 1,343 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
f75f8ffa9733bbd081dcfdc2a738a8db253c3f17 | e894e7e1e94c9a9c12aae08b4186b8dbbf7fcfcc | /crawler/quora/instagram_marketing_consultant-k/parse_html.py | 3bd034913a4e3c17181fff19b0e69cb4f9bcc975 | [] | no_license | SHivam0322/crawler-v2 | 79fa81c4af838e84e04d1b3940907a767c769959 | d636dc2f6e4dea3a8be07243550156b368d293e2 | refs/heads/master | 2023-05-25T05:07:28.555368 | 2021-04-01T14:04:18 | 2021-04-01T14:04:18 | 353,709,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | from dotenv import load_dotenv
from bs4 import BeautifulSoup
import json
import sys
import re
import os
load_dotenv()
sys.path.append(os.path.abspath(os.getenv("system_path")))
from lib import rabbit_mq
try:
connection = rabbit_mq.create_connection()
channel = connection.channel()
channel.queue_declare(qu... | [
"shivthakur0322@gmail.com"
] | shivthakur0322@gmail.com |
b55cad16fcdcb6852da45efda14c97137f6c8464 | a91fcc8dec4a5b41f2b026b00d910ffa086ec22c | /server.py | 1807f5a4ef360d8c47d2892176a9d36c875757d1 | [
"Unlicense"
] | permissive | thinkAmi-sandbox/Flask_ms_access_with_iis_sample | 881f27857ceccf36ff25a38f129d51565aa80899 | 9660a36e1aaab97f2a05ae304e9780baddaa2a47 | refs/heads/master | 2021-01-10T02:30:44.242579 | 2016-04-01T23:59:01 | 2016-04-01T23:59:01 | 55,096,945 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | from flask import Flask, request, render_template, send_file
from sqlalchemy import create_engine
from sqlalchemy.sql import text
app = Flask(__name__)
FILE_PATH = r".\sample.accdb"
@app.route('/xml')
def response_xml():
return send_file("sample.xml")
@app.route('/', methods=['GET', 'POST'])
... | [
"dev.thinkami+git@gmail.com"
] | dev.thinkami+git@gmail.com |
05fd12113968774bc769fb87505f093aa9e849de | 39b0d9c6df77671f540c619aff170441f953202a | /PYTHON LIBRARY/SUB_13/json_simple_types.py | 29e0fe3cacbf211d65ffc55a8d96efc296ef6a37 | [] | no_license | yeboahd24/Python201 | e7d65333f343d9978efff6bf86ce0447d3a40d70 | 484e66a52d4e706b8478473347732e23998c93c5 | refs/heads/main | 2023-02-06T10:24:25.429718 | 2020-12-26T01:08:04 | 2020-12-26T01:08:04 | 306,487,550 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | import json
data = [{'a': 'A', 'b': (2, 4), 'c': 3.0}]
print('DATA:', repr(data))
data_string = json.dumps(data)
print('JSON:', data_string) | [
"noreply@github.com"
] | yeboahd24.noreply@github.com |
5d60f54b781b468e159fdc7800dcde4e6eb6db6a | aa3d22701c8f2c1b0cb2eaea13350f629e05beb3 | /setup.py | c9d4c2f3d7774a70b73a1e4da66c2c5963a4e333 | [
"Apache-2.0"
] | permissive | cdanielmachado/smetana | db7adbec88f773df62ee322c457a58b2538986ab | d2b10434df6d13741614420b933b0870ea598222 | refs/heads/master | 2021-06-05T09:00:50.689050 | 2020-05-23T16:15:29 | 2020-05-23T16:15:29 | 135,152,625 | 53 | 10 | NOASSERTION | 2019-10-16T13:31:08 | 2018-05-28T11:35:35 | Python | UTF-8 | Python | false | false | 1,326 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
requirements = ["reframed", "pandas"]
test_requirements = requirements + ['cplex']
script_list = [
"scripts/smetana",
]
se... | [
"cdanielmachado@gmail.com"
] | cdanielmachado@gmail.com |
7b0d484225f4ad9248ab51e4920a0838a8843e25 | e206cc00299804ce2271eb5d1513620e44ee9a9b | /course2-data-structures/practice/search_pattern/search_pattern.py | 966a6631b7c49b36e207c76a30e13b1c189eb365 | [] | no_license | dmitri-mamrukov/coursera-data-structures-and-algorithms | 15459cd160f7bbae5464bf53d995bca868a0b415 | 01dd6f0dadf62a520bcafafddf7bf2b79e8e2603 | refs/heads/master | 2020-05-24T18:27:00.665642 | 2019-05-21T20:45:37 | 2019-05-21T20:45:37 | 187,410,737 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,193 | py | import random
class SearchPattern:
@staticmethod
def are_equal(s1, s2):
if len(s1) != len(s2):
return False
for i in range(0, len(s1)):
if s1[i] != s2[i]:
return False
return True
@staticmethod
def poly_hash(text, p, x):
"""
... | [
"dmitri.mamrukov@gmail.com"
] | dmitri.mamrukov@gmail.com |
6fbaf5c73b5d006de3dbc9047d623a08fc2d055f | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/ItemProperty.py | b7726afa37ee66ed2da321d77977b17c8c6ec80c | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,767 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class ItemProperty(object):
def __init__(self):
self._prop_key = None
self._prop_values = None
@property
def prop_key(self):
return self._prop_key
@prop_key.setter... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
18c89abc5a318019067b5c761c432b8132518b56 | 62814f1168a7bd665decf4b5d0a98089f902d4a8 | /Tests/test_BioSQL_MySQLdb.py | bd653e95f07da37f4fb01ebe9f45e576e2ac0e9c | [
"LicenseRef-scancode-biopython"
] | permissive | mswistak/biopython | 76f18c50e78aaed466a32c15e3020ccfb40d775f | edb7f54cdc5b0b58569cdd8c10f6c9ebf5d73ac7 | refs/heads/master | 2021-01-22T07:13:52.216679 | 2014-11-29T21:36:45 | 2014-11-29T21:36:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | #!/usr/bin/env python
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Run BioSQL tests using SQLite"""
from Bio import MissingExternalDependencyError
from BioSQL import BioSeqDatabase
from common... | [
"p.j.a.cock@googlemail.com"
] | p.j.a.cock@googlemail.com |
12e6753c42de86dd6cce2734e5e6084e27aa3e04 | 9186099be7b2fd4bed5e0d15be64207d93f988d9 | /pySocks.py | 1f5b487a2f99f71d53cd64dc2e2a6fc04f6c61a9 | [] | no_license | rocketpy/python_tor | d88fd8f79321fb66caec777095ecf7689e8b37c2 | 05cba015a5dd754cda82273e2cfc3581b0ab1caa | refs/heads/main | 2023-08-16T17:16:10.835413 | 2021-09-19T15:03:23 | 2021-09-19T15:03:23 | 336,047,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | # A Python SOCKS client module.
# Github: https://github.com/Anorov/PySocks
# PyPi: https://pypi.org/project/PySocks/
# pip install PySocks
# pip install -U requests[socks]
# Usage
import socks
s = socks.socksocket() # Same API as socket.socket in the standard lib
s.set_proxy(socks.SOCKS5, "localhost") # S... | [
"noreply@github.com"
] | rocketpy.noreply@github.com |
b65eb0a47974fb2c378ae1337a1fea0ea0114452 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/11114083.py | d59d274f6eb34f481f7ffe413051ed2e5798da4c | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/11114083.py generated: Wed, 25 Jan 2017 15:25:25
#
# Event Type: 11114083
#
# ASCII decay Descriptor: [B0 -> K+ pi- (Higgs0 -> mu+ mu-)]cc
#
from Configurables import Generation
Generation().EventType = 11114083
Generation().SampleGenerationTool = "Sig... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
2859947085859c46e35d1a1b106dc1c6142be1fb | 3d6bb3df9ca1d0de6f749b927531de0790aa2e1d | /compareXiaohongToAscat.py | 501fa62f3625efb26a7fd11412eaeaa44d4207b4 | [] | no_license | standardgalactic/kuhner-python | da1d66a6d638a9a379ba6bae2affdf151f8c27c5 | 30b73554cc8bc9d532c8108b34dd1a056596fec7 | refs/heads/master | 2023-07-07T04:18:30.634268 | 2020-04-06T04:37:48 | 2020-04-06T04:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,139 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Wed Jan 4 15:43:25 2017
@author: lpsmith
"""
#Take *all* BAF and CN data and create expands input.
from __future__ import division
from os import walk
from os import path
from os import readlink
from os.path import isfile
from os import mk... | [
"lpsmith@uw.edu"
] | lpsmith@uw.edu |
5a57f5f9a99cd80be4f8332a950885283aaa0e2d | 55ceefc747e19cdf853e329dba06723a44a42623 | /_CodeTopics/LeetCode/1-200/000189_Rotate_Array/TLE--000189_algo1.py | 08aea004867f949eb559de4c3cee4d1fe3fbecec | [] | no_license | BIAOXYZ/variousCodes | 6c04f3e257dbf87cbe73c98c72aaa384fc033690 | ee59b82125f100970c842d5e1245287c484d6649 | refs/heads/master | 2023-09-04T10:01:31.998311 | 2023-08-26T19:44:39 | 2023-08-26T19:44:39 | 152,967,312 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 40,654 | py | class Solution(object):
def rotate(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: None Do not return anything, modify nums in-place instead.
"""
length = len(nums)
k = k % length
for j in range(k):
curr = nums[0]
... | [
"noreply@github.com"
] | BIAOXYZ.noreply@github.com |
63fe3bc99ee33abd170ba2917710de758a6c64ed | 8126d1bc2afe0925a24fce039d0f02a3bd7acbae | /tests/test_segfault.py | 165d5d4d8ab05fcee621469f3710664b31c4861a | [
"BSD-2-Clause"
] | permissive | rafwiewiora/pytraj | 54fb6fe07a754f65b865dd161f64c7af15fc3926 | 91a019ea406081ccf0043170cc64c48b4a5ea04a | refs/heads/master | 2021-01-20T17:33:05.974254 | 2016-03-11T21:25:32 | 2016-03-11T21:25:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | from __future__ import print_function
import unittest
import pytraj as pt
from pytraj.base import *
from pytraj import adict
from pytraj import io
from pytraj.utils.check_and_assert import assert_almost_equal as aa_eq
"""
try not to get segmentation fault error (due to whatever freaking reason)
"""
traj = pt.iterload(... | [
"hainm.comp@gmail.com"
] | hainm.comp@gmail.com |
a1d7a8a610178d7522bec74bce9b6b89df0db84e | b19653294f87fc2e1af1046d1930245eab2383a0 | /code/pyqt第三天/布局管理/09-绝对定位的应用.py | 44d596048f85943cfbf6e4340fb62690c0ad0cfe | [] | no_license | victorfengming/pyqt5_projects | 7556f4096ee4d474f14dc5f6d8c044859fab08b8 | 5cae9b80d8d197921776fd4a26a968d70e60e1d3 | refs/heads/master | 2020-09-11T22:51:22.922833 | 2019-11-17T08:14:10 | 2019-11-17T08:14:10 | 222,216,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,715 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Created by xiaoming
# 本模块的功能:<>
import sys
from PyQt5.QtWidgets import QWidget, QLabel, QApplication
class Example(QWidget):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
lbl1 = QLabel('Zetcode', self)
... | [
"fengming19981221@163.com"
] | fengming19981221@163.com |
de22c8803e602ed12d2f5f2608f4175adef8bd9e | cdd79cef15bdf6a0b9098e27028bbe38607bc288 | /初中級者が解くべき過去問精選100/060_ワーシャルフロイド_GRL_1_A - 単一始点最短経路.py | ca16a581f295c2bbda0a873514ae1f6d5cef60a7 | [] | no_license | nord2sudjp/atcoder | ee35a3eb35717485dc62627172de24c9dac102fb | 6b1cc5102a615492cc7ff8a33813bbb954641782 | refs/heads/master | 2023-08-25T11:27:14.205593 | 2021-09-27T05:43:04 | 2021-09-27T05:43:04 | 302,855,505 | 0 | 0 | null | null | null | null | ISO-8859-7 | Python | false | false | 743 | py | # GRL_1_C
# http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=GRL_1_C&lang=ja
V,E=map(int,input().split())
D = [[float('infinity')]*V for _ in range(V)]
# c²i,‘²jΖ·ιΖAcost[i][j]Νi->jΦΜ£
for i in range(V):
D[i][i]=0 # i->iΜRXgΝR0
for _ in range(E):
s,t,d=map(int,input().split(... | [
"nord2sudjp@gmail.com"
] | nord2sudjp@gmail.com |
43c916130ee9cc2edf3f620947a6b5fc2005d67a | 7c15a9775cc34bc84ecc2a636907b1ee7ef50f86 | /backend/small_pine_31496/settings.py | bf872adac03305e7d892756f37315640c4f714b7 | [] | no_license | crowdbotics-apps/small-pine-31496 | cdeb9b0b1e223060f711da7b89a61c830f94144d | 1622bc7322cf3887b88c4ec00c55eceaef2b54ad | refs/heads/master | 2023-08-27T18:47:36.432119 | 2021-10-17T21:32:23 | 2021-10-17T21:32:23 | 418,260,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,927 | py | """
Django settings for small_pine_31496 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
3dd675acec1a8dcfe3ecbedbaf43d366c2a65b12 | 25ebf226893b44dd8a6b1b85cf80864579372892 | /merge-two-sorted-lists/Accepted/7-6-2021, 4:13:20 PM/Solution.py | 7c4dd2be824dd238a995b6df11c858c68088db61 | [] | no_license | TianrunCheng/LeetcodeSubmissions | db15f5a1a8e1bbecefc45cb0b2b5fbaa036aa6f5 | 00a5403f1950e039ccc370cb266b752faebb8e79 | refs/heads/main | 2023-06-29T21:51:43.029300 | 2021-07-22T03:12:15 | 2021-07-22T03:12:15 | 388,305,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | // https://leetcode.com/problems/merge-two-sorted-lists
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def mergeTwoLists(self, l1: ListNode, l2: ListNode) -> ListNode:
dummy = Li... | [
"tc905@georgetown.edu"
] | tc905@georgetown.edu |
86be05a1a6023733858e988fe915967cfecca357 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5706278382862336_0/Python/matwetu/a.py | 0c33305581af424b87ff7b89fd8ab87dce5cc640 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | #coding:utf8
import sys
result = {
"fi": "A-small-attempt1 (1).in",
"fo": "a.out",
"ct": ""
}
def myprint(*x):
s = ''.join(map(str,x))
sys.stdout.write(s)
result['ct'] += s
def gcd(a,b):
if b == 0:
return a
return gcd(b, a%b)
def main():
with open(result['fi'], 'r') as f:
lines = [line... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
b240fa9aef6896d81953ce10b542ac25a6c8ee2c | 7c7c6fbfaa0dd9c402d0ee76c3915fcbda1a403f | /scripts/squeeze_alignment.py | 5190bdaf375333d0ca4f90aa98f3fc4d53818cdb | [] | no_license | bsmith89/StrainFacts-manuscript | f4b837a8f79683785741a7c4411c142bba4916ee | 251009a79ae8396806adeec7726b8c54cca15945 | refs/heads/main | 2023-04-18T08:28:33.193573 | 2022-04-21T23:55:03 | 2022-04-21T23:55:03 | 428,938,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | #!/usr/bin/env python3
from Bio.AlignIO import read
from tqdm import tqdm
import sys
import numpy as np
from tqdm import TqdmSynchronisationWarning
import warnings
warnings.simplefilter("ignore", TqdmSynchronisationWarning)
def contains_only(col, values):
return set(col) - set(values) == set()
def main():
... | [
"me@byronjsmith.com"
] | me@byronjsmith.com |
477552224e96110c8fdfa643f80e1f6439e15c41 | 6b63f4fc5105f3190014e1dd5685a891a74f8c63 | /0035_desafio.py | 782fa4c3aac3a5d74e317346bad8f470d5e98012 | [] | no_license | matheuszei/Python_DesafiosCursoemvideo | a711c7c9c6db022cc8a16a3a1dc59afabb586105 | 5b216908dd0845ba25ee6d2e6f8b3e9419c074d2 | refs/heads/main | 2023-05-10T18:13:09.785651 | 2021-06-04T13:50:48 | 2021-06-04T13:50:48 | 370,851,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | 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
print('-=' * 20)
print('ANALISANDO TRIÂNGULO')
print('-=' * 20)
r1 = int(input('Digite o comprimento de A: '))
r2 = int(input('Digite o comprimento de B: '))
r3 = int(input('Digite o compri... | [
"noreply@github.com"
] | matheuszei.noreply@github.com |
02ac30612d61e295d58d3394b2505d973d2547ae | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03149/s082982274.py | 863d573a4022b6cabcf7a863ee23e0ea8aa90f58 | [] | 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 | 120 | py | N = set(int(i) for i in input().split())
if len(N) == 4 and set([1,9,7,4]) == N:
print("YES")
else:
print("NO") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
007cf75290497d14c6cb55eb2326fa790640679e | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5695413893988352_0/Python/Grzesiu/B-source.py | ea0e76ede3e1a64ae359d9c9acb3e61d7eda96fd | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,375 | py | import imp, sys
sys.modules["utils"] = __mod = imp.new_module("utils")
exec """#!/usr/bin/python
from itertools import chain, repeat, izip
def line(*args):
L = raw_input().strip().split()
L = izip( L, chain( args, repeat(str) ) )
return [ type(data) for data, type in L ]
def iline(): return map( int, ... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
4727cd570c3d3097576e9696bbef9421ecaa0785 | 5a6f498c3abb9848f7513fab81244194d6acde0c | /labs/lab7/student/tests/q2b.py | c06cd58b32f165b492cf530e8b010d60d849e31e | [] | no_license | ramirezmichaelp/134 | e4e1f1dc4c5fe6ecf1bd55f5e0459d9c44ab5ec9 | ace965a0f95caea3a526f5b709cb35d7991076ce | refs/heads/master | 2023-02-18T00:29:04.829406 | 2020-12-09T18:59:32 | 2020-12-09T18:59:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | test = { 'name': 'q2b',
'points': 3,
'suites': [{'cases': [{'code': ">>> res_q2b\n'Python:Exercises: PHP exercises.'", 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
| [
"syoh@ucsb.edu"
] | syoh@ucsb.edu |
b7de0ea8602fa084e5d1f3b179b3d606f36e9bfc | d476c93aa2aecd253508da0cc35071e456199318 | /test_autoarray/dataset/interferometer/test_simulator.py | e45908cba62cf42672a3221bfcbff7f89c645c7d | [
"MIT"
] | permissive | Jammy2211/PyAutoArray | 82916f3f5530f938786f61f870df353b26732e37 | 6639dd86d21ea28e942155753ec556752735b4e4 | refs/heads/main | 2023-08-19T10:51:05.520942 | 2023-08-14T09:12:15 | 2023-08-14T09:12:15 | 210,980,464 | 6 | 5 | MIT | 2023-09-13T14:07:39 | 2019-09-26T02:18:10 | Python | UTF-8 | Python | false | false | 1,631 | py | import numpy as np
import pytest
import autoarray as aa
def test__from_image__setup_with_all_features_off(
uv_wavelengths_7x2, transformer_7x7_7, mask_2d_7x7
):
image = aa.Array2D.no_mask(
values=[[2.0, 0.0, 0.0], [0.0, 1.0, 0.0], [3.0, 0.0, 0.0]],
pixel_scales=transformer_7x7_7.gr... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
88a8f8443f2a99865d2e8e4093c67a7729a9d162 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_088/ch24_2020_09_11_20_55_32_606285.py | dc59202b688a75224c031ddbda0896810659423c | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | salário = float(input("Digite seu salário: "))
pc_aumento = 0.15
if salário > 1250:
pc_aumento = 0.10
aumento = salário * pc_aumento
print(f"Seu aumento será de: R$ {aumento:7.2f}")
| [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.