blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6c85118cef1ca2aa8f49c01e87a7ce8740c949c0 | 1bd38a2a4cfae3100dfbbe63bf56fecd5a45cc26 | /s3/remove_bucket_objects.py | 549451c97c7a3c18daf98ae6f634d038cc53b6d3 | [] | no_license | DSincerity/AWS | 77dd6fc41e4502588a048d572c09eca2c5353a97 | 34ad5dd30c85a167351983eac88349a3c22b905d | refs/heads/master | 2021-06-23T19:13:52.355827 | 2021-03-11T02:42:23 | 2021-03-11T02:42:23 | 207,200,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,431 | py | def remove_bucket_objects(bucket_name:str, prefix_list:list):
"""
delete object in specific prefix of S3
"""
s3 = boto3.resource('s3')
bucket = s3.Bucket(bucket_name)
total_delete_obj_cnt=0
for _prefix in prefix_list:
try:
#delete all objects under a sepecific path
... | [
"dskwon@dskwonui-MacBook-Pro.local"
] | dskwon@dskwonui-MacBook-Pro.local |
7c2b561cb7d8f78719cd3ace62ea3ecdae24ad1e | 114e7f97b9fd36001269db08d72b41537152a088 | /news/migrations/0005_auto_20210308_0005.py | 0c4e765a86a7e1aeb1159d7d8c6842606ccd64da | [] | no_license | azgmus/cgildren_education_center | cac9c8163d032fb692ff0bd2dbda1eaa715f3857 | 98ec1cb34a0aafc301174d4989c50c18df9ae7d5 | refs/heads/master | 2023-06-04T01:58:46.100953 | 2021-06-21T05:22:58 | 2021-06-21T05:22:58 | 323,413,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # Generated by Django 3.1.4 on 2021-03-07 21:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('news', '0004_auto_20210223_2205'),
]
operations = [
migrations.AlterModelOptions(
name='article',
options={'verbose_name': '... | [
"herodotus@inbox.ru"
] | herodotus@inbox.ru |
60023f8a5b3047e711f00886fbaa2db04dde1087 | 3801c2f78bac8fa160490628bb9456f050762ffe | /calculator/calculator.py | 2f0ed1cc8f07fe986583acc54b01646fcd5bfd7a | [
"MIT"
] | permissive | StephenGemin/Simple-Calculator | 67f725cf84042e085cd24245c22b9cee066d478c | 8df433ce1f9f27b7b7f825d28821287af15fb602 | refs/heads/master | 2021-07-11T11:02:55.944330 | 2020-02-27T02:42:10 | 2020-02-27T02:42:10 | 243,156,946 | 0 | 2 | MIT | 2021-04-20T19:20:46 | 2020-02-26T03:12:11 | Python | UTF-8 | Python | false | false | 372 | py | """
Calculator library containing basic math operations.
"""
def add(term1: float, term2: float) -> float:
return term1 + term2
def subtract(term1: float, term2: float) -> float:
return term1 - term2
def multiply(term1: float, term2: float) -> float:
return term1 * term2
def divide(numerator: float,... | [
"45926479+StephenGemin@users.noreply.github.com"
] | 45926479+StephenGemin@users.noreply.github.com |
da2aea53c65b3983510b401cdee9d70ba18afa06 | 594fca0797a2f1cd335f314127203b51415f85f2 | /app/firstApp/urls.py | b449f3b0e4758bec22f6776296371d56fc393458 | [] | no_license | Sandeep-yadav-hub/django-celery-redis-postgres | eea755f1422ce4f00d26d602a18a3e7759c7954e | c43a92c5b88826e19ceb6804eb2498cb7d4b1696 | refs/heads/main | 2023-08-12T14:47:23.507191 | 2021-10-07T19:17:59 | 2021-10-07T19:17:59 | 410,887,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from django.urls import path
from . import views
urlpatterns = [
# path('', views.home, name='home'),
path('tasks/<task_id>/', views.get_status, name='getstatus'),
path('add/', views.run_task, name='add'),
] | [
"sandeepky@SHIPL.com"
] | sandeepky@SHIPL.com |
0177d05931723f17be73c58b7d0cdd44176b2328 | f984307da6b3152f6487ad17b6d4463f436151f8 | /tests/test_inutils.py | 7970437b176cdb7056ca83d0c98c6e3890caad1a | [
"MIT"
] | permissive | buteco/inutils | 50427724d4889a914ec8e18181de25fbc96764e1 | 67686bb244ef840e0f5ab8719256a74b11507d1e | refs/heads/master | 2022-07-19T02:34:39.794792 | 2020-05-20T18:33:05 | 2020-05-20T18:33:05 | 265,089,396 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | import pytest
from inutils import chunkify
@pytest.mark.parametrize(
"iterable, expected",
(
([1], [[1]]),
([1, 2], [[1, 2]]),
([1, 2, 3], [[1, 2], [3]]),
([1, 2, 3, 4, 5], [[1, 2], [3, 4], [5]]),
(range(1, 7), [[1, 2], [3, 4], [5, 6]]),
),
)
def test_chunkify_size... | [
"luiz.menezesf@gmail.com"
] | luiz.menezesf@gmail.com |
32204a3385fce81b05f66e16dfef23f0a4512653 | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-cloudpipeline/huaweicloudsdkcloudpipeline/v2/cloudpipeline_client.py | daa42b91636e7d7f61ee082bc79f05b30fa09bb9 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,026 | py | # coding: utf-8
from __future__ import absolute_import
import datetime
import re
import importlib
import six
from huaweicloudsdkcore.client import Client, ClientBuilder
from huaweicloudsdkcore.exceptions import exceptions
from huaweicloudsdkcore.utils import http_utils
from huaweicloudsdkcore.sdk_stream_request imp... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
bf9a1065dd596722c53084ddc72852f87d34c6c3 | 6160c6635a80072524e014b43cfe2a632076b07f | /envOS/lib/python3.6/site-packages/openstackclient/image/v2/image.py | 1e67692a543df3cc4e9b406aee190e1b56d3b759 | [] | no_license | githubfans/op3nst4ck | 1906232c75dbc2d00a115697c66524fda0308ed0 | 925453387ce1d8e0a58e54a21ce0a119ce7bc6e4 | refs/heads/master | 2022-09-24T20:27:44.679497 | 2018-12-14T01:51:43 | 2018-12-14T01:51:43 | 158,508,543 | 0 | 0 | null | 2022-09-16T19:34:22 | 2018-11-21T07:33:58 | Python | UTF-8 | Python | false | false | 41,888 | py | # Copyright 2012-2013 OpenStack Foundation
#
# 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 la... | [
"ajijogja@gmail.com"
] | ajijogja@gmail.com |
36ba214e142b196b8c0ff8d0fe05f1d7b6ea63e5 | 1664170773a86fb833dc07a66f1d92a90e5c77af | /AbstractModel.py | e0dc7c5a6ce959b7eefd28d422f32ae78c0d62e3 | [] | no_license | CamdenClark/FirstDataScienceCompetition | f11c9f930e891bf785f6d6ab755ab43286630ae9 | 2f893fd3a8236f9fe9596598b10ee74f6bd5e041 | refs/heads/master | 2020-03-14T18:28:28.736711 | 2018-05-01T18:22:00 | 2018-05-01T18:22:00 | 131,742,019 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | import uuid
import os
import datetime
class AbsModel():
def __init__(self):
self.uid = str(uuid.uuid1())
os.mkdir("./runs/" + self.uid)
logfile = open("./runs/" + self.uid + "/run_log.txt", "w+")
logfile.close()
def log(self, msg):
logfile = open("./runs/" + self.uid + ... | [
"cclark-work@Camdens-MacBook-Pro.local"
] | cclark-work@Camdens-MacBook-Pro.local |
787c4fbddabdc8457dd07eaa569fc0f6b5141d56 | f7525456f5451926282cba840dae1c4adba3573f | /4_Cicle_For.py | ddbcead2de56fcc6de1f94bbe82cb3be2c0dc0ee | [
"MIT"
] | permissive | AlPus108/Python_lessons | 1f2ac6e1ce5a344e0c900249ef7864d257424436 | 0e96117d9a8b76fd651e137fc126ddedaa6accd9 | refs/heads/master | 2021-02-27T06:37:10.239125 | 2020-05-14T21:27:29 | 2020-05-14T21:27:29 | 245,588,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,164 | py | # Цикл for
# Иногда называют синтаксическим сахаром. Потому что можно обойтись и циклом while
# Но, для удобства и красоты применяют и for
# Простейший for
# Конструкция range(start, stop, step) - не включительно stop
# start - число с которого начинаем,
# stop - число, которым заканчиваем, но оно не включается в ин... | [
"alex.pustovoy@gmail.com"
] | alex.pustovoy@gmail.com |
e9c5e54034e1439827fb9ae4a546513360e70036 | e590a717a01d060e39276217bd1464fb2b0092d9 | /AA274_HW1/P3_pose_stabilization.py | 99e4a4d481686346e75ed078725b0ea3cf2429da | [] | no_license | chizhang529/aa274 | 7caf82ab1e666192ed4e6bf8fa4f66ee6e0f27e8 | 3be776665006b9767ddda30dd3b0e62e824e7542 | refs/heads/master | 2021-03-27T19:42:01.040701 | 2018-05-18T07:34:40 | 2018-05-18T07:34:40 | 118,284,450 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | import numpy as np
from utils import wrapToPi
def ctrl_pose(x,y,th,x_g,y_g,th_g):
#(x,y,th): current state
#(x_g,y_g,th_g): desired final state
# Relative pos in global frame
rel_pos_global = np.array([x-x_g, y-y_g])
# Rotation matrix from relative to global
R = np.array([[np.cos(th_g), -n... | [
"zclovefd@gmail.com"
] | zclovefd@gmail.com |
56d262272795296abdfd740106515c512449d3e2 | 7e3ae948daf34bfae35d3da695569cd944757ccc | /chat/serializers.py | 47fdc573607ac05e5ded1d5a2ed2404ee48a1a92 | [] | no_license | xRizwan/realtime-chat | ecafef99f40231032d5c90eabdd363065a349105 | 217698512344ed45135882339e82523f6cd94e37 | refs/heads/master | 2023-04-11T08:12:52.035330 | 2020-11-08T01:24:54 | 2020-11-08T01:24:54 | 301,795,090 | 1 | 0 | null | 2020-11-18T06:41:34 | 2020-10-06T16:52:57 | Python | UTF-8 | Python | false | false | 215 | py | from rest_framework import serializers
from .models import Message
class MessageSerializer(serializers.ModelSerializer):
class Meta:
model = Message
fields = '__all__'
depth = 1 | [
"xrizwanr@gmail.com"
] | xrizwanr@gmail.com |
04e007ac52cc9e4a8da9c1f82b9df2ffb4c0501a | 3311b2bfb870b0e1f697be885db76aa6535baeb8 | /note/basic/04_dictionary/dic_05_判斷是否為字典.py | 074be766085d7cc8890b6b165cac3a0bbd369840 | [] | no_license | rogers228/Learn_python | 8f06ceceb553f47f59a2c6fe1f4dd5edc10a8079 | 494ef61545bc946e2ba105483b662beba204c263 | refs/heads/master | 2023-08-31T01:56:32.607799 | 2023-08-30T01:23:49 | 2023-08-30T01:23:49 | 245,773,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | def test3():
a = {5:5}
if isinstance(a, dict):
print('a is dic')
else:
print('a is not dic') | [
"61651257+rogers228@users.noreply.github.com"
] | 61651257+rogers228@users.noreply.github.com |
582315922597d2eeb12b8233f51865c4a80088c3 | 4c5b675a6ab35ac13e8efb30b627b48ab3af8b68 | /codes/extractive/utilities/get_ground_truth_sum.py | 25698fc4727bf520a964736253085b09ab4eec36 | [
"MIT"
] | permissive | mekomlusa/aston | b40d2f7b9a58ee8aef831b5863a07620b879562e | c3622dcc3e66f0f496abb5be8c232c0ec2abb871 | refs/heads/master | 2020-03-30T08:28:05.970502 | 2018-11-26T21:31:03 | 2018-11-26T21:31:03 | 151,017,559 | 0 | 0 | null | 2018-11-26T21:20:23 | 2018-09-30T23:55:10 | Python | UTF-8 | Python | false | false | 771 | py | import re
import os.path
def get_ground_truth_sum(file_path):
with open(file_path, 'r') as rf:
data = rf.read()
# first count how many @highlights
sentence_count = len(re.findall(r'@highlight', data)) * -1
# get the summary and the original text
return [sent.strip() for sen... | [
"tsjtux@gmail.com"
] | tsjtux@gmail.com |
5a440de57d7fcffe156c9c819aa76dd055031c82 | a2776c994fe091678ce8affd018ab883d3df86d8 | /maquinaVirtual/bin/gunicorn | a253cd93067468941045b0c9260c310a74d51146 | [] | no_license | michelspirlandeli/AvaliacaoUnifran | a68c85e6e0ed2eb346ec7a4475251b9ac1d0ec33 | 3a73dd7393f5781ca8b24bde36d7b0872711c290 | refs/heads/master | 2020-04-27T01:08:32.541081 | 2014-05-16T23:37:22 | 2014-05-16T23:37:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | #!/home/action/workspace/AvaliacaoUnifran/maquinaVirtual/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'gunicorn==18.0','console_scripts','gunicorn'
__requires__ = 'gunicorn==18.0'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('gunicorn==18.0', 'conso... | [
"michelspirlandeli_@hotmail.com"
] | michelspirlandeli_@hotmail.com | |
dde6ebed45a16be7e53cf776c8d647e83acacef0 | a1957356d5839548257e16f49f215184c7218996 | /sdk/google-cloud-sdk/lib/googlecloudsdk/container/commands/clusters/describe.py | e90c1d64021774ee2a622b5268c55e9f5a644d3d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | gtandeo/appengine | 3335bcfeb032934fa2bf62922da376764db69ded | 0dbeedc79395f8945824fcc108e9cf162bfc2521 | refs/heads/master | 2021-01-10T10:58:56.907544 | 2015-06-02T12:12:25 | 2015-06-02T12:12:25 | 36,715,149 | 0 | 2 | null | 2020-07-25T16:58:23 | 2015-06-02T07:14:15 | Python | UTF-8 | Python | false | false | 1,343 | py | # Copyright 2014 Google Inc. All Rights Reserved.
"""Describe cluster command."""
from googlecloudsdk.calliope import base
from googlecloudsdk.calliope import exceptions
from googlecloudsdk.container.lib import util
class Describe(base.Command):
"""Describe an existing cluster for running containers."""
@static... | [
"gtandeo@e1r10p21.42.fr"
] | gtandeo@e1r10p21.42.fr |
3003aab0e7cb14193b286ca9e10e71857baac3a3 | b2cd6c7d2c76e9f88f61b12b33786e106f1c3eb0 | /gdjet/useful/admin_template.py | 0d2926c875d4898a5d11435c65eef252fb01fc9e | [] | no_license | gdjet/gdjet | 5c5f44ba2a751d2d42fa9a3b707e05f5422a2627 | ae32cdf8bf78c8ae5065f0a11aa3eeb3d168d82b | refs/heads/master | 2020-04-09T17:31:34.534054 | 2011-02-01T15:49:58 | 2011-02-01T15:49:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py | # -*- coding: utf-8 -*-
from django.contrib import admin
from django.conf import settings
from django import forms
from django.forms import widgets
from datetime import datetime
class ModelAdminForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
forms.ModelForm.__init__(self, *args, **kwargs)
... | [
"gab@g4b.org"
] | gab@g4b.org |
92eb7eab2f0b7b54c08ff33b26aa5a7ff252d81d | 0e2ecd3776944241d3203fcb205270cb1310cf08 | /product/package.py | 1126c0dd1eb047f4c9a21c33306dacc60558c81d | [] | no_license | jwtd/lab-monkey | afb03b45a77529bdf9943f233cad68ed7b31db66 | f21c411814d7c2c0a4c2f61f297097bef64c10bc | refs/heads/master | 2020-05-31T05:25:10.416695 | 2015-04-13T03:12:56 | 2015-04-13T03:12:56 | 32,498,487 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 16,440 | py | #!/usr/bin/env python
"""
StatelessPackageF
"""
from common.base import *
from product.register import *
from product.register_collection import *
from product.serial_control_register import *
from product.connection_adapters.connection_adapter_factory import *
class Package(AppBase):
"""
A Pac... | [
"Jordan.Duggan@Gmail.com"
] | Jordan.Duggan@Gmail.com |
60c7e83ccdd3c54c525eb4610ac24d2f6ad7f293 | ca77158d03127cb151c531551e66e36ccdb85da9 | /SparksFoundation(T6).py | c1df99a2ccc3e418a1e29cb77308a2e6f7169e8e | [] | no_license | abhiram1809/Automation-Testing | 69a24bb0d5bbea16c643aade1149eed07e8345da | c11d8ecb8ceffb80214c5a982f6bbb656927c37d | refs/heads/main | 2023-06-22T05:13:11.755640 | 2021-07-19T14:25:23 | 2021-07-19T14:25:23 | 387,491,098 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | from selenium import webdriver
from time import sleep
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.options import Options
driver = webdriver.Chrome(ChromeDriverManager().install())
driver.get('https://www.thesparksfoundationsingapore.org/')
print ("Opened Sparks F... | [
"noreply@github.com"
] | noreply@github.com |
a13241bdf8a7f6673b13b51d99ce11ac7f5815e0 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/cloud/memcache/v1beta2/memcache-v1beta2-py/tests/unit/gapic/memcache_v1beta2/test_cloud_memcache.py | 6dae41f8cdc2469b105c660bd19d5e0700e7fedf | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120,536 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
fdc08a5c8dcc36f3a3ccf9d7b8edc545cc178aab | bb51466ae6f2c1d2a292ee77068f057107136323 | /Unit3_CNN/ByLeNet_Mnist.py | f5d9005f267817e01abd6905a81790e39efbd4da | [] | no_license | wangzycloud/deep-learning-pytorch | d2e5379c9e940859dbffe2bbdd59629c330ae7a2 | 4bd3483f7193cca68648e856964a1af778db85b9 | refs/heads/master | 2022-12-03T15:07:24.246987 | 2020-08-16T09:07:14 | 2020-08-16T09:07:14 | 287,908,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | import torch
import torch.nn as nn
import torch.optim as optimize
from torch.autograd import Variable
from pytorch.DATA.loadDataLoader import trainDataLoader_Mnist,testDataLoader_Mnist,size_Mnist
from CNN_LeNet import CNN_LeNet
model = CNN_LeNet()
criterion = nn.CrossEntropyLoss()
optimizer = optimize.Adam(model.param... | [
"wangzycloud@163.com"
] | wangzycloud@163.com |
3a42de5559607d37d3040ba6ae5a378abcc45257 | 3591ab22e1cc0fc1362f909017a8aa5c2b53bd92 | /FundNavSpiders/LeiGenFund.py | 61a013e9b179634dde51908a984a1dffba1e555d | [] | no_license | Wnltc/ggscrapy | ef7e9559ce6140e7147f539778e25fc7f6cbee4c | bf929112e14b875a583803fe92980fe67129bdac | refs/heads/master | 2023-03-15T22:00:45.377540 | 2018-06-06T02:19:14 | 2018-06-06T02:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,050 | py | from FundNavSpiders import GGFundNavItem
from FundNavSpiders import GGFundNavSpider
import json
from datetime import date, datetime
class LeiGenFundSpider(GGFundNavSpider):
name = 'FundNav_LeiGenFund'
sitename = '上海雷根资产'
channel = '投顾净值'
fps = [
{
'url': 'http://m.reganfund.com/we... | [
"songxh@go-goal.com"
] | songxh@go-goal.com |
10cb527262d0afb476d84a8a39e915cb704511c9 | a2911cf730510b7facaa1e0975edf23aea16d458 | /projeto_clientes/clientes/serializers.py | 7952f4e1e9a81f9e3d430913ba4f47bf3e3cc551 | [] | no_license | Gustavo-Br-Santos/api_clientes_django_rest | fdbb2c3f8842bf3cf435607802ae4b612238cd6c | b025e1ed5d12355deb4b196570f921aa1a45ab51 | refs/heads/main | 2023-02-08T14:20:21.480553 | 2021-01-02T01:36:52 | 2021-01-02T01:36:52 | 325,707,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | from rest_framework import serializers
from clientes.models import Cliente
from clientes.validators import *
class ClienteSerializer(serializers.ModelSerializer):
class Meta:
model = Cliente
fields = '__all__'
def validate(self, data):
if not cpf_valido(data['cpf']):
raise... | [
"gustavo.br.sant@hotmail.com"
] | gustavo.br.sant@hotmail.com |
01c8bff9cacd76f8143b112377aaff0552c81f94 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/73/usersdata/174/37158/submittedfiles/triangulo.py | f7f57035688a7678ea328f2c23e7fbde5c853f11 | [] | 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 | 488 | py | # -*- coding: utf-8 -*-
import math
a = float(input('Comprimento A:'))
b = float(input('Comprimento B:'))
c = float(input('Comprimento C:'))
if a>=b>=c>0 and a<(b+c):
print('S')
if (a**2)==(b**2)+(c**2):
print ('Re')
elif (a**2)>(b**2)+(c**2):
print ('Ob')
elif (a**2)<(b**2)+(c**2):
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
6301bd0540ed53f6274590817044bf53afc7c1ae | a06aa986c4eb387d4b4d30063c749fdb56153ea9 | /plugins/hw_wallet/qt.py | a5af50e84636f01cf52e82bca8cd0ff9215caaa0 | [
"MIT"
] | permissive | denariuscrypto/denariium | 5066a642af0a1836d92addadd453dffb4fa0a421 | 6d4b84d514fd7332737dbe5a991a030a6cd60ba7 | refs/heads/master | 2021-05-13T22:39:06.760871 | 2017-10-23T20:47:39 | 2017-10-23T20:47:39 | 116,492,522 | 0 | 0 | MIT | 2018-01-06T15:15:59 | 2018-01-06T15:11:51 | Python | UTF-8 | Python | false | false | 7,711 | py | #!/usr/bin/env python2
# -*- mode: python -*-
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2016 The Electrum developers
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without... | [
"carsenk@gmail.com"
] | carsenk@gmail.com |
8491af94ca39cdda47ba34d89058d13737d9aaca | bfbb7e18de1aa4a62a204d8b62192ac6ee93b66d | /bin/svn_fetch_commits.py | ffa1dca2aadeddba2b485939ee68eab7b84e5c8c | [] | no_license | jocelyn/SCMlogs | 5b0808b20048396d9e57bc92b43b48f5374f0bdf | f254120c5b40787a421386b882d8cf1d722bfbcf | refs/heads/master | 2016-09-05T18:14:32.417516 | 2012-05-21T06:16:18 | 2012-05-21T06:16:18 | 4,390,496 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,369 | py | #!/usr/local/bin/python
import os;
import sys;
import re;
#import shutil;
import datetime;
import popen2;
from string import atoi;
# Usage:
#
# script path_to_config_file
#
# Config file will be formatted like that:
#
# logfile=commits.txt
# logdir=/home/svn/logdir
# repository=h... | [
"github@djoce.net"
] | github@djoce.net |
df6f8da809ec9c01c25252655d09852b64d3c9da | 19c67345fe8ec17ea4196fed3141cd38133c16d6 | /random_forest/feature-engineering.py | 26863d5c1033e01b282d6c93798aa7ca434652cf | [] | no_license | sachinyar/machine-learning-in-spark-with-pyspark | c3f0e72d8ed85a51741c561a4cfe9d207d5f6439 | ba0642f55370e5933fdb6b37eddc164b2ae030d8 | refs/heads/master | 2020-06-22T18:14:58.232817 | 2019-06-07T03:26:14 | 2019-06-07T03:26:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | from pyspark.ml.feature import VectorAssembler
df_assembler = VectorAssembler(inputCols=['rate_marriage', 'age', 'yrs_married', 'children', 'religious'], outputCol="features")
df = df_assembler.transform(df)
df.printSchema()
df.select(['features','affairs']).show(10,False) | [
"hernan.c.vazquez@gmail.com"
] | hernan.c.vazquez@gmail.com |
0d887aaef5d61630968cc0569918c5c0cbe83892 | 682b8b44cb35f442140228ddf5d90b3436b896a4 | /01_Data_Analyst/02_Data_Analysis/08_pandas_series_vectorized_operations.py | ed0550b0822c55a53e65986be26b6d1d53e255df | [] | no_license | trenton3983/UDACITY | 955840136c72b4e82ffd8b0bd62c87894d64aaf0 | abe283d868284e130f02de9f4833de191f8dc71e | refs/heads/master | 2020-05-21T12:35:23.518321 | 2020-05-18T21:56:52 | 2020-05-18T21:56:52 | 134,120,109 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | import pandas as pd
# Change False to True for each block of code to see what it does
# Addition when indexes are the same
if False:
s1 = pd.Series([1, 2, 3, 4], index=['a', 'b', 'c', 'd'])
s2 = pd.Series([10, 20, 30, 40], index=['a', 'b', 'c', 'd'])
print s1 + s2
# Indexes have same elements in a differ... | [
"trenton_mckinney@yahoo.com"
] | trenton_mckinney@yahoo.com |
1911784cbc3e11dcd0f8e9d6b1e724c6cda07870 | 7855fc2958b04b46d4f4e83d0b9f6b457adbe91c | /Project/my_commentApp/urls.py | 451a178120ef0ed896a317e90c70e499eec92ffb | [] | no_license | LuMingFeiReal/lzjProject | 88f93ad4802ee16d118d87c8214c2f52daf0c945 | 9f9c734d8c212ce07f72f2d5e47c63f554cabc12 | refs/heads/master | 2022-03-23T22:59:28.583125 | 2019-06-21T06:46:03 | 2019-06-21T06:46:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from django.urls import path
from . import views
urlpatterns = [
# path('get_comment/<str:key>/', views.get_comment, name = 'get_comment'),
path('add_comment/', views.add_comment, name = 'add_comment'),
]
| [
"386857271@qq.com"
] | 386857271@qq.com |
1ca3b6dff3e81e4776d8a3bcc0bb5847e2726f99 | 9d33280cf2ef462804eed4c4f51dd693191bb788 | /gaohaiwai/settings.py | 79108a55165c3ee93624891e6e90bd7a90d54f2f | [] | no_license | lvku/gaohaiwai | bd25f1b92a3fe8b0d0a1ffc7a00f8a127967fc89 | 4b9ceb686d0be8c755480c87de4d8130a7a8eca9 | refs/heads/master | 2021-05-07T16:49:53.640613 | 2017-11-20T02:46:44 | 2017-11-20T02:46:44 | 108,683,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,105 | py | """
Django settings for gaohaiwai project.
Generated by 'django-admin startproject' using Django 1.11.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import ... | [
"hongmingli1988@gmail.com"
] | hongmingli1988@gmail.com |
5186be8224769c0178c6deae6adc01a92c3e121d | 07092f506257f6c4db460a04586c65dad92f3063 | /student_sys/student/migrations/0001_initial.py | 19e08dc07d9305ab0956e178ff555efd88a6db62 | [] | no_license | Violet-VE/student_messagement | 86622eaa4cde04355eec55ffacc1008b6f62532a | ebbb4f0fdf6c6cfcccbeda13eee768819899391d | refs/heads/master | 2020-06-02T00:35:26.385364 | 2019-06-09T08:19:41 | 2019-06-09T08:19:41 | 190,979,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | # Generated by Django 2.2.2 on 2019-06-07 13:05
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
('id', models.AutoField(... | [
"m.sakura.saber@outlook.com"
] | m.sakura.saber@outlook.com |
de81d198e36a28ad334958206d3187b48e5c690b | 60892d103282945bc12d7e81e2e8c0349e020442 | /predict.py | 2e4e0105266afe7d431c9011ee85ada92d60dff4 | [] | no_license | S-Maya/Tsukiji-fish_Machine-Learning | b89ecd555c97254fa929da4dce3b4babf62198b0 | ae9f6a97552b58669cbd64349ba38ac914a7e321 | refs/heads/master | 2022-11-07T15:11:42.773279 | 2020-05-10T14:47:26 | 2020-05-10T14:47:26 | 260,557,235 | 0 | 0 | null | 2022-09-30T19:02:45 | 2020-05-01T20:58:39 | Jupyter Notebook | UTF-8 | Python | false | false | 720 | py | ### YOU WRITE THIS ###
import os
from joblib import load
from preprocess import prep_data
import pandas as pd
import numpy as np
def predict_from_csv(path_to_csv):
df = pd.read_csv(path_to_csv)
X, y = prep_data(df)
reg = load("reg.joblib")
predictions = reg.predict(X)
return predictions
if __n... | [
"54159767+S-Maya@users.noreply.github.com"
] | 54159767+S-Maya@users.noreply.github.com |
8ebf7364f88d1f1fabd25cd184b44c4a4725b1ba | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2431/60668/302927.py | fde0d78fce890f17b957f82f0b5117e9cd2288ca | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | def tree_29_wide(s,k):
if s=="0 100":
if k=="150 750":
print(212.13,end='')
elif k=="0 1000":
print(291.55,end='')
else:
print(k)
else:print(s)
if __name__=='__main__':
m,n = input().split()
s = input()
k = input()
l = input()
ii = ... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
a520159790da1a022179186669023ec105abbdc6 | 8cce087dfd5c623c2f763f073c1f390a21838f0e | /projects/sphinx-click/test.py | fa3a3b271b1591d4f29a2c1955f2b59d29285eea | [
"Unlicense"
] | permissive | quinn-dougherty/python-on-nix | b2ae42761bccf7b3766999b27a4674310e276fd8 | 910d3f6554acd4a4ef0425ebccd31104dccb283c | refs/heads/main | 2023-08-23T11:57:55.988175 | 2021-09-24T05:55:00 | 2021-09-24T05:55:00 | 414,799,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | import sphinx_click
| [
"kamadorueda@gmail.com"
] | kamadorueda@gmail.com |
18b2aa782fb799a67516b52b792295ede0f6227a | 4a020c0a492d931f7da5c452c9569fba06703686 | /testing/web-platform/tests/tools/wptserve/wptserve/constants.py | a5a2f76445b270513df3377699efbbf93a7fe34c | [
"LicenseRef-scancode-w3c-03-bsd-license",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rbernon/wine-gecko | 353173511a790127ffa2ad39d630b8a0dcbbf5bf | 550ad9eac229b769992f421ce9492ca46edabaa0 | refs/heads/master | 2023-08-06T21:25:26.836672 | 2020-11-30T12:47:56 | 2021-09-30T08:14:19 | 411,965,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,623 | py | from . import utils
content_types = utils.invert_dict({"text/html": ["htm", "html"],
"application/json": ["json"],
"application/xhtml+xml": ["xht", "xhtm", "xhtml"],
"application/xml": ["xml"],
... | [
"rbernon@codeweavers.com"
] | rbernon@codeweavers.com |
af3703dda4d67217bd57ca2c5fcf483621f26bc8 | 52492c659a1e141ef70947ede51b7726fc285ecb | /manage.py | d621593e474f4397411f10064b651e8d97bec346 | [] | no_license | xiajieok/Django_share | 4584a56f6eefb3926308a687f470390dfedee3d8 | ee12bff25cc86658324ebd0c4c7918c1f2b8b07d | refs/heads/master | 2021-07-20T10:13:15.474868 | 2017-10-29T14:44:26 | 2017-10-29T14:44:26 | 108,742,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ZOO.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"xiajieok@gmail.com"
] | xiajieok@gmail.com |
cabb53e698d48c0037ea1014120e0ec6a0618cf2 | dfb474b20cf7e35d7d2c90b4ad4ff70b84c0a27e | /weather/migrations/0001_initial.py | c6e0249f0c0207d48e1c27bac9f1723343858b1a | [] | no_license | sivaneshl/django_weather | 7b26df40ce0511ca74b7e7f0056fff84676ff48b | 7d0530f4a9843583ae88979fe9175442929bbd1b | refs/heads/master | 2022-11-25T09:59:25.339618 | 2020-08-02T18:59:34 | 2020-08-02T18:59:34 | 284,511,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | # Generated by Django 3.0.8 on 2020-08-02 18:37
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='City',
fields=[
('id', models.AutoField(aut... | [
"sivanesh.l@gmail.com"
] | sivanesh.l@gmail.com |
529099957ea2aae422390a42ae9646b5e661ce94 | 9736354690fe993b05da7c29f467d4f18077ca77 | /allInstall/sub/gpu_deeplearning/resources/sample.py | 3731227c26ef51553625c1e591498dbb26fcc462 | [] | no_license | felidadae/_general | 4fb4bbd6a0aa1af5b148d72e40a41eed84c09eda | 739fa9947a2992493848e836be7a030118ec222a | refs/heads/master | 2021-10-12T01:48:53.093775 | 2021-09-28T17:30:51 | 2021-09-28T17:30:51 | 70,048,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | from theano import function, config, shared, tensor
import numpy
import time
vlen = 10 * 30 * 768 # 10 x #cores x # threads per core
iters = 10000
rng = numpy.random.RandomState(22)
x = shared(numpy.asarray(rng.rand(vlen), config.floatX))
f = function([], tensor.exp(x))
print(f.maker.fgraph.toposort())
t0 = time.tim... | [
"s.bugaj@samsung.com"
] | s.bugaj@samsung.com |
7034296f573c9cad883dc4d3d04c799c7699ccb5 | 4a1a3375b24a44be6c2926eb3dd2c18d8c23ebf9 | /test/nn/test_utils.py | af0081ccf4dd7233202326e6342a33311ea0286a | [
"MIT"
] | permissive | sufeidechabei/pytorch_geometric | a4a48339f4f115bee2973bb49ead71ee595d7ed3 | 3b478b2f9721f35cd1c93f7f8592691ad8f8a54d | refs/heads/master | 2020-04-13T19:14:50.187401 | 2018-12-28T09:04:09 | 2018-12-28T09:04:09 | 163,396,833 | 1 | 0 | null | 2018-12-28T10:16:45 | 2018-12-28T10:16:45 | null | UTF-8 | Python | false | false | 1,398 | py | import torch
from torch.nn import Sequential, Linear, ReLU
from torch_geometric.nn.repeat import repeat
from torch_geometric.nn.inits import uniform, glorot, zeros, ones, reset
from torch_geometric.nn.reshape import Reshape
def test_repeat():
assert repeat(None, length=4) is None
assert repeat(4, length=4) ==... | [
"matthias.fey@tu-dortmund.de"
] | matthias.fey@tu-dortmund.de |
58e9db199bec99f303592039f16a4d75df8235cd | 0bf5d64e895d824a64fa5f044ac5a684721bfb79 | /005 Functions.py | ba6db0e16a09c88e3b89ddce2a4036068f8ce56c | [] | no_license | nikio8/Python | ae7be8049d25f08a31a6bf68dfebb4899c9507e1 | 411774cbef096ef30cf60513a3dea18173e1560d | refs/heads/master | 2022-11-17T12:02:27.567585 | 2020-07-14T14:46:42 | 2020-07-14T14:46:42 | 279,603,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | import sys, time
def a():
print('a() starts')
b()
d()
print('a() returns')
return "a"
#sys.exit()
def b():
print('b() starts')
c()
print('b() returns')
def c():
print('c() starts')
print('c() returns')
def d():
print('d() starts')
print('d() r... | [
"noreply@github.com"
] | noreply@github.com |
ea3f5d69d1a19ea68360500b035b8d1a09f3dda9 | 319731c4788fb82813f81a63cac3f23171285815 | /config/settings/production.py | 9c9aa6aad0038ff0f50cfbea1d4136e5e4c30668 | [
"MIT"
] | permissive | seankim84/djangoproject | 2171abac27c2fc41d5d2ac8a0f86fa6772c10439 | dc442098d8e17beff086f3acd325f8fca3b41583 | refs/heads/master | 2022-12-13T23:01:53.078813 | 2018-05-16T13:19:50 | 2018-05-16T13:19:50 | 130,310,410 | 1 | 0 | MIT | 2022-12-09T08:30:55 | 2018-04-20T04:49:40 | Python | UTF-8 | Python | false | false | 8,824 | py | import logging
from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
SECRET_KEY = env('DJANGO_SECRET_KEY')
# https://docs.djangoproject.com/en/dev/ref/settings/#allow... | [
"rebekahpark@Rebekahs-MacBook-Pro.local"
] | rebekahpark@Rebekahs-MacBook-Pro.local |
f72c7cc9580ffab45275c9f840da479c77826ccf | a64bf8ce8e52b257ad904909097a25d0affe8a47 | /_python_sources/p1/DATABASE/Python_Learn/test4.py | f0a9470d3bdafb6f2477aeec121c5ca7651e6ba7 | [] | no_license | nguyenvanhuy0612/html_local | 4064f76df0e53678b775879c6579cc85a91952f4 | ed845f8c0eeca4c3ab8636459d1f1e9204ad3306 | refs/heads/master | 2023-03-26T04:50:40.768981 | 2021-03-18T15:25:00 | 2021-03-18T15:25:00 | 303,089,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | l1 = [1, 2, 3, 4]
l2 = [5, 6, 7, 8, 9, 10]
for a, b in zip(l1, l2):
print(a, " - ", b)
l3 = list(range(0, 10))
print(l3)
for i in range(0, 10):
print(i, end="-")
print("")
l4 = range(10)
print(l4, type(l4)) | [
"nguyenvanhuy0612@gmail.com"
] | nguyenvanhuy0612@gmail.com |
9fb3b54392d38705e056639aa5a10ff70b4f8ee6 | b51f819d729bc59307d452a529a75a68bee64b58 | /91.py | 8bfaf35a702c3dcd1fe0a34defa2f69c8fcd43c0 | [] | no_license | veqcc/nlp100 | 2c8743307d259eea8ea7fd7314d8ea8a49e5bbb9 | 22a6d278a54855d971c2f39a8b12966028a38b66 | refs/heads/master | 2020-03-25T01:35:57.575294 | 2018-08-14T05:01:43 | 2018-08-14T05:01:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | fname_input = 'questions-words.txt'
fname_output = 'family.txt'
with open(fname_input, 'rt') as data_file, open(fname_output, 'wt') as out_file:
target = False
for line in data_file:
if target is True:
if line.startswith(': '):
break
print(line.strip(), file=out_... | [
"kambe3141@gmail.com"
] | kambe3141@gmail.com |
dfeab4ae03e94a5052960d47d109cee06f27245a | d79843911cde0ce05171a97423c4aa6db7fe7118 | /build/CreateGraph.py | af19ec09cca036fd0d7d15de01795edaea935af4 | [] | no_license | Razzis/projet_velib | fcedd8af50d2fd4135d7cf95bd0d6d9c2a97aaab | c7ca6e140ffc9b12b1c26867aa57aee084851e63 | refs/heads/master | 2021-01-10T16:12:50.561594 | 2016-01-07T12:34:03 | 2016-01-07T12:34:03 | 47,836,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | # -*- coding: utf-8 -*-
"""
Éditeur de Spyder
Ce script temporaire est sauvegardé ici :
/home/hassan/.spyder2/.temp.py
"""
import csv
import matplotlib.pyplot as plt
import numpy as np
plt.clf()
cr = csv.reader(open("Recuit2.csv","rb"))
cr2 = csv.reader(open("Recuit2.csv","rb"))
row_count = sum(1 for row2 in cr2)
... | [
"lucashassan@hotmail.fr"
] | lucashassan@hotmail.fr |
68fcc0c58c66db20a96c5a3cf120717de4b740bf | 12c94c446a07985b5c2f9f212bd4744a245f0f3b | /python/Datacenter.py | c643cfd44d9fdda6918df5444eb8844b071f3dde | [] | no_license | tarfaasima/cloud-simulation | 323cdbca841c5acea4e7c5b3239393b90d4c1cd5 | f31518bb436feb91209f7aa05e92ac2b9876701f | refs/heads/master | 2020-12-30T10:36:22.567249 | 2012-06-02T18:21:01 | 2012-06-02T18:21:01 | 33,784,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | from Server import Server;
class Datacenter:
def __init__ (self,servers):
self.servers = servers;
def get_max_cpu(self):
max = 0;
for server in self.servers:
if server.cpu > max:
max = server.cpu;
return max;
def get_total_cpu(self):
total_cpu = 0;
for server in self.servers:
... | [
"hossam.saraya@gmail.com@85c2fadc-aa57-5d8c-a354-cfe211b09889"
] | hossam.saraya@gmail.com@85c2fadc-aa57-5d8c-a354-cfe211b09889 |
8a7351694a71a7374ecd6b92b2ba5ac0e73b83bb | 6c49b05ef5ce5226d4a8d42172eca6d443aa525a | /prova/Notebook.py | 57a480eb993d9dd715a9d6fded342a5bfa3abd54 | [] | no_license | RichardMatteus/AlgoritmosAtividades | 24046ef69ec2df7de9f5202a62b5ba091a06a014 | 68504ac3c8266a29290ec4952891675eeed8526a | refs/heads/main | 2023-06-22T08:04:53.448236 | 2021-07-18T18:27:16 | 2021-07-18T18:27:16 | 351,598,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | from Computador import Computador
class Notebook(Computador):
def __init__(self, modelo, cor, preco, tempoDeBateria):
Computador.__init__(self, modelo, cor, preco)
self.tempoDeBateria = tempoDeBateria
def getInformacoes(self):
print('Seu Notebook é um %s %s que custou R$ %s. Sua bateri... | [
"richardmatteus96@gmail.com"
] | richardmatteus96@gmail.com |
e3a595c05567f5a79aee21c2ee1e1a28e4f38899 | 31377fbc7f85c18cf644660208f019f4f8480b82 | /soonmeet_api/manage.py | 135de7bd680ca3d6694a812f972392e82e9aea83 | [] | no_license | matgd/BSc-Thesis-Backend | 07bc143dcea55aff5b8061334730184cc958d322 | 941a0b90e131804b3ff439a35e37f0c29ab850d6 | refs/heads/master | 2023-04-23T12:06:27.275259 | 2021-05-01T15:26:32 | 2021-05-01T15:26:32 | 285,857,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'soonmeet_api.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"matgd@users.noreply.github.com"
] | matgd@users.noreply.github.com |
758707d59bfdbd8d8222389e25438b2cf6ffa90a | 865da1c5c322d8d23c319c657450d7470d1710be | /X+0 - main.py | d974c85682af678da501e2504f345b2f250b8ebb | [] | no_license | Quickmotions/X-O-game-python | d2d8cab933b3eb1118263363b785d530f86a61ad | 5579e92a6bf34066bd5426be9257e12a3bdf65d6 | refs/heads/master | 2023-01-18T18:59:01.785403 | 2020-11-17T11:26:40 | 2020-11-17T11:26:40 | 291,131,181 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,865 | py | #imports
import random
import time
#modules
def playerChoice():
boxChoice = 0
Choice = ""
if gameRunning == True:
time.sleep(0.5)
print("make first move")
Choice = str(input("Enter a number between 1 and 9: "))
while boxChoice == 0:
if Choice == "1" or Choice == "2" or Choice ... | [
"noreply@github.com"
] | noreply@github.com |
5ef229b7e8ffe1fd6e506214f4574a932bdf561c | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /CondTools/IntegrationTest/python/validate_dt_orcon_cfg.py | a1aaab0a17d8bfc6ba547ce4cb804c635d78318a | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 1,754 | py | # The following comments couldn't be translated into the new config version:
# Configuration file for EventSetupTest_t
import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.PoolDBESSource = cms.ESSource("PoolDBESSource",
loadAll = cms.bool(True),
toGet = cms.VPSet(cms.PSet(
r... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
f91c7f5beb8992a95e9e7ab04abb15dd31857734 | 63cad4aecb02ee1a033567ea793c477c5bb14eed | /setup.py | 2add6d8b2b6557e03ee2c6d2f1950246e25c8ed3 | [
"MIT"
] | permissive | aadilk97/hw01 | 84269f548ec98554ea765ae48f1aac72c29d322b | f970de80ab73ee27eb218cadd7b18ad8ea458654 | refs/heads/master | 2022-12-03T08:59:13.117275 | 2020-08-17T16:55:47 | 2020-08-17T16:55:47 | 287,400,599 | 0 | 2 | MIT | 2020-08-17T03:48:19 | 2020-08-13T23:38:56 | Python | UTF-8 | Python | false | false | 331 | py | from setuptools import setup
setup(
name='group_15',
version='v1.0.0',
description='Homework_1 : Making a Good Repository',
author='Aadil Anwar Khan',
author_email='akhan23@ncsu.edu',
license='MIT',
packages=setuptools.find_packages(),
python_requires='>=... | [
"bhavesh.agrawal242@gmail.com"
] | bhavesh.agrawal242@gmail.com |
571d7847b6e6c7876fee1f75432242e0957b968b | 28668937152aea6677f54b25c976ded8d589a398 | /wechat/wechat/service/mods.py | f80ba85198caebfa3882578dfbf4fb6ec5cf0b37 | [] | no_license | MemoryAndDream/wechat_new | 82715631d33c07360b931afd5e8d617fdf59eb6b | 4968aa80c88aa5c694c3fc8bf7b126003312359e | refs/heads/master | 2021-09-01T13:58:08.851808 | 2017-12-27T10:02:55 | 2017-12-27T10:02:55 | 115,470,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | # encoding: utf-8
"""
@author: Meng.ZhiHao
@contact: 312141830@qq.com
@file: mods.py
@time: 2017/12/27 14:45
"""
from ..crawler.common.crawlerTool import crawlerTool as ct
#根据输入模式命名mod ,mod比如 pan,qgg 用于一个后台支持不同的功能,比如可以根据公众号id设置不同逻辑
def mod_check(input):
mod = 'qgg'
return mod
| [
"312141830@qq.com"
] | 312141830@qq.com |
052b15746dc7c72daafc731c4320863656a577e4 | d3f0698c9df956c7028432102e88e282232aa9ca | /bookshelf/filters.py | 2fbd38637e66f3b58e167d5b257c02afc68baa89 | [] | no_license | aaaaasv/library | 224582cd63246020ee4ce28feffa53070c71356b | 08b79803a8cd91e1187ee6dac0131e644d5b2b1a | refs/heads/master | 2023-03-27T01:29:00.251923 | 2021-04-01T14:30:00 | 2021-04-01T14:30:00 | 255,107,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | from django import template
register = template.Library()
@register.filter
def get_status_color(status):
colors = {'A': '#00FF7F', 'N': 'red', 'available':'#00FF7F'}
return colors[status]
@register.filter(name='has_group')
def has_group(user, group_name):
return user.groups.filter(name=group_name).exists... | [
"aaaaasv@users.noreply.github.com"
] | aaaaasv@users.noreply.github.com |
33df551f6e64453acd8d848d9e972a7826f2eb73 | e70ce09d649d8d51ccbba15810e2ea03e9fd49e5 | /config/api_router.py | d4b0101e7ec15a64bbea708b44a21aedf7a98c0a | [
"MIT"
] | permissive | moisesmayet/ovu | a4df0dc3ff51f3dd8cbd6a7baca68a67304274bc | 50d7700f53524dc3ee74c7669bc3476342013793 | refs/heads/main | 2023-07-30T09:00:40.913992 | 2021-09-14T12:35:45 | 2021-09-14T12:35:45 | 406,226,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | from django.conf import settings
from rest_framework.routers import DefaultRouter, SimpleRouter
from ovu.users.api.views import UserViewSet
if settings.DEBUG:
router = DefaultRouter()
else:
router = SimpleRouter()
router.register("users", UserViewSet)
app_name = "api"
urlpatterns = router.url... | [
"moisesmayet@uapa.edu.do"
] | moisesmayet@uapa.edu.do |
f859fc57667f8bed51b042f8d1c2df2142e5cd3e | 07ef79cf5c54c492f58174f09aa8e3f01f6ddff8 | /5_1.py | 70b89d4c0e9ffc3e50f9991121e170e6d815a481 | [] | no_license | AlexandrKnyazev238/Knyazev_Alexandr_DZ_5 | 3c2352b4d68d7f073c3fbc9d6cfddd195c93e2e1 | f852fba1961d56ab42b8b3d19bdb7fc63ebc4416 | refs/heads/main | 2023-08-11T02:54:59.274426 | 2021-10-14T17:32:15 | 2021-10-14T17:32:15 | 417,223,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | # Task 1
def odd_nums(num):
for num in range(1, num + 1, 2):
yield num
for i in odd_nums(int(input('Перед Вами генератор нечетных чисел от 1 до n (включительно),'
' введите пожалуйста число n: '))):
print(i)
# def odd_nums(n):
# for odd_num in range(1, n + 1, 2):
# ... | [
"noreply@github.com"
] | noreply@github.com |
30115bbe8fa2933607723a3ce6b73ae268df8cde | 4a3e4c20cc7de2e80ed038bbfe9b359ba75daf07 | /configs/RS-data/VHR10/Faster-RCNN/CBAM/cbam-r101-Backbone-R32.py | 21195a128ff7eb1db6b308a335ce55155d04adec | [
"Apache-2.0"
] | permissive | CLIFF-BOT/mmdetection-1.0 | b0b4f9b5586476f96ef55cf68373110f28e503a7 | a16a7c6a8f0bf029100b85f0bd1b64093e7809af | refs/heads/master | 2023-01-02T07:02:35.496174 | 2020-10-29T03:26:18 | 2020-10-29T03:26:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,654 | py | # model settings
model = dict(
type='FasterRCNN',
pretrained='torchvision://resnet101',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=True),
style='pytorch',
... | [
"nicholasirving@outlook.com"
] | nicholasirving@outlook.com |
4e34bf3f441b315b9c80825f31985e81b6195334 | 6fffacd69b4f642015520d6a5da079466d32bc1d | /carts/migrations/0043_auto_20191108_2058.py | 5efbcb1d8e5f4dc435f175c9059b8010e7b07898 | [] | no_license | imroon1/tost | 8a690f5ee446a11e3f8f653a5ca26233192dd450 | 7c95ec7a9a42bd842e4292d73cf9b0b6878f7ecb | refs/heads/master | 2023-04-19T16:36:50.346763 | 2021-05-02T20:52:51 | 2021-05-02T20:52:51 | 363,496,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2019-11-08 13:58
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('carts', '0042_auto_20191108_2050'),
]
operations = [
migratio... | [
"samroonsamroon@gmail.com"
] | samroonsamroon@gmail.com |
dc7622e0e4556561ca421421ef3bccbb992e6ce5 | 45011a024f60be876779250f25ac23a7039e652c | /my_app/urls.py | 8130e646b507ac5f0650c32ed7d9ad35d66922a1 | [] | no_license | dileepchil1995/search-engine | 7be5c0966b64aa7663e5c3c0edd4b21854c4d9c5 | 956cab826d2b5d83156635cb8cf1be7862995269 | refs/heads/master | 2022-12-02T02:33:29.142824 | 2020-08-18T03:02:35 | 2020-08-18T03:02:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.home, name='home'),
path('new_search', views.new_search, name='new_search'),
] | [
"dilip.chilakapati1995@gmail.com"
] | dilip.chilakapati1995@gmail.com |
1b49e774373cbe65993cd5433ebc95da1431277d | 88e10553a2ca169a24f919582208c195f479827d | /api/wiki/__init__.py | 675a4fa3251364d176f4e42ebd963d542631a263 | [] | no_license | Jamba777/wiki | e6055823c85545e692236e586d06f264867aba97 | 480469dc4f22526fc6a66241e26b5918eab34d24 | refs/heads/master | 2023-07-25T01:40:09.182914 | 2023-07-17T15:32:20 | 2023-07-17T16:33:55 | 167,555,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | default_app_config = 'api.wiki.apps.WikiConfig' | [
"a71d97l747@gmail.com"
] | a71d97l747@gmail.com |
15dab3acd9bfe7df5a470c2924edd5a0932585fb | 1b62a66e8d7b2bbdfce222b53d2ab05202291f4b | /hs_info/models.py | 57b5c9eb24565c88c2a586fc99a7f24ee3f0e241 | [] | no_license | lotaku/hushua_old | ca7c1aecfa1d344c262e61378b6a795c8ed6e866 | 665a4a13fdf7f0e59a0e3db136a94d53b997d321 | refs/heads/master | 2020-04-20T00:11:34.948600 | 2014-08-12T14:53:34 | 2014-08-12T14:53:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # encoding: utf-8
from django.db import models
# Create your models here.
class HsInfo(models.Model):
#小号要求
week_limited = IntegerField(null=True, blank=True)
month_limited = IntegerField(null=True, blank=True)
is_seller = BooleanField()
# name = models.CharField(max_length=100, null=True, blank=True)
#... | [
"317399510@qq.com"
] | 317399510@qq.com |
23b478ca3f8ce31e060211d4f13d1c7e10bed220 | a381cdbd28899ba5fb8f98b0974659be3161919c | /Python/MultiplicationQuiz.py | 69729289d01eaa56b1ea9572d464fc1bfa047a0c | [] | no_license | TheRealChrisM/CVGS-Computer-Science | 6d9644f6ea05cec846f511874469c409983bcbad | c6e18644628fe6f78988837ea5146d65da9792e3 | refs/heads/master | 2020-07-07T15:12:47.555359 | 2020-05-15T03:03:35 | 2020-05-15T03:03:35 | 203,385,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,239 | py | #Christopher Marotta
#Lab Assignment 8/20/19 Part 2
#import modules
import random
#global variables
numCorrect = 0
#Generate first problem
firstNum = random.randint(1,9)
secondNum = random.randint(1,9)
#print first problem
problem = str(firstNum) + " x " + str(secondNum) + " = "
answer = eval(input(problem))
#check ... | [
"marottachristopher@gmail.com"
] | marottachristopher@gmail.com |
e1b1e493e9f4053d3e5a580041c774a2a73ca7e0 | 55983026405316f2fc6de40291022544a4a1be5d | /PartI_Introduction_To_Programming/Video6_Intro_To_Programming/ex3.py | c21fdec2980245694ccf1600095f0a8aff5a5480 | [] | no_license | deborabr21/goselftaught | 3fd8cf9bb7119b2665101b950de5eac083d0d410 | 04919ce8db8e2bf7a6595ff822791a2d6c95dda5 | refs/heads/master | 2022-12-22T00:37:48.538075 | 2020-09-16T20:11:01 | 2020-09-16T20:11:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | print("Hi!")
print("Hola!")
| [
"praveenn069@gmail.com"
] | praveenn069@gmail.com |
8a9eb7d220a36d94c1828bbdfe17421cfd1fefbc | b3f0ea3c87e9d615b4948f6278cd3ec5a8036810 | /manage.py | ac730e29454568de01c862efa2f85098ae8258ce | [] | no_license | conradnoggt1/hospital1 | 4c9d4d25b6ed9e9f9cd68c236f331f839e6b2bb6 | 442049ab10db18db95edd995c78f51e18885cdf1 | refs/heads/main | 2023-01-15T07:35:20.160822 | 2020-11-09T16:54:57 | 2020-11-09T16:54:57 | 312,584,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'prjHospitais.settings')
try:
from django.core.management import execute_from_command_line
except... | [
"56921696+Perazza@users.noreply.github.com"
] | 56921696+Perazza@users.noreply.github.com |
82cd6e743cc6c4d4ee9f79f366807737015ccc46 | dbd67c9841f7dc1e1fe62a5f3e268f24107b91dc | /nn_based_test.py | 0fd8f77e6a9dea5f43661bee7ebb33a0e19c98ae | [] | no_license | hinanmu/NN-based | 9a4f262ddc8f40146c46dfa310528a3423c7d8b4 | d2a0e84f47b27d778ee211b7df88d68aae2d8b1d | refs/heads/master | 2020-04-07T11:45:16.363274 | 2018-11-22T13:15:04 | 2018-11-22T13:15:04 | 158,339,282 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,693 | py | #@Time :2018/10/31 22:23
#@Author :zhounan
# @FileName: nn_based_test.py
import numpy as np
import tensorflow as tf
import evaluate_model
from sklearn.linear_model import Ridge
from sklearn.externals import joblib
from sklearn import metrics
def predict(x_test):
with tf.Session() as sess:
saver = ... | [
"hinanmu@gmail.com"
] | hinanmu@gmail.com |
52170475bb3e4e2512553f18cf6180eb8ff63de9 | 1187f02013f2c0d785e8a12701226d4c99fea48d | /4153번 직각삼각형.py | d6cba8ccf5891ba4bf61bcc2f283bce6ad05ee24 | [] | no_license | rheehot/BOJ-Algorithm | 5b2745a648fd635aa727b84afa2a4787ee07c507 | 7aae709fb193f228ef7c2d5accee6af9ecc19090 | refs/heads/master | 2023-04-20T23:42:53.271984 | 2021-05-07T09:08:12 | 2021-05-07T09:08:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | import sys
while True:
a, b, c = map(int, sys.stdin.readline().split())
if a==0 and b==0 and c==0:
break
else:
tri_len = [a, b, c]
max_num = max(tri_len)
tri_len.remove(max_num)
if max_num**2 == tri_len[0]**2 + tri_len[1]**2:
print('right')
... | [
"noreply@github.com"
] | noreply@github.com |
0776a2b4efb3e70fbd7d48a18f1f1ee9744424a6 | b652b6a0db3457d5d0b6963c6cc5ba2ce47a8553 | /filtro_imagen.py | 8ddab82ead19b5abe9981c3527991c59b2e72089 | [] | no_license | enzote84/pyrm | 2c5d955c4b6657f4528abc79d328961a378390a8 | 4e3f80d16cd8f7276447e9b7189541c7948e8679 | refs/heads/master | 2022-10-22T18:39:50.065970 | 2020-06-12T15:58:12 | 2020-06-12T15:58:12 | 271,836,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | #
# DEMR
#
# clase: FiltroImagen
#
# 2013-Oct-21
#
# importar la clase Imagen.
import imagen
class FiltroImagen(object):
"""
Clase base de una jerarquia de clases de filtros.
Esta clase es abstracta, ya que no tiene sentido implementar un
filtro sin una forma particular de filtrar.
Todos los filtr... | [
"davidenzomedina@gmail.com"
] | davidenzomedina@gmail.com |
c85a9af5044f046d9639c71232a32ea33ce08302 | fa321ca6047e62336eb0e840f1fa39c6ded3c6f8 | /InferenceRESTful/Engines.py | 5f5a6f620d1664ce113136122a27be7b01a15fbb | [] | no_license | AshishKumar4/Sketchula | 0f7089870b7241d3e1fa2854633a097e4288efde | 0239a06b9309202871a5c36bc7a77657a3e04fb3 | refs/heads/master | 2022-03-04T09:07:56.062769 | 2019-06-25T05:39:51 | 2019-06-25T05:39:51 | 193,306,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,668 | py | import torch
import torch.nn as nn
from torch.nn import init
import functools
from torch.optim import lr_scheduler
import os
from torchviz import make_dot
from PIL import Image
import numpy as np
import cv2
import torchvision.transforms as transforms
from photo_wct import PhotoWCT
from process_stylization import *
im... | [
"ashishkmr472@gmail.com"
] | ashishkmr472@gmail.com |
71520d31740ea00d99a88c166c5c8f1a7b9f67b5 | b3b82d954fafaf1912341cddb27431637532ee4e | /tests/config_tests.py | 0450a6fb3fd7a4880d9de1faeace4bf2b72cff69 | [
"Apache-2.0"
] | permissive | nickmaccarthy/Tattle | b22fb3b7505c097433d7a4d226aa1bc703c1f00b | b3ef57b90b804ae62124803a92c828ef80d8e8b2 | refs/heads/master | 2022-07-08T10:20:20.979486 | 2018-11-03T22:38:31 | 2018-11-03T22:38:31 | 58,227,173 | 10 | 1 | Apache-2.0 | 2022-03-29T21:53:16 | 2016-05-06T18:31:31 | Python | UTF-8 | Python | false | false | 933 | py | import sys
import os
import re
import datetime
import time
import yaml
import json
from pprint import pprint
TATTLE_HOME = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
os.environ['TATTLE_HOME'] = str(TATTLE_HOME)
sys.path.append(os.path.join(TATTLE_HOME, 'lib'))
sys.path.append(os.path.join(TATTLE_H... | [
"nickmaccarthy@gmail.com"
] | nickmaccarthy@gmail.com |
8fd27afe4b05c860b53b3f44856f5d94cb24ab91 | 1aab2aa3e00ec2d5f3078d2573ba7256438508a8 | /planeks/urls.py | 22cd287b51ad3996bd6c5e11ed96f4fb5f684bd0 | [] | no_license | crocodundee/planeks | fe10b417025bdecd01b84c2ec1114e7d9e88f616 | 49f5318ed8244e1240292f1ff20dfaa550219c4b | refs/heads/develop | 2022-02-13T13:02:41.793180 | 2020-03-15T16:00:10 | 2020-03-15T16:00:10 | 244,957,422 | 0 | 0 | null | 2022-01-06T22:41:58 | 2020-03-04T17:06:22 | JavaScript | UTF-8 | Python | false | false | 526 | py | from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
from django.urls import path, include
from posts.views import PostList
urlpatterns = [
path('', PostList.as_view(), name='home'),
path('post/', include('posts.urls')),
path('user/', include('users.u... | [
"anastasia.didan.asm@gmail.com"
] | anastasia.didan.asm@gmail.com |
fc76f26de5ed891c29829aaa79d4c9b0e43e00bf | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_219/ch4_2019_03_14_18_25_45_666376.py | 58b1c4b3456ddc1302a823856e76d8b79a964285 | [] | 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 | 132 | py | y=int(input('Digite sua idade'))
if y<=11:
print('crianca')
elif 12<=y<=17:
print(' adolescente ')
else:
print('adulto') | [
"you@example.com"
] | you@example.com |
b00d1e150b8f1831bb6b86fecb601cf6c46d1143 | 91fe96f88a17d373e51654028d8e2cdd99728a21 | /mmdet/datasets/pycoco/mask.py | cb7b2bcd0f74f48f8eb0cb249334dc9095138976 | [
"Apache-2.0"
] | permissive | liusurufeng/NucleiDetSeg | ab8639872ffedd2648e4b38af5528ecc89119cbe | ad4040a359e52c611780b409f84b601bfa9c94e2 | refs/heads/main | 2023-07-26T18:45:22.646575 | 2021-09-01T08:14:57 | 2021-09-01T08:14:57 | 461,822,842 | 1 | 0 | Apache-2.0 | 2022-02-21T11:05:01 | 2022-02-21T11:05:00 | null | UTF-8 | Python | false | false | 4,630 | py | __author__ = 'tsungyi'
import pycocotools._mask as _mask
# Interface for manipulating masks stored in RLE format.
#
# RLE is a simple yet efficient format for storing binary masks. RLE
# first divides a vector (or vectorized image) into a series of piecewise
# constant regions and then for each piece simply stores th... | [
"m18379660828@163.com"
] | m18379660828@163.com |
7cd0df23037dfbb63476a900d925ef74e307a639 | fdeac2cbbfef7d22061de15459ffa18f00eda0af | /publisher.py | 8f3a7b05126b381de9b8e6f7763feb6f9e419236 | [] | no_license | maheshgprasad/mqtt_paho_demo | dbb2cd42453b11b29f13f82af773d53c145c6df2 | 80c9ba949c925896901b8d326f3655aa2b0f6777 | refs/heads/master | 2022-12-11T05:45:30.241522 | 2020-08-25T09:20:25 | 2020-08-25T09:20:25 | 276,313,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | # Import package
import paho.mqtt.client as mqtt
# Define Variables
MQTT_HOST = "test.mosquitto.org"
MQTT_PORT = 1883
MQTT_KEEPALIVE_INTERVAL = 5
MQTT_TOPIC = "ShadowPlay"
MQTT_MSG = "Kubuntu is awesome"
# Define on_connect event Handler
def conn (client, userdata, flags, rc):
print ("Connection to MQTT Message Bro... | [
"42564944+maheshgprasad@users.noreply.github.com"
] | 42564944+maheshgprasad@users.noreply.github.com |
334ac5b602b3fabac848a9a29c90de607b05ae6d | d6993ab888beef9fd6df0b48ad7eb3669a350914 | /config/config/settings/base.py | 121e0d32440393786d583370d101a61dc4e71911 | [] | no_license | dskym/Mondey | 3214e0dbca2de3aabafb34a3a01d4da941db2b1d | 6feef54c1a566871ccab91367dff1a4e669e11c1 | refs/heads/master | 2022-04-04T12:55:07.796560 | 2020-02-22T15:29:09 | 2020-02-22T15:29:09 | 211,677,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,141 | py | """
Django settings for config project.
Generated by 'django-admin startproject' using Django 2.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
imp... | [
"dskym@naver.com"
] | dskym@naver.com |
2fc62581d21ba5e0d9531a665125e34b6e4b25f9 | 8a42be3f930d8a215394a96ad2e91c95c3b7ff86 | /Build/Instalation/GeneralDb/Marathon/MarathonTests_1.1/linux_HSQLDB_Edit/TestCases/Y1_NamedFldTests/Filter/Filter035_TextGT.py | d2606ef2bcfb6fbb6ba5439919f5a3ceb57e15ed | [] | no_license | java-tools/jrec | 742e741418c987baa4350390d126d74c0d7c4689 | 9ece143cdd52832804eca6f3fb4a1490e2a6f891 | refs/heads/master | 2021-09-27T19:24:11.979955 | 2017-11-18T06:35:31 | 2017-11-18T06:35:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,798 | py | useFixture(RecordEditor)
def test():
from Modules import commonBits
java_recorded_version = '1.6.0_22'
if window('Record Editor'):
select('File_Txt', commonBits.sampleDir() + 'csv2DTAR020_tst1.bin.csv')
click(commonBits.fl('Edit') + '1')
select_menu(commonBits.fl('Edit') + '>>' + commonBits.fl('Upda... | [
"bruce_a_martin@b856f413-25aa-4700-8b60-b3441822b2ec"
] | bruce_a_martin@b856f413-25aa-4700-8b60-b3441822b2ec |
5aaa5ca1cdf8b8e0069131223b397f5c3e45cfae | cb2906739969b0f57eac4e688dda7ec617af64a6 | /usbCam.py | 60de41d396fec800b3a1ed2341aa6d2f16527e37 | [] | no_license | Pfenni73/USB-Cam | 058f38afad6631f0045251e61321a533024663d2 | 995aa6f061d5a35ed53f0b21ddc186b9ed9a9078 | refs/heads/master | 2020-03-21T00:34:55.376592 | 2018-06-19T15:34:34 | 2018-06-19T15:34:34 | 137,899,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | class UsbCam():
import os
import datetime
import time
def __init__(self, usbCam_picPath):
self.picPath = usbCam_picPath
def set_PicPath(self, usbCam_picPath):
self.picPath = usbCam_picPath
def takeSinglePic(self, usbCam_PicName):
self.os.system ("fs... | [
"michael.pfenninger@gmx.net"
] | michael.pfenninger@gmx.net |
187736bd1496712c968d483323f08008b75f2f9e | 74133828fcc331c7cd14ad4e400c30fce0bb52b5 | /algoritmo_hierarquico.py | 1cb113adf7a5e459c8dc3fe3c33fb1e3dd5c1071 | [] | no_license | claragomes10/ic-robotica | e77279b2960d89285120d3e4e99dd592af183eac | bcbca6c3027a7e097225d61bb5ecfb23025b4f61 | refs/heads/master | 2022-06-05T00:47:41.254687 | 2020-05-03T14:04:28 | 2020-05-03T14:04:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun May 3 09:19:03 2020
@author: clara
"""
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import scipy.cluster.hierarchy as shc
from sklearn.cluster import AgglomerativeClustering
saida_direita = pd.read_csv('saida_direita.csv')
c... | [
"claraloris39@gmail.com"
] | claraloris39@gmail.com |
e7e05fa3f7d9176d0a2635bac07bb454854d6c6f | 47561b8eda551e769817fbc5e90687c99a35e73b | /global_module/settings_module/set_dir.py | ab673b1e9067bf90f0fa4e939d910d17fc482cd4 | [] | no_license | krayush07/autoencoder | af5311addeb4f77325c82665988ee3d24b31e2ba | b7c42d3b35a847c737fddc9950e4d4abc53dbf1e | refs/heads/master | 2021-04-26T23:17:22.917463 | 2018-07-10T11:47:42 | 2018-07-10T11:47:42 | 123,963,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,919 | py | import os
class Directory():
def __init__(self, mode):
"""
:param mode: 'TR' for train, 'TE' for test, 'VA' for valid
"""
self.mode = mode
self.root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
self.utility_dir = self.root_path + '/utility_d... | [
"krayush.iitp@gmail.com"
] | krayush.iitp@gmail.com |
d0760ffc59b38df378ae047f975dfb91451dfd57 | 2a7a4636aa3b676df19420c848cd642fb8e303a3 | /app/recipe/tests/test_ingredient_api.py | eb8efa8cc98a5ea31b70cdbec414d259356d303c | [] | no_license | K-Vaid/recipe-api | 4f5bd45ce70b686088be06abce650db9144b9942 | 44ce715a21b9116a7a1558a85b803d72b84c7697 | refs/heads/main | 2023-07-14T18:26:54.420492 | 2021-08-20T09:10:34 | 2021-08-20T09:10:34 | 392,962,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,208 | py | from django.contrib.auth import get_user_model
from django.urls import reverse
from django.test import TestCase
from rest_framework import status
from rest_framework.test import APIClient
from core.models import Ingredient
from recipe.serializers import IngredientSerializer
USER_MODEL = get_user_model()
INGREDIENT... | [
"vaidkunal.kv@gmail.com"
] | vaidkunal.kv@gmail.com |
5bbaada6627d340e4cfd4b8df961daf9bddfe180 | f23fe5abbaef19277194232a22f3ee77f676d274 | /venv/bin/chardetect | 03920efb89d69a63179db5357efe527c6ab00642 | [] | no_license | orinocoz/TelegramEmailPass | 077b070e6302e44d998cb0d8d2e7af0d7584b43b | 11d4f7d2270de03f1d73573ce49845230dca2d1b | refs/heads/master | 2023-03-16T21:54:19.210012 | 2021-02-27T15:38:02 | 2021-02-27T15:38:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | #!/home/tenet/PycharmProjects/Bottelegram/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"furens@protonmail.com"
] | furens@protonmail.com | |
63e97fb5f941dbaa92533e45cc6b522337cc4517 | 9e7f0c2a8e21f2f234ae5cb88bbe8ba059589acd | /main.py | bcdbea4dd7f24aabc996b72c1c5b93f3985995d3 | [] | no_license | lumpop1/1404A2 | 9726cc08bb9fb6fb1da111c1056faf83add13f9e | 2a92b60b1be0f2564c716c56881f860962da3d69 | refs/heads/master | 2020-04-15T05:23:33.894004 | 2019-01-07T11:10:25 | 2019-01-07T11:10:25 | 164,419,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,742 | py | """
Name: Chen Jianjian
Date:2018/1/06
Brief Project Description:Song list to learn
GitHub URL:https://github.com/JCUS-CP1404/a2--lumpop1/tree/master/Assignment2
"""
from kivy.app import App
from kivy.lang import Builder
from songlist import SongList
from kivy.properties import StringProperty
from kivy.properties impor... | [
"jianjian.chen1@my.jcu.edu.au"
] | jianjian.chen1@my.jcu.edu.au |
c7996b5e25d11a281c651e64ae0324d55b041f44 | edd01578bbdda9133c95538fc970b0b758782052 | /pytexe (22).py | 42f8dc44efcb93f31b556cea69481febf94eace3 | [] | no_license | yantxs/adventures-w-prog1 | 27982056052496bd48e2e4ea7ad739a0355c0859 | 2349e3382b7a724e58e60a2f50b188c1bc321c57 | refs/heads/master | 2021-08-24T02:37:27.793212 | 2017-12-07T17:48:07 | 2017-12-07T17:48:07 | 113,479,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# testeexec.py
def buscasequencial(lst, n):
pos=-1; achou=False; i=0;
while not achou and i<len(lst):
if n==lst[i]:
achou=True; pos=i;
i=i+1
return pos
def preencheListaSemRepetir(lst, qtd):
v=1
lst.append(int(input("Entre com o numero\n")))
while v < ... | [
"teixeira.yan@gmail.com"
] | teixeira.yan@gmail.com |
f86d5e23e993a62bf8066dc12320d183477f2526 | 1d590f611c9ae02f5f0f369e479cccd8b8d7fb66 | /soc/bffbook/profiles/migrations/0004_auto_20210510_1308.py | 7b76e1b1ac139bee3abbd516d9265db853ccb6c6 | [] | no_license | Alan-thapa98/SOCIAL-ME | 3cf1c515e0560ca2967cf847727bf1438aeba3f4 | 362e11edb449528a7bc6f413c134a8dfb9296e67 | refs/heads/master | 2023-07-01T07:21:37.303320 | 2021-07-30T15:15:59 | 2021-07-30T15:15:59 | 391,106,333 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # Generated by Django 3.1.2 on 2021-05-10 07:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0003_auto_20210510_1256'),
]
operations = [
migrations.AlterField(
model_name='profile',
name='avatar',
... | [
"alanthapa98.gmail.com"
] | alanthapa98.gmail.com |
0827f989319c72b436014e11b875370bc3478be2 | 142f00440b73ae6c8c140bac00fe8cd026b62caf | /src/inputs/cs_event_query/sampler.py | 9e09a45966427d54b4ec5863c3028604ed467bdf | [] | no_license | Wisc-HCI/interaction-transformation | e81bfdb21b61b884f69af4912f8bca91933d1c43 | 45e275e5426023b19d9b587cf5520ad74b1c909b | refs/heads/master | 2020-04-10T20:29:28.628040 | 2020-04-02T18:59:08 | 2020-04-02T18:59:08 | 161,269,365 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,044 | py | from z3 import *
import time
import math
class Sampler:
'''
Sampler takes the existing trajectories as input,
and comes up with a tree-like interaction whose
branches are optimized to be (a) less-seen bad tra-
jectories, (b) unseen good trajectories, and (c)
unseen combinations of states
... | [
"dporfirio@wisc.edu"
] | dporfirio@wisc.edu |
56ebf0fcb163cba5ee14ca54a385a3925ce137d2 | b50e81141a7ba7ef36b5ca41ea31fed163001594 | /archive/py-src/Book.py | dac01bc38d5267f29d12e26a23edebc190cd5842 | [] | no_license | spencerewall/dw-census | 8ae4bc1eac40095fdd0ca4c28a63175e759d9c67 | eb7f984d050674b192ef9a1866b853e64183ac62 | refs/heads/master | 2021-06-16T19:46:21.124414 | 2017-05-10T18:51:00 | 2017-05-10T18:51:00 | 48,212,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | #!/usr/bin/python
import os
import re
class Book:
# Open the book with the given name
# sectionDelimeterRe: a regex to use
def __init__(self, name='Wyrd Sisters', sectionDelimeterRe='\n\n+'):
self.name = name
def getBookId(self):
return self.name.lower().replace(' ', '_')
#Builds the filename for t... | [
"spencerjewall@gmail.com"
] | spencerjewall@gmail.com |
689db7de482e10e047495ad80b5f4d2dba781377 | 53257795ec84dd44b5502e3e3ad0874bd97cca26 | /tests/python_client/deploy/scripts/action_after_upgrade.py | 1bf17cd9c486b0b86057527d785045c85cc9450f | [
"Apache-2.0"
] | permissive | tushar-deepsource/milvus | f8cd3b26e4900fd0ecbf94adee89eafde72eba05 | 23a00937487666644f256ca83e581a877654d0fd | refs/heads/master | 2023-08-24T23:43:40.643576 | 2021-10-22T08:34:40 | 2021-10-22T08:34:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | import docker
from utils import *
connections.connect()
list_containers()
get_collections()
load_and_search()
create_index()
load_and_search()
| [
"noreply@github.com"
] | noreply@github.com |
9dfeb320ce250c54997f9e31a792687b272eeaf1 | 56d352e3a3276a7e62f03ebc435a1c82393eb35a | /dbm-gtsrb/gtsrb/classify_sign.py | 12a09a6c69ec390aa2746a44805ca410374c75fb | [] | no_license | carloderamo/DBM-GTSRB | 75e1e6347e9ef6393755fb1f97fc9e04c70e2a87 | a8b5cd223677fd49cd43a05fb1ed4df4e3af57b4 | refs/heads/master | 2021-01-10T13:27:47.936886 | 2015-11-15T02:10:27 | 2015-11-15T02:10:27 | 46,053,819 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,286 | py | from pylearn2.utils import serial
from pylearn2.scripts.dbm.augment_input import augment_input
from theano import tensor as T
from theano import function
from PIL import Image
import numpy
import os
cwd = os.getcwd()
filenames = [f for f in os.listdir(cwd + "/signs/gtsdb_conv") if os.path.isfile(os.path.join(cwd + "/... | [
"carlo.deramo@gmail.com"
] | carlo.deramo@gmail.com |
e26c09066fcd9a85873212e5cdcbd2c766f6835e | c8c68b83acba11a1bf484e55ccab1d50dab75a59 | /myvenv/bin/pip3.6 | 64b00c13eb1757b2e808d0acf3a05bb42cf5d55b | [] | no_license | KyutaeLee/piglatin | 1bf040fb29427dfd91656c499587ada043810baf | 51d176a9b691c9a25bf0a1a70fe4163419889d49 | refs/heads/master | 2021-05-11T16:48:57.342761 | 2018-03-05T12:22:51 | 2018-03-05T12:22:51 | 117,777,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | 6 | #!/Users/apple/Desktop/piglatin/myvenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"rbxofjqn@gmail.com"
] | rbxofjqn@gmail.com |
d496d59c836446f81c61a2822643119a8ebad097 | 3505b3e494dabca84b730033f55bdf369877f41a | /pydiscord/types/role.py | c02b50201c0bae2132560db80e3614f71a0b0ccd | [
"MIT"
] | permissive | AryamanSrii/PyDiscord | 5a87192b942228348a4b7320b6cdac8e885e4e42 | 3366d20e2725672ae7e6b29335119cac1aee76f9 | refs/heads/main | 2023-07-18T03:42:00.634806 | 2021-09-03T15:46:48 | 2021-09-03T15:46:48 | 402,948,162 | 0 | 0 | MIT | 2021-09-04T02:48:33 | 2021-09-04T02:48:32 | null | UTF-8 | Python | false | false | 1,589 | py | """
The MIT License (MIT)
Copyright (c) 2021 The PyDiscord Developers
Copyright (c) 2015-2021 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitat... | [
"sn1f3rt@outlook.com"
] | sn1f3rt@outlook.com |
f7feb0e013303868949cf3d41ab03ca75f5c0ba8 | c99ec1738d9af904263170002f82f01ac9773c05 | /src/check_process_list.py | ea602335467e1b053cf4d5178d19f6c8793c1005 | [
"MIT"
] | permissive | Morthy/igmonplugins | 88e670e86c231c9e7ccd672e5090effe89534c8b | e339115936a054696324befb47d60f254ba38226 | refs/heads/master | 2020-06-06T10:42:42.936299 | 2019-06-19T11:19:43 | 2019-06-19T11:19:43 | 192,718,139 | 0 | 0 | null | 2019-06-19T11:21:34 | 2019-06-19T11:21:33 | null | UTF-8 | Python | false | false | 11,325 | py | #!/usr/bin/env python
"""InnoGames Monitoring Plugins - "Processlist" Check
This is a monitoring check that calls the "ps" binary, and parses
the results. It is compatible with BSD and GNU "ps", though they
provide different set of variables. It is possible to use any
supported variable. See your man pages for the ... | [
"emre.hasegeli@innogames.com"
] | emre.hasegeli@innogames.com |
7e6e6ef4ab4d569cf26225c3ddd5ac09bb6717c6 | ec343e7bdf18a8d109fef4c674eecbc1a93111e6 | /Chapter 3/Programming Challenges/7. Calories from Fat and Carbohydrates.py | 59fec034cc22cdeb2189bd8ae78687d99326f2be | [] | no_license | Tcrumy/Startin-Out-with-Python-2nd-Edition-by-Tony-Gaddis | 42c7218e4193529ded61e6c086456792c6e2470d | cb7b49ea844e25da7181856f33999ee536f8eb07 | refs/heads/master | 2021-06-19T12:42:16.615534 | 2021-01-05T17:49:54 | 2021-01-05T17:49:54 | 156,280,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,590 | py | # A nutritionist who works for a fitness club helps members by evaluating their
# diets. As part of her evaluation, she asks members for the number of fat grams
# and carbohydrate grams that they consumed in a day. Then, she calculates the
# number of calories that result from the fat, using the following formula:
... | [
"noreply@github.com"
] | noreply@github.com |
c39941499870277a946c40da8b7ff72e4713e97a | ed4921d289f9318e0792694a55ab49990199a857 | /openbudget/dashboard.py | a8a910e731a262b077369a6654c48e4145e17640 | [
"BSD-2-Clause"
] | permissive | ofri/omuni-budget | 918b340e6d213785dac252ed0549f918b5a84da4 | 9f30edd1e0d025bbcacba64172b1ecb02172497b | refs/heads/master | 2021-01-18T05:25:13.366328 | 2013-03-31T11:11:02 | 2013-03-31T11:11:02 | 9,343,753 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,621 | py | from django.utils.translation import ugettext_lazy as _
#from django.core.urlresolvers import reverse
from grappelli.dashboard import modules, Dashboard
class OpenBudgetDashboard(Dashboard):
"""Custom admin dashboard for Open Budget"""
def init_with_context(self, context):
# append an app list modul... | [
"paulywalsh@gmail.com"
] | paulywalsh@gmail.com |
db9c468c186605058bdc1e319cf6eef5d0cc402b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/189/usersdata/264/65136/submittedfiles/al2.py | 78c78df05d8662e4336e80c333a6ef1d26db18e4 | [] | 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 | 162 | py | # -*- coding: utf-8 -*-
#ENTRADA: NÚMERO QUALQUER:x
#SAIDA: PARTE INTEIRA:q, PARTE FRACIONÁRIA:j
x= float(input('digite um número real qualquer:'))
q= (x//3)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
c52e74ed56d81aefa15ecff2f985110c2574a528 | 6a75128f782972f783faf83462c7113eb4b13ad1 | /lesson2/cw3.py | 9d385aa5670b69d8b49d374e756bb92346f31582 | [] | no_license | Vilchynskyi/ITEA_Python_Basics | b5fcee246e019d44e590f367bf115b937570cf28 | 4ffbd028537d4a5890e56e0e0cae7165125255f9 | refs/heads/master | 2020-06-02T02:55:12.384606 | 2019-07-24T16:39:21 | 2019-07-24T16:39:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | # Extract the square of the number as long as the value is bigger than 10
import math
if __name__ == '__main__':
i = int(input('Insert the number '))
while i > 10:
print(i)
i = math.sqrt(i)
| [
"roma.vilchynskyy@gmail.com"
] | roma.vilchynskyy@gmail.com |
3414b51b6da096d6d8ad51a198596827d19b58fb | cdb5df3c04f0b9aae9220463d438fdbf36e725ed | /django-forms-example/groceries/urls.py | e1939f78b1279d84b6d8036ccf40d260fc8fcebe | [] | no_license | charlie2265/CodeGuild | fe5450e0c77b46fb114a5468d5d0f29bfad19047 | 5f937aba184e477b6f4f9915ffd533a59281e78d | refs/heads/master | 2021-06-20T10:50:32.882043 | 2019-02-10T03:54:23 | 2019-02-10T03:54:23 | 156,479,963 | 0 | 0 | null | 2021-06-10T23:06:55 | 2018-11-07T02:38:47 | Python | UTF-8 | Python | false | false | 139 | py | from django.urls import path
from .views import groceries
app_name = 'groceries'
urlpatterns = [
path('', groceries, name='list'),
] | [
"charlie2265@gmail.com"
] | charlie2265@gmail.com |
c6fbdabcb9b40c4c54770b5da19be1957f923566 | f553cb0295c9c24dc27c2a8b5a7f3c0e8f5ae174 | /sección_6/mulit_3.py | b9839f191ed1f45f768ffbe93db13f305787a50a | [] | no_license | Diego780527/ADSI | 71d7673c90e21b7a6ab35f51b1b360ad13879908 | 1db32f04b24a2b1886038dffc24e98a604864d67 | refs/heads/master | 2023-04-06T11:52:48.928223 | 2021-04-14T00:15:46 | 2021-04-14T00:15:46 | 357,723,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py |
## programa que muestre la tabla de multiplicar del 10, del 1 al 50
def tabla(x):
i=0
print("tabla del 10 1-50")
while i < x:
i=i+1
mult=10*i
print(10,"X",i,"=",mult)
return ()
tabla(50) | [
"82474493+Diego780527@users.noreply.github.com"
] | 82474493+Diego780527@users.noreply.github.com |
045421d3e8906598267f9544324d41b41a921a87 | f8baff291cdf02ea92141c7a7eb48b859776c224 | /google/cloud/dialogflow_v2beta1/services/session_entity_types/transports/grpc.py | 1552ec0cefd6e51205f0927deb40d362b227b6d6 | [
"Apache-2.0"
] | permissive | precs-jmcrs/python-dialogflow | 1a6a12741cb14460f5ecfe1200b2b0a20064b5cb | bf68864ff14e1a1f3626cb27fbbabb96e618358f | refs/heads/main | 2023-08-20T09:45:21.354126 | 2021-10-25T20:52:08 | 2021-10-25T20:52:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,930 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"noreply@github.com"
] | noreply@github.com |
e66fcada365254368e76ac2cefb6c96a6d49ab1f | 57650f95b80dbbe0408417088934f94c9743313b | /fetchData.py | 20dedf22a85c39bc24e2198306a606ba3b238f41 | [
"Apache-2.0"
] | permissive | shashikarsiddharth/watchful-eye | f11083e2eb46cd1fa2f4cddae7fe2b42aa2f4da9 | cb5e2cedbf5f77bd0f0000980709f3c5def59dc4 | refs/heads/master | 2021-05-24T12:51:25.123313 | 2020-04-07T01:30:26 | 2020-04-07T01:30:26 | 253,570,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,781 | py | import packages
class fetchData:
def __init__(self, ticker_name):
''' Function for initializing class variables. '''
self.st_year = 0
self.end_year = 0
self.st_month = 0
self.st_date = 0
self.end_month = 0
self.end_date = 0
self.tick = ticker_name
... | [
"siddharth.shashikar@trustingsocial.com"
] | siddharth.shashikar@trustingsocial.com |
921d65fd5e2e4869e77d5146650c352a5475806a | 2f85846c38297db78005da1a3a986c47482c5327 | /src/songs_parser.py | cc8bfd2a9ed30e07ccd0281da931515106e16beb | [] | no_license | moonlightshadow123/music-playing | de9fe3f7f0e65673ec2a80bc5fe8c267f22df328 | e69a6ba5203fe4f1db5e3e101e8938b6c7e290d5 | refs/heads/master | 2022-04-18T21:30:54.130758 | 2020-04-11T03:44:08 | 2020-04-11T03:44:08 | 249,941,456 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,970 | py | import os, music21
from utils import getAcc, NStrToVStr, qlenToDur, minusToB
dir_path = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, "songs"))
class Parser:
def __init__(self, song_name):
self.file_name = os.path.abspath(os.path.join(dir_path, song_name))
c = music21.converter.parse(self.fi... | [
"2252822920@qq.com"
] | 2252822920@qq.com |
f63f9a30b6e4c164b0f51d644a1e641ba5e7aff6 | 6ee5a113dc04c782be3484b13aa5f0d9c3a3210f | /code/numPyBasics.py | e82d24873cb6658f54c598ee9a9eff1383e03619 | [] | no_license | mushie101/Brightwork | 5b0d5f5c65addc9fa2b2ccd27e6f470c6039ebae | 50e64737cf3a025e8793b69880d9e963b3f3fba5 | refs/heads/master | 2020-09-16T20:33:57.875487 | 2019-11-26T05:03:57 | 2019-11-26T05:03:57 | 223,882,228 | 0 | 0 | null | 2019-11-25T06:59:30 | 2019-11-25T06:59:29 | null | UTF-8 | Python | false | false | 558 | py | import numpy as np
# Why numpy? -> numpy much faster than lists
# numpy libraries vs lists
# numpy int size can be altered
# for a normal int we deal with object value object type reference value and size
# since numpy uses less memory we are dealing with less stuff
# no type checking when iterating through objects
# ... | [
"mustafa.ar.siddiqui@gmail.com"
] | mustafa.ar.siddiqui@gmail.com |
9a6cecbd8b7391193cbe482e34d4e9436736c068 | 1929443c8e4ec6ccd79777f18d161546867e17ef | /methods/transformers/src/transformers/configuration_reformer.py | b74bec1877b149d9249d568fde2e67702d6253b3 | [
"MIT",
"Apache-2.0"
] | permissive | INK-USC/RiddleSense | 6f4b00546d7f4d5ada12db50929c1f0d7713d541 | a3d57eaf084da9cf6b77692c608e2cd2870fbd97 | refs/heads/main | 2023-08-14T19:01:01.478946 | 2021-07-05T04:06:01 | 2021-07-05T04:06:01 | 376,487,870 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 13,444 | py | # coding=utf-8
# Copyright 2020 The Trax Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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 Lice... | [
"yuchen.lin@usc.edu"
] | yuchen.lin@usc.edu |
319aaf36620144c77e9f4382cdc002dd7d12372a | cbc5e26bb47ae69e80a3649c90275becf25ce404 | /xlsxwriter/test/vml/test_write_size_with_cells.py | 7d062d86032316bfb6cb293c6f39e4586d4653f4 | [
"BSD-2-Clause-Views",
"BSD-3-Clause",
"MIT"
] | permissive | mst-solar-car/kicad-bom-generator | c3549409c3139f787ad28391372b5cb03791694a | 2aae905056d06f3d25343a8d784049c141d05640 | refs/heads/master | 2021-09-07T14:00:40.759486 | 2018-02-23T23:21:13 | 2018-02-23T23:21:13 | 107,868,801 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2017, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ...vml import Vml
class TestWriteXSizeWithCells(unittest.TestCase):
"""
Test t... | [
"mwrb7d@mst.edu"
] | mwrb7d@mst.edu |
51a247af73a7e20f4aaa919360ae9ea26d676f40 | f8bdc46409c9f5eaf3d85ef157260589462d941a | /jsk_2016_01_baxter_apc/node_scripts/check_sanity_setup_for_pick | 1ab7ba1ac9271856cae0085c0e78a81cb65fadb9 | [
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | start-jsk/jsk_apc | 2e268f8b65e9d7f4f9cc4416dc8383fd0a7b9750 | c4e349f45ef38457dc774e33f6902acf1a1540a6 | refs/heads/master | 2023-09-05T09:06:24.855510 | 2023-09-01T17:10:12 | 2023-09-01T17:10:12 | 25,620,908 | 36 | 25 | NOASSERTION | 2023-09-01T17:10:14 | 2014-10-23T05:28:31 | Common Lisp | UTF-8 | Python | false | false | 462 | #!/usr/bin/env python
import rospy
from jsk_tools.sanity_lib import checkTopicIsPublished
def main():
rospy.init_node('check_setup_sanity')
checkTopicIsPublished(
'/left_hand_camera/extract_indices_target_bin/output',
timeout=5, echo=True, echo_noarr=True)
checkTopicIsPublished(
'... | [
"www.kentaro.wada@gmail.com"
] | www.kentaro.wada@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.