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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3dcca22538909e4ca7c9e1f85a4a19c897d9ccc0 | bf4178e73f0f83781be6784d7587cb34a38d6edd | /platform/radio/efr32_multiphy_configurator/pro2_chip_configurator/src/si4010_cfg_calc/si4010cfgcalcsecurity.py | 3da55602e5855910430be093d1a8e3ae2b503b84 | [] | no_license | kolbertv/ZigbeeSiliconV3 | 80d70515e93be1413c24cdcb3485f50c65a1564b | ab0bd8d4bb6c1048adef81d0e66d96006c2fabd9 | refs/heads/master | 2023-01-02T07:18:01.393003 | 2020-10-25T15:33:08 | 2020-10-25T15:33:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,459 | py | '''
Created on August 25, 2013
@author: shyang
'''
__all__ = ["Si4010CfgCalcSecurity"]
class Si4010CfgCalcSecurity(object):
'''
classdocs
'''
OEM_Key16_Table = [
[0x63, 0xB4, 0x92, 0xCD, 0x42, 0x20, 0x03, 0xBC, 0x73, 0x29, 0x09, 0xBB, 0xFF, 0x6A, 0xDC, 0x6D],
[0x63, 0x4B, 0x92, 0xCD, ... | [
"1048267279@qq.com"
] | 1048267279@qq.com |
5eb5529af8f60cd68b06b563bc7e299035d7dbe5 | c4c20c4c7653da52249dac4d9ced3ffcbcb2c299 | /aidooit_people/migrations/0003_personhistory.py | 86541a6fb8ec385c16959d24326c34acf4ad2a3e | [] | no_license | rejamen/aidooit | 4ebccdba65b07da29f13273c474dd45ddd78968d | 31361307b70175d4e00ef4f7bbbb320ab7779551 | refs/heads/master | 2022-05-02T09:25:14.812540 | 2019-09-09T10:34:30 | 2019-09-09T10:34:30 | 191,284,990 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | # Generated by Django 2.2.3 on 2019-07-11 20:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('aidooit_people', '0002_person_email'),
]
operations = [
migrations.CreateModel(
name='PersonHis... | [
"rejamen@gmail.com"
] | rejamen@gmail.com |
0eb5470f765d0b30122b58e73c2d8332fddc228e | ad9f741f31d07d448c0d963f4a2428f3c6ed7f4f | /Projetos/Projeto 2/knowledge_base.py | db7ffd003d72ef614e321a8e0782598cb2ebea57 | [] | no_license | MekaMdan/IIA | 3e8a912065f768789c912ef56c30681f1a23b740 | 2930d26408ad789495d49effe3c61534a5f667a6 | refs/heads/master | 2023-01-22T19:39:51.356246 | 2020-11-30T02:19:50 | 2020-11-30T02:19:50 | 292,424,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,335 | py | # Dor nos músculos / Frequênca dor na articulação / Dor de cabeça
ALTA = 3
MEDIA = 2
BAIXA = 1
# Intensidade dor articular / coceira / discrasia / hipertrofia ganglionar
INTENSA = 3
MODERADA = 2
LEVE = 1
AUSENTE = 0
# Edema na articulação
EDEMA_RARO = 1
EDEMA_LEVE = 2
EDEMA_MODERADO = 3
EDEMA_INTENSO = 4
# Frequênci... | [
"nanda.sousa.m@gmail.com"
] | nanda.sousa.m@gmail.com |
112567ac517d406a0446057912ddeb86c659bb3f | 87292fde6a47fcb326c25c2f99546653ef8345ed | /Frame/Model_Train.py | 6a9fcc3fdf75f4b7c03e9070d13e2237092fbfd4 | [] | no_license | amuge1997/NetManageAndTrainFrame | b07f4263ff3c769244921701f9ce862ff21ceddb | 4ef5186f638381d69127308efa554db8cb7869fc | refs/heads/master | 2022-09-18T02:42:42.226814 | 2020-05-25T04:04:28 | 2020-05-25T04:04:28 | 257,864,961 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,926 | py | import torch.nn as nn
import torch.optim as optim
import time
class Train:
def __init__(self):
pass
def train(self, model, loader, dc_train_params,):
lr = dc_train_params['lr']
epochs = dc_train_params['epochs']
lossf_sel = dc_train_params['lossf']
opt_sel = dc_train... | [
"amuge1997z@qq.com"
] | amuge1997z@qq.com |
9ee4147b880a0b424def9590a021fd355e44ae93 | e5c39d112c3240e747f6dfd3260673a02bd384e9 | /manuscript_figures/script_per_figure/gmsl.py | 73c93be55ece0b77a0911fc034aa19c29afc59ee | [] | no_license | carocamargo/regionalSLB | 8057174d823d5f2cd7015fe1ea7a72921d2c780d | 5b9e906b2e95928c9487750334b0b48ef95555cc | refs/heads/main | 2023-04-09T11:21:50.423516 | 2023-01-09T12:28:36 | 2023-01-09T12:28:36 | 586,869,251 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,097 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Aug 3 16:09:27 2022
@author: ccamargo
"""
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Aug 3 15:10:42 2022
@author: ccamargo
"""
# Import libraries
import xarray as xr
import numpy as np
# import os
import pandas as pd
import s... | [
"carolina.camargo@nioz.nl"
] | carolina.camargo@nioz.nl |
4b8356e015a92eae5abbff0173af027270ea6179 | 04bee90cccab4e628722413c687bd5c99e756074 | /tron/cli/venv/Scripts/rst2s5.py | 129e8b7e5543fe96021258c18f6d8d785c8d002d | [] | no_license | XUMO-97/backup | 3275eff2edddbf4d0985bdd98e743c6c1ecab20f | 757ca980df6d58cfd78f7f27731692ef1f8540b6 | refs/heads/master | 2020-04-25T15:42:30.259247 | 2019-02-25T10:42:27 | 2019-02-25T10:42:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | #!d:\tron\cli\venv\scripts\python.exe
# $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $
# Author: Chris Liechti <cliechti@gmx.net>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing HTML slides using
the S5 template system.
"""
try:
impo... | [
"xumo@onchain.com"
] | xumo@onchain.com |
d30eee20a1d1d88fce083765411f82cec5f9d46b | cec0eab05940e68e110c9afc0ae953e8d21c2a79 | /app/main/views.py | 3b1658c374e21d0777f387570a6809032c50220f | [
"Apache-2.0"
] | permissive | sunyyangy/AutoLine | 6e9c8da62e8201c091a146546226e8923c63716d | 4977ff70c1fc056fca022505d07bc7d6e06de995 | refs/heads/master | 2020-03-16T22:04:52.493028 | 2018-05-11T08:59:31 | 2018-05-11T08:59:31 | 133,025,915 | 1 | 0 | null | 2018-05-11T10:28:44 | 2018-05-11T10:28:44 | null | UTF-8 | Python | false | false | 2,305 | py | # -*- coding: utf-8 -*-
__author__ = "苦叶子"
"""
公众号: 开源优测
Email: lymking@foxmail.com
"""
import os
from flask import render_template, send_file
from flask_login import login_required, current_user, logout_user
from . import main
from ..utils.runner import run_process
from ..utils.report import Report
@main.rou... | [
"lyy@LYM.local"
] | lyy@LYM.local |
8ee343a9529c4a9d48aa41f9d1404b81f9747738 | ad3737fdd3fd04dc93e6651277d8ce7ca9c31264 | /neutron-sriov/neutron/plugins/vmware/vshield/edge_appliance_driver.py | 782a528e740f3193402834faf1b14f1fa489178e | [
"Apache-2.0"
] | permissive | VeenaSL/sriov | 15ec75bda045a26d0a9b577d3b446914518bafdd | f2850ef8e327250bc6e5d12eb1e3413e04f67154 | refs/heads/master | 2021-01-10T15:25:46.294154 | 2015-05-26T10:03:04 | 2015-05-26T10:03:04 | 36,286,683 | 0 | 1 | null | 2020-07-24T06:10:58 | 2015-05-26T09:45:52 | Python | UTF-8 | Python | false | false | 25,894 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
#
# Copyright 2013 VMware, 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
#
# ... | [
"mveenasl@gmail.com"
] | mveenasl@gmail.com |
c455b8a4833c85112dc148d24cb008acdef40d49 | 1851a11bca1071296fd2ac19c074601669a4f07d | /qwarie_customization/models/events.py | 4c0a629271d4b6b134899dfcf6550049da097990 | [] | no_license | devalex365/odoo-xelaved | 78e874357971ac0c1d969d380e8daf4ab9ac068c | 3d63437c131641ce05ba23797908a1771857a6c1 | refs/heads/master | 2021-04-30T00:16:27.692712 | 2018-03-06T17:40:27 | 2018-03-06T17:40:27 | 121,572,089 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 31,531 | py | # -*- coding: utf-8 -*-
from openerp import _, fields, models, api
from datetime import datetime
import calendar
import uuid
import urlparse
import logging
_logger = logging.getLogger(__name__)
class event_event(models.Model):
_inherit = 'event.event'
@api.model
def _default_course_id(self):
even... | [
"noreply@github.com"
] | devalex365.noreply@github.com |
e2239a0650d215016079290ab35e3ad0a2dd922f | bf36e89983f964b6f86eb015c5b25d07cb66dd5e | /orgs_and_ngos/views.py | 90610dc734abcbedd7465883d20fcabf1333c4fa | [] | no_license | Real-DeviLs/NASA-Hackathon | 6e01e395d27f84fa340854c1fb1105ef7436ec09 | c2e9f4b3bf7307de9e91f52b86ed4de7ca800b32 | refs/heads/master | 2022-12-28T12:44:56.445085 | 2020-10-03T14:12:45 | 2020-10-03T14:12:45 | 299,040,361 | 0 | 9 | null | 2020-10-03T14:12:46 | 2020-09-27T13:40:01 | CSS | UTF-8 | Python | false | false | 327 | py | from django.shortcuts import render
from .models import orgs,ngos
# Create your views here.
def orgs_view(request):
contents=orgs.objects.all()
return render(request,'orgs.html',{'contents':contents})
def ngos_view(request):
contents=ngos.objects.all()
return render(request,'ngos.html',{'contents':con... | [
"matharooamrit098@gmail.com"
] | matharooamrit098@gmail.com |
d1dd3215917e4cb08a2834d996811daf313c8420 | 586d8b2ee7e531537ae3ec2a4683c595ced09207 | /bin/django-admin.py | 8782171b2a973d44b0093762c5e18b5260703599 | [] | no_license | nicholasmercurio/Pastey | 89dfbbbaa3461324dbc2c52a63bd7471b9a883c4 | 7432364e1bbc6ce7a90913a2704b0776ebf93640 | refs/heads/master | 2021-10-23T08:58:08.353531 | 2019-03-16T08:30:16 | 2019-03-16T08:30:16 | 174,892,280 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | #!/home/nick/Dev/Pastey/bin/python3.6
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"nick@nicholasmercur.io"
] | nick@nicholasmercur.io |
a5c9186d5e1f0dbcda4d98c83b2cbd55c9188cc0 | e849853a8abbce8b0c7594b4418407219242c8a7 | /benchmark/train/original_data/resnet_101.py | b2fa10774b27e1866f9424413cf3cdbcbe7d51d1 | [] | no_license | qihaoyang123/Automatic-Rail-Surface-Multi-flaw-Identification | 736a000a2d47d18301983c8153903147b47207e8 | c3fda9ef965564f9cb8fb5bf32b7849395753317 | refs/heads/main | 2023-06-17T04:36:46.136158 | 2021-07-08T13:57:19 | 2021-07-08T13:57:19 | 383,699,103 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,320 | py | # -*- coding: utf-8 -*-
from keras.models import Sequential
from keras.optimizers import SGD, Adam
from keras.layers import Input, Dense, Convolution2D, MaxPooling2D, AveragePooling2D, ZeroPadding2D, Dropout, Flatten, merge, Reshape, Activation
from keras.layers.normalization import BatchNormalization
from keras.model... | [
"895714656@qq.com"
] | 895714656@qq.com |
8f9c7c45bf173c6b1593881386614ed222c6c593 | 2bf43e862b432d44ba545beea4e67e3e086c1a1c | /tests/nemo_text_processing/zh/test_char.py | 1ca553eca3d027fe254df28f4d9b682ca08f9b57 | [
"Apache-2.0"
] | permissive | ericharper/NeMo | 719e933f6ffce1b27358bc21efe87cdf144db875 | f1825bc4b724b78c2d6ca392b616e8dc9a8cde04 | refs/heads/master | 2022-10-06T01:45:21.887856 | 2022-09-14T19:09:42 | 2022-09-14T19:09:42 | 259,380,135 | 1 | 0 | Apache-2.0 | 2022-09-20T18:01:57 | 2020-04-27T15:54:20 | Python | UTF-8 | Python | false | false | 1,257 | py | # Copyright (c) 2022, NVIDIA CORPORATION & AFFILIATES. 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
#
# Unl... | [
"noreply@github.com"
] | ericharper.noreply@github.com |
1673bc08529da23e92015f740be5d341a4f5d8c4 | 1fcb09533ae683e905e528412efbbe5dc5923a7e | /Programming101/Week15/cms/website/education/urls.py | 3e18dbada3c9beb85133a76b2fb1bbdbef37d4fc | [] | no_license | VikiDinkova/HackBulgaria | ac7ca668489986ca2262ced587801d8abd2de4f1 | e2f226bf29b87f6d3b33bdc2b981e1224a8237aa | refs/heads/master | 2021-01-10T14:34:03.201644 | 2016-03-24T17:03:45 | 2016-03-24T17:03:45 | 46,211,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.home),
url(r'^course/new/$', views.add_course)
]
| [
"vikidinkova94@gmail.com"
] | vikidinkova94@gmail.com |
8a4434b6cc0d7ce9aba791e1092bf4db1b672060 | 69ac2db29e1953d34d1965b9b09cbb6b2e44622a | /ase/gui/gui.py | d2e7015af3314323f4dc7eaeba5a70c856766657 | [] | no_license | ArianFluido/Project-2-PHYS-A0140 | 01e13dbf30ce55f46f8060ffe23bc9f29bcb87fe | 6d7ec3b1a09d83f330434df1ce91e6c52491cd22 | refs/heads/master | 2022-08-02T14:36:34.647227 | 2020-05-26T10:42:56 | 2020-05-26T10:42:56 | 264,162,598 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 48,937 | py | # husk:
# Exit*2? remove pylab.show()
# close button
# DFT
# ADOS
# grey-out stuff after one second: vmd, rasmol, ...
# Show with ....
# rasmol: set same rotation as ag
# Graphs: save, Python, 3D
# start from python (interactive mode?)
# ascii-art option (colored)|
# option -o (output) and -f (force overwrite)
# surfa... | [
"kermana1@vdiubuntu020.org.aalto.fi"
] | kermana1@vdiubuntu020.org.aalto.fi |
05e9b18ceb97396b31ed4ea4d7f88b2d2b449755 | 171d2420681c1fbcd0ecfa030916958382edbfb0 | /loaders.py | fa3dac65e25473446c93dee8643eb1274b2febab | [] | no_license | sicarul/argentum_assets_converter | 1ae70076938d8d1182d36bc805ae0794ecec53b7 | ac557b208b1c09dc8a7c721fd1941418d8c4bcae | refs/heads/master | 2021-01-23T15:53:20.536353 | 2014-04-09T21:02:22 | 2014-04-09T21:02:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,570 | py | import os, re
import ConfigParser
DIR_CONVERTED = 'converted'
DIR_ASSETS = 'assets'
DIR_BODIES = os.path.join(DIR_ASSETS, 'bodies')
DIR_HEADS = os.path.join(DIR_ASSETS, 'heads')
DIR_METADATA = os.path.join(DIR_ASSETS, 'metadata')
DIR_TILESETS = os.path.join(DIR_ASSETS, 'tiles')
DIR_INPUTINI = 'INIT'
DIR_INPUT_TILESE... | [
"pabloseibelt@gmail.com"
] | pabloseibelt@gmail.com |
4a4eadcb8c18b97d45799ba9e8da0619aa28ea5f | 298e47d0ffad9ac374f7e6fecf1eb20f340f680b | /django/realest_estate/backend/realtors/views.py | ced5a78d726a7f34d70164a2b4a15436d74a678e | [] | no_license | nahidsaikat/Learning | 7be26eba70a9e8a132424cfab828477792a243b7 | 75c7a45d8f7c61a28c8ed29438b1765f2761610a | refs/heads/master | 2023-01-29T14:22:09.508428 | 2022-01-16T11:32:31 | 2022-01-16T11:32:31 | 155,268,879 | 1 | 1 | null | 2023-01-19T16:33:08 | 2018-10-29T19:27:54 | JavaScript | UTF-8 | Python | false | false | 703 | py | from rest_framework.generics import ListAPIView, RetrieveAPIView
from rest_framework import permissions
from .models import Realtor
from .serializers import RealtorSerializer
class RealtorListView(ListAPIView):
permission_classes = [permissions.AllowAny]
serializer_class = RealtorSerializer
queryset = Rea... | [
"nahidur.rahman@newtonx.com"
] | nahidur.rahman@newtonx.com |
89787b75cd0410301edae68711d91b62561895ba | 14176826a610eec5df62f6637e45a90cf2ffe931 | /tfoms/management/commands/shit_03.py | ee4ad837b1d4b4040ea081dddc01cba7c9046717 | [] | no_license | demidrol911/medical_registry | 4b38079ba0224719e6a3fae993fb675c0364f7b7 | 608758652266395e5aaeafd971ba76fac320ebd3 | refs/heads/master | 2021-01-21T02:21:05.356206 | 2018-02-19T00:41:36 | 2018-02-19T00:41:36 | 23,862,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,237 | py | #! -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand
from django.db.models import Sum
from django.db.models import Q
import datetime
from tfoms.models import (ProvidedService, ProvidedEvent)
import csv
from xlutils.copy import copy
from xlrd import open_workbook
from xlwt import easyxf
def m... | [
"SFHSHHT@DSG"
] | SFHSHHT@DSG |
090dd601c11a36a06bf98fdc0f553def999da558 | c2f58e28937d88c76182f4950cb8662c4ed39d52 | /celery_worker.py | 4f0e5ea87c4dda9e6238755191c13b07244bfb52 | [] | no_license | cacods/flask-chat | 537ea855fa8fc11f5142576b4debd12668c35c6b | ad80967223543016ff7d2b3ef1d77173d3c89c96 | refs/heads/master | 2023-06-16T12:52:25.072104 | 2021-07-15T23:41:51 | 2021-07-15T23:41:51 | 386,438,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | from chat_app import celery, create_app
app = create_app()
app.app_context().push()
| [
"cacods21@gmail.com"
] | cacods21@gmail.com |
114051973dfb7998dcd083c97d150316f7106c68 | 5399a0be824d32475b6cf643d6cc1203a4752141 | /main.py | ca5f015a6cfc287e8dd4d75ecd69d7693e905bed | [] | no_license | dalon1/python-firebase-db-test | 5dcbb3700567bcf33d9bc7bf780a8020e10f2752 | e16a931fab2ec805f7d16475ba3b8727bb771224 | refs/heads/master | 2023-02-08T07:30:34.720433 | 2020-12-31T21:30:02 | 2020-12-31T21:30:02 | 325,874,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | # Importing packages
import requests
import yaml
# 1. Reading config file
with open("config.yml") as file:
config = yaml.load(file, Loader=yaml.FullLoader)
print("Config Object: " + str(config))
# 2. Calling data source rest api (e.g. country-rest-api) and parsing data
api_response = requests.get(config.get("dat... | [
"dalon@Katrinas-MacBook-Air.local"
] | dalon@Katrinas-MacBook-Air.local |
2bb192e13d0b897544b36848f736cf1666918f37 | e8160ba62759fc390daf60d88146e95c0c0de1b4 | /TestDjangoORM/settings.py | 97366c9073674155c60edddae7971a54bbb699fe | [] | no_license | imranq2/TestDjangoORM | 2a3a72aff36f03b6e2bb1a0f394a3499d2607bba | 8d51d772f42635c0dbbd1d462057defaa9cdfbff | refs/heads/master | 2023-01-05T23:07:07.662717 | 2020-11-03T04:36:44 | 2020-11-03T04:36:44 | 309,496,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,510 | py | """
Django settings for TestDjangoORM project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from p... | [
"imranq2@hotmail.com"
] | imranq2@hotmail.com |
0c9146f670808e930b36605e77ad014288be9991 | e86e5d6a1524244cd79b7fdf104203b718d64c01 | /Pyshell.py | a060c958c599d449e709229fff311d7dce906212 | [] | no_license | ravijakhania13/Terminal_using_python | db101166930b8eac060fc4a5d8ee3e81a7085b25 | 15215daf2418b558019ed941573573006dd0165f | refs/heads/master | 2020-04-04T20:45:48.760731 | 2018-11-05T17:59:32 | 2018-11-05T17:59:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,789 | py | import os
import sys
import getpass
import socket
from pathlib import Path
import itertools
from more_itertools import *
import re
import fileinput
import difflib
import pwd
import grp
import time
def load():
path = os.getcwd().split('/')
str1 = "~"
for i in path[3:]:
str1 = str1 + "/" + i
print ("\033[1;32;1m" +... | [
"noreply@github.com"
] | ravijakhania13.noreply@github.com |
b12ac59426ccc36f6b9534995fe07d7f4cbb4b03 | 870ffac5df4f386c2d79263d8424d1e2c3844837 | /hal/player.py | 8f716862f6371e78705ee5d42f69119cbe38669b | [] | no_license | easying001/DcsDemo | 5f077dffaa1f6f993928d72977968f0aa12e21e1 | e5811bd48deb5d16b4a12774d8e9e13e71d5eea2 | refs/heads/master | 2021-06-15T21:57:10.159855 | 2020-07-30T07:11:13 | 2020-07-30T07:11:13 | 98,290,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | import pyaudio
import PyMedia
import wave
class Player():
def __init__(self):
print "Player Initialized"
def play_file(self, path):
chunk = 1024;
f = wave.open(path, "rb")
p = pyaudio.PyAudio();
stream = p.open(format = p.get_format_from_width(f.getsampwidth()),
... | [
"yangjie11@baidu.com"
] | yangjie11@baidu.com |
8d0bf49c97190af924336ce053ddf32447c6894a | d0773c14db3507831e9181f5aa4f4b11adadd3f7 | /EDIOrderingMessage2003-Order2.py | 5b72cd27d61d7f79eab35c721bddd6910932e961 | [] | no_license | NegarBatenipour/Semantic-EDI | 3adc62e887a6ef4e25206f37e76e79bc7f5122ed | b23d4645052402c5b0da023d8136616e95d33a17 | refs/heads/master | 2021-06-03T19:49:34.785490 | 2021-02-08T21:59:28 | 2021-02-08T21:59:28 | 145,393,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78,854 | py | # -*- coding: utf-8 -*-
from rdflib import Graph, Literal, BNode, Namespace, RDF, URIRef
from rdflib.namespace import DC, FOAF
from rdflib import Namespace
n = Namespace("http://example.org/")
g = Graph()
# Create an identifier to use as the subject for Donna.
Order1 = BNode()
s1 = []
UNH = []
UNHElements = 0
UN... | [
"noreply@github.com"
] | NegarBatenipour.noreply@github.com |
0672494c6a8366c0cd36200301233ebad4414e09 | 8e008a799fb5dc64f9c6b68f01255483e9140f7f | /apps/operation/migrations/0001_initial.py | 5d0316c6f1b6638b0509a3907d828d2b4a5b1772 | [] | no_license | eggsyy/EggXonline | 5ec72c811b8b9041274486eb9def70033f947ebc | b115aa5f5b647c195a79d71db276656dca586229 | refs/heads/master | 2021-01-19T16:45:29.627382 | 2017-09-04T12:53:50 | 2017-09-04T12:53:50 | 101,025,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,711 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-08-23 05:28
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
... | [
"464063606@qq.com"
] | 464063606@qq.com |
55b6530372d2b8c8b937644e163e34066b11837f | f7db1796a9430e4c23e3368be2af49cd533c14bd | /hidef/logger.py | 4e229eae8ae32e57d6fdeab2d13535762a30b4f4 | [
"BSD-3-Clause"
] | permissive | fanzheng10/HiDeF | 145640898d75a34bb6fae0b78987697a2ec258f7 | bf2f1a67b21fdaa375a5c1d428004cd7c9686341 | refs/heads/master | 2023-05-14T18:24:51.041018 | 2023-05-09T15:09:59 | 2023-05-09T15:09:59 | 347,454,671 | 7 | 5 | BSD-3-Clause | 2023-05-09T15:10:00 | 2021-03-13T18:59:50 | Jupyter Notebook | UTF-8 | Python | false | false | 10,547 | py | """This module defines class that can be used a package wide logger."""
import sys
import math
import time
import os.path
import logging
import datetime
import logging.handlers
import numbers
__all__ = ['PackageLogger', 'LOGGING_LEVELS']
LOGGING_PROGRESS = logging.INFO + 5
LOGGING_LEVELS = {'debug': logging.DEBUG,
... | [
"shz66@pitt.edu"
] | shz66@pitt.edu |
897ec77c9b38bdda3418a663f5ce762681600b2d | 7cd586f68f38d8d3be11b0909a1c0cd84ff9fa7a | /posts/migrations/0034_slider_color.py | 7117ec0321b91b65cd941f53d4ee9ff25b0f655a | [] | no_license | mehmetsan/WebsiteProject | f0732d7567b67184a8f2a58d3c0ca6978f9fbf32 | a384047551e349fc5ddadb6b9a1d821c8d4b17c7 | refs/heads/main | 2023-03-01T09:45:37.672996 | 2021-02-13T15:17:31 | 2021-02-13T15:17:31 | 332,440,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # Generated by Django 3.1.3 on 2021-01-14 11:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0033_auto_20210114_1425'),
]
operations = [
migrations.AddField(
model_name='slider',
name='color',
... | [
"trabzonpower@gmail.com"
] | trabzonpower@gmail.com |
65ce3e109266778a7e4bbac0c6f09d03de0dd1da | a16bb446854335c769901559156ee22a9f53e021 | /project1/urls.py | deb8ad5afe13f2ffa60f97d8d6746169cf6c7de0 | [] | no_license | devanshi12kar/My_new_website | 4b3edd09188ecd02b3c02273392015d0b3c0435f | 21f910b1c18b86202a14b62a58e4f0e8c52a7842 | refs/heads/master | 2020-03-28T23:23:18.862213 | 2018-10-03T12:32:37 | 2018-10-03T12:32:37 | 149,288,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | """project1 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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-base... | [
"devs@firststart.com"
] | devs@firststart.com |
424480239805faf235cfee036b138f53a3666030 | 8d6c31030552389225d7800243209acdd414cee1 | /city/mainapp/migrations/0004_auto_20210718_1531.py | 6fe21bb16ad661f1ec60f0ddf94e38714ebf0cd3 | [] | no_license | DREAD21/siteproject | f0d15fd011de47a1f21d4ea0fdac844f2a98c607 | 10c2ee41c5a39455e6c66ce0e132435b6bb8b337 | refs/heads/master | 2023-07-29T23:56:52.101614 | 2021-09-16T19:32:43 | 2021-09-16T19:32:43 | 399,522,481 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 869 | py | # Generated by Django 3.2.5 on 2021-07-18 12:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0003_advices_aquapark'),
]
operations = [
migrations.CreateModel(
name='cinema',
fields=[
... | [
"nickit.crasnov@gmail.com"
] | nickit.crasnov@gmail.com |
afdfc45217af92feca35e8df5f3b06c51cf1a18f | 32cb84dd41e4be24c065bb205f226f9b121a6db2 | /feedback/urls.py | 523511566940bbd365ca5900079a62fd10f87512 | [] | no_license | InformatykaNaStart/staszic-sio2 | b38fda84bd8908472edb2097774838ceed08fcfa | 60a127e687ef8216d2ba53f9f03cfaa201c59e26 | refs/heads/master | 2022-06-29T11:09:28.765166 | 2022-06-13T21:56:19 | 2022-06-13T21:56:19 | 115,637,960 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | from django.conf.urls import patterns, include, url
import views
noncontest_patterns = [url(r'^staszic/judging/(?P<jid>\d+)/$', views.judging)]
| [
"hugo@staszic.waw.pl"
] | hugo@staszic.waw.pl |
b2b2047436cb6ef21e42f5f64cafea79172a6929 | f4099d24541d368f30b687cc5004c1b5f92770d6 | /src/setup.py | cbbfcd700c425e504703b66e876524704df54a5b | [
"Apache-2.0"
] | permissive | pilgrim2go/synapse-tools | 2545bf5e32bc9ce4d7f5faf2cad76672faaf6a46 | e493ead34741c3a9ae2caedd5c1de4aea7181a8b | refs/heads/master | 2021-01-12T15:18:01.950776 | 2016-05-18T03:47:24 | 2016-05-18T03:47:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
setup(
name='synapse-tools',
version='0.10.1',
provides=['synapse_tools'],
author='John Billings',
author_email='billings@yelp.com',
description='Synapse-related tools for use on Yelp machines',
packa... | [
"krall@yelp.com"
] | krall@yelp.com |
4c84bb0dd04ef0a5558dab96f89e9a850724abde | 0386591b51fdbf5759faef6afb8729b64a3f1589 | /layerserver/widgets/modificationdate.py | 3b9aab935d42e5aa5a0047c815f565c8306afad5 | [
"BSD-3-Clause"
] | permissive | giscube/giscube-admin | 1e155402e094eb4db1f7ca260a8d1402e27a31df | 4ce285a6301f59a8e48ecf78d58ef83c3827b5e0 | refs/heads/main | 2023-07-11T17:23:56.531443 | 2023-02-06T15:12:31 | 2023-02-06T15:12:31 | 94,087,469 | 7 | 1 | BSD-3-Clause | 2023-07-07T13:22:09 | 2017-06-12T11:12:56 | Python | UTF-8 | Python | false | false | 556 | py | from datetime import datetime
from django.utils.timezone import get_current_timezone
from .date import DateWidget
class ModificationDateWidget(DateWidget):
base_type = 'date'
@staticmethod
def update(request, instance, validated_data, widget):
validated_data[widget['name']] = datetime.now(tz=ge... | [
"abusquets@gmail.com"
] | abusquets@gmail.com |
d668a2191518d04bcc9df704986600a8dfe6d936 | d6088b0160d1c0fc70a9c8a865a0825141703ea9 | /urls.py | 197d17e671d1a43dcc2f6d02d5eed97cbeb64ec3 | [] | no_license | pattern/simple-django-application | 1067cbc912e19d6e381882d5927b0d425c970239 | 32eb8f9f10c2cea21976dedf116efd72c16379d5 | refs/heads/master | 2020-05-16T02:05:52.367785 | 2011-08-11T19:14:04 | 2011-08-11T19:14:04 | 2,125,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 633 | py | from django.conf.urls.defaults import patterns, include, url
from simple-django-application.views import *
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Examples:
url(r'^$', home, name='home'),
# url(r'^simple-dj... | [
"pickelman@gmail.com"
] | pickelman@gmail.com |
0889b53048122ca1f6ccc0de3350bdcedd767098 | 3432ac89d63221d61eb14ee0a3c6871e84cb66be | /p3ong.py | b3e6ccacf8107122e159c3624341acdccba0c0f9 | [] | no_license | eliseong/Othello | 7e7b1109d5d58512c3358a387fe5ded2c368b9ae | 934b076a1eaeebf97411456043999bdb08183241 | refs/heads/master | 2022-03-20T07:06:28.181837 | 2019-09-03T09:07:26 | 2019-09-03T09:07:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,347 | py | # Jan 12, 0952 version
import sys
import random
import math
EMPTY, BLACK, WHITE, OUTER = '.', '@', 'o', '?'
# To refer to neighbor squares we can add a direction to a square.
N, S, E, W = -10, 10, 1, -1
NE, SE, NW, SW = N + E, S + E, N + W, S + W
DIRECTIONS = (N, NE, E, SE, S, SW, W, NW)
PLAYERS = {BLACK: "B... | [
"noreply@github.com"
] | eliseong.noreply@github.com |
e32b8417c5e29a4c4747ff2195cf73af2b296957 | b1a3a981f1d7255a583fd04a9ba979d24310ef86 | /6th-sem/OS/project/short_term_scheduler3.py | 31453e803d0f4e8749950b906787a6b274281489 | [] | no_license | asutosh97/college-labs | ee2fb48db79370d51ed73a9f9b44960b451a2268 | 7ea6a4fb65785ae6a15efb92e97a7baafb7ac722 | refs/heads/master | 2021-09-11T15:35:59.281738 | 2018-04-09T11:00:05 | 2018-04-09T11:00:05 | 99,686,272 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,916 | py | #!/usr/bin/python3
'''
Program to simulate different scheduling alogrithms
'''
from queue import PriorityQueue
from functools import reduce
import sys, operator
def insert_to_ready_queue(ready_queue, criteria, process, priority_counter):
priority_counter += 1
process['rr_priority'] = priority_counter
ready_queue.pu... | [
"asutoshsahoo786@gmail.com"
] | asutoshsahoo786@gmail.com |
7db2d4f92504ff0979701ebbff1d9799fdd40f3a | d5919e45e00543ea6abf1a65647fe9a32af9dc1e | /processmysteps/default_config.py | 957dd940b6d9322e2868adb91f570021fc197113 | [
"MIT"
] | permissive | ruipgil/ProcessMySteps | 4f899c297f0ad09403f9bab3aa601b5275163039 | 39bf630895630f95129a455c8dd4d944f5ac1a06 | refs/heads/master | 2021-01-16T23:37:37.073841 | 2017-05-01T21:27:01 | 2017-05-01T21:27:01 | 55,251,842 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | """
Base line settings
"""
CONFIG = {
'input_path': None,
'backup_path': None,
'output_path': None,
'life_path': None,
'life_all': None,
'db': {
'host': None,
'port': None,
'name': None,
'user': None,
'pass': None
},
'default_timezone': 1,
'li... | [
"ruipgil@gmail.com"
] | ruipgil@gmail.com |
acd4fb11db9c4c18e77570e8ced8ad3bfa510852 | b5eba8d20db69624298bffba1c0572553174a9d7 | /kattis/SolvingCarrots.py | adc50c5d88d1fb394172f76acccf236c681d6fe6 | [] | no_license | kvntma/coding-practice | a7ef1bde165df8ec3932a2f863b37c8f44de87a4 | 9e568e479b6cac144b1c7c87b1232093f2209090 | refs/heads/master | 2021-07-21T21:14:18.783812 | 2020-10-24T18:30:57 | 2020-10-24T18:30:57 | 225,339,540 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | import sys
carrots = sys.stdin.readline().split()
P = carrots[1]
print(P)
| [
"kvntma@gmail.com"
] | kvntma@gmail.com |
5ce7593024740e2adbdcd509987557c207679cb2 | edb527ecdc408ddbddd9750b0673997644d4011e | /evalml/utils/cli_utils.py | 9416c1110f5422a5e89bfeb2fadc13176a045ae6 | [
"BSD-3-Clause"
] | permissive | ctwgL/evalml | 5cf21d6f6ddcb729c0547fb21d1080eec4e3012e | b239dbc741bd77228921a677ab52a659a1b16876 | refs/heads/main | 2023-07-18T18:42:52.971123 | 2021-09-14T01:12:48 | 2021-09-14T01:12:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,293 | py | import locale
import os
import platform
import struct
import sys
import pkg_resources
import psutil
from psutil._common import bytes2human
import evalml
from evalml.utils import get_logger
def print_info():
"""Prints information about the system, evalml, and dependencies of evalml.
Returns:
None
... | [
"noreply@github.com"
] | ctwgL.noreply@github.com |
6f1547fab3b6b91f274d8e7a04e2ac3e28693ae2 | 3b593b412c663a34784b1f60ad07cd2ee6ef87d1 | /month01/python base/day12/code03.py | 19ca59f6f051da2f348473bcdba1941fb51fd14e | [] | no_license | ShijieLiu-PR/Python_Learning | 88694bd44aeed4f8b022202c1065342bd17c26d2 | ed01cc0956120ea287c51667604db97ff563c829 | refs/heads/master | 2023-05-22T16:35:24.252313 | 2021-06-16T10:56:21 | 2021-06-16T10:56:21 | 337,445,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | """
运算符重载
"""
print("a" + "b")
class Vector:
"""
向量类
"""
def __init__(self, x):
self.x = x
def __add__(self, other):
# self.x += other
# return self
return Vector(self.x + other)
def __str__(self):
return "Vector(%d)" % self.x
v01 = Vector(10)... | [
"shijie_liu@outlook.com"
] | shijie_liu@outlook.com |
400cc46db271da23fe460f3d4047f75ec0036f29 | 59e85251c447135f8cfba9eba5b3d94a8bde08a0 | /python/prod.py | de77ae71fa08dd36bb2318a052154fffc10923a3 | [] | no_license | sigfreid666/minisab | e7c1481b2add0d23ad7e6365cc5ce12079598fdb | baf815895db94bb65b8e6a11ad9dbfb39ed6aa88 | refs/heads/master | 2021-05-21T22:56:33.623358 | 2018-06-09T10:47:21 | 2018-06-09T10:47:21 | 252,843,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | from minisab import create_app
app = create_app()
| [
"guillaume.frutoso@gmail.com"
] | guillaume.frutoso@gmail.com |
a76fb96c1dee7dc23e37475cf091be28ee2f0534 | be17b72807cb9b752dd36e7d1efc3f9bb058ed6a | /krom-oes/.bin/wlisten1 | 8f646d37e450e4c137a33bf82d852c6864480530 | [
"MIT"
] | permissive | lakshyabhaintwal/my-theme-collection | 6835f5b75aa77a6e35aec79ceedf44a23a0c550d | 73446015ef44ceb71cf6bdb8ba5f0b46071cf1a3 | refs/heads/master | 2022-01-08T19:30:06.349839 | 2019-06-17T06:06:34 | 2019-06-17T06:06:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | #!/usr/bin/python3
import Xlib
import Xlib.display
disp = Xlib.display.Display()
root = disp.screen().root
NET_WM_NAME = disp.intern_atom('_NET_WM_NAME')
NET_ACTIVE_WINDOW = disp.intern_atom('_NET_ACTIVE_WINDOW')
root.change_attributes(event_mask=Xlib.X.FocusChangeMask)
while True:
try:
window_id = root.... | [
"hasbeeazam@gmail.com"
] | hasbeeazam@gmail.com | |
ce9aad8e1b77a986dc7ea57c08f77bee0d66e97c | 600191b4a3106c27f9c73bb5cd7df5c1e3d377f4 | /Webcam-Face-Detect/webcam.py | 98a736c64ae4944d1aadf8e87d2f1d444d2434f7 | [] | no_license | migueleci/Voice-Recognition | 79c8ea3f3df3a38167e6d42d48756caa24dfa924 | af21ee1e6346830ea416399d7624a84a6262dee9 | refs/heads/master | 2021-01-10T06:31:05.035623 | 2015-10-08T04:26:57 | 2015-10-08T04:26:57 | 43,508,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,237 | py | import cv2
import sys
import os
import numpy as np
from PIL import Image
#cascPath = sys.argv[1]
cascPath = '/home/lenovo/Documentos/Webcam-Face-Detect/haarcascade_frontalface_default.xml'
faceCascade = cv2.CascadeClassifier(cascPath)
video_capture = cv2.VideoCapture(0)
recognizer = cv2.createLBPHFaceRecognizer()
re... | [
"miguelromero@MacBook-Air-de-Miguel.local"
] | miguelromero@MacBook-Air-de-Miguel.local |
b62b9d12528fab30ba13d52d4ab9d783c4f58689 | e7c84801d7755806e58795d5fe51f7a924815ffc | /python-image-watermark/python-watermark-image.py | 86d4a5401ae25cc33b68205ae57687d2b72853e3 | [] | no_license | c0c1/python-image | 3454b37b3e0339fd3e204a38d7aa14c885e10e38 | b785801589722571ac7ed8ad4428b4d04f518a2b | refs/heads/master | 2023-06-04T23:36:17.974408 | 2021-06-21T12:38:23 | 2021-06-21T12:38:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | import os, sys
from PIL import Image, ImageDraw, ImageFont
img_dir = "images/non-watermark/"
dirs = os.listdir( img_dir )
for img in dirs:
if os.path.isfile(img_dir + img):
#Create an Image Object from an Image
im = Image.open(img_dir + img)
#Image width and height
width, height = im.size
#Image name... | [
"email@email.com"
] | email@email.com |
ad7953da5cd8892ecfea3d2bac68630280a51843 | 69198c187d7d3be82164acb1fa4dd5bad8b14a1f | /src/auto_test/units/tools.py | c0388d0418c33ec3f5c4116ce12c31c2229be92c | [] | no_license | dahai33/my_python | 64067633f99369fdffa680afff185f2fb579e4c8 | 56a49b79c61fce828225971a8e2855a95540f954 | refs/heads/master | 2020-03-21T09:11:46.640149 | 2018-08-06T16:29:55 | 2018-08-06T16:29:55 | 138,387,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | #!/usr/bin/python3
#Author:刘海涛
# --*-- coding: uft-8 --*--
# @Time : 17:38
import os
import src.auto_test.units.log as L
import yaml
class devices_id(object):
def __init__(self, device_id=""):
if device_id == "":
self.device_id = ""
else:
self.device_id = "-s %s" % de... | [
"liuhaitaodahai@sina.com"
] | liuhaitaodahai@sina.com |
b37e7ecbf4467d9d193cddf3e733018b8e0a8497 | 9980933e0a1d753efda7aa5b0a90b1ac4082ad59 | /semaphores/philosophers_2.py | 0ffe6c052704a2efb9469921b7c5b6aee96838e3 | [] | no_license | oscaru/concurrencia | faf9ff4e3c4bd45196ac170da6441ce0779bec51 | b66e455e838fc7f4e4922ee7263851dd6b89c821 | refs/heads/master | 2023-02-14T22:56:27.207040 | 2021-01-03T11:04:34 | 2021-01-03T11:04:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,923 | py | #! /usr/bin/env python
import threading
import time
PHILOSOPHERS = 5
EAT_COUNT = 100
THINKING = 0
HUNGRY = 1
EATING = 2
class Philosopher(threading.Thread):
mutex = threading.Lock()
status = []
sync = []
count = 0
def __init__(self):
super(Philosopher, self).__init__()
self.id =... | [
"gallir@gmail.com"
] | gallir@gmail.com |
6cbd914c60db7675f24b394b6a519421c5b8c581 | 791b0bfa6e62991c50c77aa3c0da54704633725b | /eguchi_etal_2019_natgeo.py | dbc0109169d38951b0501475eb8ea8a93beccaae | [] | no_license | sherry0451/kan | d78851d2d053ee6a2383271d2024ebc5f05f8a38 | 88ff568672fcd1b4d51c767f7c7af2fb024c511b | refs/heads/master | 2022-04-21T06:50:26.005403 | 2020-04-24T00:47:46 | 2020-04-24T00:47:46 | 258,367,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,208 | py | # Python Script to run C-O cycle model from Eguchi et al. 2019 Nature Geoscience. Model is designed to track
#C fluxes, reservoirs, and isotopes, as well as atmospheric O levels. Model was
#designed to investigate the relationship between large atmospheric
#oxygenation events and large C isotope excursions. In the ... | [
"noreply@github.com"
] | sherry0451.noreply@github.com |
dcd1061b722b024dfeb58696864a3cc6655054ba | 6f96c987689db877240ce3c1fc32b9e32252bda3 | /Project_5/douyu/douyu/settings.py | d7b68c12b1a9ae3c8b4196281f21e2489b3db715 | [] | no_license | Mathilda11/Scrapy_Project | 65d7281bdb75283fccc3795638e0957595d926f9 | 653db6cdb763eadfd886ae757f2777afd7946372 | refs/heads/master | 2021-10-24T05:12:37.462691 | 2019-03-22T08:04:44 | 2019-03-22T08:04:44 | 110,244,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,231 | py | # -*- coding: utf-8 -*-
# Scrapy settings for douyu project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/latest/t... | [
"yizzzhang11@163.com"
] | yizzzhang11@163.com |
24f7b3b1146c1b28f642b500a4ac01033669c4d6 | 78ad0b63571ea8d7dd56f6baf7d1dd8fd73f2380 | /timeline/forms.py | a5790743df5a056511d91608ab9ca5a5f503e118 | [] | no_license | stoictyper/tenetblog | b6aacd31820880f52a1991ce7a0cfe6d88821fdd | 8a35e95f26e932158802a0747c36f1bf51524d63 | refs/heads/master | 2022-12-12T05:03:06.816880 | 2020-09-16T09:14:47 | 2020-09-16T09:14:47 | 295,981,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | from django import forms
from .models import Timeline
class TimelineForm(forms.ModelForm):
class Meta:
model=Timeline
fields=["title","content","aimage"]
| [
"alioguzdogru@gmail.com"
] | alioguzdogru@gmail.com |
6520e18f02a020d437d9faab0c0f1894ec361f79 | 48997954c0e4af29dd8ae17cbfde6081fc225dcc | /PROJ_COD/Machine/kwon/vt_query.py | 3fb2b3070a5e7e4c407c5c7aecb9c6d94ded43ae | [] | no_license | annie522/kitri | 7c7fd9e6ab015a94051b398704d39df09ba8966d | 5ae2e8f5ee7e15cd1b0e828ee63e30a320746317 | refs/heads/master | 2021-01-22T10:57:01.778072 | 2017-07-26T00:40:25 | 2017-07-26T00:40:25 | 92,664,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,765 | py | # Virustotal Module
#
# Below are a Virustotal.com's API options/tags (for k:v responses)
# response_code, verbose_msg
# resource, scan_id, md5, sha1, sha256
# scan_date
# scans
__author__ = 'Jacolon Walker'
import requests
import json
import hashlib
import sys
class Virustotal():
""" Virustotal API module """
... | [
"zzabzz21@naver.com"
] | zzabzz21@naver.com |
2d24087778240384516917c28596440c2aed5e2b | 8520c991dc543f5f4e1efe59ab401824173bb985 | /332-reconstruct-itinerary/solution.py | 9deb98ca04053efa355f326607f4c90351f51542 | [] | no_license | katryo/leetcode | d44f70f2853c4f5ea9a462d022feb0f5436c2236 | 0da45559271d3dba687858b8945b3e361ecc813c | refs/heads/master | 2020-03-24T12:04:53.859047 | 2020-02-18T04:27:55 | 2020-02-18T04:27:55 | 142,703,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | from collections import defaultdict
import heapq
class Solution:
def findItinerary(self, tickets):
dests = defaultdict(list)
ans = []
for src, dest in tickets:
heapq.heappush(dests[src], dest)
def dfs(dep):
arrivals = dests[dep]
while arrivals:
... | [
"katoryo55@gmail.com"
] | katoryo55@gmail.com |
ad2e14b44f001a96a156b1baca80fb89acb0ee56 | 7fb1e6e0d3c452de2cda8e2338343e9862c6c88a | /28082019/000952.py | c53d6b23139aa81b05f59be1cd02d8cd7c94c449 | [] | no_license | RobertoCruzF/Intensivo-Nivelacion | 3a10afc61f2744e7fd0d6019f0c572fb8b5deec9 | c7dd1a4aaf1c419f3edb35d30f200c1c0b6a26a9 | refs/heads/master | 2020-07-05T11:50:13.582245 | 2019-08-30T14:35:42 | 2019-08-30T14:35:42 | 202,641,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | import numpy as np
b= np.array([(1,5,2,3),(4,5,6)])
print b # imprime el arreglo b con los elementos definidos dentroo de la lista
| [
"rcruz@miuandes.cl"
] | rcruz@miuandes.cl |
2ee7655b0e28bb82c5b109d6432be9f8c3aff52b | 32aced0459f10a165b51b16730b412b5f9b5293d | /August1st_Detect_Capital.py | 2738d9060912a5a49f7a35eb4e067e6960c3f095 | [] | no_license | Wonjuny0804/leetcodechallenge | e08b741be4856f69cd4553b505c9da32b1fb9e4d | 0f0ec19c3f48c001584e1e5bc92df51b15d8ba8a | refs/heads/master | 2022-12-13T02:33:54.118285 | 2020-09-11T06:49:47 | 2020-09-11T06:49:47 | 284,678,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | """
Given a word, you need to judge whether the usage of capitals in it is right or not.
We define the usage of capitals in a word to be right when one of the following cases holds:
All letters in this word are capitals, like "USA".
All letters in this word are not capitals, like "leetcode".
Only the first letter in ... | [
"wonjun84@naver.com"
] | wonjun84@naver.com |
b3c410f4730e84fde0ef11b12ab700a67513a5a9 | 4c0fc477a3d961b35f26bbd5916ab327fa30b99e | /S1_ medium.py | 5b148ceb45e027a77ac4db6bb9d81b2e9cae6212 | [] | no_license | sauravbasak/Codehall-Python | 7be4f80a0e5dc46254d42018f35f03bc24088aa4 | 4859c95ead96ddb3bfc1aa79976121031659b94a | refs/heads/master | 2022-12-02T07:19:27.810672 | 2020-08-21T17:59:29 | 2020-08-21T17:59:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | #takes input, input function always a string. so change it to int()
radius = int(input('input the radius of the circle'))
#** is a power operator. here calculating area
#used 3.14 to approximation
area = 3.14*radius**2
print('the area of the circle is about ' + str(area))
| [
"noreply@github.com"
] | sauravbasak.noreply@github.com |
23c1aba0a6984f43717a229dae9794d4c3027e3f | 9666666561bbca04c70325de07335b70c00a631e | /RNN/LSTM.py | 8345fa1e6c518f5eb04e588a3cb5372afe6aef1d | [] | no_license | deeshantk/machine_learn | c0720d6541e90507321b44f08d501683ef222625 | 57ec7252cc93cb48feb901cb995d4d880d633f2c | refs/heads/master | 2020-06-30T15:19:51.554546 | 2019-10-23T16:06:38 | 2019-10-23T16:06:38 | 200,869,773 | 2 | 0 | null | 2019-08-07T20:05:05 | 2019-08-06T14:39:21 | Python | UTF-8 | Python | false | false | 874 | py | from keras.models import Sequential
from keras.layers import LSTM
from keras.layers import Dense, Dropout
from keras.optimizers import Adam
import keras
(X_train, y_train), (X_test, y_test) = keras.datasets.mnist.load_data()
X_train = keras.utils.normalize(X_train, axis=1)
X_test = keras.utils.normalize(X_test, axis=... | [
"noreply@github.com"
] | deeshantk.noreply@github.com |
a07b1f8608ca572ae0d5ccebcce1e3ff744dab7b | 9b5b9e0ac038cafadccb2474a13aab21c9ed6c50 | /app/views.py | 0e6b1d94db87fc65f299731d348e669009083669 | [] | no_license | rkmarvin/test_blog | 8a95dd7a6a52508497281cf7d5f171bcc1b1974b | acdb2fa5d5c3d479b7e9e5162f361b194d13a6d8 | refs/heads/master | 2020-04-06T03:41:07.092706 | 2015-07-02T19:04:12 | 2015-07-02T19:04:12 | 37,518,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,723 | py | from django.contrib.auth.models import User
from django.db.models import Q
from django.views.generic import ListView, CreateView, RedirectView, DetailView
from app.models import BlogRecord, Subscription, SoubcrBlorRecorStatus
class ListUserBlogRecordsView(ListView):
def get_queryset(self):
return BlogRec... | [
"rouslan.korkmazov@gmail.com"
] | rouslan.korkmazov@gmail.com |
6c37fc6576700baa64bac68db215c8f8fece2007 | e00941773e95212a1f76010c3f7b3c7a46f0c9a1 | /DjangoGo/settings.py | d85b6c6c33c24e6f70dd39b455b12b2ea96a0f91 | [] | no_license | a6a18-Old/django | 4dc08c322f127d7b7ce68ef088eb64fd91c07429 | 70a7dfdb50a4c10f2e2f39ab47327fac458d700b | refs/heads/master | 2022-07-17T05:22:08.235754 | 2020-05-13T18:12:49 | 2020-05-13T18:12:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,138 | py | """
Django settings for DjangoGo project.
Generated by 'django-admin startproject' using Django 3.0.6.
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/
"""
import os
... | [
"a6a18@cycu.org.tw"
] | a6a18@cycu.org.tw |
cc81969fe3c3463a9a336a1e77f56a7592cde567 | b91bd5b0954776fd186bf064a87fb8f7ffa4a58a | /python2/flask/flask_fun/flask_table/server.py | 5c146559aa55798c1023ee96a350f5061e5a2f4d | [] | no_license | ronaldaguerrero/practice | ddf1f41b693110cebe4d52e29910909f3ba21115 | 38627fddd8f79e6fb50c05a0e4e8d27a92146e1b | refs/heads/master | 2023-01-23T17:06:18.642983 | 2019-09-13T05:01:48 | 2019-09-13T05:01:48 | 186,157,588 | 0 | 0 | null | 2023-01-07T09:40:40 | 2019-05-11T16:40:12 | Python | UTF-8 | Python | false | false | 564 | py | # import things
from flask_table import Table, Col
# Declare your table
class ItemTable(Table):
name = Col('Name')
description = Col('Description')
# Get some objects
class Item(object):
def __init__(self, name, description):
self.name = name
self.description = description
items = [Item('N... | [
"ronald.a.guerrero@gmail.com"
] | ronald.a.guerrero@gmail.com |
f05897aa9e15a83463b6a5b80f3d7b2481815759 | 502de531a391a617ac947e947661d2c36a2ff2ff | /setup.py | 631ba9a3865ba25ce48db03448fb4b57baa31b10 | [] | no_license | ingfcetina/testing-arcpy | 17026fdcf185b919da9da3c7ab36a5bffead0722 | c7f3b74c37c8f8673100bd532039e7a3d318bdf9 | refs/heads/master | 2021-06-18T05:14:54.239298 | 2017-07-09T14:15:05 | 2017-07-09T14:15:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | from setuptools import setup, find_packages
setup(
name='my_project',
version='1.0.0',
description='Sample project for arcpy applications',
url='https://github.com/lobsteropteryx/arcpy-testing',
author='Ian Firkin',
author_email='ian.firkin@gmail.com',
packages=find_packages(exclude=['contr... | [
"ian.firkin@homeinsteadinc.com"
] | ian.firkin@homeinsteadinc.com |
7b233741a8843a22b7e1fb668ee45d54bca9363e | 6455e23a22dc13d1ca7ea5896904d7918c715054 | /logprocessor.py | 8c4016c76364dc9781c74e2e67154b8cd8c43910 | [] | no_license | Skidplays/LabLadder | 6580a36f12d9907fc212bb46bfe1ac2ecf70ecef | 64d78a82f1a4a079d51c246059e66d59c20aec1c | refs/heads/main | 2023-07-15T04:39:56.425141 | 2021-08-21T05:43:27 | 2021-08-21T05:43:27 | 398,159,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,880 | py | from datetime import datetime
START_LINE = ["Izaro: Ascend with precision.",
"Izaro: The Goddess is watching.",
"Izaro: Justice will prevail."]
FINISH_LINE = ["Izaro: Triumphant at last!",
"Izaro: You are free!",
"Izaro: I die for the Empire!",
"Izaro: The trap of tyranny is inescapable.",
"Izaro: Delight in y... | [
"noreply@github.com"
] | Skidplays.noreply@github.com |
4f75995da48db35b1989254d0fd3db739d8f7db4 | 1b49d99bf3b91ec45a57e4eabd3c868155fb932c | /code/model 1/utils.py | 55a494916c8943cd8166c90f57f2b30f2048d458 | [] | no_license | Clement-Hardy/Image-captioning | 3e365dbd1a20aedd608621c7d19594cb6e95fb26 | 86780413501ee64ffba849a15dc5d82b79e1fa17 | refs/heads/master | 2020-09-01T20:18:45.723144 | 2019-11-01T19:15:26 | 2019-11-01T19:15:26 | 219,047,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,752 | py | from keras.applications.resnet50 import preprocess_input
import os
import cv2
import numpy as np
import warnings
from keras.preprocessing.text import Tokenizer
def create_dataset(path_legend, path_images, start_sentence, end_sentence):
file = open(path_legend, 'r')
legends = file.readlines()
list... | [
"vicclem5999@live.fr"
] | vicclem5999@live.fr |
2538034794d182aad149414e83c631415a4e7db3 | 7634530365c88007bee507b639360ab0aa403d3f | /Python/004Median_of_Two_Sorted_Arrays.py | 3751860c6f224065a7d0eb3829eb1238dc8d0c38 | [] | no_license | viewer010/leetcode | 7389fbe4579da643fd4603f08553512b1520712c | 0db94ec34e84caa6d870ce933a198f9e31ffb183 | refs/heads/master | 2021-06-14T11:36:51.312447 | 2017-04-21T13:36:23 | 2017-04-21T13:36:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | #coding:utf-8
'''
python sort函数应该是O(nlogn)
'''
class Solution(object):
def findMedianSortedArrays(self, nums1, nums2):
"""
:type nums1: List[int]
:type nums2: List[int]
:rtype: float
"""
add_num=nums1+nums2
add_num.sort()
if len(add_num)%2:
... | [
"2638480742@qq.com"
] | 2638480742@qq.com |
f364822bf049609b8285f53a3563caa9508f8624 | 47100b5e35f6f5ec40fd42f1681ec26b0ed89a30 | /ajayidhikrullahscrumy/urls.py | 2fc0ef441e0160da1d87758c843643082f50b9ad | [] | no_license | ajayidhikrullah/linuxScrumyProject | d056b882f8ae8a3dc8c05252d44bfac08796659d | c9230b004d6816b347e6b5fdfb216f6e2586a3a0 | refs/heads/master | 2020-04-02T15:38:48.457952 | 2018-11-07T17:12:46 | 2018-11-07T17:12:46 | 154,576,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | from django.urls import path
from . import views
# from django.urls import *
urlpatterns = [
path('', views.index, name='index'),
path("scrumy_goals/", views.scrumy_goals), #/ajayidhikrullah/my_task/
path("goal_status/", views.goal_status), #/ajayidhikrullah/goal_status/
# extension of urls in ur we... | [
"ajayidhikrullah@gmail.com"
] | ajayidhikrullah@gmail.com |
bf67822d3bde7b6f73418549a4686a1a0b14a6cb | dc93b13ac77ad13d7969f00af22670cbb4401082 | /meiduo_mall/meiduo_mall/apps/oauth/serializer.py | ca590e8bd9a41283edd33a84eb6a01c9d9c8c40b | [] | no_license | zhangbk920209/TaobaoMall | 852877cac1167b37dadfbfcd415c161d52de3796 | c4bbc938357b91daa76fbfece72bb99179993a5d | refs/heads/master | 2020-04-02T15:53:09.563700 | 2018-11-08T09:06:27 | 2018-11-08T09:06:27 | 154,587,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,652 | py | import base64
import os
from django_redis import get_redis_connection
from rest_framework import serializers
from oauth.models import OAuthQQUser
from oauth.utils import OAuthQQ
from users.models import User
class OAuthQQUserSerializer(serializers.ModelSerializer):
mobile = serializers.RegexField(label='手机号', r... | [
"zhangbk0209@163.com"
] | zhangbk0209@163.com |
51e6d0b64816e845f3804107099f83eb52511405 | 030cea4006a4ff559f23cb3b3c31cd038ed2e332 | /week11/hh_back/api/migrations/0001_initial.py | ff433e7b38b000547c461e4b1354c718d2bfa422 | [] | no_license | ayananygmetova/Web-Dev-2020 | f8834e0ee26f0f0f06d0e3a282c73b373954a430 | 957bca91554f015e9a3d13b4ec12e64de7ac633e | refs/heads/master | 2023-01-22T16:49:39.857983 | 2020-03-31T10:09:54 | 2020-03-31T10:09:54 | 236,937,810 | 1 | 0 | null | 2023-01-07T16:34:35 | 2020-01-29T08:41:10 | Python | UTF-8 | Python | false | false | 669 | py | # Generated by Django 3.0.4 on 2020-03-31 07:50
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Company',
fields=[
('id', models.AutoField(... | [
"ayananyfmetova@gmail.com"
] | ayananyfmetova@gmail.com |
f20231cfc5c8195e5135526087d532d334a0c5fa | 9907b3dd74d1aedbed5243105649f0acd8e965d8 | /demo/pytorch_laguerre.py | 0aded5c456579f8f7de77004c4e2c77956273df5 | [
"MIT"
] | permissive | shubhampachori12110095/OrthNet | 68c7442c448acdca2b0f2fbef0709efec280be4c | 74824c1858e14f023d3f0251910f223d6b8672ce | refs/heads/master | 2021-01-25T13:12:07.142646 | 2018-02-28T15:18:38 | 2018-02-28T15:18:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | import sys
sys.path.append('../')
from orthnet.pytorch import laguerre_tensor, multi_dim_laguerre_tensor
import torch
from torch.autograd import Variable
import numpy as np
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
order1 = 5
order2 = 3
x1_data = np.linspace(-1, 1, 100).reshape((-1,... | [
"orcuslc@hotmail.com"
] | orcuslc@hotmail.com |
7897e7d4cadfa5c63f6555c720fe7a1d117dfa50 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/statsmodels/2017/12/markov_regression.py | ef11b49627e507701b1babda3e3d9963f998bb8c | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 16,426 | py | """
Markov switching regression models
Author: Chad Fulton
License: BSD-3
"""
from __future__ import division, absolute_import, print_function
import numpy as np
import statsmodels.base.wrapper as wrap
from statsmodels.tsa.regime_switching import markov_switching
class MarkovRegression(markov_switching.MarkovSwit... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
9a7b7ade617d5b7c6f80049ccb17d17674ca29ef | c662c18340914edbb099dd7412ea1de1dedff730 | /setup.py | 5ce9f1b7c35cc7879b9b45c8db3551ab550f49cb | [
"MIT"
] | permissive | snaqvi1990/sircel | 5e01efd2aada04c047730eedc58fc5fc63af8088 | fa1cc4050af5406f0d6e5902700db7a03d842664 | refs/heads/master | 2020-12-02T18:03:18.819512 | 2017-05-09T18:57:58 | 2017-05-09T18:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | """
"""
import shlex
import sys
import os
from setuptools import setup
params = {}
args = shlex.split(' '.join(sys.argv))
if('--kallisto' in args):
index = args.index('--kallisto')
assert(index < len(args)), \
'--kallisto option requires a path'
kallisto_path = args[index + 1]
assert os.path.exists(kallist... | [
"akshay.tambe@berkeley.edu"
] | akshay.tambe@berkeley.edu |
d0eb44f47aea9e440d8ce9e2190b0d49f9f3822d | 94b101b38acb682422b8e26ff09527e1102e6524 | /project/users/views.py | 4ae6702c4b12933ac5fa836b8207dbb98b6bbb8b | [] | no_license | mjoze/Web-App | f0ff12118510cb5bfa6d4ff5541194b184848c41 | 8f5c237231d35d87a77cf9dffa7261c19f81dec7 | refs/heads/master | 2020-12-23T02:47:06.241269 | 2020-03-07T14:34:54 | 2020-03-07T14:34:54 | 237,010,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,493 | py | from django.shortcuts import render, redirect
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from .forms import UserRegisterForm, UserUpdateForm, ProfileUpdateForm
def register(request):
if request.method == 'POST':
form = UserRegisterForm(request.POST)
... | [
"mirek.jozefiak@gmail.com"
] | mirek.jozefiak@gmail.com |
9377eeb7e95dc44c45eccf96248f42fb4f744035 | 7f585fdad9cf95714e492b5a4328f9603cf38459 | /src/decorator-sample.py | ff3665bd745d010906214afc3a68e6dda145e662 | [
"MIT"
] | permissive | skitazaki/python-school-ja | 2a4da0b4eb130920333d4530e3223217f152ba6c | f8f2250d48d734588469806165d24c3e1a9e6765 | refs/heads/develop | 2021-08-10T11:41:39.342364 | 2020-03-28T08:38:08 | 2020-03-28T08:38:08 | 2,898,972 | 1 | 0 | MIT | 2021-06-10T22:38:31 | 2011-12-02T14:32:48 | Python | UTF-8 | Python | false | false | 353 | py | class A(object):
@classmethod
def name(cls, msg):
print("Greetings from classmethod.")
cls.hello(msg)
class B(A):
@staticmethod
def hello(msg):
print("Hello", msg, " from Class-B")
class C(A):
@staticmethod
def hello(msg):
print("Hello", msg, " from Class-C")... | [
"skitazaki@gmail.com"
] | skitazaki@gmail.com |
f58dc5c06357b947dad8b998e8070480de396f5d | d47b841f7e64d83cebbe63a25bac47adc495a760 | /test/test_box_score_teams_overall.py | 74d000b20e37922744080d08c234957c32e396ab | [] | no_license | CiscoNeville/cfbd-python | 810029240de30a2b7a205cbc3bb009599481206c | 5775ff7ce7464e881f1940a7c0a534b0c26c1ce8 | refs/heads/master | 2023-09-04T18:27:23.773119 | 2021-11-19T01:49:07 | 2021-11-19T01:49:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | # coding: utf-8
"""
College Football Data API
This is an API for accessing all sorts of college football data. It currently has a wide array of data ranging from play by play to player statistics to game scores and more. # noqa: E501
OpenAPI spec version: 2.4.1
Contact: admin@collegefootballdata.co... | [
"radjewwj@gmail.com"
] | radjewwj@gmail.com |
3ab4c489a09acde84ec736017a06f464cf066447 | 027698c1805955cb7222f682a0b3939e0f8405a1 | /functions/problem_set2-2.py | 30cdc4ae143ca44118b3e1628f1daaf91339107a | [] | no_license | mrbartrns/introducing-to-CS | e0c114ce175169d6750bdee9fd8ddf3ad264f18e | 2fceef111ebed0ee0e8266997973dd410f45e7fa | refs/heads/master | 2022-12-07T23:46:33.329046 | 2020-08-30T14:39:04 | 2020-08-30T14:39:04 | 280,989,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | def solve(balance, annualInterestRate):
minimumFixedMonthlyPayment = 10
original = balance
monthlyInterestRate = annualInterestRate / 12.0
monthlyUnpaidBalance = balance - minimumFixedMonthlyPayment
while balance > 0:
for i in range(12):
monthlyUnpaidBalance = balance - minimumFi... | [
"mrbartrns@naver.com"
] | mrbartrns@naver.com |
1d8762c60b7af569450421e970799689990cf863 | 69a8a88c99f5c401b188ce7637174c19a3ed48d8 | /0x0A-python-inheritance/10-square.py | 9f90ed3be2ee071cbcc079312aa9f6543eda60d0 | [] | no_license | JDorangetree/holbertonschool-higher_level_programming | 0546b25726052a8ce6468781f933eb28d1aee30d | f984f5047f690d352c7f203ef16aa7f0cc49afcd | refs/heads/master | 2020-09-29T01:22:22.387395 | 2020-05-16T23:35:12 | 2020-05-16T23:35:12 | 226,912,872 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | #!/usr/bin/python3
""" Class that inherits from Rectangle """
Rectangle = __import__('9-rectangle').Rectangle
class Square(Rectangle):
""" Class that defines a Square by inheritance of Rectangle class """
def __init__(self, size):
""" Constructor """
self.integer_validator("size", size)
... | [
"julian.naranjo2014@gmail.com"
] | julian.naranjo2014@gmail.com |
78b373ee16f0efc70102408817bb21f313d8525e | fdcbf5b203f07cceefbb38a746f4a43b322e263e | /Python/findNeighbors_of_Nulls.py | 52f8694848396c9527b570609bc2724e421599bd | [] | no_license | Masoumeh/0390.IbnAhmadMuqaddasi.AhsanTaqasim | e7a3eddc895edb79f8d93c1bd0f09f130a761858 | 592720e5a154fcfe9cdab84b16eaf5574f30b806 | refs/heads/master | 2021-01-18T00:36:09.962622 | 2017-11-07T13:13:46 | 2017-11-07T13:13:46 | 45,922,253 | 0 | 0 | null | 2015-11-10T15:49:02 | 2015-11-10T15:49:02 | null | UTF-8 | Python | false | false | 1,682 | py | """
To get some information from the route network graph, like how far are the first two neighbours (with coords) of a node (without coords)
"""
from networkx.readwrite import json_graph
import io, json, csv
import re
import networkx as nx
import sys
import operator
import compose_graphs as cg
def findNeighbors_of_... | [
"m.seydi@uni-leipzig.de"
] | m.seydi@uni-leipzig.de |
4da9236790e55b245e9e279660657cfffce90b75 | f10042f062537becffa4de4286eac5945461bf10 | /python-tests/img-test.py | 4b4325e0314867c2e73a48053f6da632ae49533c | [] | no_license | major-phyo-san/raw-codes | 38bacba381f1d8f3e5e84c2b734a849b34806044 | 34c7b9acd7020a8363826f75d336bc09e413fc36 | refs/heads/master | 2022-03-09T07:56:21.794703 | 2022-02-25T04:45:20 | 2022-02-25T04:45:20 | 207,994,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | import numpy as np
import cv2
import imutils
imagePaths = ["images/m2.JPG","images/m1.JPG","images/m3.JPG"]
images = []
i=1
for imagePath in imagePaths:
images.append(cv2.imread(imagePath))
cv2.imshow("image"+str(i),images[i-1])
cv2.waitKey(0) & 0xFF
cv2.destroyAllWindows()
i = i+1
stitcher = cv2.createStitche... | [
"phyojupiter9@gmail.com"
] | phyojupiter9@gmail.com |
b09326d6b7ef11fa7afb566ee1ae1016ff118aae | e6ad1555cb6e2e8b1a3c40e7bf8985d5b62aca9a | /aritmetic_funct.py | d9aaa4ef53e69f1457f5f658ee3fc352cc152a09 | [] | no_license | denb11/def_add_HW | dc83f0c945ebe874f280bb5f0a3b5ccdf85b44be | 41fb988e5483555cf515ade99a116ecf5a0c25a9 | refs/heads/master | 2022-11-27T19:05:51.754427 | 2020-07-30T19:27:42 | 2020-07-30T19:27:42 | 283,859,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py |
def add(a, b ):
if type(a) == int and type(b) == int:
result = a + b
print(result)
else:
print("valorile transmise nu corespund tipului")
add(10, 20)
| [
"noreply@github.com"
] | denb11.noreply@github.com |
bbef2beee7c94d588e9831ccbb760157f2f2e422 | 6915d6a20d82ecf2a2a3d3cd84ca22dab2491004 | /advtempproject/advtempproject/wsgi.py | 507d246211545d55217dfb1767569eb090224823 | [] | no_license | iitian-gopu/django | bb4302d101f4434fb61ab374807e29699a432e42 | 31db982212bbb453cc4c56c7f5cfad9a00cd231d | refs/heads/master | 2023-05-14T07:22:35.176477 | 2021-06-04T04:43:26 | 2021-06-04T04:43:26 | 366,114,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | """
WSGI config for advtempproject project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJAN... | [
"gopalkrishujaiswal2030@gmail.com"
] | gopalkrishujaiswal2030@gmail.com |
a6fccf16a0bd1c5d62dc11cf686acd57c59da533 | f4352d9564709d2904041bd08a62ca3bc254bd94 | /csv_data_reader.py | e4d69fd637aa09d46730a8dcf6fd77a004a08d57 | [] | no_license | akeele/TreidiSim | b93d1559fe62697b6e45969cea93c1f1751585c3 | 42c414bff18e999ce12bed466844c1a0fa18e76c | refs/heads/master | 2022-11-05T07:26:58.534621 | 2019-10-14T10:45:27 | 2019-10-14T10:45:27 | 213,561,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,300 | py | import pandas
import os
from asset_finder import AssetFinder
class NasdaqOMXCsvReader:
NASDAQ_OMX_CSV_DIRECTORY = "data/nasdaq-omx-csv"
DOHLCV_COLUMNS = ["Date", "Opening price", "High price", "Low price", "Closing price", "Total volume"]
DOHLCV_MAPPER = {"Date": "date",
"Opening pr... | [
"aksu.suunta@gmail.com"
] | aksu.suunta@gmail.com |
7018f257a6effb3e3a626e56384ae5a7ae0ba684 | e7b4ddbf23fca6ff3929cca13614b378b4449f6c | /3rd_year/ex_2/dn16018_ex2_code.py | 432ec1afbc07388f7fbc2084a6d79431c40b7a8c | [] | no_license | dazzabaijan/py_comp_model | 598479d70ca50ac99e2929398e899d0cc66f8881 | 2e61bf34f1aabc484c73d1e3dc6dd35897704f51 | refs/heads/master | 2021-09-17T14:27:28.293477 | 2021-08-17T12:55:25 | 2021-08-17T12:55:25 | 229,984,890 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,700 | py | # -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pylab as plt
from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
from copy import copy
from scipy.sparse import diags
from scipy.sparse.linalg import spsolve
from time import clock
import sys
"""Boundary conditions for second Physics problem"""... | [
"dn16018@bristol.ac.uk"
] | dn16018@bristol.ac.uk |
7cde29cf536fc56e7ac966f0d5cb9dcfc8f92d08 | 64d887f9a43d627696443a0c82233297012cba23 | /geturls.py | 872dcfc67fcc115fc4199d659b7d758e4ffcabf4 | [] | no_license | MatthewSchwartz6/PythonScripts | 7c09ecbd00a795f71dbdced7e76c93a18f511f75 | 1d78d5b21e5222d3e30e4bbcdfdf54489e3f1112 | refs/heads/master | 2021-04-25T14:03:52.398187 | 2018-01-27T00:58:05 | 2018-01-27T00:58:05 | 110,057,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | #!/home/alive/projects/venv/geturls/bin/python
from sys import argv
from bs4 import BeautifulSoup
import requests
def geturls():
url = argv[1]
r = requests.get(url,{'User-agent':'mybot'})
soup = BeautifulSoup(r.text,'html.parser')
a = soup.find_all("a",{"href":True})
for v in a:
print v["href"]
if '__name__' ==... | [
"noreply@github.com"
] | MatthewSchwartz6.noreply@github.com |
2f4164ef4372fc6478789fc37f7c1f66296b61a9 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/0/az1.py | 2674ec878632dbc448cc05438068f00a33a83305 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
89253de93c1f759ccafbc17016927757d6aa8dc8 | 6be61b1e55ef585ddd3bacbea70ed96b054cd9b7 | /设计模式/结构类模式/代理模式.py | 714f278ba9b883e39b41d7b5fbcc6a3c9d2884b5 | [
"MIT"
] | permissive | zchq88/mylearning | 4a922c0337a840ea7cacdc3998907bfe4836ecd8 | 4b6bf343b40940f6c03321dcd7f075923853ce7c | refs/heads/master | 2021-04-26T23:32:57.862368 | 2018-05-04T02:37:32 | 2018-05-04T02:37:32 | 124,012,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,836 | py | # 为其他对象提供一种代理以控制对这个对象的访问。
class GamePlayer:
name = ""
level = 0
_Prox = None # 强制代理
def __init__(self, _name):
self.name = _name
def login(self, user):
print("登录名为" + user + "登录" + self.name)
def killBoss(self):
print(self.name + "打怪")
def upgrade(self):
... | [
"zchq88@aliyun.com"
] | zchq88@aliyun.com |
f166a652d5b47979391790f851fe8cc5e2d1d43d | 84c0585118043fb0413bf3cc944d46f3d80acc1b | /account/models.py | 2b8bc8d2006e88a0cb96fc7464ee030e7e79b7e4 | [] | no_license | CheStix/SocNet | 77c75ec5f90c084e31204c89c45a1bcd17aef6d6 | ff6f9299ddff6c0f790a622a428abb63cfda561f | refs/heads/master | 2020-11-29T10:45:09.827530 | 2020-02-14T08:49:50 | 2020-02-14T08:49:50 | 230,094,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | from django.conf import settings
from django.contrib.auth.models import User
from django.db import models
class Profile(models.Model):
user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
date_of_birth = models.DateField(blank=True, null=True)
photo = models.ImageField(upload_to... | [
"che.eldar@gmail.com"
] | che.eldar@gmail.com |
ba99bdbe64af5381bc3553611178b6160490ccfd | c02a4f10cee910f48a52cfd08cf7a05902f284f1 | /api/serializers/update_profile.py | b9ee6e8937eb87087e01389f2f4a28d450114a67 | [] | no_license | shiro102/canvas-gamification | 6d984eae1a48465ea740fac42daeef64acc7de3b | 7818889dc51520e03ad69176cf2ce6550b9948ba | refs/heads/master | 2023-06-12T18:11:05.235574 | 2021-06-30T21:26:28 | 2021-06-30T21:26:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | from rest_framework.validators import UniqueValidator
from accounts.models import MyUser
from rest_framework import serializers
import api.error_messages as ERROR_MESSAGES
class UpdateProfileSerializer(serializers.ModelSerializer):
class Meta:
model = MyUser
fields = ['id', 'first_name', 'last_na... | [
"noreply@github.com"
] | shiro102.noreply@github.com |
e461ffbb5c1ec33bb622eb073345d55ace5d9fc8 | 3e18d5f7d901a44e5c7c8e4961c3123e4b1addcc | /Scrapy/venv/lib/python3.7/sre_compile.py | 2c93afc6b12a0c9e856469ce8d7bf5708dcc0aeb | [] | no_license | arunabhthakur94/codesnippets | e2094bdb0b30eea836e18b5fb49db426a51d1296 | c92444b51a920a32a4d90234e9b28cdd10ce8154 | refs/heads/master | 2020-12-04T09:40:54.337011 | 2020-01-11T16:45:44 | 2020-01-11T16:45:44 | 231,711,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | /home/arunabh/.pyenv/versions/3.7.0/lib/python3.7/sre_compile.py | [
"arunabh.thakur94@gmail.com"
] | arunabh.thakur94@gmail.com |
78b7f6cd4a781062166ec98bef378eb05de88bdb | 67bdc707db11c32a06344b180eb2ab0165161be7 | /random_forest/timing.py | 0e0bacddd9bb34f75211464560c835f1b3c90a5e | [] | no_license | leoneong/fyp | 1f754ef7d6639281cf591a5c3ebc60654ce884b2 | 84aaaf5b186f025fd9697823d4c8b42ffa62e200 | refs/heads/master | 2023-03-10T01:17:39.406475 | 2020-10-10T04:03:28 | 2020-10-10T04:03:28 | 258,401,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | import atexit
from time import clock
from _functools import reduce
def secondsToStr(t):
return "%d:%02d:%02d.%03d" % \
reduce(lambda ll,b : divmod(ll[0],b) + ll[1:],
[(t*1000,),1000,60,60])
line = "="*40
def log(s, elapsed=None):
print (line)
print (secondsToStr(clock()), '-', s)
i... | [
"hippoleone@outlook.com"
] | hippoleone@outlook.com |
31eef008f4bdd94eca8da480dc892e5c688247db | 83eeeaca79ed0c22a01cb9024182a34f49a59d44 | /src/3Sum/solution.py | 24be511f4a323e91d4b5bc7994d5f17720781071 | [] | no_license | ragingCow/leetcode | 7ec3d14e0ea3e2ad14dcbed16bd34afe14e8d531 | c5d4ae54560cf98e3b5361a1cbd59687a0831301 | refs/heads/master | 2020-05-18T17:45:42.073427 | 2015-10-19T13:05:19 | 2015-10-19T13:05:19 | 39,693,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | class Solution(object):
def threeSum(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
nums = sorted(nums)
result = []
for i in xrange(len(nums)):
if nums[i] > 0 :
break
for j in xrang... | [
"tianbing02@meituan.com"
] | tianbing02@meituan.com |
660e7e667701cae776fc58821918e1e9bd459b7a | cfd7eae9add9c9991d055514f3ee90a1914b8c5f | /main.py | 3aaf48c5fcaf5681805c41fe948c93d7761fa8c0 | [] | no_license | KU-AI-Club/EXPO_2018 | 5f0234e5e67857d73bf31dd5f896963bd1433136 | dd59bece17c78536ed881999a5f8d99d67f96d09 | refs/heads/master | 2021-01-25T10:39:06.547761 | 2018-03-03T18:32:18 | 2018-03-03T18:32:18 | 123,366,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,335 | py | import gym
import time
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import tensorflow as tf
print('cool ~(<.<)~')
def pre_proc(I):
I = I[35:195]
I = I[::2,::2,0]
I[I == 144] = 0
I[I == 109] = 0
I[I != 0] = 1
return I.astype(np.float).ravel()
def append_to_file(ob... | [
"ravenengineerryan@gmail.com"
] | ravenengineerryan@gmail.com |
102056145a28eec5b448b8975f4633f44a628b6a | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/synthetic/rttoaobj.py | f85a0bd999b0746da1b151ecd36cc2f7a907ac50 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,526 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
5ced071bc4465f0c1a0fcf55338b9614fdb8f92c | 661c86ff31d4e74ba2e7d868117e4be46f6500aa | /0148 Sort List.py | 808ee7005e5a85f56f1561fe12139701180c2689 | [] | no_license | Desolve/LeetCode | 0f6bf95ae20bc034c5dae6f51aed6d87f2c8a135 | 145dda3a75a748dc2509fdcbb55327a5cbc945f2 | refs/heads/master | 2021-06-03T14:37:10.390154 | 2020-07-30T15:31:12 | 2020-07-30T15:31:12 | 143,541,878 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | # Adapted from jeantimex
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def sortList(self, head: ListNode) -> ListNode:
if not head or not head.next: return head
prev, slow, fast = None,... | [
"fp60403@gmail.com"
] | fp60403@gmail.com |
9e9b7c87c900888217a6f692daed3148757193f4 | e9f2703cdc62322cb62bbfb40f1e2cbf1a9d4896 | /otros/principiante.py | c7079d11799122997760619614389521798832e9 | [] | no_license | ileinOriana/automation | 644ff627d271eee6567dfc77bb243a6a1b615140 | 644235a182c3d3f9493ef75303c0559dbc2063cf | refs/heads/master | 2023-05-07T21:25:48.478488 | 2020-08-17T16:42:50 | 2020-08-17T16:42:50 | 275,272,036 | 0 | 0 | null | 2021-06-02T02:26:13 | 2020-06-27T00:29:32 | Python | UTF-8 | Python | false | false | 612 | py | import random
#Tirar un dado de 5 valores
#Si es 1, gana una flor.
#Si es 2, gana un tatuaje.
#Si es 3, gana un libro.
#Si es 4, gana un viaje.
#Si es 5, no gana nada.
def lanzar_dados():
value = random.randint(1, 5)
return value
def descifrar_premio(num):
if num == 1:
print('ganaste una fl... | [
"ileinoriana@gmail.com"
] | ileinoriana@gmail.com |
dda9f5d4466062d8ad277427e9721c6efad04a50 | e9d52dcf101aea0327c6b0d7e5244c91dfd62cf6 | /spexy/bases/regular.py | ee2e4fd35ec1af3c62bc446c89556cd8cd5295c7 | [] | no_license | drufat/spexy | 6eba9f44a5539245486cd4ef8fefd24bdb7ade6a | 53255009c1830501986afbf6688142ddefe17b9a | refs/heads/master | 2021-09-18T19:51:47.313946 | 2018-07-19T05:09:02 | 2018-07-19T05:09:02 | 100,453,374 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,976 | py | # Copyright (C) 2010-2016 Dzhelil S. Rufat. All Rights Reserved.
from spexy.bases import basesimp
class BasesImp(basesimp.BasesImp):
def module(self):
return 'spexy.bases.circular'
def numbers(self):
N = self.N
N0 = N + 1
N1 = N
N0d = N
N1d = N + 1
ret... | [
"drufat@caltech.edu"
] | drufat@caltech.edu |
0b0f9eb22c4e7ab366c091e291c1f8854f5f5aa4 | 8e257ec5a47699f6c76f558f98e1edd536159a18 | /snalla/in-class/2014-09-29 JSON & XML/ModelForms sample solution/sio/views.py | 3dce92dde0245c7e64348686140e269b84231631 | [] | no_license | nshikha/437 | 6e854f5c86123788c34965bc5d60ae9fa6f98b2d | 35b984784b778815a2b4ffd95e7c1c89011b9a8f | refs/heads/master | 2021-01-25T03:20:19.011146 | 2014-12-28T06:11:56 | 2014-12-28T06:11:56 | 28,555,189 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,248 | py | from django.shortcuts import render
from django.db import transaction
from models import *
from forms import *
def make_view(request,
messages=[],
create_student_form=CreateStudentForm(),
create_course_form=CreateCourseForm(),
register_student_form=RegisterS... | [
"shikha@Shikhas-MacBook-Air.local"
] | shikha@Shikhas-MacBook-Air.local |
e3be99e1c6547843b797fea330aa576499260d31 | 99a4e7a4db3a3e062c0b08a5462749a28f3f7a39 | /core/utils/make_joint_dataset.py | 592af25331103bb288cfcb090d2dcd893614f3bb | [] | no_license | B-Step62/pytorch-motiongan-open | f85c1481363230826e9094e1c323ad90f0922744 | 4aefe2c427b88f357e8894d309ff46602e109001 | refs/heads/master | 2021-03-20T23:22:49.591472 | 2020-03-15T10:34:54 | 2020-03-15T10:34:54 | 247,241,734 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | import os
import sys
import math
import subprocess
import cv2
from collections import OrderedDict
import numpy as np
import core.utils.bvh_to_joint as btoj
BVH_ROOT = './data/bvh/Edi_Mocap_Data/Iwan_style_data'
OUT = './data/bvh/Edi_Mocap_Data/Iwan_style_data'
def main():
# Copy all original bvh file
ro... | [
"bsatbeyp@gmail.com"
] | bsatbeyp@gmail.com |
82e1baea688932692b1e89c3d367c760d949b168 | 683b4174a86d1aea5fb1fec53e27dfca43169356 | /MPI/02.mpi_bcast.py | 6c3664c44fe5952efd8c08da6ac0743acf94d457 | [] | no_license | naufalhilmiaji/pds-mpi-thread | 4be2ce0225973aa60cfe8a64fe519859a9f1bcc9 | 8e1bcbb8bc9f82fff39295528527c0be706264c0 | refs/heads/master | 2022-04-24T11:27:16.096416 | 2020-04-28T23:25:28 | 2020-04-28T23:25:28 | 259,584,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | # import mpi4py
from mpi4py import MPI
# buat COMM
comm = MPI.COMM_WORLD
# dapatkan rank proses
rank = comm.Get_rank()
# dapatkan total proses berjalan
size = comm.Get_size()
pesan = 'HALO!'
data = comm.bcast(pesan, root=0)
# jika saya rank 0 maka saya akan melakukan broadscast
if rank == 0:
print('Broadcast d... | [
"noreply@github.com"
] | naufalhilmiaji.noreply@github.com |
833b2113b3ae2c9ad9deecfba486cc67eee08b41 | 21839bc2817a02d01180baff826b4ce5fe2789bd | /official/vision/beta/projects/yolo/modeling/backbones/darknet.py | 5a76c7eefbc615657b563714da3e8a042c18257f | [
"Apache-2.0"
] | permissive | TrellixVulnTeam/TF-OD-API_BICS | 1240fbf7cfbed73fe8633870c4eb237289dbd899 | 22ac477ff4dfb93fe7a32c94b5f0b1e74330902b | refs/heads/main | 2023-06-24T23:46:19.756540 | 2021-07-26T05:27:12 | 2021-07-26T05:27:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,207 | py | # Copyright 2021 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... | [
"hjkim@multiiq.com"
] | hjkim@multiiq.com |
7ad1e1493d3ea5d4a3b73bb9d7556fba745c4024 | 11ea97128214750b403a150edfab70dc6207d970 | /ia32doc/processors/c_processor.py | 9652e5799613a984a0bf9827d571a769fdb01d7c | [
"MIT"
] | permissive | fengjixuchui/ia32-doc | 5dc8a18dcc8fdbcb083433d3ed4aa8b3f3d35005 | 2336ac5d0cd8475656d8dbb56940d9b17d07295a | refs/heads/master | 2022-05-17T02:00:49.877215 | 2022-04-16T10:34:36 | 2022-04-16T10:34:36 | 167,521,447 | 0 | 0 | MIT | 2022-04-16T10:34:37 | 2019-01-25T09:28:59 | C | UTF-8 | Python | false | false | 25,075 | py | from typing import Union, Tuple
from .base import DocProcessor
from ..doc import DocBase, DocGroup, DocDefinition, DocEnum, DocEnumField,\
DocBitfield, DocBitfieldField, DocStruct, DocStructField
from ..doc import DOC_DEFINITION, DOC_STRUCT, DOC_BITFIELD, DOC_STRUCT_FIELD, DOC_ENUM_FIELD
from ..text... | [
"w.benny@outlook.com"
] | w.benny@outlook.com |
cc5f5e52e6123e32c7894ce9542d460cf539b8e2 | 2b28530b3108f41cfa24a0d589149272ce734cb1 | /Python/POO/Práctica_Parcial.py | 096b3c23a78258d394af3188226da16ad50cb80b | [] | no_license | emMercado/TUP-Programacion1 | e986a02ba07ab88a137803e8ce8750e09685a344 | 49cad7e4776b7f03e4ebd7afce831eaac8a8e104 | refs/heads/main | 2023-08-23T12:40:39.121779 | 2021-09-27T23:21:09 | 2021-09-27T23:21:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,625 | py | import uuid
from random import randint
class Producto:
def __init__(self,descripcion,codigoBarras,precio,proveedor):
self.id = uuid.uuid4()
self.descripcion = descripcion
self.clave = randint(1,200)
self.codigoBarras = codigoBarras
self.precio = precio
self.proveedor... | [
"graciajorge.sist@gmail.com"
] | graciajorge.sist@gmail.com |
dda19d3760238be041683f318ac54c057e37c6f2 | e049a58929f0a878b4b46f4b5d21db1cf5833863 | /backend/app/schemas/video.py | 57277fdf149ab05923208064769126b42ba8c9d6 | [
"MIT"
] | permissive | Asma-Alghamdi/CREstimator_website | 791e8e15d8bb382ca63ea0e7260c02a1257d89e3 | 7c4dc07e9ed15cbfa4981ceba8e3115b2b9dabad | refs/heads/master | 2023-07-07T05:11:13.425156 | 2021-08-12T16:30:23 | 2021-08-12T16:30:23 | 394,372,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | # Normal way
def videoEntity(item) -> dict:
return {
"name": item["name"],
"path": item["path"],
"Placename": item["Placename"],
"setting": item["setting"],
"country": item["country"],
"duration": item["duration"],
"date": item["date"],
"sendEmail": it... | [
"aalghamdi.wo@gmail.com"
] | aalghamdi.wo@gmail.com |
61c08f3149c26a08411c2cf3f2177844c8a9a0c1 | f76e1898476d05ab3007a9b08c9737f131a838c5 | /projeto_banco/sqllite.py | 438814e15550e3ee741bf3637361d60af1f2f897 | [] | no_license | bbnsdevelop/python_3_estudos | 8f9f6ac51c751914bd48cd464a844691e13e23c8 | d299177bf9ad0cb37577576b02776d31d768f9c9 | refs/heads/main | 2023-07-12T06:53:29.747184 | 2021-08-23T20:03:03 | 2021-08-23T20:03:03 | 335,139,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | #!/usr/bin/python3
# coding: utf-8
from sqlite3 import connect, ProgrammingError, Row
tabela_grupo = """
CREATE TABLE IF NOT EXISTS grupos (
id INTEGER PRIMARY KEY AUTOINCREMENT,
descricao VARCHAR(30)
)
"""
tabela_contatos = """
CREATE TABLE IF NOT EXISTS contatos (
id INTEGER PR... | [
"bbnsdevelop@gmail.com"
] | bbnsdevelop@gmail.com |
19e5e99b4598f9270e0cc992301e841753fd2870 | c2b386e1d28c58efbb9d847098a87032e2cbacca | /products_app/init.py | 930a8691b7c54fa99f1d8508a131fb4977bb6b31 | [] | no_license | jmlm74/P11-Ameliorez-un-projet-existant-en-Python | e6468342554f5c4aa03bc0bb954aa7995e98e293 | 28cd84698bf272e279bbf6e1d15211ef2a3c6403 | refs/heads/master | 2022-12-11T02:57:59.563283 | 2020-09-10T16:02:27 | 2020-09-10T16:02:27 | 290,844,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py |
# url an parameters for the open food fact API
url = 'https://fr-en.openfoodfacts.org/cgi/search.pl'
params_off = {'search_simple': 1,
'action': 'process',
'json': 1,
'page_size': 300,
'page': 1,
'tagtype_0': 'categories',
'tag_contain... | [
"jmlm74@gmail.com"
] | jmlm74@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.