blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a4334e650942a9aab5b5ecc302da8ac15b452505 | 56a28df7ecf17fc6176288c935cab26df6a87922 | /migrations/versions/fa91a70d3959_.py | 4d3952bb37e81b49db943f1b1a7ce13f4dfa8395 | [] | no_license | ehiber/To-Do-List-API | 6ee2fe0183cc04f719998d0518ab856442328f2d | a06e54ec8339e1109cd3db85ac586fc7cd17f2a5 | refs/heads/develop | 2021-07-05T07:05:35.691410 | 2020-01-29T21:44:04 | 2020-01-29T21:44:04 | 235,905,998 | 0 | 0 | null | 2021-05-06T20:06:00 | 2020-01-23T23:21:41 | Python | UTF-8 | Python | false | false | 827 | py | """empty message
Revision ID: fa91a70d3959
Revises: 584e5b9842d2
Create Date: 2020-01-29 16:08:10.771590
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = 'fa91a70d3959'
down_revision = '584e5b9842d2'
branch_labels = None
depe... | [
"ehiber5@hotmail.com"
] | ehiber5@hotmail.com |
7d73eb374ffb9b3499f6562d0bd69e82c757e245 | 97ee1485dfe3b3eb2254ff85edd8f5fa34e21531 | /redisext/models/abc.py | a36089dd85385d9c46114c65205a53d25466f6da | [
"MIT"
] | permissive | mylokin/redisext | 7f1c02efc330978ba613d3a4438c495301d55aca | b54baf99c804736e2e7540187f0d6f9a3ca64e0b | refs/heads/master | 2023-08-17T14:02:07.115055 | 2023-08-03T13:42:54 | 2023-08-03T13:42:54 | 30,815,631 | 0 | 2 | MIT | 2023-08-03T13:42:55 | 2015-02-15T02:32:36 | Python | UTF-8 | Python | false | false | 1,917 | py | from __future__ import absolute_import
import redisext.backend.abc
import redisext.backend.redis as redis
import redisext.packages.dsnparse as dsnparse
class Model(object):
KEY = None
CONNECTION = None
CONNECTION_REUSE = True
def __init__(self, key=None):
self.key = key or getattr(self, 'KEY... | [
"mylokin@me.com"
] | mylokin@me.com |
8b5353bb413efa3cbabe1730e3767936265568a8 | 0d0efed91a1e320509a7625bd72ebea1b64fc95b | /numpy_learn/5_numpy_function.py | 0fc81c094aa3704f8098fde5e9b67f07f7783576 | [] | no_license | starryrbs/python_ai | ed74a3c2d53378b47b2be910d97255f2706fd25e | 80f8fd361d7b366ba0607417f0272bbaa3672e51 | refs/heads/master | 2020-04-24T03:48:52.260392 | 2019-02-20T13:56:42 | 2019-02-20T13:56:42 | 171,681,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,783 | py | import numpy as np
# numpy的随机数函数
# numpy的random子库:np.random.*,主要有np.random.rand() np.random.randn() np.random.randint()
# rand(d0,d1,d2,……,dn) : 根据d0-dn创建随机数组,浮点数,范围是[0,1),均匀分布
a = np.random.rand(2, 3, 4)
print(a)
"""
[[[0.4506612 0.5296636 0.9747625 0.90105177]
[0.25850117 0.90704491 0.87144252 0.004189... | [
"1322096624@qq.com"
] | 1322096624@qq.com |
29d9a13fc428d7f9e1e4996ffc1477522c5baa82 | cf8146853f8eac1a2942849bc7564f94a96fe9cb | /pynetbox/models/circuits.py | 0e97cc707dae5cdc36c0cb2dce4b3f12913684df | [
"Apache-2.0"
] | permissive | markkuleinio/pynetbox | a07dbbad05f3e1beb919ce924a8e6335ddd6a5a9 | 0981320289b3a6ccb2fadab70e4047ec5d329ebd | refs/heads/master | 2023-09-03T21:04:20.813085 | 2023-08-29T04:04:42 | 2023-08-29T04:04:42 | 182,992,019 | 0 | 0 | Apache-2.0 | 2019-04-23T10:31:37 | 2019-04-23T10:31:37 | null | UTF-8 | Python | false | false | 760 | py | """
(c) 2017 DigitalOcean
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
distribut... | [
"zmoody@digitalocean.com"
] | zmoody@digitalocean.com |
bb18ab3f331dbd440d23d2e0fb922bcf8c0bbcd9 | e2f7ede165cc5f35d33b413b1cbab84bce582e0c | /agence_sncf/urls.py | d184f74d4d7ceef4a5c3e14a8b8be8042d71b11c | [] | no_license | julienbronner/Projet_SBD | 98029d433c4c5253754ca16054162775e6aeab2f | 6b12b6be6ba0497ee7d3453fd57fe820f7663797 | refs/heads/main | 2023-01-27T16:46:30.217850 | 2020-12-04T22:42:53 | 2020-12-04T22:42:53 | 318,264,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | """agence_sncf URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"julbronner@free.fr"
] | julbronner@free.fr |
6aec87a1fbe7be776d760cf637c53614801b725b | 35286efd76814a1f3bc05da07f2968d05737c238 | /esim/test.py | b013aa69540a306acd2cfacf63915c5ba49b3226 | [
"Apache-2.0"
] | permissive | jiniaoxu/text_matching | ac41c7de8f66f61a6958a35dfd4584539cd97c51 | 154de91000e8677703192cf5eae49fc6c3c09eea | refs/heads/master | 2020-06-04T05:45:09.320991 | 2019-06-13T02:50:54 | 2019-06-13T02:50:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '../'))
from esim.graph import Graph
import tensorflow as tf
from utils.load_data import load_data
os.environ["KMP_DUPLICATE_LIB_OK"] = "TRUE"
os.environ['CUDA_VISIBLE_DEVICES'] = '2'
p, h, y = load_data('ccb/test.csv', data_size=1000)
m... | [
"zjiuzhou@gmail.com"
] | zjiuzhou@gmail.com |
0e8d365040a495051d58dcb06f5a3448469c7b24 | 13cab28ace93296d4c57ed2e30121e6af25a0595 | /python修改张铁海/p12.py | f2ae9607120d95d453e2dc320d9702d2f7f0dddb | [
"MIT"
] | permissive | zthdsb/robot | cedf5663ba3bcf9d0464c00aaeb40a32fd282f0a | b76dffdc63a50ea3955068b3d28194bd12c26719 | refs/heads/master | 2021-08-19T12:12:54.698698 | 2017-11-26T06:00:22 | 2017-11-26T06:00:22 | 112,051,816 | 0 | 0 | null | 2017-11-26T03:06:06 | 2017-11-26T03:06:05 | null | UTF-8 | Python | false | false | 254 | py |
pCan=0.001
pNon=0.999
z='positive'
# z='negative'
pPosCan=0.8
pPosNon=0.1
if z=='positive':
p=[pPosCan*pCan, pPosNon*pNon]
else:
p=[(1-pPosCan)*pCan,(1-pPosNon)*pNon]
S=sum(p)
for i in range(len(p)):
p[i]=p[i]/sum(p)
print(p[0])
print(p[1])
| [
"1278405208@qq.com"
] | 1278405208@qq.com |
daee6d647f89c7ef2312d24653337d9dd6c1b677 | 8a79d40fb610bd8f99526a2a6d9a5a097839c829 | /shangji/asgi.py | af7e29b2c31fd236762a3ae47ba5d0eb14373a42 | [] | no_license | fenglongyun/shangji1 | 0f254addc3037a34f0930f4b56a93639375b0dd9 | 8b0b751c331f21eedbdaefe4b879eb31dcd165b8 | refs/heads/master | 2023-02-14T15:37:32.191845 | 2021-01-14T14:38:22 | 2021-01-14T14:38:22 | 307,700,935 | 0 | 0 | null | 2020-12-19T07:36:58 | 2020-10-27T13:00:18 | Python | UTF-8 | Python | false | false | 391 | py | """
ASGI config for shangji project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"19121711185@163.com"
] | 19121711185@163.com |
a9f87c09db842dec84d7f43ae82487dea6c66bfb | 9c6e7ee7ae1a4f301b70a4ee79cb0d6857247c80 | /libros/migrations/0002_libromodelo_slug.py | f25cbe2106ae6d744edecffaca248a2214db6d0e | [] | no_license | DerianD/proyecto | 035994780b4f58bfec69a98b198a5c7f889e7fe6 | 4fcd44444cd7c845fc6cd2027b630410596430af | refs/heads/master | 2020-05-27T05:45:02.056344 | 2017-03-16T06:04:16 | 2017-03-16T06:04:16 | 82,528,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-12 03:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('libros', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"derian.droid123@gmail.com"
] | derian.droid123@gmail.com |
48bbfcaa47206b217a1dc3a4c42db54c9c544888 | bb3af1c67988ab9bf0acb89942a23789743d0a79 | /Helpers/callbacks.py | 782513866558f9c498e49e89656ee0b8bc5c9674 | [] | no_license | TBomberman/MatrixScores | 288751ab73a4cc8b11d7018b6baa9499e57c877c | 0dbbe4c2a6bcf94f8b9670ff075ebf8c3d97b9c4 | refs/heads/master | 2023-01-28T11:40:24.315695 | 2020-12-15T06:24:03 | 2020-12-15T06:24:03 | 317,684,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | from tensorflow.keras.callbacks import Callback
import datetime
class NEpochLogger(Callback):
def __init__(self,display=100):
'''
display: Number of epochs to wait before outputting loss
'''
self.seen = 0
self.display = display
def on_epoch_end(self, epoch, logs={}):
... | [
"godwinwoo@hotmail.com"
] | godwinwoo@hotmail.com |
16f0611933913ee87d8a374cb889efd828cd11ab | 985b89f24b1360d6519097e278421e760552bdea | /articles/migrations/0001_initial.py | 1a0eed574d8c69adfcbb7812d6669e59c9c334f9 | [] | no_license | macbotxxx/fintech | c1077e4e103104869e6a98c217a148aae81cca8a | 0f1f73ef07eec6a128cdc2a304abfb537f87c8ba | refs/heads/master | 2023-08-10T23:32:32.650774 | 2021-09-13T11:32:28 | 2021-09-13T11:32:28 | 401,274,806 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | # Generated by Django 3.2.6 on 2021-08-27 09:40
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Blog',
fields=[
('id', models.BigAutoField(... | [
"assanamamichael@gmail.com"
] | assanamamichael@gmail.com |
4a85160591a2d1391c3b158a203ad2f227a3bd0e | 3ad0cce6e17c0f5448e0ee5ce68a4813a31327d7 | /summarize.py | 9193ca43b3cfb0a4ca7fd31548252637af4596ce | [] | no_license | Mariarone/Multilingual-text-summarization | 27d112e59847ee48fd7658e15e415d95835a124f | 86acc2592ed336020b682e4910524942fe8ad9c7 | refs/heads/master | 2020-06-06T07:47:11.387044 | 2019-06-19T07:38:15 | 2019-06-19T07:38:15 | 192,682,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,545 | py | #Author: Parav Patel
# This program utilizes the basics of the nltk (NLP) library to create a text summarizer which outputs a summary for a given text
# (article, story, blog posts etc..).
from __future__ import print_function
import array
import string
import operator
#Natural Language Processing Libraries
import nl... | [
"mariarone1997@gmail.com"
] | mariarone1997@gmail.com |
561107764d55ee75983f3adc71f5cf85b27d5ea0 | 5a45981c89d0d9c0f2e9453abdefc333deb53e80 | /nanodet/model/fpn/fpn.py | b031c6c81b0d7eacf7b045c53975dc5b07aa5c94 | [
"Apache-2.0"
] | permissive | zhiqwang/nanodet | fd0b2e9c4badf492649aef7c3b397394c3110d1d | dd94177c0cb411ee21f4fc4ebc2ef01647e64823 | refs/heads/main | 2023-03-17T12:23:12.788037 | 2021-03-15T12:00:19 | 2021-03-15T12:00:19 | 348,642,567 | 2 | 0 | Apache-2.0 | 2021-03-17T09:01:43 | 2021-03-17T09:01:43 | null | UTF-8 | Python | false | false | 3,241 | py | # Modification 2020 RangiLyu
# Copyright 2018-2019 Open-MMLab.
# 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 applicabl... | [
"lyuchqi@gmail.com"
] | lyuchqi@gmail.com |
80500f93626cb2b34b36e5ecb087affbefd175a1 | f3b3739d4886f1cbb48a0615a70bf05919302aeb | /fortnite_apps/sistema/migrations/0013_auto_20180920_1726.py | 705474304964d548d4d15427f218c321aeaf3439 | [] | no_license | wahello/LigaArgentinaFortnite | 7a0b4a9b3fd33ea3216385e786e76cc65d27f173 | 508e39ac14dd98d34dc89400f695fd5edd815fd7 | refs/heads/master | 2020-04-12T13:24:06.532205 | 2018-12-14T03:38:35 | 2018-12-14T03:38:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | # Generated by Django 2.1.1 on 2018-09-20 20:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sistema', '0012_perfil_puntos'),
]
operations = [
migrations.AddField(
model_name='perfil',
name='kills',
... | [
"mmquiroga10@gmail.com"
] | mmquiroga10@gmail.com |
f06362183c2da8dbd66a5104d177d31c7bd29598 | 243a15fabf17551e6fb5ccfc93a912f460838b09 | /test/test_save_attributes_dialog.py | 3ef0e2ea2b68bc9d08ea87d448d6b34368eec302 | [] | no_license | nouhailaImr/PYQGIS | 0ac549eafeb67f7a237c7ad91d57e857a7be73d7 | 4502527a1e47351e5635495c600aa777ec068843 | refs/heads/main | 2023-05-15T14:55:11.366699 | 2021-06-15T22:29:22 | 2021-06-15T22:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | # coding=utf-8
"""Dialog test.
.. note:: This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
"""
__author__ = 'eli... | [
"elimrani.nouhaila@gmail.com"
] | elimrani.nouhaila@gmail.com |
f1b6f23525382617a5501166f87ecca57e0d62c3 | 938a496fe78d5538af94017c78a11615a8498682 | /algorithms/401-500/442.find-all-duplicates-in-an-array.py | 6a7dfa1426ec528b0bb7cf1b4da44bb4ceb85ca5 | [] | no_license | huilizhou/Leetcode-pyhton | 261280044d15d0baeb227248ade675177efdb297 | 6ae85bf79c5a21735e3c245c0c256f29c1c60926 | refs/heads/master | 2020-03-28T15:57:52.762162 | 2019-11-26T06:14:13 | 2019-11-26T06:14:13 | 148,644,059 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | # 数组中重复的数据
class Solution(object):
def findDuplicates(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
# 我的写法,不合题意。时间复杂度上
# dic = {}
# res = []
# for i in nums:
# dic[i] = dic.get(i, 0) + 1
# if dic[i] > 1:
#... | [
"2540278344@qq.com"
] | 2540278344@qq.com |
4ef8e1d2e12b3523fcac998c34474ba0632e1e55 | 15a865beb4689453f76569ad6dce1cb12e17b207 | /dsub/lib/providers_util.py | f1beb687a8fc55d301bc5918f78ef00803ff5847 | [
"Apache-2.0"
] | permissive | calbach/dsub | e6bfd5ef5f351fc69fc045bf3717fbd782389dbb | f639da55bb33529e002cc62f3a85c4a6b4af5cd3 | refs/heads/master | 2021-07-09T17:41:00.361317 | 2017-10-03T18:17:13 | 2017-10-03T18:17:13 | 106,348,301 | 0 | 1 | null | 2017-10-10T00:13:40 | 2017-10-10T00:13:40 | null | UTF-8 | Python | false | false | 6,783 | py | # Copyright 2017 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 required by applicable law or a... | [
"mbookman@google.com"
] | mbookman@google.com |
a77bd4d31456f2ce3ce41c0cacca05640eb1c348 | ce5beb5e0e7abcfd8a5e90b8b4b5d5fb7cc1fd8a | /PYTHON/OS/Managing files and directories/intro.py | 269a5e9ee63252c6ca4b0b7ab37fbbddf84ffbf9 | [] | no_license | rashiraffi/Tutorials | f8b92dfe8388c4f617e277e3635c1c322708768c | 6fc6fb7a72e6774b7b785b2e37b5bcd853e31869 | refs/heads/master | 2021-06-09T05:45:01.558160 | 2021-05-29T16:16:04 | 2021-05-29T16:16:04 | 181,651,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | import os
# Create file "demo.txt"
with open("demo.txt","w") as file:
file.write("This is a demo file...")
print("demo.txt file created")
# check whether the file exist or not for this path sub module of OS is used.
# if the file exist the .exist function will return TRUE
print("demo.txt esist: ",os.path.... | [
"rashi1281@gmail.com"
] | rashi1281@gmail.com |
f2b3256c22467e1b32dda229247fffda1cde9b95 | e3bb63f93e36aab4a78356ba9d0e82f935325906 | /bitmovin/resources/models/manifests/hls/vtt_media.py | 78827f4ae4353e744ea3c2459772045c4d003fa8 | [
"Unlicense"
] | permissive | camberbridge/bitmovin-python | 1668367980df49f9088b93e4b6764563cbdb8bcf | 3af4c6e79b0291fda05fd1ceeb5bed1bba9f3c95 | refs/heads/master | 2020-04-09T17:51:46.786389 | 2018-11-30T14:46:34 | 2018-11-30T14:46:34 | 160,493,890 | 0 | 0 | Unlicense | 2018-12-05T09:31:18 | 2018-12-05T09:31:17 | null | UTF-8 | Python | false | false | 1,259 | py | from .abstract_media import AbstractMedia
class VttMedia(AbstractMedia):
def __init__(self, name, group_id, vtt_url, language=None, assoc_language=None, is_default=None, autoselect=None,
characteristics=None, id_=None):
super().__init__(id_=id_, name=name, group_id=group_id, language=lan... | [
"dominic.miglar@netunix.at"
] | dominic.miglar@netunix.at |
5e22ffac10fa94b272782b5fb37171ecb6f396a3 | 4569d707a4942d3451f3bbcfebaa8011cc5a128d | /tracforgeplugin/branches/bewst/0.11-clearsilver/tracforge/subscriptions/admin.py | 969c6f76281620f148a1c266c27477e5f976eac7 | [] | no_license | woochica/trachacks | 28749b924c897747faa411876a3739edaed4cff4 | 4fcd4aeba81d734654f5d9ec524218b91d54a0e1 | refs/heads/master | 2021-05-30T02:27:50.209657 | 2013-05-24T17:31:23 | 2013-05-24T17:31:23 | 13,418,837 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,619 | py | # TracForge subscription manager
from trac.core import *
from trac.admin import IAdminPanelProvider
from manager import SubscriptionManager
from util import open_env
class TracForgeSubscriptionAdmin(Component):
"""Admin GUI for subscriptions."""
implements(IAdminPanelProvider)
# IAdminPanelProvi... | [
"bewst@7322e99d-02ea-0310-aa39-e9a107903beb"
] | bewst@7322e99d-02ea-0310-aa39-e9a107903beb |
1e10a988a22576889c2db6363a27333b37798c92 | 9813f92baae36effa035988f4ec402e3358500aa | /frozenset.py | 760ebecdfd52c0005f93b2bdf1994cd65e307db6 | [] | no_license | KripaSharma2016/advancepython | c483ac1b26527396b259e03dc70b0e69ef9b4f7a | 52961c6a5200c88f061512a7695d1cc3b2800b95 | refs/heads/master | 2021-11-23T23:37:56.603904 | 2017-05-22T04:49:21 | 2017-05-22T04:49:21 | 92,011,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | '''
Created on 13-May-2017
@author: ks016399
'''
my_f_set = frozenset([1,2,3,4])
print(my_f_set)
#my_f_set.add(78)
#print(my_f_set)
my_list = [1,2,3,4]
print(frozenset(my_list))
#my_f_set = frozenset([1,2,3,[1,2,3],4,5,6])
#print(my_f_set)
my_dict = {'product':'apple','cost':'120'}
print(frozenset(my_dict))
f_set_par... | [
"kripashankarsharma95@gmail.com"
] | kripashankarsharma95@gmail.com |
6dfb552f84c315549a67ba62eb906b19cda46631 | cea1ca6422eb46e60a6925dbfe6dbf67a6e73c21 | /Test/test.py | 5fefa2b6f3506f35e2014473e496b7e5418b2cac | [] | no_license | Dibu2002/Robosapies | 41bd0b236398cc90c6a867a955e119413b3b6feb | a12dc18ec0cb4c6f869d26d74cd5a320a3ed0be2 | refs/heads/master | 2023-08-01T03:49:03.595458 | 2021-09-14T05:45:56 | 2021-09-14T05:45:56 | 406,240,090 | 0 | 0 | null | 2021-09-14T05:45:13 | 2021-09-14T05:45:12 | null | UTF-8 | Python | false | false | 1,387 | py | import cv2
import numpy as np
import imutils
import json
cap = cv2.VideoCapture(0, cv2.CAP_DSHOW)
cap.set(3, 1420)
cap.set(4, 800)
px = 725
py = 290
fx = 1156
while True:
_, frame = cap.read()
hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
lower_blue = np.array([90, 60, 0])
upper_blue = np.array([121... | [
"sahajmistry005@gmail.com"
] | sahajmistry005@gmail.com |
8c0f06a4bce89ad0b1b33f09966d1c306e74fed4 | 2d367cd526ec7482f129a4660a0dab5fa7ae5df1 | /scripts/scripts_20180521/analyses/aDNA-ModernComparison/parseSuperfiles/parseBeagleSuperfile.ManyFilters.py | c6c375a3dc9cdaf1bbf80e9ad1b8db364bfde5a4 | [] | no_license | ab08028/OtterExomeProject | 1bad439e2c42162e854eab995c45e6c8391b2640 | 96c7758d424c44ae4d52dc951d89a59761b9a2c7 | refs/heads/master | 2021-06-01T20:23:02.554308 | 2020-08-13T17:01:22 | 2020-08-13T17:01:22 | 134,327,795 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 12,561 | py | """
Created on Fri May 10 12:14:23 2019
@author: annabelbeichman
In this script, we want to parse a angsd "superfile" that I generate that has concatenated bed-format (0based) coordinates in the first 12 columns, then the angsd maf output, then genotype probabilities or genotype lhoods (can be either), and finally co... | [
"annabel.beichman@gmail.com"
] | annabel.beichman@gmail.com |
cdf5408e5aacacd9dccf1a02545c5e547bca71cf | e55449519ee59ef2f92a0ff33eca992b393a13de | /Python/Graph/DepthFirstSearch.py | 8680a53c566b8a1cbbe7fcfc5c3fff8d843f5910 | [] | no_license | vivekyadav6838/Data-Structures-and-Algorithms-for-Interviews | 6c23f0f94e006b50f1211b39c8f103718a080962 | 16c4b2ef55804260eed521e626a6375542a22275 | refs/heads/master | 2023-08-28T20:11:17.310870 | 2021-10-07T17:11:37 | 2021-10-07T17:11:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | #
# @author
# aakash.verma
#
# Output:
# 0 1 2 3 4 5
#
from collections import deque
class Graph:
def __init__(self, vertices):
self.vertices = vertices
self.adjacency_list = [[] for i in range(self.vertices)]
def add_edge(self, source, destination):
self.adjacency_list[s... | [
"info.aakash11@gmail.com"
] | info.aakash11@gmail.com |
c8cc989854b6032c0ab5b892364d30a4f6210ac5 | 6ed541d5ae2203d2b2fe68863568e5dfce45f9c1 | /Decorator_20200412.py | b7dc40218149636a242ca65034543c37d4368e2a | [] | no_license | max2004boy/Hackerrank-Problem-Solving | c79763f2da7865ab8972f126fd02b23d302a101e | 4e9a4c562e79bb177f1c0fb72a14da48c0a2a434 | refs/heads/master | 2022-11-05T04:39:33.765297 | 2020-06-18T03:48:03 | 2020-06-18T03:48:03 | 257,767,684 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 12 23:19:59 2020
@author: max20
"""
def wrapper(f):
def fun(l):
# complete the function
f(['+91 {} {}'.format(x[-10:-5],x[-5:]) for x in l])
return fun
@wrapper
def sort_phone(l):
print(*sorted(l), sep='\n')
if __name__ ... | [
"noreply@github.com"
] | max2004boy.noreply@github.com |
048e6f01f7814357bed0a5d0c2a5c16732e92176 | b80cf47111616d37f0e9ee6ff31031c1036ad7e5 | /22082019/000920.py | a669012ae27319c596461774499cab53f0c526b6 | [] | no_license | nicolasilvac/MCOC-NivelacionPython | a62cc68688a85331c02f574927111d30e6a747c7 | 504e04f2287bf010053cd114e49d656122ecbec0 | refs/heads/master | 2020-07-06T15:05:23.214283 | 2019-08-31T00:39:53 | 2019-08-31T00:39:53 | 203,060,906 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | a = ['banana', 'apple', 'microsoft']
for elemento in a:
print elemento #imprime cada elemento de la lista
#banana
#apple
#microsoft
b = [20, 10, 5]
total = 0
for e in b:
total = total + e #cada "e" toma el elemento numero e de la lista (en este caso son floats por lo que se pueden sumar)
print total
#3... | [
"noreply@github.com"
] | nicolasilvac.noreply@github.com |
e92ce01a02475650c07ca66be99fa405c96d18b6 | 1bc0a826fecfae64d5704254a1d208fd32959aef | /lib/main_1.py | 29470ac5857add244075562358b1908de4e2d390 | [
"MIT"
] | permissive | hs2923/MLProject | 387e2a774c549f373511d0810e7406271b0b259b | d54604e7db95ff91d096b663ab229f709862701b | refs/heads/master | 2021-08-29T12:21:14.573535 | 2017-12-14T00:09:49 | 2017-12-14T00:09:49 | 111,725,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,111 | py | ##
## main
##
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# Import libraries
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
# Import script with auxiliar functions
import aux_functions as aux
def main(unused_argv):
#... | [
"31713176+joaquimlyrio@users.noreply.github.com"
] | 31713176+joaquimlyrio@users.noreply.github.com |
07c4c62ddb39072ba8e82ce7df75ff30d493b0d0 | 54bba666285f7b97fe101368f25556d9500c3c45 | /MCM.py | 1becfa66a3a3913ebc14acd746ea890fa29cd837 | [
"MIT"
] | permissive | dlara10/DanielLara_Ejercicio22 | 4e8510d90b5bb82ab71bc44f9ffb84fec9d3c257 | 203c7e1145a2675803ab0fb691039f5f2b85f1d1 | refs/heads/master | 2020-05-04T21:44:38.743980 | 2019-04-04T14:51:10 | 2019-04-04T14:51:10 | 179,486,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | import os
import numpy as np
import matplotlib.pyplot as plt
os.system("g++ MCM.cpp -o MCM.x")
os.system("./MCM.x > datos.dat")
data = np.loadtxt("datos.dat")
x = data[:0]
plt.figure()
plt.hist(x)
plt.xlabel('Value')
plt.ylabel('Frequency')
plt.title('Histogram')
plt.savefig("datos")
| [
"d.lara10@uniandes.edu.co"
] | d.lara10@uniandes.edu.co |
02ce163ea159df24d919148ce5efbf3b4dea820d | 1bdf0c2d6143a171a37380017e8c420bb124b967 | /eg/字典排序.py | cde54dc7cedc0964172d4ec6171b8a81c4610144 | [] | no_license | Xu-Angel/pyLearn | fb1277ab28536fc1a7236efb7e92a400759b689d | 73eea71f53c2616b48c99d07b35771005e304f5e | refs/heads/master | 2021-04-04T04:09:20.752575 | 2020-04-17T09:34:33 | 2020-04-17T09:34:33 | 248,423,590 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | # key
# def dictionairy():
# # 声明字典
# key_value ={}
# # 初始化
# key_value[2] = 56
# key_value[1] = 2
# key_value[5] = 12
# key_value[4] = 24
# key_value[6] = 18
# key_value[3] = 323
# print ("按键(key)排序:")
# # sorted(key_value) 返回一个迭代器
# # ... | [
"1049547382@qq.com"
] | 1049547382@qq.com |
2f3980b046aa3fb23f3794d17df2df686e195394 | a3b81c72118a1a2cb5a00a9b56f82695f6273d30 | /datautils/representation.py | 75715225df7a0f4d93007a8ea677d5e9bbf4d20d | [] | no_license | thomlake/DataUtils | 4c4e94ebc2055dab38e3385b48bbb10947942d47 | c44958800bfa0d4e74ea9a4efe7b1a1a70c5c865 | refs/heads/master | 2020-05-05T03:38:28.871046 | 2012-07-18T19:21:22 | 2012-07-18T19:21:22 | 3,423,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,677 | py | #---------------------------------------#
# This file is part of DataUtils.
#
# DataUtils is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later versio... | [
"thom.l.lake@gmail.com"
] | thom.l.lake@gmail.com |
3c32af0c8c3dd971d0aaa4bddbac2f32bc78ea47 | 93d361d1cfaf5065aada52ff53833b67302c2b1c | /project/urls.py | 9cef54d5038b91c04d21c889fda0d9087dcbd3ed | [] | no_license | append-knowledge/restapi-with-jwt-token | 0fe573cd45633829645544447f66e6d6b43458ad | fbd276fb38cbd687253176b1dd96f07e16707dfd | refs/heads/master | 2023-08-27T02:55:20.826945 | 2021-10-09T18:33:52 | 2021-10-09T18:33:52 | 415,391,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | from django.urls import path
from project import views
urlpatterns=[
path('accounts/signup',views.SignUpview.as_view(),name='signup'),
path('accounts/signin',views.SignInView.as_view(),name='signin'),
path('accounts/signout',views.SignOutView.as_view(),name='logout'),
path('accounts/home',views.HomeVie... | [
"lijojose95@gmail.com"
] | lijojose95@gmail.com |
ff867b19969fb12f7c9a4f8cd4865f82f49e6c70 | 9c8857d980cc53bc4f69eee3355226fcd0b42746 | /app/main.py | 0712ce2ce6088a1f2105ac717532b0ac3b048a3f | [] | no_license | moh-hosseini98/FastAPI-crud-tortoise-orm-and-postgres | bbaf9a305504d45e0db549edf11fe00b625404f9 | 75f2c5d4eeee38113f5bb0d19956f721c0836db1 | refs/heads/main | 2023-08-17T22:16:54.912308 | 2021-10-20T14:41:08 | 2021-10-20T14:41:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | import uvicorn
if __name__=="__main__":
uvicorn.run("server.app:app",host="0.0.0.0",port=8000,reload=True) | [
"mamadhss@yahoo.com"
] | mamadhss@yahoo.com |
f11683ed6c463a91f9f3e196b22c1208be494e30 | c4fd93ce21086262a9cd0a94cd4052321981e655 | /sentiment_decision_tree.py | e9913d398c92251d73078edf21ffd41cc32d40ad | [] | no_license | jmarshallDev/MLProject | d69a7c0391b4996ce7722da68d809f138a3baea6 | 4c37ee49d5d050d6927977bc58be203521fa3c14 | refs/heads/main | 2023-01-30T23:41:12.133032 | 2020-12-14T04:51:34 | 2020-12-14T04:51:34 | 311,744,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,563 | py | # decisiontree.py
"""Predict Sentiment of a given sentence using a decision tree."""
import matplotlib.pyplot as plt
import numpy as np
import os
import pdb
from sklearn.tree import DecisionTreeClassifier, plot_tree
from sklearn.metrics import confusion_matrix
from preprocessing import gimme
ROOT = os.path.dirname(o... | [
"noreply@github.com"
] | jmarshallDev.noreply@github.com |
94792a1bda13eac1d3f97a44481616c63e24d376 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/1642.py | c31871167442ed89cb0e8fb17031677d335e0e83 | [] | 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 | 1,477 | py | #-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: Nishant
#
# Created: 12-04-2014
# Copyright: (c) Nishant 2014
# Licence: <your licence>
#-------------------------------------------------------------------------------
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
b05399a6ff94cb5efa0799a162c6431e21c5440a | e68a40e90c782edae9d8f89b827038cdc69933c4 | /res_bw/scripts/common/lib/plat-mac/carbon/carbonevt.py | a403e280d89920be14e1e2e9b2990efb37dd6195 | [] | no_license | webiumsk/WOT-0.9.16 | 2486f8b632206b992232b59d1a50c770c137ad7d | 71813222818d33e73e414e66daa743bd7701492e | refs/heads/master | 2021-01-10T23:12:33.539240 | 2016-10-11T21:00:57 | 2016-10-11T21:00:57 | 70,634,922 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 372 | py | # 2016.10.11 22:21:54 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/plat-mac/Carbon/CarbonEvt.py
from _CarbonEvt import *
# okay decompyling c:\Users\PC\wotsources\files\originals\res_bw\scripts\common\lib\plat-mac\carbon\carbonevt.pyc
# decompiled 1 files: 1 okay, 0 failed, 0 verify failed
# 201... | [
"info@webium.sk"
] | info@webium.sk |
22d50b0a0e87deb6771fa95b2869f89989d637c4 | 958863c5c364575f7475a0b00bd8cce4ee0ef419 | /mysite/mysite/settings.py | ddc9db0b946a28830f0886a40ecf6bc38abde2b3 | [] | no_license | marcioaleson/Django | 2216530107db26c1688a4f1037f453a21184f797 | 37387c718891833cbeae30ef91da8ba3be74b606 | refs/heads/master | 2021-01-13T08:23:24.893170 | 2016-12-07T00:53:37 | 2016-12-07T00:53:37 | 71,876,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,096 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.10.2.
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
... | [
"marcioaleson@gmail.com"
] | marcioaleson@gmail.com |
53db77bbc9e84818439f3a441def7bce0eea206d | 96583055700c7e589fa5d59d4ff39c016a33c697 | /db.py | 1e178568eb96b5d4fbda8343eee45cad6169d179 | [] | no_license | gospel306/webproject | 6354d9e233e2c97b0f1d09dc5bc3d3c23312cee7 | 256f44cb6ed5476fc0b484ac92fbe35b6fbf7317 | refs/heads/develop | 2021-06-16T20:28:11.396913 | 2021-06-01T08:36:15 | 2021-06-01T08:36:15 | 206,063,544 | 1 | 3 | null | 2020-08-04T07:44:34 | 2019-09-03T11:41:42 | TSQL | UTF-8 | Python | false | false | 24,445 | py | import pprint
import pymysql
import requests
import webbrowser
from bs4 import BeautifulSoup as bs
from selenium import webdriver
tabledict = {12 :'tourplace', 14 : 'culture' , 15 :'festival', 25 : 'course', 28 : 'leports' , 32 : 'lodgment', 38 : 'shopping', 39 : 'restaurant'}
URL = 'http://api.visitkorea.or.kr/openap... | [
"powermiso@naver.com"
] | powermiso@naver.com |
3335164fecee55b52a9dcb67d791282b6f310d3e | 0e8090146b8e269afc826ca9310b8a517fe6c38b | /user/models.py | f3fd58a8c0a8671139218cc5646a00d8f310adad | [] | no_license | wxy72/1708project | 56f6cf6fcd397f3a851458156ef128fd284554b9 | 356c0876eeb5ef70046a463907d928b8089f991a | refs/heads/master | 2020-03-11T13:27:08.105569 | 2018-04-21T06:00:55 | 2018-04-21T06:00:55 | 130,025,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | from django.db import models
# Create your models here.
class User(models.Model):
SEX = (
('M', '男'),
('F', '女'),
('U', '保密'),
)
nickname = models.CharField(max_length=64, unique=True, null=False, blank=False)
password = models.CharField(max_length=128, null=False, blank=Fals... | [
"18227109996@163.com"
] | 18227109996@163.com |
7331db6bbc26b8c2088cca46dffdc7622db5ffc5 | aa15002c5316b4c7e0a9563a40826057729e0b13 | /tensorflow/python/keras/layers/preprocessing/table_utils.py | f5397da1f3eb482547e40b4ab293d3051753f429 | [
"Apache-2.0"
] | permissive | kkimdev/tensorflow | 8238c5594ae44f084725ddf9b34d6d41645d4072 | 2fb75db6ad4f4a7f01ef4755b96b49f8eb6108db | refs/heads/master | 2020-07-07T18:09:40.662883 | 2020-05-14T18:59:11 | 2020-05-14T19:05:05 | 203,429,154 | 0 | 0 | Apache-2.0 | 2019-08-20T18:07:46 | 2019-08-20T18:07:46 | null | UTF-8 | Python | false | false | 7,427 | py | # Copyright 2020 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
21df5fa635e3215f57ad25b52e1a15bb1b98609a | 57ac922518e3ad98308daea8cff02b72983de700 | /simulator_fast/simulator/SFM/force_helbing.py | fc81cbd6c6d49d2f610e1d821508354e71300658 | [] | no_license | montapo/ma_simulator | 3117c4b7bbe9e0c023ce8695bb90852cd51bff49 | 70ddc5f2dfb3ba4c8525fb336d2b3881d3e7568c | refs/heads/master | 2020-12-06T08:58:12.421857 | 2016-09-05T10:44:40 | 2016-09-05T10:44:40 | 67,412,315 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,219 | py | import numpy as np
from global_config import gc
def update_bucket(peds):
"""
speed up simulation by bucket algorithm
"""
xmesh = gc["xmesh"]
ymesh = gc["ymesh"]
bucket = [[] for col in range(xmesh * ymesh)]
for ped in peds:
x = int(ped.x[0] / gc["bucket_scale"])
y = int(ped.... | [
"imai.takeaki@lab.ntt.co.jp"
] | imai.takeaki@lab.ntt.co.jp |
62cb4ccb18c022df619c3504d361faf82bf1a3c3 | c01ff5df4e04a39e2da9bd418278e1e1af9a65d0 | /Learn Python the Hard Way/python 2.x/ex02.py | 8bd66c1d52529d9d944d1e4f4f3dad7ca61d6a26 | [] | no_license | JustinTLee/Textbook-solutions | 1d6bce668f88f5d308bc5483ff9c2b9aa6c4e5cc | 5477c44228d1b9896661f7bf987af7073392b9b7 | refs/heads/master | 2021-01-22T07:58:09.890716 | 2019-01-14T09:13:57 | 2019-01-14T09:13:57 | 102,320,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | # A comment, this is so you can read your program later
# Anything after the # is ignored by python
print "I could have code like this." # and the comment after is ignored
# You can also use a comment to "disable" or comment out of a piece of code:
# print "This won't run."
print "This will run."
| [
"justinlee.gwu@gmail.com"
] | justinlee.gwu@gmail.com |
ae2f3de1b7eacdc7cfaca05fea27de5ee8f08410 | da1d21bb8d0760bfba61cd5d9800400f928868aa | /misc/scripts/category_transformation_001.py | 0226537d27ec40ac6726d5b97eb9d427f608ba0e | [] | no_license | biznixcn/WR | 28e6a5d10f53a0bfe70abc3a081c0bf5a5457596 | 5650fbe59f8dfef836503b8092080f06dd214c2c | refs/heads/master | 2021-01-20T23:53:52.887225 | 2014-05-13T02:00:33 | 2014-05-13T02:00:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | # -*- coding: utf-8 -*-
from circuits.models import Circuit
from circuits.utils import CircuitCategory
"""
Transformaciones
Literary + Culture + Music + Art + Academic & Education => Arts & Culture
3 4 8 10 19 => 4
Lifestyle + Green + Fashion + Design + Technology + Busi... | [
"mbc@Mathiass-MacBook-Pro.local"
] | mbc@Mathiass-MacBook-Pro.local |
82d19a665695af1ec71114ea90b529002297f702 | 90fae96be4f5237f3a33d3df6f217fdf994454d3 | /Proyecto3/settings.py | d252b3e6a0e77dd7e4d676f09b8d9a42d262e00e | [] | no_license | gabrez1985/proyectoheroku0320200610 | ce4c45c865af5a13dfc31a794d7a4b58eb0e6b67 | c5613ea09c3066dce7920e154f5d5b68b9b1eeb2 | refs/heads/master | 2023-08-16T07:17:10.224428 | 2020-06-11T03:56:48 | 2020-06-11T03:56:48 | 271,442,491 | 0 | 0 | null | 2021-09-22T19:12:25 | 2020-06-11T03:27:23 | Python | UTF-8 | Python | false | false | 3,695 | py | """
Django settings for Proyecto3 project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
... | [
"noreply@github.com"
] | gabrez1985.noreply@github.com |
8c5db1946658ab443d7300038473c82702e1de90 | 04125b74273ad8b648343691565ab0cd6e25fa50 | /image_comp_test.py | b32b911b4decb827e8360a480808f031846c8d3a | [] | no_license | alpha0080/spineToolAdv | 32918fa10b47ec9f19586b8878b243afd9dae945 | c394e382502c11fb2b19f86f1e6352dee76444b5 | refs/heads/master | 2021-07-25T09:10:38.883564 | 2018-12-11T00:56:12 | 2018-12-11T00:56:12 | 142,319,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | import os, math,time
try:
sys.path.append("C:/Program Files/Pixar/RenderManProServer-22.1/lib/python2.7/Libs/ite-packages")
#sys.path.append("C:/Program Files/Pixar/RenderManProServer-21.7/lib/python2.7/Lib/site-packages")
import ice
except:
pass
import ice
max_frames_row = 10.0
frames = []
ti... | [
"alpha@mail.chungyo.net"
] | alpha@mail.chungyo.net |
d028c95e014ada7805a874b0f2bb713f1fcb053e | 119d44cfa7ff995a055c72c16be80b907bc1737c | /palindrome.py | 79eabdd020b7aabbd3ceae6ec4d489fc3218ce74 | [] | no_license | soundarsurya/python-code-set2 | cdedd81fe8ec06d52b071144682ec8eabb2fbe46 | 7f7b974188d2c717bd803aa2bc238838417ce628 | refs/heads/master | 2021-05-13T22:39:56.141195 | 2018-09-28T08:29:12 | 2018-09-28T08:29:12 | 116,493,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | num = input('Enter any number : ')
if num == num[::-1]:
print('yes')
else:
print('No')
| [
"noreply@github.com"
] | soundarsurya.noreply@github.com |
b23308cd96ae9100d23c3da9bc98fb4f625f57ba | 35c4cac7cd28997411b76a8db6724a4cae271b5d | /views.py | 04a14dca3990169fe00cb2d47605a9d022c4f691 | [] | no_license | ws7854579/apiTest | c3e8572b04038a273245633689959e8fbe4a78a4 | 8f16fabae0ed770c922dafd7bb2f54dc07ce5f34 | refs/heads/master | 2020-03-22T02:54:51.577373 | 2019-01-15T03:30:56 | 2019-01-15T03:30:56 | 139,401,177 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,375 | py | # _*_ coding: utf-8 _*_
import MySQLdb
import method
from logger import Logger
from flask import request,jsonify,session,abort,flash,url_for,redirect,g,render_template
import json,time,os,math
mylogger = Logger('views').getlog()
#添加接口到数据库
def add_entry():
mylogger.info('进入add_entry()方法')
if not session.get('l... | [
"sunsuwei@ccx.cn"
] | sunsuwei@ccx.cn |
2d51f24f75bb3b6b21fb1210c3409e1c3063acde | f7778bf3b8173915c97193f51ff8a1ac2260a68a | /Section 3 code files/Code/webdirbuster.py | 8645d7b32c1044ce087596ec1ac46444c4785168 | [
"MIT"
] | permissive | PacktPublishing/Python-for-Automating-Information-Security | 35f5ab480c430788e881017ec8c919be1524cc30 | d6d1eaa053c3a5f5b103e17fefe8b4d9b33c0858 | refs/heads/master | 2023-05-25T12:34:43.912975 | 2023-01-30T09:16:51 | 2023-01-30T09:16:51 | 245,961,846 | 26 | 24 | MIT | 2023-05-22T22:44:20 | 2020-03-09T06:39:43 | Python | UTF-8 | Python | false | false | 3,798 | py | import argparse
import json
import re
import requests
from typing import List
from urllib3.exceptions import InsecureRequestWarning
quiet = False
def print_message(message: str):
"""
Print message to STDOUT if the quiet option is set to False (this is the default).
:param message: message to print
:r... | [
"noreply@github.com"
] | PacktPublishing.noreply@github.com |
34fc5d7be9fdfc130eb473c15b4b7bdb80a10ee2 | 463c053bcf3f4a7337b634890720ea9467f14c87 | /python/ray/workflow/tests/test_lifetime.py | ece91c8445d32ee09fe290f16ece2e35641d73c0 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | pdames/ray | e8faddc4440976211a6bcead8f8b6e62c1dcda01 | 918d3601c6519d333f10910dc75eb549cbb82afa | refs/heads/master | 2023-01-23T06:11:11.723212 | 2022-05-06T22:55:59 | 2022-05-06T22:55:59 | 245,515,407 | 1 | 1 | Apache-2.0 | 2023-01-14T08:02:21 | 2020-03-06T20:59:04 | Python | UTF-8 | Python | false | false | 1,596 | py | import os
import ray
import time
import pytest
from ray._private.test_utils import (
run_string_as_driver_nonblocking,
run_string_as_driver,
)
from ray.tests.conftest import * # noqa
from ray import workflow
from unittest.mock import patch
driver_script = """
import time
import ray
from ray import workflow
... | [
"noreply@github.com"
] | pdames.noreply@github.com |
508a0a7679e3689a1426c29f3e7813d7b463ade0 | 800af47c01db36b902b290e7a25be86b636ac2c2 | /finn/components/text/InputBox.py | e3b2d00a77d280082198e2b71e3f10c4d200bfc3 | [] | no_license | bearhockey/finn | 6a4b85115ff41106ce1031ac3a8a62222c857469 | 7747c4d8a0877016d09ccd7b1fe73381690952f5 | refs/heads/master | 2021-01-12T17:56:39.050603 | 2018-06-26T16:36:16 | 2018-06-26T16:36:16 | 71,306,397 | 0 | 0 | null | 2018-06-26T16:36:17 | 2016-10-19T01:23:17 | Python | UTF-8 | Python | false | false | 1,500 | py | import pygame
from finn.components.text.TextBox import TextBox
from finn.components.text.TextCursor import TextCursor
class InputBox(TextBox):
def __init__(self, rect, box_color=None, border_color=None, highlight_color=None, active_color=None, message='',
text_color=None, font=None, text_limit=N... | [
"bobmanworld@yahoo.com"
] | bobmanworld@yahoo.com |
0432d7381f05e80df54e99bec5376c80ce9d8516 | 76ede31afcbdb3dce371e9b1d224b72a1ed1aadd | /demo.py | b7bb764ec0180b9d9bf38bceb49c162c19e8f2e5 | [] | no_license | marinarecuta/bibles | 8d885933f7bc351b892099cff319a75c7b85d099 | 5b4200961b5e85862cf0df327618da1408bfb4c1 | refs/heads/main | 2023-01-27T15:58:08.085458 | 2020-12-15T19:06:58 | 2020-12-15T19:06:58 | 321,762,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | import requests
BASE_URL = "https://api.scripture.api.bible/v1"
ENDPOINT = "/swagger.json"
def get_info_from_api():
info = requests.get(BASE_URL + ENDPOINT)
return info
INFO = get_info_from_api()
STATUS_CODE = INFO.status_code
BODY = INFO.json()
print(STATUS_CODE, INFO.ok)
print(get_info_from_api())
pri... | [
"noreply@github.com"
] | marinarecuta.noreply@github.com |
56da124f05b01e70233a87435baf0156aca9e476 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /own_year/new_thing.py | 49f9081472a90473e35618be695869cba50090c3 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py |
#! /usr/bin/env python
def way_or_great_work(str_arg):
same_way_or_group(str_arg)
print('year')
def same_way_or_group(str_arg):
print(str_arg)
if __name__ == '__main__':
way_or_great_work('few_point_or_different_thing')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
6b7f77fe2120e75b0a3c0d682447587076ab6d0d | f93f03dac8e7340f35ddb8ac75e9fdbb19b935a8 | /toontown/golf/DistributedGolfHole.py | 0b98a83f3d638d695be462c2a35497eeb5967066 | [] | no_license | toontown-classic/toontown-otp-ai | 5d07f26658ca23e52c65254f23a70cbc5936ae6d | b0be971b4689f811f6abacb7af33242b06d8f9be | refs/heads/develop | 2022-03-10T10:42:37.203938 | 2022-03-08T05:56:52 | 2022-03-08T05:56:52 | 158,168,681 | 5 | 5 | null | 2022-02-26T19:32:31 | 2018-11-19T05:50:36 | Python | UTF-8 | Python | false | false | 71,952 | py | import math
import random
import time
from pandac.PandaModules import TextNode, BitMask32, Point3, Vec3, Vec4, deg2Rad, Mat3, NodePath, VBase4, OdeTriMeshData, OdeTriMeshGeom, OdeRayGeom, CollisionTraverser, CollisionSegment, CollisionNode, CollisionHandlerQueue
from direct.distributed import DistributedObject
from dir... | [
"anythingtechpro@gmail.com"
] | anythingtechpro@gmail.com |
cc08052dabe1fade19b113796f7f32584773ee51 | e72a7ced8b0fd4ef269117f26507b06d6e9df93c | /edi_835_parser/segments/location.py | a204ade901f3c3b4074d8698f1120444e42c6eec | [
"MIT"
] | permissive | javigoncompte/edi-835-parser | d211658e90c031676e7978677dc0f176840a909d | 0e44450adea0297bf6e0fbc74ad52cc01f709953 | refs/heads/main | 2023-06-27T11:10:29.760759 | 2021-08-05T00:04:10 | 2021-08-05T00:04:10 | 378,183,848 | 0 | 0 | MIT | 2021-06-18T14:55:39 | 2021-06-18T14:55:39 | null | UTF-8 | Python | false | false | 516 | py | from edi_835_parser.elements.identifier import Identifier
from edi_835_parser.segments.utilities import split_segment
class Location:
identification = 'N4'
identifier = Identifier()
def __init__(self, segment: str):
self.segment = segment
segment = split_segment(segment)
self.identifier = segment[0]
sel... | [
"keiron.stoddart@gmail.com"
] | keiron.stoddart@gmail.com |
504420d710edfc66b1f1a47c0510b3db3d98bd57 | 8f3336bbf7cd12485a4c52daa831b5d39749cf9b | /Python/remove-invalid-parentheses.py | dcc6a2c8e851f973a63f3c1085274a85e39313e6 | [] | no_license | black-shadows/LeetCode-Topicwise-Solutions | 9487de1f9a1da79558287b2bc2c6b28d3d27db07 | b1692583f7b710943ffb19b392b8bf64845b5d7a | refs/heads/master | 2022-05-30T22:16:38.536678 | 2022-05-18T09:18:32 | 2022-05-18T09:18:32 | 188,701,704 | 240 | 110 | null | 2020-05-08T13:04:36 | 2019-05-26T15:41:03 | C++ | UTF-8 | Python | false | false | 2,367 | py | # Time: O(C(n, c)), try out all possible substrings with the minimum c deletion.
# Space: O(c), the depth is at most c, and it costs n at each depth
class Solution(object):
def removeInvalidParentheses(self, s):
"""
:type s: str
:rtype: List[str]
"""
# Calculate th... | [
"noreply@github.com"
] | black-shadows.noreply@github.com |
914d596eb2723382f5eb836d111c4fb2786c03eb | ed53cfbfd6cad873a16648cbe9791652bd964f3a | /evaluation.py | 39a37178f7370734f24c2663e2ef95e9f08d6f77 | [] | no_license | marbin2050/tfm_synbio | f82f55284c34fb3ddb0c1e970deef4b0234394e3 | dc60899b611a637b2d2d8eaf668797871df676b2 | refs/heads/master | 2022-12-02T16:54:45.341268 | 2020-07-31T07:46:40 | 2020-07-31T07:46:40 | 260,749,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,707 | py | __author__ = '{Alfonso Aguado Bustillo}'
from sklearn import metrics
from scipy.stats import spearmanr
import numpy as np
from sklearn.metrics import multilabel_confusion_matrix, f1_score, precision_score, recall_score
def evaluate_regressor(partitions, prediction, fitting_time):
mae = metrics.mean_absolute_erro... | [
"alfonso.aguado.bustillo@gmail.com"
] | alfonso.aguado.bustillo@gmail.com |
078ac216c363101e7b9e584cec70ad92886e456a | fa6e3b896657af844bdbc870b5c9e7f62c91a639 | /plot2--attractor.py | 8f11095c98fe739d32b7cad9f6e66f07c5755e64 | [] | no_license | omersayli/signals | ab6ac56f696caa0db4615f8b3e56049e5d1ecb89 | f4ad6213c23e915e5319588262140ca79e1591e9 | refs/heads/master | 2021-03-21T00:06:42.000935 | 2020-06-23T09:15:24 | 2020-06-23T09:15:24 | 247,245,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,876 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Jun 6 17:29:39 2020
@author: omer
"""
# Inspired by
# https://danielredondo.com/posts/20190210_atractor/
from PyQt5 import QtWidgets
from pyqtgraph import PlotWidget, plot
import pyqtgraph as pg
import sys # We need sys so that we can pass argv to QA... | [
"noreply@github.com"
] | omersayli.noreply@github.com |
be329e9eedbf5fda027a8a474838442ce78f38ab | 8ba18238dacecd5792c34936f8b4634e600af270 | /data_handling/mover.py | 06a144564330b413dfbb4f5d3e9f91a9c91872db | [] | no_license | jsvay/seisClean | fd040da7762e55e062f9dd80463831f9ce34a446 | 94aca26a7028916bf9fea5242985762e43df37b0 | refs/heads/master | 2020-03-27T21:48:14.821695 | 2018-08-31T13:41:58 | 2018-08-31T13:41:58 | 147,176,756 | 2 | 4 | null | 2018-09-03T08:45:17 | 2018-09-03T08:45:16 | null | UTF-8 | Python | false | false | 828 | py | import os
import shutil
import numpy as np
import random
train = '/s0/SI/train/'
test = '/s0/SI/test/'
valid = '/s0/SI/valid/'
"""
ranger = np.linspace(0, 999, 1000)
ranger = ranger.astype(int)
ranger = ranger.tolist()
random.shuffle(ranger)
for x in range(150):
item = ranger.pop()
shutil.move(train + str(i... | [
"sigmunsl@student.matnat.uio.no"
] | sigmunsl@student.matnat.uio.no |
2a0c7b9841901436c823d4d5e7c6ff16f4b4e7cc | 38f765bc213d2c90e46f22922a7425cba28e6f00 | /fetchr/packages/amplify.py | 6632a0726d9f8c686a9b5f19a4ddb18a79ad98d3 | [] | no_license | yejianye/fetchr | 0d0572dc87beba93c7de3ece625682a4d753626e | 90f8922617d35fcf24d902f21af398009d80ded4 | refs/heads/master | 2021-01-10T02:48:41.737322 | 2013-01-19T09:10:12 | 2013-01-19T09:10:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | from fetchr.packages.base import package, SimplePackage
@package
class Amplify(SimplePackage):
"""A set of tools solve problems of request, store, pub/sub"""
version = '1.1.0'
@property
def cdn_urls(self):
return ['//cdnjs.cloudflare.com/ajax/libs/amplifyjs/$version/amplify.min.js']
| [
"yejianye@gmail.com"
] | yejianye@gmail.com |
931156b973ae3e72b7742ef4fa3275c4739ad032 | ab076c98622fd08653a74377b8a2d8e13099c3c5 | /crawlab_mind/constants/list.py | f4b3a38fcab4d1f56568b8a41bafe489454a3680 | [
"BSD-3-Clause"
] | permissive | sumerzhang/crawlab-mind | 93a9fa9ed4b1c761773d3ed8d54d782927792d48 | c04f57c13da82f0b1b37f5bb0f751e1e923e4cbf | refs/heads/master | 2022-12-11T18:12:35.292757 | 2020-09-07T02:31:18 | 2020-09-07T02:31:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | class ListSelectMethod:
Custom = 'custom'
MeanMaxTextLength = 'mean_max_text_length'
MeanTextTagCount = 'mean_text_tag_count'
| [
"tikazyq@163.com"
] | tikazyq@163.com |
466df9883dd77db154963c24ceaca6e3b9317d43 | f77d436de9db3ec3d0b9cba8baf90895409f5b89 | /Term 1/EntropyCalculator/Misc.py | 39b727fe73f06496e26f612dae1e89355a733f6a | [] | no_license | markusmeyerhofer/SelfDrivingCarND | ecea9f13b018db0df8a718a6c0a8f52818ba04ea | 9421fc46b2a05fb9ca5c7aebd18ca4101d019d4c | refs/heads/master | 2020-07-04T06:10:21.617199 | 2019-08-13T16:17:43 | 2019-08-13T16:17:43 | 202,181,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,624 | py | def combine_and_normalize(self):
if len(self.car_features) > 0:
self.y = np.hstack((np.ones(len(self.car_features)), np.zeros(len(self.non_car_features))))
# Create an array stack of feature vectors
print
self.X = np.vstack((self.car_features, self.non_car_features)).astype(np.float6... | [
"markus.meyerhofer@me.com"
] | markus.meyerhofer@me.com |
aed331d4d6ee44d53a4aaabf482cb87ccd2a77f6 | 376e365edc3953187329ce0a11a92a056a3cb897 | /FUCTION.py | 0c17f8df4d441c3087188d1ff22b36a2fe016d0c | [] | no_license | cordoba14/FOR | 6578465f252553733e869ef073c9faa04a8579eb | c55328fcdce8854884056d67f9b0bbc3e11dd8b0 | refs/heads/master | 2021-02-17T22:43:56.096789 | 2020-03-09T14:42:27 | 2020-03-09T14:42:27 | 245,133,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | # def myfunc():
# print(" python is" + x)
# myfunc()
# x = " awesome"
# def myfunc():
# x = "fantastic"
# print(" python is " + x)
# def greeting()
# print("hello, are you")
# print("my name is bogan")
# print(" its is my pleasure to be working with you")
# greeting()
# print ("what if i want to ... | [
"armandocordoba14@gmail.com"
] | armandocordoba14@gmail.com |
7ec50b205ebdd21727ac18bdc72f99240215aed0 | b8d08e940767d6e525c58da28a22c020e3ff29ce | /app.py | 5d85da3b22b533a438fe642b7b83278b4c232990 | [] | no_license | jakewmayfield/sqlalchemy_challenge | e5ba171771b9e5f0da5461b827d9f0f21b2d9f09 | 82c16ae234ebbec0bee85a0bdd9aac22e94055a6 | refs/heads/main | 2023-08-04T17:37:52.351380 | 2021-09-29T02:02:36 | 2021-09-29T02:02:36 | 410,353,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,639 | py | import numpy as np
import datetime as dt
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
from flask import Flask, jsonify
engine = create_engine("sqlite:///Resources/hawaii.sqlite")
Base = automap_base()
Base.prepare(eng... | [
"jakewmayfield@gmail.com"
] | jakewmayfield@gmail.com |
0679de2a277237837b78807b1a26166544904efd | e33c2de2a932ed44302eac005dcdfb7aec751c2d | /Lesson3/diffequ18.py | 13d53cc7ee2f6a83a24b4fac80b29f4622497e6e | [] | no_license | thuythai/Udacity-Diff-Equ-in-Action | 8126144de57d460ed019ec0663747f1fb000b763 | a4fb758f5d09ae6c0070aa409d5dacf64870c952 | refs/heads/master | 2021-09-03T15:25:49.209998 | 2018-01-10T04:57:51 | 2018-01-10T04:57:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,623 | py | # Udacity problem (from Problem Set 3)
# PROBLEM 1
#
# Include waning immunity in the SIR model, so
# that people can eventually become susceptible
# again. Define the time constant waning_time
# such that eventually there are twice as many
# recovered people as there are infected people.
import numpy
import... | [
"noreply@github.com"
] | thuythai.noreply@github.com |
e96a7477cee560e1e780cdf761cd950154211ed8 | 4911ef1024c44f9695203f26588ed67d1a96a87e | /joystick.py | 3cfee64ae5e0e058c9eede475c4207e7caaac39e | [] | no_license | jorgenmiller/SenseHat | 9342fcdff719a9f5502cf5cd3259579665d1638e | 187ce095fdfaf372c6b62264869795a46804c64c | refs/heads/master | 2020-04-17T12:28:30.915815 | 2019-06-07T21:37:35 | 2019-06-07T21:37:35 | 166,580,656 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | from sense_hat import SenseHat
import time
sense = SenseHat()
sense.clear() #clear LED matrix
while True:
print(sense.stick.wait_for_event()) #print each event triggered
| [
"jorgen.j.miller@gmail.com"
] | jorgen.j.miller@gmail.com |
afbcbf4ec0e6b37b4933d77a4afd25197f780bb3 | c80a0452d890dd6248df5dc7053d806f2d0f2a0c | /py/problem_crowler.py | 30ce3d9fb047c8725f74934566b2c9293d2cb405 | [] | no_license | emetko/project-euler | 78db5bd4cc634b3186352d85e5a1facbc1dbe062 | aa89f626aa2c4f39b92aea6863f53a75cfff78b6 | refs/heads/master | 2021-01-21T17:45:53.769449 | 2014-06-05T15:17:52 | 2014-06-05T15:17:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | #!/usr/bin/env python3
from urllib import urlopen
from bs4 import BeautifulSoup
from string import Template
def get_problem_info(num):
url = 'http://projecteuler.net/problem='
soup = BeautifulSoup(urlopen(url + str(num)).read())
p = soup.find(id='content')
title = p.h2.text
description = p.find(... | [
"emetko@gmail.com"
] | emetko@gmail.com |
9651a4fc490d15703e32a4df5fb8fa9be4af3ba9 | 09eee2435b4a8b2d8b8acf9e6aeb13285778cbb4 | /script/part2_test1/Junacheng_Part2_Test1.py | db6caead7dc9cfa047dd5c7d7b863b6eebc3e36f | [] | no_license | wareenpower/AutoCheck | 85046a7b09fcf4f5c208c64bcee9d0035437828a | 8774208b4e51a279674c1a1a1d25cd1a843dbc90 | refs/heads/master | 2020-04-06T13:32:32.469483 | 2019-02-25T07:23:15 | 2019-02-25T07:23:15 | 157,504,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,551 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from collections import Counter
import re
class BStringObjectTest:
def __init__(self):
self.__doc__ = "This is the answer for StringObjectTest in 2018-11-01 !"
self.__author = "Junacheng"
@staticmethod
def compute_frequency(str_input):
... | [
"33952428+wareenpower@users.noreply.github.com"
] | 33952428+wareenpower@users.noreply.github.com |
139b52a654e7e288a4b0a4ebaec109926cb274a6 | 2a67dc681af4c4b9ef7a8e18c2ff75377dc5b44f | /aws.cloudwatch.EventPermission.organization-access-python/__main__.py | 96a5858ff755253665d97a47249d9fe835f082f2 | [] | no_license | ehubbard/templates-aws | e323b693a18234defe6bd56ffcc64095dc58e3a1 | 2ae2e7a5d05490078017fed6d132dcdde1f21c63 | refs/heads/master | 2022-11-17T13:53:14.531872 | 2020-07-10T21:56:27 | 2020-07-10T21:56:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | import pulumi
import pulumi_aws as aws
organization_access = aws.cloudwatch.EventPermission("organizationAccess",
condition={
"key": "aws:PrincipalOrgID",
"type": "StringEquals",
"value": aws_organizations_organization["example"]["id"],
},
principal="*",
statement_id="Organizati... | [
"jvp@justinvp.com"
] | jvp@justinvp.com |
6d3d6d1292a7c1f4e7e3f6355ceaf2c1855422f4 | 928d4d6c09a9d9422e69d072f081f4182cc41a1c | /notebooks/mul.py | ef423387c5da8018aaae608b9ff00cdae61c4224 | [] | no_license | Ivandanilovich/opendemo | 679822aaceb10ff91ccc3b4201b9438b861eae91 | 272d10997973360611a0e24ae83fe6fd9b9041c4 | refs/heads/master | 2022-12-30T08:19:12.179985 | 2020-10-12T03:24:41 | 2020-10-12T03:24:41 | 300,537,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | import os
from multiprocessing import Pool
from alrosademo.ImageProcessor import ImageProcessor
from alrosademo.LandmarkDetector import LandmarkDetector
from alrosademo.SSDDetector import SSDDetector, SSDBox
from alrosademo.VideoProcessor import VideoProcessor
import time
if __name__ == '__main__':
frames = Vid... | [
"ivandanilovich99@gmail.com"
] | ivandanilovich99@gmail.com |
7c475267b567ec4ef4bf1a2b5a74d63149e855eb | ae373712c4091dce7e00617b453728960b88f300 | /cryptodetector/methods/hello_world/hello_world_method.py | 438d8e02363ed84727c2f29af5eb901cfd704818 | [
"MIT"
] | permissive | mahmad2504/nscriptwallet-old | ddbfe66ad166667ac74f5960ed0b50d97da0c117 | 50968fddb703751d5cff35bfa40ef4543c045b03 | refs/heads/master | 2023-06-08T18:02:11.719274 | 2021-06-09T15:51:58 | 2021-06-09T15:51:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,532 | py | """
Copyright (c) 2017 Wind River Systems, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wr... | [
"mumtazahmad2504@gmail.com"
] | mumtazahmad2504@gmail.com |
74361fda2476e8a8ecc212047504d3bb4c0708d7 | 245c98f9e117fe912b1d115f3b5607068010eced | /stardate/migrations/0005_auto_20160109_1343.py | aa96388d39b25b8c03f0c9132493089dfc566c6d | [] | permissive | blturner/django-stardate | 1d4e318fbb3d19245731dc84b457466ad78d7c3b | d3edf99aafd2233a13cd3b86bae3628803eb64ff | refs/heads/master | 2021-11-30T12:44:42.422125 | 2021-03-07T00:03:51 | 2021-03-07T00:03:51 | 10,006,257 | 0 | 0 | BSD-3-Clause | 2021-11-05T00:02:36 | 2013-05-11T22:39:27 | Python | UTF-8 | Python | false | false | 563 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-09 21:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stardate', '0004_auto_20160109_1321'),
]
operations = [
migrations.AlterFiel... | [
"benturn@gmail.com"
] | benturn@gmail.com |
f65a438757bcaf65aa57641968314c0051f60a58 | 3c0832e0608deed84e03c1bf6982b5f6d826b8fd | /Codeforces/CF768-D2-A/Oath_of_the_Nights_Watch.py | 9b9454faf2757d4ba86184da3c91271030fd88ce | [] | no_license | HaoES/ProblemSolving | d7f179a5526de9df14b6ea832f03987f57c77ea2 | fa18864e4e28559239b6f803637298f41308dbf4 | refs/heads/main | 2023-03-07T00:04:42.641375 | 2021-02-22T11:03:01 | 2021-02-22T11:03:01 | 323,340,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | #!/usr/bin/env python3
import sys
input = sys.stdin.readline
############ ---- Input Functions, coutery of 'thekushalghosh' ---- ############
def inp():
return(int(input()))
def inlt():
return(list(map(int, input().split())))
def insr():
s = input()
return(list(s[:len(s) - 1]))
def invr():
... | [
"hamza.essamaali@gmail.com"
] | hamza.essamaali@gmail.com |
0413dd82bd1d093951ad7e81be7ed7194ca76528 | c5f926f853eaca8d42d8cb7405426698f40e3bb9 | /MySineWave.py | aa14eb92e8ab577142855e327628e08d0d12f6b2 | [] | no_license | Astronomer-Mohit/firstrepo | 538bd11b0cf813617bbeb8d003e1aa30e8d6452d | 786c6ebf54a2ed3d0c283992d491bedcb3d008c0 | refs/heads/master | 2021-06-03T18:33:38.455137 | 2016-08-12T16:27:18 | 2016-08-12T16:27:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | #pi = 3.14159
def MySineWave(x):
import numpy as np
import matplotlib.pyplot as plt
t = np.arange(-np.pi*2, np.pi*2, 0.1)
plt.plot(t, np.cos(2*np.pi*(t/x)))
plt.show()
| [
"f2012651@pilani.bits-pilani.ac.in"
] | f2012651@pilani.bits-pilani.ac.in |
43debcbdd0da1d6b371925257656e247f95fd2b8 | 028b24c8a3772c788819e2cd820fee73cade681a | /GameClient/Framework/BuildExcel/Windows/py3-Tools/BuildConfig.py | 570d51fd1ca4f7b561b6446ad8d6608e0d0c2723 | [] | no_license | zyxyuanxiao/GameCompanyTechnicalCode | 382cba24523cdbfe09932f540bca0a1ca2dd7ab6 | eec60e4941dd15adf4948af44bd423d65239aafa | refs/heads/main | 2023-02-25T08:25:00.402931 | 2021-01-29T13:52:26 | 2021-01-29T13:52:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,786 | py | from ExcelParser import Sheet
from ExcelParser.Env import ParsingEnv, ConfigMgr
import traceback
'''
TODO:目前有一些自动生成的文件是废弃的()
'''
import csv
import os
import copy
import subprocess
from Misc.Util import *
from tkinter import messagebox
class BuildConfig:
def __init__(self, absolutePath, region, CSharpLuaFla... | [
"1487842110@qq.cin"
] | 1487842110@qq.cin |
1fc2f47ad8904ffc5836d4fc5bec9a5ec58ff618 | be9cf12ec824b3cb9f57446adde579bb6f5ac43a | /todoList/urls.py | dc36902d49a619b706298095eb85e3a2248fecd8 | [] | no_license | qwslmq/TodoList | c84b16558076bf615b886eee7311b970bc0eb2c9 | 493410d3c769e519fa521bea9f166c160a6e853e | refs/heads/master | 2020-03-14T16:14:45.429355 | 2018-07-18T02:48:11 | 2018-07-18T02:48:11 | 131,694,234 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""todoList URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns:... | [
"qwslmq@126.com"
] | qwslmq@126.com |
9c2d9a898db1b9765259f287859f7910b04c5de5 | c2092dbf89e74e1484f0468d21badfda2eafe19d | /backend/users/migrations/0002_auto_20201113_0020.py | 2383bc55cf5cafb959552769c381e49d82d28c70 | [] | no_license | crowdbotics-apps/jd-searcher-22572 | 1a47422d2c4f393562fc4389422b0906fed594b8 | a194536595837400bf0e1fe0c1be5bbd262ff6b2 | refs/heads/master | 2023-01-06T21:14:55.102493 | 2020-11-13T00:20:57 | 2020-11-13T00:20:57 | 312,428,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | # Generated by Django 2.2.17 on 2020-11-13 00:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
name='last_updated',
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
41d7d2427377bac87ea25552fed71f5f62f8a20a | ca2a722448cef975a7b5aa4aa6c952c75aaffb68 | /python_sokusyu/modules1.py | f9698db28b27deb1074afdac3280df1f015c7167 | [] | no_license | ChibaYuki347/machin_learning | 53552a26079dac8668edaf6eb735f9ee98f559fa | 507e67227165a90799b0148d99042770921e04e6 | refs/heads/master | 2020-07-14T16:43:25.916712 | 2019-08-31T01:45:12 | 2019-08-31T01:45:12 | 205,355,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | # modules1.py
def mul(a,b):
return a * b
def div(a,b):
return a // b | [
"y.chiba208@gmail.com"
] | y.chiba208@gmail.com |
7ffac13b474c6809ed7bf4cc8c0cea2d8bc3ac77 | 6da62d86cfcc4552655d4eeb33ec0453743e2c9f | /cut_picture/ImageProcess.py | c5b0379a2130f0199773b774f92c2638a33638b7 | [] | no_license | FrankSun96/FYP_GANs | 826fa0460674501a3d148d4402d48653add2d7a6 | 6ea3ca70247ed5c4389ecec8300853fe1c571714 | refs/heads/master | 2020-04-18T02:37:07.970317 | 2019-04-01T13:04:07 | 2019-04-01T13:04:07 | 167,169,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,749 | py |
# coding: utf-8
# In[ ]:
import os
import sys
from PIL import Image
from ImageCut import Graphics
def list_img_file(directory):
"""列出目录下所有文件,并筛选出图片文件列表返回"""
old_list = os.listdir(directory)
# print old_list
new_list = []
for filename in old_list:
name, fileformat = filename.split(".")
... | [
"franksun1996@gmail.com"
] | franksun1996@gmail.com |
3ec6fd0605e0331c6507d84973d381ea376a8eeb | 6b27bc09fc97a4d413cf5073fa724b9821301463 | /Odd_or_Even.py | 711ce8fd60dedacba5786b444c797ef26ce6cd26 | [] | no_license | jusKutz/ControlFlow_and_LogicalOperators | c7e8993479f3d0fc741ba7e4fa880333caf8a71d | dc396e1c20e1b174c0c82dc211b576997ce69b55 | refs/heads/master | 2023-02-09T02:16:48.052386 | 2021-01-05T14:24:44 | 2021-01-05T14:24:44 | 326,247,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | # 🚨 Don't change the code below 👇
number = int(input("Which number do you want to check? "))
# 🚨 Don't change the code above 👆
#Write your code below this line 👇
result = number % 2
if result == 0 :
print ("This is an even number.")
else:
print ("This is an odd number.")
| [
"heartsniper0403@gmail.com"
] | heartsniper0403@gmail.com |
e0360292e7da702547ad0ee01da3fe76921d065b | 28dff6f1707ebb62213d89fae42ae087add5ba9b | /Converters.py | 52c5047c74148c816adbc9a5e753639df0c00510 | [] | no_license | theprofi/Trump-tweet-pediction | 3d30fd722b95592a6c8bb31d1e79c08a8dbd8e16 | c2374ac3c71457b0339631397fde5b0e3c3b2b89 | refs/heads/master | 2020-03-23T03:25:43.955875 | 2018-07-26T13:31:33 | 2018-07-26T13:31:33 | 141,030,133 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,304 | py | import string
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
from sklearn import decomposition
from ParseOrganize import BEFORE, AFTER
class TweetToLetvec:
def __init__(self,):
self.len_before = 0
self.len_after = 0
self.train_x = []
def in... | [
"noreply@github.com"
] | theprofi.noreply@github.com |
4c340b330451ba30962d6b42b55c433d5c586d23 | 704976ea552111c6a5af9cd7cb62b9d9abaf3996 | /dotviewer/drawgraph.py | e247c773bafd2411cfdb7998286c36a81e749422 | [
"BSD-3-Clause"
] | permissive | mesalock-linux/mesapy | 4f02c5819ce7f2f6e249d34840f1aa097577645d | ed546d59a21b36feb93e2309d5c6b75aa0ad95c9 | refs/heads/mesapy2.7 | 2023-08-16T21:33:02.239581 | 2019-08-13T10:29:43 | 2019-08-13T18:06:45 | 136,080,721 | 396 | 33 | NOASSERTION | 2020-04-01T03:05:18 | 2018-06-04T20:45:17 | Python | UTF-8 | Python | false | false | 44,450 | py | """
A custom graphic renderer for the '.plain' files produced by dot.
"""
from __future__ import generators
import re, os, math
import pygame
from pygame.locals import *
from strunicode import forceunicode
this_dir = os.path.dirname(os.path.abspath(__file__))
FONT = os.path.join(this_dir, 'font', 'DroidSans.ttf')
F... | [
"mssun@mesalock-linux.org"
] | mssun@mesalock-linux.org |
250f5e5ede5cb22913d1d025af9938648ffb870c | 046f84183a4f942813230a4ef59f0f7d4e3ba9c1 | /Grade 10/Unit 1/Bp_Hello_World/Bp_Hello_World_V2.py | ab647eb26f3b07baedbfb0bed8f228f82aeb0d2b | [] | no_license | thebazman1998/School-Projects | 388a53cfb564fdaa38daf8b501fb1cbf4297f4ca | 6cc187c670641bb6f7664b003a056dbca6c2a4cb | refs/heads/master | 2020-12-31T00:18:26.751597 | 2015-05-27T19:24:18 | 2015-05-27T19:24:18 | 36,387,871 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | '''
Created on <04/02/14>
@author: Basil_Pocklington
This program is my first Python program.
'''
print "Hello World!"
print "This is my first program\n\n."
print 1,000,000
print "n=7"
print 7+5
print 5.2, "this is less than", 7 - 1,"Which is less than", 9
print 6*(1-2)+3 | [
"bg.88888@hotmail.com"
] | bg.88888@hotmail.com |
c7e6440558b93f5fc476fcac8a70f196cd06f1d2 | 3d44f08daca843bc5231e5a8cf1a9b6ad7b02039 | /contact_prediction/coupling_prior/check_derivatives.py | 4e48dfe1ea657a47332dc9e2af15c56e5e10f78e | [] | no_license | susannvorberg/contact_prediction | c9b128b503ee9dd0a28893113fa0dd7ef65696be | d65c0799ebeee9854d4df828f29d585b0aed9bf3 | refs/heads/master | 2021-01-16T20:45:52.662839 | 2018-06-29T13:06:43 | 2018-06-29T13:06:43 | 61,809,573 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,121 | py | #!/usr/bin/env python
#===============================================================================
### This scripts compares analytical gradients to numerical gradients
#===============================================================================
import argparse
import os
from coupling_prior.likelihood imp... | [
"susann.vorberg@gmail.com"
] | susann.vorberg@gmail.com |
76ea48dc0afba38b6fa6d34656e0022f07777599 | a724baa4d3cbf1a8926c4ae8f0b33b249c526a24 | /src/utils/net.py | 9ccd04584b50b5c820ff9129bc8fc1d45a7e90d5 | [
"MIT"
] | permissive | ykumards/dl-stencil | 308534b4d2112a5c5129fc32342d615b46332dda | 08df28a43c19a9cb5f60a9d71823b5562f5ea78d | refs/heads/master | 2022-07-04T21:17:01.084975 | 2020-05-17T18:19:49 | 2020-05-17T18:19:49 | 241,896,069 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,890 | py | """Functions for manipulating networks."""
import itertools
import math
import torch
import torch.nn as nn
from core.config import cfg
def init_weights(m):
"""Performs weight initialization."""
if isinstance(m, nn.Conv2d):
# Note that there is no bias due to BN
fan_out = m.kernel_size[0] * m... | [
"ykumar@nyu.edu"
] | ykumar@nyu.edu |
85847224dd923697aabf30f3dbcf78a54f67e6ee | f157332bb970b6a9dbbf60399ccb71596ede20a5 | /gpkit/gpkit/constraints/relax.py | 2639ffb47f3a7ce4153c00b4a345066a44301f21 | [
"MIT"
] | permissive | UCLA-StarAI/LearnFairNB | e57b854f8af70e4f3c92baba36b850bcc7c47381 | f922d885399955737bd9f16a104f700004cd3846 | refs/heads/master | 2020-06-02T10:34:22.040504 | 2019-07-02T01:15:16 | 2019-07-02T01:15:16 | 191,128,598 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,822 | py | """Models for assessing primal feasibility"""
from .set import ConstraintSet
from ..nomials import Variable, VectorVariable, parse_subs, NomialArray
from ..keydict import KeyDict
from .. import NamedVariables, MODELNUM_LOOKUP
from gpkit import SignomialsEnabled
class ConstraintsRelaxedEqually(ConstraintSet):
"""Re... | [
"yjchoi0122@gmail.com"
] | yjchoi0122@gmail.com |
731c8a798fd64aede0e5496616a069e3fb2b473a | 0b8145658325831d964a67d86e1f282c5f604a7e | /riiid-test-answer-prediction/features_util.py | 14197b5ea0a5eb1a4cdadc62912b21f434869608 | [] | no_license | tarun-ssharma/ml | 16797bfc4a63c281184ac0b1b26b76c088de8fd1 | c547fdde432f5eaea631157b74abbbe35e521bdc | refs/heads/main | 2023-03-22T16:33:47.979164 | 2021-02-28T17:53:51 | 2021-02-28T17:53:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,315 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from tqdm.auto import tqdm
import os
import random
from copy import deepcopy
import _pickle as pickle
import gc
from multiprocess import Pool
from sklearn.metrics import accuracy_score
from sklearn.metrics import roc_auc_score
from tensorflow.keras.... | [
"gabriel.olympie@student.ecp.fr"
] | gabriel.olympie@student.ecp.fr |
5ea079a246153c51efaee0a478cb091326370e2d | 82c50f82f9e743b93dcb581d7ec95dd5e3a44380 | /browseapp/browse_main.py | 3dabd002cc8ff02326dfbfaac5cdff7b3bd4642e | [] | no_license | ivanerill/collecTF | 4f1c7981e616989d1044db9dd308377b3e3450c6 | 541f8f3852fdc740798f4f892d8ff1ef8b2225df | refs/heads/master | 2021-01-18T12:34:56.368336 | 2013-07-15T18:07:35 | 2013-07-15T18:07:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | from browse_site import browse_by_site
from browse_curation import browse_curation
| [
"sefakilic@gmail.com"
] | sefakilic@gmail.com |
345cbf32fb3ab848ad9139be9f0d92ac5203427f | d6b6b534e057266fd4c1911281f1f969ad9abb2b | /TaskApp/migrations/0001_initial.py | 025243d7c1886e2569c45e08eec1631c660d700d | [] | no_license | lobanovskysvet/App | 35289f5a42246c28a7a302e1b4da462d52c7949c | 3db27cfd60fb1b8bfb468406bfb39082a6211bf1 | refs/heads/master | 2021-05-03T14:27:58.901205 | 2018-02-06T13:06:42 | 2018-02-06T13:06:42 | 120,456,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | # Generated by Django 2.0.1 on 2018-01-27 18:18
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Users',
fields=[
('id', models.AutoField(au... | [
"lobanovskysvet@gmail.com"
] | lobanovskysvet@gmail.com |
a37919e7a146f13a19e835358e5621879447a92f | ac193a836d7ce8b4f27959013795868d4ddc189a | /myfirstapp/migrations/0001_initial.py | 8269cc62bfa7b5fe5567749882cc0b430466135b | [] | no_license | ArienM444/MyPO | 86e404b1e8fbe392b1e3a6399b3afd5fb8fd7789 | 051a2b941b9c3a61062723d3a06b03b491d629e9 | refs/heads/master | 2023-08-23T10:35:21.755245 | 2021-10-20T16:00:23 | 2021-10-20T16:00:23 | 419,395,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | # Generated by Django 3.2.7 on 2021-10-20 15:36
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Person',
fields=[
('id', models.BigAutoFiel... | [
"arenmamyan3644@gmail.com"
] | arenmamyan3644@gmail.com |
a25b93a52f067702d23fb15074ccf12559fff3d1 | bf977912c9fdd6a6b515fa14fc082a7312669305 | /Introdução à programação com Python/Cap 3/3.7.py | c565d395755f53c4ef45b58db6c63b15858ac665 | [] | no_license | thsimoes/Codes | a5f0d999fa3204d535d394520d5e1f9265f52156 | 5227d6f27cb513d0e5808bc7657f21a0920975e9 | refs/heads/main | 2023-09-06T03:54:07.754689 | 2021-11-24T18:33:38 | 2021-11-24T18:33:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | a = int(input("Qual é seu primeiro número? "))
b = int(input("Qual é seu segundo número? "))
c = a + b
print(f"A soma é {c}") | [
"simoesthsa@gmail.com"
] | simoesthsa@gmail.com |
16f2a5e757149cc4dd5347724b6410fe4a4aa806 | af0d9d91942a66f1db2962997471e9a693e39a9b | /CardImpls/Hinterlands/__init__.py | 393b2929c8ac278bbd217058f83295771d57869d | [] | no_license | boudrejp/domsim | 0c955a37a0960c872a4b74433edba2a8062fc904 | 98d4c687ed4e046d768e03987a0fcbb134458876 | refs/heads/master | 2021-05-16T01:29:36.242233 | 2017-02-27T18:41:14 | 2017-02-27T18:41:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | __author__ = 'breppert'
import JackOfAllTrades
import TradingPost
import BorderVillage
import SilkRoad
import Oasis
import Tunnel
import Cartographer
import Haggler | [
"breppert@appnexus.com"
] | breppert@appnexus.com |
0c4be6c2b828f8b331175d09a11526e92c08bb41 | b5687632d220f7228954c43b181aac376782c9c9 | /google/detailplace.py | 74efaf812d5ca34485700ff3bbfb147935ee1544 | [] | no_license | CasparChou/SightBus-RealtimeServer | 856e6f0048e8a7f8b7bdb1b82a54d0f8ec7088f1 | a871438b1ee0f357dfb1970fefc5e5b0960018fe | refs/heads/master | 2021-01-19T11:53:25.654903 | 2017-04-12T02:48:34 | 2017-04-12T02:48:34 | 88,000,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,933 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-.
# This is a program for fetching real bus stop position via google map api
import sys, time, datetime, requests
import re
from include.util import *
from math import ceil
from random import randint
time = str(int(time.time()))
url = "https://maps.googleapis.com/maps/api/plac... | [
"starcaspar@gmail.com"
] | starcaspar@gmail.com |
1a95d366947058c89f9419baffce0086c13280a6 | 36978086cf5f34e16ceac7c2649b49ccb4c5ac90 | /config/munin/mongodb_replset_lag | 0c2f3ed4bdbabde170d68abc6b6e9b74d14b19de | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | aragilar/NewsBlur | 04e754093cd52bc2d9957ea767747d6d604dfbba | 64ecd83bf4cea175f1bdeeb6e475fd5cadb679c9 | refs/heads/master | 2021-08-28T17:39:50.734396 | 2013-06-06T01:52:20 | 2013-06-06T01:52:37 | 10,520,281 | 0 | 0 | MIT | 2021-08-13T05:35:33 | 2013-06-06T06:26:24 | Objective-C | UTF-8 | Python | false | false | 1,790 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from munin.mongodb import MuninMongoDBPlugin
PRIMARY_STATE = 1
SECONDARY_STATE = 2
class MongoReplicaSetLag(MuninMongoDBPlugin):
vlabel = "seconds"
title = "MongoDB Replica Set Lag"
fields = [("optimeLag", {'label': "Oldest secondary lag"}), ("oplogLength", ... | [
"samuel@ofbrooklyn.com"
] | samuel@ofbrooklyn.com | |
99906cf43c54aaafdbb5841dea05182db0a4e2d1 | a362695a27c85d4091f8adc707614d3c67ce3e85 | /story/migrations/0006_event_details.py | d048c54faac4ee1741b58e77549c6cafea358da7 | [] | no_license | altheasmith/thailand2010 | 97e3804903f8d3cdf41720f0c2e5244f6446b6b1 | e0a05fe3683cd65a4cffcf3006bd741dc72d5d38 | refs/heads/master | 2022-11-29T23:38:53.057048 | 2020-08-11T16:01:41 | 2020-08-11T16:01:41 | 285,666,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # Generated by Django 3.1 on 2020-08-06 22:16
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('story', '0005_institutiondetail'),
]
operations = [
migrations.AddField(
model_name='event',
name='details',
... | [
"althea.o.smith@gmail.com"
] | althea.o.smith@gmail.com |
2c5b7a5a2b3360627bc165c89f46250a2e5ed9d5 | 9146155242cd65d96de3734c2078244af68c2da0 | /EstruturaDeDecisao25.py | c9a41656eed0c77438d03173ebc39a0a5ed8610f | [] | no_license | fabricio24530/ListaPythonBrasil | 364961a5c7970831017a8aa4846c746724c66d84 | 5062f830380ad459ce39b643bacf4104fd8e4327 | refs/heads/master | 2020-12-15T13:21:32.657388 | 2020-03-22T13:10:27 | 2020-03-22T13:10:27 | 235,116,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,241 | py | '''Faça um programa que faça 5 perguntas para uma pessoa sobre um crime. As perguntas são:
"Telefonou para a vítima?"
"Esteve no local do crime?"
"Mora perto da vítima?"
"Devia para a vítima?"
"Já trabalhou com a vítima?" O programa deve no final emitir uma classificação sobre a participação da pessoa no crime.
Se a pe... | [
"noreply@github.com"
] | fabricio24530.noreply@github.com |
2050ebc33bd9b78f63a5dc635ed83c17658e2d4a | b4983a1245c141acca097f12b726720c480f903a | /luther_09-10/cs151/tree.py | 0014c2015309b8fcc58b79758a1514d80578306a | [] | no_license | gerisc01/school_work | eb890ef2d836f67e371358f7dcf98812109a71de | 7488632f26b63d9f950157a97f5cf6fb72b1b255 | refs/heads/master | 2021-01-10T20:21:26.165662 | 2013-06-27T18:41:57 | 2013-06-27T18:41:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,618 | py | from cTurtle import *
import random
def drawTree(t, length):
if length >= 1:
t.forward(length)
numbranches = random.randint(3,5)
if numbranches == 3:
n = random.randint(25,35)
t.right(n)
t.left(n-30)
drawTree(t,length/random.randrange(2,... | [
"gerisc01@luther.edu"
] | gerisc01@luther.edu |
9cb1272f31e583f835c09420936429f9ccd9acac | c1938ec2593fd50a6cb19700ffe812a8d827d3eb | /cleanedup/neurips_experiments/experiment_flat.py | c3ea4237aab1d2aac98dc0aa739afff9152b4dc9 | [] | no_license | Kohsin/power_law | 577922130bbf739a47dca2b2d8fcce66dd59c9f0 | 4032f67b4205f9d1d7be0c1f05dacb25a0a43efe | refs/heads/master | 2023-03-21T04:16:02.434196 | 2020-12-05T17:46:49 | 2020-12-05T17:46:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,494 | py | import sys
from tqdm import tqdm
import fire
from itertools import product
sys.path.append('..')
from ModelDefs.models import ModelFactory
from DataDefs.data import get_data
import torch
import numpy as np
import copy
import os
from joblib import Parallel, delayed
os.environ['KMP_DUPLICATE_LIB_OK'] = 'True'
def bad_b... | [
"piotr.sokol@stonybrook.edu"
] | piotr.sokol@stonybrook.edu |
602a2e0ad279811b45e061bfc044f21c53fd8a57 | 690c502e514842e346b1f0a272072c2a659c1b9d | /quiz/admin.py | 21a39ab93fe017d6e814fd25a600da6eba30635e | [] | no_license | hsrambo07/Django_QuizApp | 5f79137ab06c1f3a7009e3a40498eb202f135d51 | d50f89061fa7193769169a679600973a04f17815 | refs/heads/main | 2023-01-09T10:56:53.754263 | 2020-11-17T16:59:59 | 2020-11-17T16:59:59 | 313,567,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | from django.contrib import admin
# Register your models here.
from .models import *
admin.site.register(Quiz)
admin.site.register(Question)
admin.site.register(Choice)
| [
"hs2002singhal@gmail.com"
] | hs2002singhal@gmail.com |
4680394e14442b9e016dc3834172a4f40eede73b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/63/usersdata/239/32114/submittedfiles/swamee.py | aac7bfcabaa9fa811d2304d01539530e593c0d46 | [] | 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 | 506 | py | # -*- coding: utf-8 -*-
import math
#COMECE SEU CÓDIGO AQUI
f = float(input("Digite aqui o valor de f: "))
l = float(input("Digite aqui o valor de l: "))
q = float(input("Digite aqui o valor de q: "))
DH = float(input("Digite aqui o valor de Delta H: "))
v = float(input("Digite aqui o valor de v: "))
g = 9.81
e = 0.000... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
dbf52a834f34fa4f3c3318bcab831ea4e23f15a0 | 2748d523c4ced916b61e8f2a0ebd6c7237705f69 | /core/forms.py | 8d56e99d1aec9c278839b44ba66ef4cdee9daa37 | [] | no_license | Titowisk/meubaz | 52d5101bc107081c7175f27bb538efc6fecf5b24 | 1af586195123ffd13818695cff8cc286018a1c7b | refs/heads/master | 2021-08-23T16:47:54.960522 | 2017-12-05T19:02:09 | 2017-12-05T19:02:09 | 106,558,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | from django import forms
from django.conf import settings
from django.core.mail import send_mail
class ContactForm(forms.Form):
name = forms.CharField(label="Nome", max_length=100)
email = forms.EmailField(label="E-mail")
message = forms.CharField(label="Mensagem", widget=forms.Textarea)
def sen... | [
"rabelo51@gmail.com"
] | rabelo51@gmail.com |
0e27c1cde1975d5d82729fd78224ec5fb7625502 | 8f36a6aacb7ee9cf0bd8726941903da69350b76a | /pipeline_source/cifarlibs/hypertune/testhypertune.py | 410d8da459a8c0ec1d516cda610c573134d5056c | [] | no_license | tanle2694/cifar10_kubeflow | 02466f9219116d91100308ed5443fbe6ca578eb7 | 97e588470938eb3622bb019a2dbe1d27a02b4be1 | refs/heads/master | 2023-06-03T14:07:37.383016 | 2021-06-21T04:41:22 | 2021-06-21T04:41:22 | 370,740,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,253 | py | from cifarlibs.hypertune.hypertunner import HyperTunner
objective_spec = {
"type": "minimize",
"goal": 0.001,
"objective_metric_name": "loss",
"additional_metric_names": ["accuracy"]
}
parameters_spec = [
{
... | [
"tan.le2@ntq-solution.com.vn"
] | tan.le2@ntq-solution.com.vn |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.