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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dd6caf9494063f8e02a3d13dfbfcd0cd837beca5 | c3354ab1d57f0e2c5fdadaf0f14eee9d867c217e | /files/djinni/http-client/generate.py | bf26d71665daac00efedc9adbb542141da7d55ad | [
"MIT"
] | permissive | f541/ezored | d79c7bfd51fc6b42a6b67fad7c53dd21815b59f6 | ee39a98a1488e868bee07382e1319cf771a37ff4 | refs/heads/master | 2021-05-23T17:10:47.254570 | 2020-04-04T19:15:08 | 2020-04-04T19:15:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,388 | py | # README
import os
import shutil
import subprocess
# CONFIGURATIONS
# djinni configurations
djinni_file = "proj.djinni"
# cpp configuration
cpp_namespace = "ezored::net::http"
cpp_include_prefix = "ezored/net/http/"
cpp_out = "generated-src/cpp/{0}".format(cpp_include_prefix)
# objc configuration
objc_prefix = "EZ... | [
"paulo@prsolucoes.com"
] | paulo@prsolucoes.com |
794c8a416622dfe0cbbd53ccba95234563158a9e | 48b58c5c27c12ec9571f8860f9a106121d5efbbf | /opencv.py | d1f0ba5d1a89dcf760284b89164cfb95815a10ea | [] | no_license | vanovarderesyan/viewing_camera | bf0e50da20fc9996cab146aab925cd55c7e1f9e2 | ce6d416992f3836dabb5262199e3651973be52b2 | refs/heads/main | 2023-02-27T18:41:15.359456 | 2021-02-09T08:24:47 | 2021-02-09T08:24:47 | 337,337,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,046 | py | # import cv2
# import numpy as np
# cap = cv2.VideoCapture('rtsp://192.138.0.109:8080/h264_ulaw.sdp')
# while(True):
# ret, frame = cap.read()
# cv2.imshow('frame',frame)
# if cv2.waitKey(1) & 0xFF == ord('q'):
# break
# cap.release()
# cv2.destroyAllWindows()
import cv2, time, pandas
# importi... | [
"="
] | = |
448427a5744734b8cac4f71e6ae1c6fcda39621d | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p4VQE/R3/benchmark/startCirq188.py | 6a85a15c5a25d078724c24efa5d6e7f90c651ab7 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,939 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=13
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
ed7bbf792b16791d794ab443fbeedf1f00c4c57b | 6f78a4c4896563a52d86eacf49dbb6a358a3646e | /programmers/python/programmers_12949.py | 90a41a864c5cae7a82584ebde7661c447a63bf47 | [] | no_license | wj1224/algorithm_solve | 259c39d2a85ecb2630e089eb0c86cdde9ff3baeb | 8b0f15b71a4dd8eb40d3c9baee003a0678c3f2aa | refs/heads/master | 2023-08-25T06:14:21.615802 | 2021-10-26T05:00:59 | 2021-10-26T05:00:59 | 219,981,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | import numpy as np
def solution(arr1, arr2):
answer = np.matmul(np.asarray(arr1), np.asarray(arr2)).tolist()
return answer
| [
"cwj1387@gmail.com"
] | cwj1387@gmail.com |
4614d345cb34363607a02a08b48b0a9c05db9b51 | f669b07bf4e1047c7fa4f36983f5d8d9f607a42c | /.metadata/.plugins/org.eclipse.core.resources/.history/32/50058da9009000161aace3ce0a3d140b | ca05fe74f56a77f9d932d9ba9a867910f6d88406 | [] | no_license | tca85/python | d07b4453b38b5c5a024e2a6f8b8795dac6d928b1 | 436a23250539ef8055f817ada20cb21eab65cc42 | refs/heads/master | 2021-01-10T22:53:01.118480 | 2016-10-24T21:46:59 | 2016-10-24T21:46:59 | 70,340,585 | 1 | 0 | null | null | null | null | ISO-8859-1 | Python | false | false | 1,059 | #!/usr/bin/python
# -*- coding: latin1 -*-
'''
Created on Oct 5, 2016
@author: tca85
'''
# Para importar a classe é melhor utilizar os atalhos do Eclipse,
# mas também segue o seguinte padrão:
# from pacote + nome do arquivo import NomeClasse
from pacote.Teste import Teste
from pacote.Arquivo import Arquivo
from pa... | [
"thiago.alves.85@gmail.com"
] | thiago.alves.85@gmail.com | |
2c1a84ff56a3f3fac5f7ad32bcc0c9b067e830f7 | 3c099a78896ca4b775d28fccf38c2bfdf6a1a555 | /Tutorials/LetsKodeIt/PyTestPackage/test_run_order_demo.py | 891ffe032d15698c49285d577c00e2204f535dbd | [] | no_license | anmolparida/selenium_python | db21215837592dbafca5cced7aecb1421395ed41 | 78aec8bf34d53b19fb723a124ad13342c6ce641c | refs/heads/master | 2022-12-03T23:52:32.848674 | 2020-08-30T19:26:30 | 2020-08-30T19:26:30 | 282,207,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | """
http://pytest-ordering.readthedocs.io/en/develop/
-- test are not run alphabetically but the time they are found
"""
import pytest
# Order of Run B A E C D F
@pytest.mark.run(order=4)
def test_run_order_methodF(oneTimeSetUp, setUp):
print('Running Method F')
@pytest.mark.run(order=1)
def test_run_order_meth... | [
"anmolparida@gmail.com"
] | anmolparida@gmail.com |
4e34ff61d533190bec15b87353e1120374cffe0a | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/fv/rsstcepdeftonode.py | 741b971e84f9208fa88d4d3b511a98045cb9698d | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 6,714 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
3b42b2c7b21f5c58121c3bdaa2509099da659586 | a90077635aeac846965381e0b07591a1df011afe | /care/facility/migrations/0200_dailyround_admitted_to.py | a544813fb2a65427dd373c5f2461db2f1a17e9a5 | [
"MIT"
] | permissive | Basharckr/care | f873ca140ae8607846d9b9500e3c21e9bfa15800 | c86ae2614ea9ba80b140a2eb21ad64fdbb47ad7e | refs/heads/master | 2023-06-17T21:26:48.936321 | 2021-07-12T06:03:52 | 2021-07-12T06:03:52 | 386,884,450 | 1 | 0 | MIT | 2021-07-17T08:41:09 | 2021-07-17T08:41:09 | null | UTF-8 | Python | false | false | 683 | py | # Generated by Django 2.2.11 on 2020-10-16 19:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('facility', '0199_shiftingrequest_assigned_to'),
]
operations = [
migrations.AddField(
model_name='dailyround',
name... | [
"vichuhari100@gmail.com"
] | vichuhari100@gmail.com |
7ca3dd46be326ff4de5c812eef10c12887048468 | ec79e1aa037e0c354223772a63361b19b0e1005b | /sigcom/ingest/meta/meta_resources_jsonld.py | 2318beaa67f83b94ae1f1e153bb2e15ccaf35536 | [
"Apache-2.0"
] | permissive | MaayanLab/signature-commons-controller | 43c650ab279ba9444305e6f981fe1f64d7951d86 | b69c4063235d927da27891e8a30d2822c6768a66 | refs/heads/master | 2022-02-22T15:40:05.658628 | 2021-02-26T18:27:44 | 2021-02-26T18:27:59 | 215,134,067 | 0 | 0 | Apache-2.0 | 2020-11-06T18:00:22 | 2019-10-14T19:59:12 | Python | UTF-8 | Python | false | false | 1,811 | py | from sigcom.util import first, chunk
from urllib.request import Request, urlopen
import base64
import json
import os
name = 'meta_resources_jsonld'
inputs = (
'*.resources.jsonld',
)
def requirements(uri=[], **kwargs):
return 'meta' in set([s for u in uri for s in u.scheme.split('+')])
def ingest(input_files, u... | [
"u8sand@gmail.com"
] | u8sand@gmail.com |
6e0ef7c0f1af289628f1498c27f8826789a18c6e | 22d6db28f14ea809fffb3afb187a1b484474713f | /azext_keyvault/keyvault/models/sas_definition_attributes_py3.py | 09880b269d0c9784b77329b0a4cec6e1b27b4677 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-keyvault-cli-extension | 631322637f2311b6833bc9664ef92fd77e1eade6 | a9b4a1f8a1f8e2433f83a81efe6068e3bf4537ef | refs/heads/master | 2023-06-09T18:56:46.388527 | 2023-06-02T16:18:23 | 2023-06-02T16:18:23 | 130,276,163 | 3 | 8 | MIT | 2023-06-02T16:18:24 | 2018-04-19T21:49:23 | Python | UTF-8 | Python | false | false | 2,153 | 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 ... | [
"sschaab@microsoft.com"
] | sschaab@microsoft.com |
d3b9abdd33d377562fd5086ed2e23f6f034742e6 | 05f9b3014a16c66d11315fb6f85b801bf49b7273 | /test-repo/fabscript/openstack/memcached.py | 87b1bc67778ec7d45f732f25e026c3e2a7cd6e14 | [
"MIT"
] | permissive | syunkitada-archive/fabkit-fablib_openstack | b645a6a8646ab5c8a9d75a44b62d10db8e04a436 | 5edea4f8eab26adb7e8b031acc6b8ce8f9060eb6 | refs/heads/master | 2023-05-12T23:47:24.617656 | 2018-05-13T13:55:55 | 2018-05-13T13:55:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | # coding: utf-8
from fabkit import task, parallel
from fablib.memcached import Memcached
@task
@parallel
def setup():
memcached = Memcached()
memcached.setup()
return {'status': 1}
| [
"syun.kitada@gmail.com"
] | syun.kitada@gmail.com |
58a04164ce89c1f933d78fb66dc5ff877e9205ba | 4de53d4313689eee29adf73f63baf6728d213167 | /cloud/solutions/common/admin/dashboards/networking/loadbalancers/tests.py | b224554d98dce027c2f005c5fe154330e2d97831 | [] | no_license | gvgbalaji/TextSys | be1d853a09e3014f4b23dd1dadacbfd832d14783 | 9d8957482e5277e1ca9db58ebd78007c66b61913 | refs/heads/master | 2021-01-16T21:03:42.011243 | 2016-06-02T12:27:27 | 2016-06-02T12:27:27 | 60,258,168 | 0 | 1 | null | 2016-06-02T12:27:28 | 2016-06-02T11:21:23 | Python | UTF-8 | Python | false | false | 36,421 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"selvac@naanal.in"
] | selvac@naanal.in |
ea680100434a536b50938aacb56cbc650b170a0e | b16bc512603cbe3bdc5a56586cfc9147fe5fb3f6 | /venv/lib/python3.6/sre_constants.py | 582a3f9a1bf984d5d9e6756f37c2797564fa4efc | [] | no_license | hoang-ho/TechTogether | caa565b14165c7b0889bd4232098e16a0137ba67 | fa4ca8375ab00d1791d2fce02384503eff5df7e0 | refs/heads/master | 2020-05-01T08:24:22.561868 | 2019-05-13T06:55:46 | 2019-05-13T06:55:46 | 177,377,979 | 2 | 2 | null | 2019-05-13T06:55:47 | 2019-03-24T06:15:31 | Python | UTF-8 | Python | false | false | 55 | py | /Users/hoangho/anaconda3/lib/python3.6/sre_constants.py | [
"hoangho@Hoangs-MacBook-Pro.local"
] | hoangho@Hoangs-MacBook-Pro.local |
7399a7e8e457f319eec9f35b798b1d751735a53f | 748bbab674d1a5ae6a59bfd4ac22efcb4355e82a | /Prog-II/Web/server.py | d137a80b92fd0d067219a210fc910f89f478606c | [] | no_license | Lima001/Tecnico-IFC | 8819114a35080eb914a2d836a0accbf79d3268d8 | 771fa39dd6046a9d92860fbde70c10dcecd975a3 | refs/heads/master | 2021-02-07T01:31:04.929420 | 2020-06-24T02:09:38 | 2020-06-24T02:09:38 | 243,967,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | from flask import Flask, render_template, request, redirect, url_for, session
from pessoa import *
app = Flask("__name__")
app.config["SECRET_KEY"] = 'admin'
@app.route("/")
def iniciar():
return render_template("inicio.html")
@app.route("/listar_pessoas")
def listar_pessoas():
return render_template("listar... | [
"limaedugabriel@gmail.com"
] | limaedugabriel@gmail.com |
f688c7dfa3f832b22747c5882712c2a2b828b61f | 25040bd4e02ff9e4fbafffee0c6df158a62f0d31 | /lap/Itpl.py | a0c74e88c8ad0eacf77a921f788d992f50b257d6 | [] | no_license | erochest/atlas | 107a14e715a058d7add1b45922b0f8d03bd2afef | ea66b80c449e5b1141e5eddc4a5995d27c2a94ee | refs/heads/master | 2021-05-16T00:45:47.585627 | 2017-10-09T10:12:03 | 2017-10-09T10:12:03 | 104,338,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,974 | py | """String interpolation for Python (by Ka-Ping Yee, 14 Feb 2000).
This module lets you quickly and conveniently interpolate values into
strings (in the flavour of Perl or Tcl, but with less extraneous
punctuation). You get a bit more power than in the other languages,
because this module allows subscripting, slicing,... | [
"eric@eric-desktop"
] | eric@eric-desktop |
7e94f56b2e766b0dfe0b6a64292b76184bbfab2a | d0e9642776f6cddae67e92128906af892cdf8e44 | /cohort_data.py | fff16a201ddf9b707f1fb8ade6423f3b85dcc091 | [] | no_license | hhchong/Data-Structures | 0b8c6bcaa3018b267bc3e1ba6e8019e45bb24819 | 998b93127cf810b4e92ff6fc4f6dfa329f84561b | refs/heads/master | 2020-08-06T09:07:42.990275 | 2019-10-04T23:26:52 | 2019-10-04T23:26:52 | 212,917,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,479 | py | """Functions to parse a file containing student data."""
def unique_houses(filename):
"""TODO: Return a set of student houses.
Iterate over the cohort_data.txt file to look for all of the included house names
and create a set called "houses" that holds those names.
For example:
>>> sorted(uniqu... | [
"you@example.com"
] | you@example.com |
c9e773403427c96e04d1c842b36060e9827bf612 | 3a4ccb85f66a566951d8d7b2c811148d88cd5c87 | /tests/handlers/test_favorites.py | 8d704fd1c7dc089fa5d871cba80569b788617653 | [
"BSD-2-Clause"
] | permissive | xu-bin-bin/redash | e3543fc44683a9257bb4d0dc13f3c6ef8c6c0a62 | 551007d82a5c8a7eaa27ca4f4cf55cef1b140886 | refs/heads/master | 2020-04-03T08:25:40.918024 | 2018-10-24T03:08:25 | 2018-10-24T03:08:25 | 155,132,723 | 2 | 0 | BSD-2-Clause | 2018-10-29T01:11:50 | 2018-10-29T01:11:50 | null | UTF-8 | Python | false | false | 1,434 | py | from tests import BaseTestCase
from redash import models
from redash.models import db
class TestQueryFavoriteResource(BaseTestCase):
def test_favorite(self):
query = self.factory.create_query()
rv = self.make_request('post', '/api/queries/{}/favorite'.format(query.id))
self.assertEqual(rv.... | [
"arik@arikfr.com"
] | arik@arikfr.com |
38a2ed4d6ac84f2c37466b255736cc0ba0bd5e4a | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part000983.py | 84ea634bbfca1378e1fb918e983eaa961bb5dad0 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,463 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
45df6ed9159917d96c075765800f97b8d574b5a3 | 63768dc92cde5515a96d774a32facb461a3bf6e9 | /jacket/tests/compute/unit/fake_network.py | 90fad4391a7fe80b943599743a8f55e1fe2afc44 | [
"Apache-2.0"
] | permissive | ljZM33nd/jacket | 6fe9156f6f5789e5c24425afa7ce9237c302673d | d7ad3147fcb43131098c2a5210847634ff5fb325 | refs/heads/master | 2023-04-16T11:02:01.153751 | 2016-11-15T02:48:12 | 2016-11-15T02:48:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,984 | py | # Copyright 2011 Rackspace
# 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 law or ... | [
"nkapotoxin@gmail.com"
] | nkapotoxin@gmail.com |
55a33a4c58cddf3ad16cd448a36a87bb377a8b40 | 49c174fa2363461bbefd07af08f2d62b2d12b591 | /examples/locobot/navigation/base_velocity_control.py | 2025a67642aba750c90ce1b39cf2cc5649bdaa9f | [
"MIT"
] | permissive | Improbable-AI/pyrobot | 452f68ca503fb4aff247d6166cff8914471fa9d8 | 326b49057421ae7d5feefdca93b580846aaef730 | refs/heads/master | 2022-07-07T20:58:23.358744 | 2022-04-01T22:02:39 | 2022-04-01T22:02:39 | 221,547,610 | 1 | 2 | MIT | 2022-04-04T20:24:45 | 2019-11-13T20:41:11 | Python | UTF-8 | Python | false | false | 1,099 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from absl import flags, app
from pyrobot import Robot
FLAGS = flags.FLAGS
flags.DEFINE_string('base_controller', 'ilqr', 'One of ilqr, proport... | [
"kalyan051993@gmail.com"
] | kalyan051993@gmail.com |
ea672b84d3b6a9005e23e940d9853657fbff4c33 | 6dd400fec6f302bd0dcf309e2deec5de906d205c | /pro1/pack1/ex18class.py | 8393845130988ebf62542cf03e8eb8f2f5629abb | [] | no_license | Leo-hw/psou | aa938b7cfaa373a0980649125270c48d816202b0 | 70379156a623257d412bcccbac72986a61226bd4 | refs/heads/master | 2023-02-21T19:00:02.902510 | 2021-01-25T07:03:26 | 2021-01-25T07:03:26 | 332,616,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | '''
클래스
'''
#모듈과 클래스의 네임을 같게 하는 것을 권장하지 않지만 가능함.
kor = 100
def abc():
print('모듈의 함수')
class MyClass():
kor = 90 # 권장하지 않음
def abc(self):
print('난 메소드야')
def show(self):
#kor = 80
print(self.kor)
prin... | [
"Bonghwan@DESKTOP-60LSTNL"
] | Bonghwan@DESKTOP-60LSTNL |
34328b76f0de8e837b7f060a0dc67a21d75e815a | 5d48aba44824ff9b9ae7e3616df10aad323c260e | /dp/198.house_robber.py | 04fc67293c8b5d51112132eab57b1ce1d6890e68 | [] | no_license | eric496/leetcode.py | 37eab98a68d6d3417780230f4b5a840f6d4bd2a6 | 32a76cf4ced6ed5f89b5fc98af4695b8a81b9f17 | refs/heads/master | 2021-07-25T11:08:36.776720 | 2021-07-01T15:49:31 | 2021-07-01T15:49:31 | 139,770,188 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | """
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security system connected and it will automatically contact the police if two adjacent houses were broken int... | [
"eric.mlengineer@gmail.com"
] | eric.mlengineer@gmail.com |
2b7f6768b4537fc5890444935d6daad4b985d18a | 8bab205ba2df43d71d5dc042722d95b5f7360584 | /dbconnect/dbconnection.py | b778cbfacbe2b2a6268d55f4a667538c05e65f84 | [] | no_license | arunthankachan07/PythonFiles | 740c2e050051053f7c7762b324229d83ede5988d | 4b329893e0a07944ec628dd4d02587265fe79f6b | refs/heads/master | 2023-03-18T11:02:44.709754 | 2021-03-05T12:41:18 | 2021-03-05T12:41:18 | 333,663,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | #step1 import mysql connector
import mysql.connector
#step2 establish connection
db=mysql.connector.connect(
host="localhost",
user="root",
passwd="Password@123",
auth_plugin="mysql_native_password"
)
#step3 create a cursor object
cursor=db.cursor()
sql="select version()"
cursor.execute(sql)
data=cur... | [
"arunkaripuzha07@gmail.com"
] | arunkaripuzha07@gmail.com |
bef61d05eaaf64c236e25d8ef2df05e28aece3bf | cefab48dff8fc40786f0a45f3df272646365e9f5 | /python/pyMARS_old/python_mars_scripts_bak/7c_run_mars.py | 3d9b016f68f04dd78684f494e882cd6e8d21ac53 | [] | no_license | shaunhaskey/pyMARS | d40265bd2d445f0429ae7177f2e75d83f0ba8b30 | e2424088492a8ab2f34acf62db42a77e44d5bc3b | refs/heads/master | 2020-12-25T17:24:28.392539 | 2016-08-01T22:14:27 | 2016-08-01T22:14:27 | 17,684,575 | 0 | 0 | null | 2014-03-13T03:41:59 | 2014-03-12T21:21:08 | Python | UTF-8 | Python | false | false | 1,975 | py | #!/usr/bin/env Python
## This script runs MARS-F on all of the
## This is the option for manually telling it the file!
## one for manual (maybe have this for mars_setup ??)
## one for fancy
## one for standard
from PythonMARS_funcs import *
import Chease_Batch_Launcher as ch_launch
import time, os, sys, pickle
import... | [
"shaunhaskey@gmail.com"
] | shaunhaskey@gmail.com |
31b5f3450ebf4771b0e3c1750c08341a020f24b5 | 0566cf76b456518875edecece15e763a36a4795f | /scrapers/kinokrad_net.py | 4f0edc8bd70e57bd07ba5281f0238d9bf225cbf0 | [] | no_license | theclonedude/Scraping_BeautifulSoup_phantomjs | 684b1f7a993e0d2555daa7a5455cf19bd29b0b1b | faf653feae46c21a72d13b2123cdebdb2f7c05d8 | refs/heads/master | 2023-03-16T19:36:14.867361 | 2018-06-14T14:21:02 | 2018-06-14T14:21:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,580 | py | # -*- coding: utf-8 -*-
from sandcrawler.scraper import ScraperBase
from sandcrawler.scraper import SimpleScraperBase
from sandcrawler.scraper import UppodDecoderMixin
from sandcrawler.scraper import OpenSearchMixin
import re
class Kinokrad(OpenSearchMixin, SimpleScraperBase, UppodDecoderMixin):
BASE_URL = 'http:... | [
"stryokka@gmail.com"
] | stryokka@gmail.com |
c69be42524c9b21964863d1bcde44b7d3cb7ba08 | e9fee9e3c3885f68f76828d3099a435a133371d4 | /src/datasets/base_dataset_factory.py | 63514ff8a2d4937864bc93508bf8b5b995fd7ca1 | [
"MIT-0"
] | permissive | elangovana/bert-classification | 5bec4c207f799b7c4e4882856f129983f618f39f | 30f97023cb0e2d17838696ddc55f2bd105cc966b | refs/heads/master | 2023-02-19T02:14:56.883898 | 2021-01-21T22:19:38 | 2021-01-21T22:19:38 | 330,345,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | class BaseDatasetFactory:
def get_dataset(self, data=None, preprocessor=None):
raise NotImplementedError
def get_label_mapper(self, data=None, preprocessor=None):
raise NotImplementedError
| [
"aeg@amazon.com"
] | aeg@amazon.com |
e13d355dee885a6b54dd12dbb0afa5c91243cc0e | 8f24e443e42315a81028b648e753c50967c51c78 | /python/ray/data/tests/test_dataset.py | 717e1c47b0782a04b7241d6903f320f314a9c47b | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | simon-mo/ray | d07efdada8d05c6e10417f96e8dfc35f9ad33397 | 1e42e6cd15e2fb96c217cba8484e59ed0ef4b0c8 | refs/heads/master | 2023-03-06T00:09:35.758834 | 2022-12-23T18:46:48 | 2022-12-23T18:46:48 | 122,156,396 | 4 | 2 | Apache-2.0 | 2023-03-04T08:56:56 | 2018-02-20T04:47:06 | Python | UTF-8 | Python | false | false | 183,806 | py | import itertools
import math
import os
import random
import signal
import time
import numpy as np
import pandas as pd
import pyarrow as pa
import pyarrow.parquet as pq
import pytest
import ray
from ray._private.test_utils import wait_for_condition
from ray.data._internal.stats import _StatsActor
from ray.data._intern... | [
"noreply@github.com"
] | simon-mo.noreply@github.com |
5ec82b4df216e47d062c9ce5c741562513bb8119 | 0398fe7cecf67baa369c90a65cb3fc50185f6021 | /kitti_det/test_data.py | 873a67c4fe7519cb558b17a535695871b799f880 | [] | no_license | lzhao4ever/few_shot | 4fbf23290f49459ead15942c9d8439ed532f2d2c | c0751db1b2616f10897af5dde9e01451d3463a69 | refs/heads/master | 2020-03-28T04:48:21.995879 | 2018-09-06T19:08:33 | 2018-09-06T19:08:33 | 147,737,671 | 1 | 0 | null | 2018-09-06T21:51:26 | 2018-09-06T21:51:25 | null | UTF-8 | Python | false | false | 1,631 | py | from learning_args import parse_args
from kitti_data import KittiData
import logging
logging.basicConfig(format='[%(levelname)s %(asctime)s %(filename)s:%(lineno)s] %(message)s',
level=logging.INFO)
class DataTest(object):
def __init__(self, data):
self.data = data
def test(self)... | [
"yangyi02@gmail.com"
] | yangyi02@gmail.com |
fbab6c2dcdb3e83f4d3fa819ef5e9d2f3cfbdd4e | 70cdf0741a22c678401a306229003bf036ffe5a6 | /ocbind/bgp/global_/state/__init__.py | cb9a131052501129e533301ff1585d645b900b72 | [] | 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 | 92,334 | 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 |
ed7e4144279b44e7e5b5ece2386609756f8c6fbc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02959/s745329300.py | 8b3478d1500263daf0343e9f4ba028b181870f1f | [] | 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 | 456 | py | n = int(input())
a = list(map(int, input().split()))
b = list(map(int, input().split()))
viran = 0
for i in range(n):
if a[i] + a[i + 1] - b[i] >= 0:
viran += b[i]
if a[i] > b[i]:
a[i] -= b[i]
else:
b[i] -= a[i]
a[i] = 0
a[i + 1] -= b[i]
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
112f4f24db3f85212e0c65c0cf42c604a51e208e | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/catapult/third_party/gsutil/gslib/commands/web.py | aa7708a45ff8d9f1fcc6a9ff39c0f5e6d673b5a3 | [
"Apache-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 8,469 | py | # -*- coding: utf-8 -*-
# Copyright 2012 Google Inc. 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 require... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
b48aa08a11532317f82fc9c8cff418576c5d9a2e | 0f36a84993add7e53d7e63b87f8f131ce1e2cdb3 | /maintenance_in_progress/admin.py | c6689c3d0387997f3befe2c67f5e468e665bf290 | [
"BSD-3-Clause"
] | permissive | praekelt/django-maintenance-in-progress | efe08de3360b3a19e90e8b855ba9dacdbf50e8dd | dabbd8abffbae7cc13af372ddaa9248144eca315 | refs/heads/master | 2021-01-23T02:30:39.832716 | 2014-11-11T08:11:26 | 2014-11-11T08:11:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from django.contrib import admin
from maintenance_in_progress.models import Preferences
class PreferencesAdmin(admin.ModelAdmin):
dummy = Preferences()
pass
admin.site.register(Preferences, PreferencesAdmin)
| [
"hedleyroos@gmail.com"
] | hedleyroos@gmail.com |
3db8866021ee49719b9de0e3b4122532874dff46 | 175e4e031471e5cdbc9bcaee2df10f5ec44871d3 | /LESSON2b/.history/test/webapitest/app_20200606161208.py | caf8921d8fee38fde019dd82fb5d1ecacc389883 | [] | no_license | hiyacins/uma_study | c329d29a9c3899ab4feca21b9c47ef546b69b0bd | 067e66f258a0c89f7670c645dd7c40feee8536fa | refs/heads/master | 2023-01-23T06:40:12.435047 | 2020-06-17T15:59:34 | 2020-06-17T15:59:34 | 239,077,726 | 0 | 0 | null | 2023-01-06T08:36:26 | 2020-02-08T05:56:52 | Python | UTF-8 | Python | false | false | 397 | py | from flask import Flask, jsonify, request
app = Flask(__name__)
incomes = ['1':1, '2':2]
@app.route('/incomes')
def get_incomes():
print(jsonify(incomes))
return jsonify(incomes)
# @app.route('/incomes', methods=['POST'])
# def add_income():
# y = incomes.append(request.get_json())
# print(jsonify... | [
"hiyacins@gmail.com"
] | hiyacins@gmail.com |
4645db098b17a3f174f7feeb5e7dde728264e1ab | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4172/codes/1834_1280.py | cf9fc33c3c66de330a758d280354235685d2b5f6 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | from numpy import *
from numpy.linalg import *
t = array(eval(input("Tabuleiro: ")))
a = t.shape[0]
b = t.shape[1]
mov = input("Movimentos: ")
x = 0
y = 0
mo = 0
hp = 100
for i in mov:
if i == "A":
if x-1 != -1:
if t[y,x-1] != 33:
x -= 1
elif i == "D":
if x + 1 != b:
if t[y,x+1] != 33:
x += 1
e... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
67145d13fa868bc02316f8f1083903660b066d93 | ac2b3f97b4f2423a3724fbf9af69e362183f7f3a | /crimtech_final_project/crimsononline/content/forms.py | 605614363b09ee1d21a111bd3a8a6d43af95bf14 | [] | no_license | cindyz8735/crimtechcomp | e4109855dd9a87fc11dd29fdf6bb81400c9ce97b | a9045ea79c73c7b864a391039799c2f22234fed3 | refs/heads/master | 2021-01-24T10:06:03.386553 | 2018-04-14T04:24:57 | 2018-04-14T04:24:57 | 123,037,281 | 0 | 0 | null | 2018-02-26T22:08:57 | 2018-02-26T22:08:56 | null | UTF-8 | Python | false | false | 9,870 | py | """
Forms, widgets, fields.
However, put forms specifically for Admin in admin.py, not here
"""
import logging
from datetime import date, datetime, timedelta
from re import compile
from time import strptime
from django import forms
from django.conf import settings
from django.contrib.contenttypes.models import Conten... | [
"cindyz8735@gmail.com"
] | cindyz8735@gmail.com |
d8c165c99a21c8fbb5e4b10d1f3e0829be77cbc4 | 930309163b930559929323647b8d82238724f392 | /typical90_br.py | 1687df915320071d44ef8d26403ad034a93b7388 | [] | no_license | GINK03/atcoder-solvers | 874251dffc9f23b187faa77c439b445e53f8dfe1 | b1e7ac6e9d67938de9a85df4a2f9780fb1fbcee7 | refs/heads/master | 2021-11-07T14:16:52.138894 | 2021-09-12T13:32:29 | 2021-09-12T13:32:29 | 11,724,396 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 293 | py |
import statistics
N = int(input())
X,Y = [], []
for n in range(N):
x,y = map(int,input().split())
X.append(x)
Y.append(y)
x_med = statistics.median(X)
y_med = statistics.median(Y)
# print(x_med, y_med)
print( int(sum([abs(x-x_med) for x in X]) + sum([abs(y-y_med) for y in Y]) ))
| [
"gim.kobayashi@gmail.com"
] | gim.kobayashi@gmail.com |
6b71bb1ed7030ea9d3cb5fe111970bb76b024f70 | a0d855fa55abc0f9c6b66faf375f09e6d8a96565 | /HengDa/PaddleOCR-develop/1.生成ocr识别训练样本/剔除训练字符集外的字符样本.py | 83ae6ac04fe6116b380e21df444b542bc203773d | [
"Apache-2.0"
] | permissive | zhilangtaosha/WorkSpace | 7782193893e5f88efed452f1928ceebdca14caa5 | 829530ed6c3467310932d045189769dccd9305c4 | refs/heads/main | 2023-08-08T10:21:10.671806 | 2021-09-10T02:34:35 | 2021-09-10T02:34:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | import pandas as pd
train_wordcount = pd.read_excel(r'./labelfile/label_wd_count.xlsx')
ppocr_word=open(r'./labelfile/ppocr_keys_v1.txt','r',encoding='utf-8').readlines()
print(train_wordcount.shape)
ppocr_word_list=[]
for word in ppocr_word:
ppocr_word_list.append(word[:-1])
train_wordcount=train_wordcount[~tra... | [
"344267342@qq.com"
] | 344267342@qq.com |
71b17b2f4741a46752010afad1564d1d0dec074c | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/stdlib-big-3337.py | c2b2fd1a6edee483a890b0dd628545c4b29da9ed | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,009 | py | # ChocoPy library functions
def int_to_str(x: int) -> str:
digits:[str] = None
result:str = ""
# Set-up digit mapping
digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
# Write sign if necessary
if x < 0:
result = "-"
x = -x
# Write digits using a recursive call
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
94aaa59005f60e3736f061f77315e3786ab041c7 | b76615ff745c6d66803506251c3d4109faf50802 | /pyobjc-core/PyObjCTest/test_pickle.py | 81096e0d8ec3df8d991061103be4bfefd0282987 | [
"MIT"
] | permissive | danchr/pyobjc-git | 6ef17e472f54251e283a0801ce29e9eff9c20ac0 | 62b787fddeb381184043c7ff136f1c480755ab69 | refs/heads/master | 2021-01-04T12:24:31.581750 | 2020-02-02T20:43:02 | 2020-02-02T20:43:02 | 240,537,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,324 | py | import sys
from PyObjCTest.fnd import NSNumber
from PyObjCTools.TestSupport import *
from objc._pythonify import OC_PythonLong, OC_PythonFloat
if sys.version_info[0] == 2:
from objc._pythonify import OC_PythonInt
import pickle
try:
import cPickle
except ImportError:
cPickle = None
class TestPickleNumber... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
a26c17630dd5644a9253769f92014a7968d52c58 | 00fd0a5590eb76daee7bfcf6186f80735b5ee45d | /comp.py | ec900754b189bd3632553f987e79a976b60b0640 | [] | no_license | dstndstn/unwise-sdss-phot | 591786eb9c6adb0ad18c8d1ac2d7218c8c40c718 | e586fb4671b022f55d52e568d00a11109a8d7e19 | refs/heads/master | 2021-01-22T07:32:41.915567 | 2015-12-11T15:50:11 | 2015-12-11T15:50:11 | 38,506,490 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 31,057 | py | import matplotlib
matplotlib.use('Agg')
import numpy as np
import pylab as plt
from astrometry.util.file import *
from astrometry.util.fits import *
from astrometry.util.multiproc import *
from astrometry.util.plotutils import *
from astrometry.util.miscutils import *
from astrometry.util.util import *
from astrometry.... | [
"dstndstn@gmail.com"
] | dstndstn@gmail.com |
32abc78dcd4857198295b04d76da1133512d015b | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/3881326ae28131d4c8a3f629299d60517333c929-<main>-bug.py | 5fe14cd59be47ca4742b25f8b6984e5abe2f1380 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,842 | py | def main():
argument_spec = purefa_argument_spec()
argument_spec.update(dict(gather_subset=dict(default='minimum', type='list')))
module = AnsibleModule(argument_spec, supports_check_mode=False)
array = get_system(module)
subset = [test.lower() for test in module.params['gather_subset']]
valid_s... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
c61b3a5be19ee147752c40258c1712115589f2c0 | 3441758c18282e57419e23b9c2116abb057b4e4a | /api/try/models.py | 86ae574631887c48e09deeef3a923b7b8d7fd969 | [] | no_license | aimethierry/me2u | fb278d6c0adda68834a6cd0391cbcc1a56820df2 | 3d80c3a1683d26056dd72e727da91418534a2fac | refs/heads/master | 2021-05-14T00:19:14.515110 | 2018-01-07T04:05:32 | 2018-01-07T04:05:32 | 116,536,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.auth.models import User
from django.db import models
class client(models.Model):
compony = models.ForeignKey('compony', null=True)
def __str__(self):
return str(self.compony)
class compony(models.Model):
name... | [
"aime.thierry97@gmail.com"
] | aime.thierry97@gmail.com |
a289b11339483e490d80c29cbdf364eb0f670507 | b3f6daa5d6c987eb8a61d5fe125bf2a98997e259 | /7kyu/Coloured Triangles/kata.py | 1f50aee2dd390b8707ae4e452f424a34fb2291fc | [] | no_license | krnets/codewars-practice | 53a0a6c9d2d8c2b94d6799a12f48dd588179a5ce | 5f8e1cc1aebd900b9e5a276884419fc3e1ddef24 | refs/heads/master | 2022-12-20T19:33:43.337581 | 2022-12-16T05:32:39 | 2022-12-16T05:32:39 | 217,464,785 | 1 | 0 | null | 2020-07-20T08:36:31 | 2019-10-25T06:20:41 | JavaScript | UTF-8 | Python | false | false | 2,359 | py | from itertools import pairwise
# def triangle(row):
# while len(row) > 1:
# next_row = []
# for x, y in pairwise(row):
# if x == y:
# next_row.append(x)
# elif (x == "R" and y == "G") or (x == "G" and y == "R"):
# next_row.append("B")
# ... | [
"cmantheo@gmail.com"
] | cmantheo@gmail.com |
134daab410b1b2c91c0ff64b4cb6e3d71b3f764b | bd498cbbb28e33370298a84b693f93a3058d3138 | /Google/benchmarks/bert/implementations/bert-cloud-TF2.0-tpu-v3-32/tf2_common/modeling/activations/__init__.py | 958ff2d97145a9bae07a116f81831646ef08074b | [
"Apache-2.0"
] | permissive | piyushghai/training_results_v0.7 | afb303446e75e3e9789b0f6c40ce330b6b83a70c | e017c9359f66e2d814c6990d1ffa56654a73f5b0 | refs/heads/master | 2022-12-19T16:50:17.372320 | 2020-09-24T01:02:00 | 2020-09-24T18:01:01 | 298,127,245 | 0 | 1 | Apache-2.0 | 2020-09-24T00:27:21 | 2020-09-24T00:27:21 | null | UTF-8 | Python | false | false | 1,000 | py | # Copyright 2019 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 applica... | [
"vbittorf@google.com"
] | vbittorf@google.com |
db57a0d939fe9575956d9fabfc9947cee424d08f | 737a67744a98a536eccf5e2012628271f9120f79 | /django/blackbelt/apps/lrApp/models.py | a7f07238e84e7677ff267c7e113801eacfa1ac6d | [] | no_license | iota-cohort-dc/Daniel-Perez | 31d581cf6494d69404925685ca55ec9a9b97611c | 57b6a69e4f6e02f8b0694787ab195e08ad5dc52b | refs/heads/master | 2021-01-20T16:59:30.730460 | 2017-07-03T04:12:16 | 2017-07-03T04:12:16 | 82,850,732 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,963 | py | from __future__ import unicode_literals
from django.db import models
import bcrypt, re
EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')#CODE HERE
class UserManager(models.Manager):
def validator(self, data):#self-function, object of function
flag = True
errs = []
i... | [
"perez0231@yahoo.com"
] | perez0231@yahoo.com |
217572df73e1a568ebdd09a0d06680a4d6fc96e4 | 920b9cb23d3883dcc93b1682adfee83099fee826 | /pipeline/tests/pipeline_data.py | c3d7c6e9374b6d946df8f4f35b7517c5a7b65b35 | [
"MIT",
"LGPL-2.1-or-later",
"LGPL-3.0-only"
] | permissive | TencentBlueKing/bk-itsm | f817fb166248d3059857b57d03e8b5ec1b78ff5b | 2d708bd0d869d391456e0fb8d644af3b9f031acf | refs/heads/master | 2023-08-31T23:42:32.275836 | 2023-08-22T08:17:54 | 2023-08-22T08:17:54 | 391,839,825 | 100 | 86 | MIT | 2023-09-14T08:24:54 | 2021-08-02T06:35:16 | Python | UTF-8 | Python | false | false | 3,803 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2020 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | [
"1758504262@qq.com"
] | 1758504262@qq.com |
c0088af02f281f0bbf5ae778d61161e2dd996c9e | f183df1dcdfee18a77b95ba395ab1f7cc15a5a5b | /python/Django/projeto02/projeto02/wsgi.py | 5198cbb383207f283a3f66216517572ce4478c93 | [] | no_license | ltakuno/arquivos | 7686578fbdefaf04d11e738325d7a34631b4c113 | c04198264cc9f32fd472453fea3b627a03794008 | refs/heads/master | 2023-01-24T13:11:29.861084 | 2021-10-26T10:52:03 | 2021-10-26T10:52:03 | 98,174,425 | 0 | 1 | null | 2023-01-11T12:02:14 | 2017-07-24T09:38:12 | Python | UTF-8 | Python | false | false | 396 | py | """
WSGI config for projeto02 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"leonardo.takuno@gmail.com"
] | leonardo.takuno@gmail.com |
f5cbe95231d065ce1bc561846e883a6062d7adb3 | 3c5ae1e6dcd105354971c78ef279420b0b817ffa | /nova-master/nova/virt/hyperv/driver.py | 72bb4be26f89e8bcf35dc58504805fc64f4431cb | [
"Apache-2.0"
] | permissive | Yunzhe-Sun/CentOS-openstack | e9e99360cedd46e9bf7f2f1b2dab22032c6b2aca | e22b8090e7bf748c38448a61793a23ca71ec91d4 | refs/heads/master | 2021-07-15T23:19:15.560323 | 2021-07-07T02:43:01 | 2021-07-07T02:43:01 | 218,758,174 | 0 | 1 | null | 2021-07-07T02:43:02 | 2019-10-31T12:13:49 | Python | UTF-8 | Python | false | false | 8,716 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2010 Cloud.com, Inc
# Copyright (c) 2012 Cloudbase Solutions Srl
#
# 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
#
# ... | [
"171194570@qq.com"
] | 171194570@qq.com |
e549c11a2ae212940ed17d457ebc0eeab9f0b479 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3/Fred/jamcoin.py | 91e24bf7fb8ca842202b45817b502424784a7620 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,806 | py | import math
import random
from nzmath import *
from base import *
def ibase(n, radix=2, maxlen=None):
r = []
while n:
n,p = divmod(n, radix)
r.append('%d' % p)
if maxlen and len(r) > maxlen:
break
r.reverse()
return ''.join(r)
def gen_base2(length):
for i in x... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
f3868d7331651f4946760e286d71f7582df2020f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02721/s322660010.py | 40d140872aec94270298818fcf023e923296b8cd | [] | 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 | 499 | py | def solve():
N, K, C = map(int, input().split())
workable = [i for i, s in enumerate(input()) if s=="o"]
if len(workable) == K:
return workable
latest = set()
prev = workable[-1]+C+1
for x in reversed(workable):
if prev - x > C:
latest.add(x)
prev = x
if len(latest) > K:
retur... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1b3fdf0d6c6ee91c4b55363aaef534c4469a58b7 | cfcbeaedf438c24cfdbcc2ce35d87c5b506affe7 | /config_gen/exception.py | 4267042f9b6fd7c6e088f55ee8b692dea4b662ff | [
"Beerware"
] | permissive | en0/config-gen | 2e469db8c537cb53ef13cb6464c2cee4bf28ece0 | 069fbc263004a9da0d85ec7619a50586ae1997ce | refs/heads/master | 2021-01-10T12:35:38.681791 | 2016-01-11T05:32:46 | 2016-01-11T05:32:46 | 48,790,891 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | class InvalidKeystoreException(Exception):
pass
class KeystoreExistsException(Exception):
pass
class UnkonwnAdapterException(Exception):
pass
| [
"irlaird@gmail.com"
] | irlaird@gmail.com |
a11a2b335fc2e4da2335aac927be8829d035d01a | 08e052c0c2ee4ad0cd4980fbc8a692c407118659 | /venv/bin/pip3 | 30110550c771426ae95697f7641cb2a00ab24f6c | [] | no_license | miltonleal/MAC0110_Introduction_Computer_Science_IME_USP | 6fad182f7fbb3e83403080800074bf57456cb0b5 | b47936ce66e715dba79dff44779a750d795192a0 | refs/heads/master | 2023-03-04T11:06:48.092980 | 2021-02-17T14:47:46 | 2021-02-17T14:47:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | #!/Users/admin/PycharmProjects/MAC110/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys... | [
"milton.leal@usp.br"
] | milton.leal@usp.br | |
385fe90cfc6c9d2ff67fb1a93f1b83807a1c5fdd | 82e660c9b8568b7563d3c5790e008b7b858d4689 | /src/python/zensols/zotsite/navvisitor.py | 493512dcda77c1a6741e5bb0a2181dc75e7903b2 | [
"MIT"
] | permissive | jasonzou/zotsite | 7ec14951ab2ef86506972cc5740410fda1b2979d | ef8fa2f078e821d965ab2572f9b894ff079cf460 | refs/heads/master | 2020-12-23T05:19:20.526852 | 2020-01-05T18:49:24 | 2020-01-05T18:49:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,388 | py | import logging
import re
from zensols.zotsite import (
Visitor,
ItemMapper,
Item,
Note,
ZoteroObject,
)
logger = logging.getLogger(__name__)
class NavCreateVisitor(Visitor):
"""This class creates the data structure used by the Javascript navigation
widget in the created website.
"""
... | [
"landes@mailc.net"
] | landes@mailc.net |
1592f76f5bee5142364af30e1357be9f887047f7 | 0ebf709cb34eaf0510b28543c0be979a8580d4ce | /flex/loading/common/single_header/type.py | e843b91908ea2af75c17aab8b5123be49201283b | [
"MIT"
] | permissive | monetate/flex | 538da8c57558009033a3f9d5a10b5c2a9726ad19 | baad5f2af47ffed27ad9a8cbcfb843d9968c5c66 | refs/heads/master | 2021-01-18T13:08:06.286253 | 2017-02-02T17:46:19 | 2017-02-02T17:46:19 | 80,729,152 | 0 | 1 | null | 2017-02-02T17:46:21 | 2017-02-02T13:49:44 | Python | UTF-8 | Python | false | false | 979 | py | from flex.exceptions import ValidationError
from flex.error_messages import MESSAGES
from flex.datastructures import (
ValidationList,
)
from flex.constants import (
STRING,
ARRAY,
NUMBER,
INTEGER,
BOOLEAN,
)
from flex.decorators import (
skip_if_empty,
skip_if_not_of_type,
)
from flex.v... | [
"piper@simpleenergy.com"
] | piper@simpleenergy.com |
f0d7b2f07fe7498becc7e13968fa01307cdcc935 | be9a2ad541dfcc306b3e6b0d499bb016edfccd56 | /Multi_modal/software/DL4SS_Keras/predict.py | 45250866acfef6c9cf2cbe30f6a14361cc8bcd6e | [] | no_license | shincling/DL4SS | 6188abb5cabe5c3baa3eeec069463ccbbeee9223 | 7d81133114f79f796ae96f3fba1e52db330fc6c0 | refs/heads/master | 2021-01-24T07:55:13.151272 | 2018-10-28T14:03:57 | 2018-10-28T14:03:57 | 93,360,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,664 | py | # -*- coding: utf-8 -*-
import matlab
import soundfile as sf
import numpy as np
import config
import resampy
import librosa
import time
import random
import sys
print '\n\n Import Mnist from predict.py'
sys.path.append('./../../dataset/Mnist_data')
import Multi_modal.dataset.Mnist_data.input_data as mnist... | [
"shijing609@163.com"
] | shijing609@163.com |
19dbbbc8d89f0a2bdacc46b61170ffac3f3a8f59 | c243cadfd406495ae5f95ba75781b17eaaa10eef | /alfred-abakaffe.py | c2e0dfd86566d9e33f3465dd1f4240a51663ad9c | [
"MIT"
] | permissive | relekang/alfred-abakaffe | 15d86b4e72af4ee2f3f832301e7cd77c0d8e2bc8 | 9003961717b142def53939bb55af907858388e44 | refs/heads/master | 2016-09-06T02:34:18.480473 | 2013-11-30T15:27:30 | 2013-11-30T15:27:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | # -*- coding: utf-8 -*-
import alfred
import urllib2
import json
def main(stats=False):
status = json.load(urllib2.urlopen('http://kaffe.abakus.no/api/status'))['coffee']
item = alfred.Item(
uid='abakaffe',
arg="",
title=u'Kaffetrakteren er %s' % (u'på' if status['status'] else u'av'),... | [
"me@rolflekang.com"
] | me@rolflekang.com |
4472dc064fdd0a206239a7944df5fb56b83f2647 | 3344353216106e73a3dc42331cb7a2bdcbab4325 | /Lib/unittest/test/testmock/testasync.py | bcf634bdd35e9d5717e86585af6190e8285eed36 | [
"Python-2.0",
"CC-BY-4.0",
"MIT"
] | permissive | ghkdxofla/RustPython | 1fc44634ed48cd9bfebcfbe902aa7cf3025454d6 | 1fd557d549cd72e7da83608b99e5464273abd4b3 | refs/heads/master | 2023-02-28T12:24:03.458606 | 2023-02-14T03:32:31 | 2023-02-14T03:32:31 | 213,147,311 | 0 | 0 | MIT | 2019-10-06T10:19:49 | 2019-10-06T10:19:48 | null | UTF-8 | Python | false | false | 37,315 | py | import asyncio
import gc
import inspect
import re
import unittest
from contextlib import contextmanager
from asyncio import run, iscoroutinefunction
from unittest import IsolatedAsyncioTestCase
from unittest.mock import (ANY, call, AsyncMock, patch, MagicMock, Mock,
create_autospec, sentinel... | [
"jeong@youknowone.org"
] | jeong@youknowone.org |
5ec973a93f4fbd3bf01b2a947c426a4a1e03fca2 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_004/ch21_2019_05_29_20_43_18_302734.py | 22d3e0959caeded486a3a71233d6db0d301af4b4 | [] | 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 | 134 | py | conta=float(input('Quanto deu a conta? '))
final=(conta*0.1)+conta
print('Valor da conta com 10%: R$ {:.2f}'.format(final)) | [
"you@example.com"
] | you@example.com |
f077f052e565c34a05eb8b18db4389b458d7b158 | 5456502f97627278cbd6e16d002d50f1de3da7bb | /services/ui/DEPS | aaf932661f4510198c87d6dc82c7933ce296a0f5 | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/Chromium_7C66 | 72d108a413909eb3bd36c73a6c2f98de1573b6e5 | c8649ab2a0f5a747369ed50351209a42f59672ee | refs/heads/master | 2023-03-16T12:51:40.231959 | 2017-12-20T10:38:26 | 2017-12-20T10:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | include_rules = [
"+cc",
"+ipc",
"+mojo/common",
"+mojo/converters",
"+mojo/public",
"+services/catalog/public",
"+services/service_manager",
"+services/tracing/public",
"-services/ui/gpu",
"+third_party/skia/include",
"+ui",
]
| [
"lixiaodonglove7@aliyun.com"
] | lixiaodonglove7@aliyun.com | |
0b617a32ee045bdbf31ab1a852c93ede57018d02 | 4e89d371a5f8cca3c5c7e426af1bcb7f1fc4dda3 | /python/python-cookbook-test-code/8 section/10.py | deccf45e5090a8c7c4530c46b5d4471a6c698f6b | [] | no_license | bodii/test-code | f2a99450dd3230db2633a554fddc5b8ee04afd0b | 4103c80d6efde949a4d707283d692db9ffac4546 | refs/heads/master | 2023-04-27T16:37:36.685521 | 2023-03-02T08:38:43 | 2023-03-02T08:38:43 | 63,114,995 | 4 | 1 | null | 2023-04-17T08:28:35 | 2016-07-12T01:29:24 | Go | UTF-8 | Python | false | false | 4,185 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Topic: 第八章:类与对象
Desc: 本章主要关注点的是和类定义有关的常见编程模型。包括让对象支持常见的
Python 特性、特殊方法的使用、类封装技术、继承、内存管理以及有用的设计模
式。
Title; 使用延迟计算属性
Issue:你想将一个只读属性定义成一个 property,并且只在访问的时候才会计算结果。但
是一旦被访问后,你希望结果值被缓存起来,不用每次都去计算。
Answer:定义一个延迟属性的一种高效方法是通过使用一个描述器类
"""
class lazyprope... | [
"1401097251@qq.com"
] | 1401097251@qq.com |
89437482ccdc22168488eac29cc585f4a4faf91e | 29dfa1deefc72493d1b1eecf1a8df62e24599a77 | /dfvfs/encoding/__init__.py | 79e1bead282039a8405cdfa41ad917b3578d903f | [
"Apache-2.0"
] | permissive | log2timeline/dfvfs | fd301eaf721a9945641a44ff722aec963158a6b3 | 28756d910e951a22c5f0b2bcf5184f055a19d544 | refs/heads/main | 2023-08-07T22:45:45.432668 | 2023-07-30T12:17:56 | 2023-07-30T12:17:56 | 23,820,144 | 197 | 65 | Apache-2.0 | 2023-07-30T12:17:58 | 2014-09-09T05:06:44 | Python | UTF-8 | Python | false | false | 191 | py | # -*- coding: utf-8 -*-
"""Imports for the encoding manager."""
from dfvfs.encoding import base16_decoder
from dfvfs.encoding import base32_decoder
from dfvfs.encoding import base64_decoder
| [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
f670ee44bdd0fcefa032831ca28425668f47fe5a | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnvolt.py | 9f40cbd1f6660791e6dc95a64b2cf8367db67188 | [] | 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 | 160 | py | ii = [('CookGHP3.py', 1), ('RoscTTI3.py', 1), ('LyelCPG.py', 1), ('BuckWGM2.py', 1), ('WheeJPT.py', 1), ('HogaGMM.py', 1), ('RoscTTI.py', 1), ('DibdTRL.py', 2)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
cec60136ea60b296bb78d728324112af1c19bd62 | 570999179f857d667e0259131a66320a5545b1db | /package_id/hello/conanfile.py | 615474940b0050571f888ea2e15e9bf4f9a64fb5 | [
"MIT"
] | permissive | conan-io/training | 4002703762633647295cf7d74ecb93ea5d8d0573 | c5fdfd5735a2ebdd1ef867fdf79a87671652eaca | refs/heads/master | 2023-08-09T18:52:46.587110 | 2023-07-30T11:42:29 | 2023-07-30T11:42:29 | 185,558,287 | 63 | 43 | MIT | 2023-01-05T11:47:23 | 2019-05-08T07:49:27 | Python | UTF-8 | Python | false | false | 184 | py | from conans import ConanFile
class HelloConan(ConanFile):
name = "hello"
exports_sources = "src/*"
def package(self):
self.copy("*.h", dst="include", src="src")
| [
"james@conan.io"
] | james@conan.io |
edb422a0077265bc0e03f2b2926a7fb2648d423e | 1757f6e24e8ff27c31a9c2a75016546f41ff2e47 | /printrider/config.py | 38f644264d8f6685a98134bbb42df0f2c8f753a9 | [
"MIT"
] | permissive | namuan/print-rider-py | 8e8f11d48fff99bf611991ec7dad0abf3979b570 | 73f0b1e45f7a53910903b06927787a3c157b0046 | refs/heads/master | 2022-09-17T11:15:05.924488 | 2021-12-04T14:16:51 | 2021-12-04T14:16:51 | 230,796,677 | 1 | 0 | MIT | 2022-09-08T11:49:12 | 2019-12-29T19:54:23 | HTML | UTF-8 | Python | false | false | 834 | py | import os
import boto3
from dotenv import load_dotenv
from printrider.utils import log
is_offline = os.environ.get("AWS_SAM_LOCAL", False)
if is_offline:
log("Offline detected. Loading .env.local")
load_dotenv(".env.local", verbose=True)
else:
log("Running on AWS Lambda. Loading .env.prod")
load_dot... | [
"575441+namuan@users.noreply.github.com"
] | 575441+namuan@users.noreply.github.com |
71f74b3dd3a92c3ce0e95f5e500d1978ebd5e588 | dd121815098974b020438fd16288eafd6605c0da | /entities/Mario.py | 04b95b7bc6069c406a91de385584a0a9728f1480 | [] | no_license | ahmedfadhil/Super-Mario-Level1 | b487f124bbc47c6cf86a655dd2244f0123ebd758 | 99f49626a14ddb0bacad67042bad8d5112bd2a5c | refs/heads/master | 2021-05-06T05:54:43.849247 | 2017-12-23T12:32:58 | 2017-12-23T12:32:58 | 115,193,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,215 | py | from classes.Sprites import Sprites
import pygame
from pygame.locals import *
import classes.Maths
from traits import go,jump
from traits.go import goTrait
from traits.jump import jumpTrait
from classes.Animation import Animation
from classes.Collider import Collider
from classes.Camera import Camera
from entities.Enti... | [
"ahmed.fadhil@alumni.emu.edu.tr"
] | ahmed.fadhil@alumni.emu.edu.tr |
e9f1c55a3dc93d2af61b465c240fde29a415bb1f | 3f60f9e1081fd08824254006f7fd2fd1b4b56731 | /POI/top_six_dec_tree.py | c499dbe4e03e904d87f24e7f180e699993a19c80 | [] | no_license | mihirkelkar/Text_Mining_Enron | 0e37abfe7cc916b6f278ddd6bb72ac4b48283425 | b7e2d59bc38bb62e68a61d2348aa5302f5cf5918 | refs/heads/master | 2020-04-15T21:49:42.673886 | 2015-04-18T00:03:58 | 2015-04-18T00:03:58 | 30,212,104 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,808 | py | import matplotlib.pyplot as plt
import sys
import pickle
import sklearn
import time
import numpy as np
from data_sorter import featuresProcess
from data_sorter import split
from sklearn import cross_validation
from sklearn.tree import DecisionTreeClassifier
outliers = ["SKILLING JEFFREY K", "LAY KENNETH L", "FREVERT ... | [
"kelkarmhr@gmail.com"
] | kelkarmhr@gmail.com |
78d8107b0cad76be415a27eb943ecb49ac66b461 | cb848d0c80abb04c080155d1502d22391423c4e8 | /build/phidgets_drivers/phidgets_high_speed_encoder/catkin_generated/pkg.develspace.context.pc.py | a106cfe7dfa11811865aa070ef537664303b19fd | [] | no_license | MTU-Autobot/catkin_ws | d8bc9b0de46befc53282b9b7e6d338a7ff7e3a0c | cf104fe048c6101f50be1b87e181d80a4be3e770 | refs/heads/master | 2020-03-13T23:14:56.276075 | 2018-04-27T18:28:01 | 2018-04-27T18:28:01 | 131,331,599 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/ubuntu/catkin_ws/devel/include".split(';') if "/home/ubuntu/catkin_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "libphidget21;phidgets_api;roscpp;std_msgs;message_runtime;sensor_msgs"... | [
"spartanhaden@gmail.com"
] | spartanhaden@gmail.com |
dd2ebc6226064bd1a24160ade390db696c5f7dc3 | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/2/path_integral_naive_sampling_20200419021113.py | 2ba12819af57ac260e58a3ad802fda1c0f6108e3 | [] | 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 | 7,570 | py | # -*- coding: utf-8 -*-
from __future__ import division
import os
import numpy as np
import matplotlib.pyplot as plt
from time import time
import pandas as pd
# Author: Juan Esteban Aristizabal-Zuluaga
# date: 202004151200
def rho_free(x,xp,beta):
"""Uso: devuelve elemento de matriz dsnsidad para el caso de una ... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
5ca765f1a415b88bb8f7c5ef88aa89f2ff9eca33 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/espali.py | 89fbd7f542e80ca1ac3f340ab6061987c820d8f5 | [] | 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 | 44 | py | ii = [('WestJIT2.py', 1), ('SoutRD2.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
cbe4e09adbd1f7d8819f4f6e78989ec8e5bed30f | 250f15be6fd7aa9c0c372c76995d81bfd5dae887 | /backend/number_genirator_18901/urls.py | 87f431a29f7b079531deab0bbe4dac6d5bb7aec3 | [] | no_license | crowdbotics-apps/geninumber-18901 | 4eac82c0dfc190b5cade721acb8e0f5955546f92 | 0285c0cd8c77b3f056f1ae8720a73b5c3daf396c | refs/heads/master | 2022-11-15T05:26:42.386872 | 2020-07-15T13:50:44 | 2020-07-15T13:50:44 | 279,699,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,985 | py | """number_genirator_18901 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='hom... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2fa58a5a0a7460b278183504926312c7d6f81297 | 3952a0faa9085169cca288e22ba934073923613c | /tensorflow_/tensorflowcv/models/shufflenetv2b.py | b10dd09049517608b196b0ab01a2dcad247eeb7b | [
"MIT"
] | permissive | Magic-chao/imgclsmob | 4876651d8db8642dc363f83fe754e828394fa927 | b9281ed56e9705623941498f49ca833805b6a7e0 | refs/heads/master | 2020-05-24T00:27:12.622838 | 2019-05-13T06:27:00 | 2019-05-13T06:27:00 | 187,017,063 | 1 | 0 | null | 2019-05-16T11:47:36 | 2019-05-16T11:47:35 | null | UTF-8 | Python | false | false | 15,637 | py | """
ShuffleNet V2, implemented in TensorFlow. The alternative variant.
Original paper: 'ShuffleNet V2: Practical Guidelines for Efficient CNN Architecture Design,'
https://arxiv.org/abs/1807.11164.
"""
__all__ = ['ShuffleNetV2b', 'shufflenetv2b_wd2', 'shufflenetv2b_w1', 'shufflenetv2b_w3d2', 'shufflenetv2b... | [
"osemery@gmail.com"
] | osemery@gmail.com |
f09ded2aecd16fbeb6cacab8a19ebecacecf95e8 | 801f367bd19b8f2ab08669fd0a85aad7ace961ac | /a_policy_with_my_face/src/step1_generate_bodies.py | afd0cef652e5fc01f38f50f541302869aa4328e0 | [
"MIT"
] | permissive | Wendong-Huo/thesis-bodies | d91b694a6b1b6a911476573ed1ed27eb27fb000d | dceb8a36efd2cefc611f6749a52b56b9d3572f7a | refs/heads/main | 2023-04-17T18:32:38.541537 | 2021-03-12T19:53:23 | 2021-03-12T19:53:23 | 623,471,326 | 1 | 0 | null | 2023-04-04T12:45:48 | 2023-04-04T12:45:47 | null | UTF-8 | Python | false | false | 4,072 | py | import os
import shutil
import random
from arguments import get_args
from utils import output, abort, read_template, read_yaml, write_xml, write_yaml
args = get_args()
def generate_bodies():
assert args.seed_bodies<100, "The way we combining real seeds only allow seed_bodies to be smaller than 100."
assert ... | [
"sliu1@uvm.edu"
] | sliu1@uvm.edu |
47c71c9207a4815561b2c504b0f2cabe7b38b6b6 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/c3d1f9b08549f12d3a0db52e2d9eb8a2f3f6c39d-<cli_get_interface_stp_config>-fix.py | a113d90283c777d3a4538d16d566fb4d8fbfaac4 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | def cli_get_interface_stp_config(self):
" Cli get interface's stp configuration "
if self.interface:
regular = ('| ignore-case section include ^#\\s+interface %s\\s+' % self.interface.replace(' ', ''))
flags = list()
flags.append(regular)
tmp_cfg = get_config(self.module, flags)
... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
fc7375cb200f6ce11d2b39c246b832443e35a7aa | 3b8fd5b73337b3cd70b283644c266d4ec962ad54 | /2020-2021/DEV1/Chapter 6/BA6.py | f2d7e37fc04cde2caa0922e7d166c74050b2d0b8 | [] | no_license | Andy00097/hrinf-development | 20f4604ca5637c710d9d25e7e218a2ae1233498b | 464ca039537d6b8ca04bf95ba070b8f1f7b81188 | refs/heads/main | 2023-01-09T03:52:54.214472 | 2020-11-11T10:11:57 | 2020-11-11T10:11:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | x = 3
s = ''
b = '||'
sym = '*'
while x > 0:
y = 2
x = x - 1
s = s + b
while y > 0:
s = s + sym
y = y - 1
s = s + b + '\n'
print() | [
"stijn@kolkies.dev"
] | stijn@kolkies.dev |
99636d13038a98afe959baf3597f5a1e138e11b8 | 910eb6e2905fd10337b67f6265d80fa975c63768 | /freenasUI/system/migrations/0024_auto__add_field_rsync_rsync_enabled.py | 47c016ca57dcf113b4b3bf31ff42a7a2c1627599 | [] | no_license | truenas/freenas-migrate93 | b6e7a32615137677dbb20f002f0455f5ca3cf5a2 | 9cd6170fc7bf636d55b0513af794f955fb7bfbce | refs/heads/master | 2023-08-18T20:24:45.513212 | 2023-02-07T12:58:01 | 2023-02-07T12:58:01 | 77,483,696 | 1 | 0 | null | 2023-04-27T10:41:55 | 2016-12-27T21:28:51 | Python | UTF-8 | Python | false | false | 12,013 | py | # encoding: utf-8
from south.db import db
from south.v2 import DataMigration
class Migration(DataMigration):
def forwards(self, orm):
# Adding field 'Rsync.rsync_enabled'
db.add_column('system_rsync', 'rsync_enabled', self.gf('django.db.models.fields.BooleanField')(default=1), keep_defaul... | [
"suraj@ixsystems.com"
] | suraj@ixsystems.com |
5af972c6704be18dc909261927796e8d5d2e14c2 | c79bc3b25aac5f958da011119bf71fcca534bd1a | /hostedpi/exc.py | d24a1bb3839b71e61f3f9a49f23f620222a5ca01 | [
"BSD-3-Clause"
] | permissive | gnuchu/hostedpi | c4ff4d398bcc8fde0d2d421f8a67b315c40fcc33 | 325e8035e0bf671daeabb4d696eb5b36a6daa12d | refs/heads/main | 2023-03-31T04:07:17.604847 | 2021-03-28T00:10:22 | 2021-03-28T00:10:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | class HostedPiException(Exception):
"Base class for all exceptions in the hostedpi module"
class MythicAuthenticationError(HostedPiException):
"Exception raised when authentication fails"
| [
"ben@bennuttall.com"
] | ben@bennuttall.com |
a00e7e08479c40b2e3a0dfd90acdcecf263eb136 | badb121a8c72debc539e7b9caf17b5c4cd875897 | /deepneuro/pipelines/Segment_GBM/cli.py | d31ee1a031787f5239aee1cc9cc87f45b92ab102 | [
"MIT"
] | permissive | shlpu/DeepNeuro | 8721e1f83b30031a422e6cf112c31879edfa0feb | 6b239942589d1b05e2384019c442508f5d02beb3 | refs/heads/master | 2020-03-16T07:12:25.128910 | 2018-04-10T22:32:29 | 2018-04-10T22:32:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,807 | py | import argparse
import sys
import os
from deepneuro.docker.docker_cli import nvidia_docker_wrapper
class Segment_GBM_cli(object):
def __init__(self):
parser = argparse.ArgumentParser(
description='A number of pre-packaged command used by the Quantiative Tumor Imaging Lab at the Martinos Cent... | [
"andrew_beers@alumni.brown.edu"
] | andrew_beers@alumni.brown.edu |
f9dee29f5339c1b9a789eaf072e2726a72d8575c | 0fe742cd90a272a2b76c4836c3f755d2165e4757 | /TempSync/Python3 Portable/UserSite/Crypto/SelfTest/Hash/test_RIPEMD160.py | d4119a062bff0b385852147c04bf391f42b77383 | [] | no_license | Emiyasviel/Arianrhod | c1cbdc40df7c899151f4127f6c5eeeefa78224da | 33ff26c20bb041ec8c89622f76ee9bb1a88f1cad | refs/heads/master | 2021-01-14T13:08:44.682712 | 2014-03-06T06:40:59 | 2014-03-06T06:40:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,701 | py | # -*- coding: utf-8 -*-
#
# SelfTest/Hash/test_RIPEMD160.py: Self-test for the RIPEMD-160 hash function
#
# Written in 2008 by Dwayne C. Litzenberger <dlitz@dlitz.net>
#
# ===================================================================
# The contents of this file are dedicated to the public domain. To
# the exten... | [
"Hiromi.Kaede@gmail.com"
] | Hiromi.Kaede@gmail.com |
8cd04b9c9ab4ce7f6ceb9d7d51e64ac0b4f2020e | 10d1b353a6f1a3e9eb323cd61127339502f2004f | /GPU/UC3M_HOG_GPU/scripts/visualize.py | 30312e41f30a87f5cb310d928259dc00db001cbc | [] | no_license | Nawter/GPUHOG | 50e5a66473ef3db3a31241a10e43b9765fc82f8b | 1dd47defde1e64f8503d78a8fdd17181e3434772 | refs/heads/master | 2021-01-17T18:51:15.195172 | 2016-05-31T10:46:05 | 2016-05-31T10:46:05 | 60,030,962 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,288 | py | #!/usr/bin/env python
#
# Copyright (c) 2011
# Patrick Sudowe <sudowe@umic.rwth-aachen.de>
# RWTH Aachen University, Germany
#
# This file is part of groundHOG.
#
# GroundHOG is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
... | [
"zaiddawoodissa@gmail.com"
] | zaiddawoodissa@gmail.com |
a9cfd188a03c5aaeabebd1fe29094b2a74bcabcc | 64275736fa8e32dbb40f4dd8b6168487b77f34f5 | /iotoro_web/iotoro_web/util.py | 23e1c389c634d217b5e92916b8f3353c9b699165 | [
"MIT"
] | permissive | victorhook/iotoro-web | 531137669eae66e697552e05dbb9b1dde1a14b8e | 5bb3743c8564d2c64b4e23e82f4933e5c4de8e7c | refs/heads/master | 2023-04-19T17:36:28.556592 | 2021-05-04T12:49:17 | 2021-05-04T12:49:17 | 362,493,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | from django.utils import timezone
def format_date(date: timezone) -> str:
return date.strftime("%Y-%m-%d %H:%M:%S")
| [
"victorkrook96@gmail.com"
] | victorkrook96@gmail.com |
9ef822062614d2f61b409a52200cba0498ab4e48 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/minWindow_20200618180836.py | 264f3dfa47b28957ec33ee562dae4659410f9eb0 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,348 | py | # for this question we have two pointers
# left pointer
# right pointer
# we move the right pointer and maintain the position of the left pointer
# when we find the word we move the left pointer
# store that word its shortest form
# we keep moving the right pointer
# how do we get a substring that has all search ... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
cdb76dd5da99fb8245e2b6a131519290125e812e | d66818f4b951943553826a5f64413e90120e1fae | /hackerearth/Algorithms/Shil and Birthday present/solution.py | c9e032c7b3c3ddd15497e40f25b0f1dcb2825ef1 | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 391 | py | """
# Sample code to perform I/O:
name = input() # Reading input from STDIN
print('Hi, %s.' % name) # Writing output to STDOUT
# Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail
"""
# Write your code here
n = int(input())
a = list(map(int, input().... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
3f862f2f76d97e52239d8147598e564a610fd645 | 012ee01ed0a3d883c8f5ce58f6fa5d388a9e6edf | /delete_all.py | 4b5e47c0ca286eee395ae8d6996c90896bef83e1 | [] | no_license | mikedowney/Bonneville-Data-logger-Web-Reporting | b50a5f1c6954fb0b338e57c9c7026270f3e597e0 | dfe41c1c9f278d57bac37cb6374f06be0b6fcd04 | refs/heads/master | 2021-01-02T08:51:12.816976 | 2013-04-11T18:31:55 | 2013-04-11T18:31:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# enable debugging
import cgi
import cgitb
import MySQLdb
from datetime import datetime
import os
import subprocess
import time
import Gnuplot, Gnuplot.funcutils
cgitb.enable()
form = cgi.FieldStorage()
if "dataset" in form:
dataset = form["dataset"].value
else:
dataset = ... | [
"root@raspberrypi.(none)"
] | root@raspberrypi.(none) |
bdc3ed86f454a9dbca3d3c847158de222d4683d3 | 85b402cd9e762b2749c978105ea362b10d335e5c | /244-what_are_embedding_layers/244-what_are_embedding_layers.py | b5184c85e71ff7821367bc89a5af20c3098be358 | [] | no_license | bnsreenu/python_for_microscopists | 29c08f17461baca95b5161fd4cd905be515605c4 | 4b8c0bd4274bc4d5e906a4952988c7f3e8db74c5 | refs/heads/master | 2023-09-04T21:11:25.524753 | 2023-08-24T18:40:53 | 2023-08-24T18:40:53 | 191,218,511 | 3,010 | 2,206 | null | 2023-07-25T07:15:22 | 2019-06-10T17:53:14 | Jupyter Notebook | UTF-8 | Python | false | false | 2,918 | py | # https://youtu.be/nam2zR7p7Os
"""
What is Embedding layer in keras?
"""
import numpy as np
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Embedding
import tensorflow as tf
#Each value in the input_array (of input dimension) is mapped to a vector
#of a defined size ... | [
"noreply@github.com"
] | bnsreenu.noreply@github.com |
e37c452a403ba628df23ab43a4acaaea65d0d49c | 21ae836d207303101e0cdab891e2c5d5fb5bbc89 | /equations.py | 1b5654a1e0a059a764886eb15d7589aec6df139f | [] | no_license | oriel975/orielwork | 5eabd3cc2d1ca714980ddc7a5dca566bc4e975ad | 81493d69caed4988d6e20c5266c4aced9608cf20 | refs/heads/main | 2023-05-03T21:20:39.054430 | 2021-05-25T20:20:40 | 2021-05-25T20:20:40 | 346,488,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | # -*- coding: utf-8 -*-
def XtimesY(x,y):
if x <= 0:
return 0.0
return exponent(y*Ln(x))
def myfactorial(x):
fac = 1
i = 1
while i <= x:
fac = fac * i
i = i + 1
return fac
def mypow(x,y):
ans = 1
for n in range(y):
ans=ans*x
return ans
def exp... | [
"you@example.com"
] | you@example.com |
a2d9fce1a74815e0894791df9d36e72921a9883c | 085bbe10739d14ccb883efa2dc2d0e3e83c6bd24 | /rlkit/torch/sac/sac.py | a7966d753f5bac21b6eccaf7607fd95032ad1b9a | [
"MIT"
] | permissive | KamyarGh/rl_swiss | f933399ab1a3fddf3fcbdba826ef14b9099009c7 | 3efa944031e65d4a9fc6dee27381e73e446bb16d | refs/heads/master | 2020-08-07T14:51:55.686555 | 2020-05-25T10:14:40 | 2020-05-25T10:14:40 | 213,495,341 | 61 | 12 | null | null | null | null | UTF-8 | Python | false | false | 6,430 | py | from collections import OrderedDict
import numpy as np
import torch
from torch import nn as nn
import torch.nn.functional as F
import torch.optim as optim
import rlkit.torch.pytorch_util as ptu
from rlkit.core.trainer import Trainer
from rlkit.core.eval_util import create_stats_ordered_dict
class SoftActorCritic(Tr... | [
"kamyar.seyedghasemipour@mail.utoronto.ca"
] | kamyar.seyedghasemipour@mail.utoronto.ca |
a4451a4facc4eda2df505e6a2604717a78deaa00 | 904fd519e3f10c8a21653d3fdea34915d2e708e2 | /acquisition/views.py | 538dcfa68cf3ea281fbe84c1f94b125694c10f47 | [
"Apache-2.0"
] | permissive | Kgermando/es-script | 5d4c74996dd83a2e91fb462f3ceb4943c887811c | f1b10ecf2c805e8875a025e7033c724e236f6cd1 | refs/heads/main | 2023-06-26T00:54:31.351588 | 2021-07-26T15:40:14 | 2021-07-26T15:40:14 | 366,509,163 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,921 | py | from django.shortcuts import render, redirect
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse, HttpResponseRedirect
from django.contrib import messages # for message
from django.urls import reverse
from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator
f... | [
"katakugermain@gmail.com"
] | katakugermain@gmail.com |
56b07b847ed8e3c65b9408966760c1cb8be95706 | 839b26d2d837f256423c11908a2a3618ab8a23f3 | /dashboard/dashboard/debug_alert_test.py | 5024c3f215bd4d88bd8db80c42a27acf849fc89b | [
"BSD-3-Clause"
] | permissive | Mdlglobal-atlassian-net/catapult | 79be5d4ec5d681c1d2f37ae83534a02f4a4ec72a | e9a386951413e7cbf983abf968626b2e5097fc38 | refs/heads/master | 2022-02-27T15:18:45.524790 | 2020-06-01T07:12:27 | 2020-06-01T22:57:01 | 268,672,431 | 0 | 1 | BSD-3-Clause | 2020-06-02T01:31:05 | 2020-06-02T01:31:04 | null | UTF-8 | Python | false | false | 9,663 | py | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import unittest
import mock
import webapp2
imp... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
4d9241b62fdb2c1d93030c948e35034d5161d6ea | 0ae05ab700b3a7678186d34dfb602cfe347b1377 | /Time_Subjective_Expansion/Jon_Ian_collaboration/code/Time_perception_each_vs_all/Adi_23Sep2019_16-13.py | 2b250156e356a35e83f4ed20e939b946db3569fc | [] | no_license | Adibuoy23/spatio_temporal_information_processing | 20c68cae4e673171c95867e2a2b444894d814104 | a16485aa2e68b1c12043a29b5c1faf56db0ae10f | refs/heads/master | 2021-08-06T13:17:24.662844 | 2020-04-22T23:53:56 | 2020-04-22T23:53:56 | 157,260,014 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,196 | py | #import all the modules
from __future__ import print_function
from psychopy import monitors, visual, event, data, logging, core, sound, gui
from psychopy.hardware import keyboard
import psychopy.info
import numpy as np
from math import atan, log, ceil
from copy import deepcopy
import time
import sys
import os
import cs... | [
"supadhy6@jhu.edu"
] | supadhy6@jhu.edu |
0c78a6402e803d8426be04f00c734aff9099a00b | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/PhysicsAnalysis/DerivationFramework/DerivationFrameworkHiggs/share/HIGG4D4.py | 2aa2a2c1c5962afd9dbe045d15d684ccca490c3d | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,488 | py | #********************************************************************
# HIGG4D4.py: reductionConf flag HIGG4D4 in Reco_tf.py
# Z. Zinonos - zenon@cern.ch
#
DAOD_StreamID = 'HIGG4D4'
#********************************************************************
from DerivationFrameworkCore.DerivationFrameworkMaster import *
fr... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
0506da5b27f05553a92b59dcfb9929b347fe6f4f | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /140_gui/pyqt_pyside/examples/PyQt_PySide_book/005_Lists and tables/001_Drop-down list/358_addItem.py | d2369e5c06e8fb15c776315b92e756907acf0241 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 806 | py | # -*- coding: utf-8 -*-
from PyQt5 import QtWidgets
import sys
def on_clicked():
print("Текст:", comboBox.currentText())
print("Данные:", comboBox.itemData(comboBox.currentIndex()))
app = QtWidgets.QApplication(sys.argv)
window = QtWidgets.QWidget()
window.setWindowTitle("Класс QComboBox")
window.resize(300, ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
0d51bc2d3af574974bcc019126b603c1e77ea4b5 | 257d13275c4b227663571d000c5795a6d6f81ebb | /face_algorithm/sphere_face_pt.py | 42f6b6bf6737aac0417054186630dcfcfdd5caa2 | [] | no_license | zhangxu0307/face_algorithm_explore | 53c6357e7b561f7ab9808385f49ec4fce569a5a8 | 2e69f0b8fe338a0003230d08990121e49044a3a6 | refs/heads/master | 2020-03-19T20:52:12.521821 | 2018-06-11T12:06:00 | 2018-06-11T12:06:00 | 136,920,087 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,912 | py | import cv2
import torch
from torch.autograd import Variable
torch.backends.cudnn.bencmark = True
import face_algorithm.sphere_face_pytorch.net_sphere as net_sphere
from face_algorithm.sphere_face_pytorch.matlab_cp2tform import get_similarity_transform_for_cv2
import numpy as np
from face_algorithm.landmarks_mtcnn impo... | [
"zhangxu0307@163.com"
] | zhangxu0307@163.com |
0a871aa1f072e5a78036bf638f3ede1029d89eec | 37ee0574409c31418771cfe6f86b015e5b82da22 | /robot/logging.py | 7377761b24485c6b8c48cbecd70fe606b15f8227 | [
"MIT"
] | permissive | musistudio/wukong-robot | 01c7cc5a4b4b60aed7d9003d39fe552f088743f8 | b839648efce8f38e9b63ad1a567a9db80c22e9b7 | refs/heads/master | 2020-04-25T15:24:03.203776 | 2019-02-27T10:09:58 | 2019-02-27T10:09:58 | 172,877,607 | 0 | 0 | MIT | 2019-02-27T08:44:49 | 2019-02-27T08:44:46 | Python | UTF-8 | Python | false | false | 2,334 | py | import logging
import sys
import os
from robot import constants
from logging.handlers import RotatingFileHandler
PAGE = 4096
DEBUG = logging.DEBUG
INFO = logging.INFO
ERROR = logging.ERROR
def tail(filepath, n=10):
"""
实现 tail -n
"""
res = ""
with open(filepath, 'rb') as f:
f_len = f.seek... | [
"m@hahack.com"
] | m@hahack.com |
be375010a1b4673bad8d2f87fb621acb23678c07 | d8d53a33445c31eda23cfd4bcbed84e02aef6242 | /helpt/settings.py | a5e99f332d812b456e4add3cdfcc09c80bc6cba0 | [] | no_license | zenbum/helpt | f7dcdd141823613487608b999186681453230027 | 9eec36b779728b58d0e7bf8cf3ac867f66aff275 | refs/heads/master | 2020-12-30T22:57:09.947283 | 2016-08-15T12:56:29 | 2016-08-15T12:56:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,550 | py | """
Django settings for helpt 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 os
# ... | [
"juha.yrjola@iki.fi"
] | juha.yrjola@iki.fi |
4a87c7a89da134835c7f04b53fd5ae946b57e079 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/830.py | 00bc9c769313d7089a8cec040836960f2af7333a | [] | 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 | 971 | py | import sys
T = int(raw_input())
empties = {}
def add_empties(e, n):
if str(e) in empties:
empties[str(e)] += n
else:
empties[str(e)] = n
for t in range(1, T+1):
N,K = map(int, raw_input().split())
if N == K:
ma, mi = 0, 0
print 'Case #%d: %d %d' % (t... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
6514533736de9e6d526a2c5879a32aa3e7f346a4 | 37fef592f365194c28579f95abd222cc4e1243ae | /streamlit/venv/lib/python3.7/site-packages/plotly/graph_objs/scatter/marker/colorbar/_tickfont.py | 5fe1222f918d2b23a50a5cf41c0c87c22d2b724b | [] | no_license | edimaudo/Python-projects | be61e0d3fff63fb7bd00513dbf1401e2c1822cfb | 85d54badf82a0b653587a02e99daf389df62e012 | refs/heads/master | 2023-04-07T03:26:23.259959 | 2023-03-24T12:03:03 | 2023-03-24T12:03:03 | 72,611,253 | 4 | 3 | null | 2022-10-31T18:10:41 | 2016-11-02T06:37:17 | null | UTF-8 | Python | false | false | 8,496 | py | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Tickfont(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "scatter.marker.colorbar"
_path_str = "scatter.marker.colorbar.tickfont"
_valid_props = {"c... | [
"edimaudo@gmail.com"
] | edimaudo@gmail.com |
c17fcc67f6c87d6a29875ccc60f4c6a3cedba622 | 86a26119af259e3858cb5e57ea2e41e3b25c5fa7 | /Files/Demo1.py | 085f72a671dd0d306daf6ab9e9f04048e6609020 | [] | no_license | deshmukhshweta/project2 | 747ca7972a7bfdc4aed20dbb4ee3f6d2f009ca83 | 8bf07454d259456dc616e7283c266b35fe7b870d | refs/heads/master | 2020-04-19T09:57:05.541157 | 2019-01-29T09:27:01 | 2019-01-29T09:27:01 | 168,125,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | #Snippet to open a File in Read mode
# Note: Default mode is "r" -- read
try:
f = open("sample.txt")
print(f)
except FileNotFoundError:
print("File Not Found")
print("Thanks")
| [
"123deshmukhshweta@gmail.com"
] | 123deshmukhshweta@gmail.com |
4da4ebc66fd539655a6eb5a43ba60929d1252b19 | 56a94f32baa64119b1ddd28951ef3fd23726b3af | /mods/imports.py | 0ee8813e149dcc8384fa315fe5fa7b5f91db4e60 | [] | no_license | krishpranav/Rat-Console | 34eb95ce59871ce7fef6e205fb1ae40386fc9b38 | 2cbe1b6f643f078d5cecb885cc73b8667389469b | refs/heads/master | 2023-03-13T02:11:56.090994 | 2021-03-04T12:01:41 | 2021-03-04T12:01:41 | 304,204,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | #imports
import os
import sys
import socket
import time
import base64
import tabulate
import shlex
import platform
import io
import psutil
import threading
import pyscreenshot
from datetime import datetime
from pynput.keyboard import Key, Listener | [
"krisna.pranav@gmail.com"
] | krisna.pranav@gmail.com |
c6b1b462f929ed45033db3ba2aa6d507284644cb | f59f423d6835a7738eb99346f352b86303e38b23 | /CSE 471 Assessment 1 Reuired Files/Multiclass Logistic Regression Raw Implementation Template.py | f1b91dc4e880bced350721217878fc91268b6aa4 | [] | no_license | lsiddiqsunny/CSE-472-Machine-Learning | b114e7dc1dfb9eb099cd9bb3909402029126402a | e534c3c4dff8786159287531d5397f3c67439386 | refs/heads/master | 2022-12-24T17:24:08.545601 | 2020-10-13T08:12:21 | 2020-10-13T08:12:21 | 243,284,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,971 | py | #!/usr/bin/env python
# coding: utf-8
# In[2]:
#Import required python module(s)
import numpy as np
# In[3]:
#load data from file
data = np.genfromtxt('iris_multiclass.csv', delimiter=',',skip_header=True)
#Distribute data into train and test sets
X_train = data[:120,[0,1,2,3]]
Y_train = data[:120,5]
X_test =... | [
"lsiddiqsunny@gmail.com"
] | lsiddiqsunny@gmail.com |
dbf260b9b839e21836daceca0b316b1ae9fde441 | a508ffe0942f75721d4623fcda9e57808f93f07d | /6b/main.py | 63ba3039f162aa15074f7c5f0f1f8636f0fc0a21 | [] | no_license | ag8/magic | 3a14a81f3c06fa67cd77de07045ee3dc3899ca7f | 2768fc7490e6cc55b522be68926ad24d3caa939c | refs/heads/master | 2021-01-22T06:49:29.561849 | 2017-10-30T23:34:57 | 2017-10-30T23:34:57 | 102,300,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,531 | py | import sys
import os
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
import overlap_input
import net
from constants import FLAGS
from vae import VariationalAutoencoder
sys.path.append(os.path.join(os.path.dirname(__file__), "../../../../"))
from affinity.models.magic_autoencoder.utils.ut... | [
"andrew2000g@gmail.com"
] | andrew2000g@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.