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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b58b3abc2ae55fc7d7048be2b222fbd402839e47 | 1891968ff5d4157668c64f7c9414984f80d01d68 | /orders/migrations/0007_auto_20180129_1601.py | 5c39435a9b66fca6634c20d508deb1666ad54454 | [] | no_license | kaiforward/ecommerce | 8bf06f22b4805ab73cc193b082f702741c752b5f | d2e791de9b731fe7599e1c2f2e9331790029bfb1 | refs/heads/master | 2022-12-13T12:25:53.474040 | 2018-02-01T01:54:35 | 2018-02-01T01:54:35 | 117,998,084 | 0 | 0 | null | 2022-12-08T01:00:41 | 2018-01-18T15:06:41 | Python | UTF-8 | Python | false | false | 1,594 | py | # Generated by Django 2.0 on 2018-01-29 16:01
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('orders', '0006_auto_20180125_1520'),
]
operations = [
migrations.CreateModel(
name='Shipping',
... | [
"kaiforward123@gmail.com"
] | kaiforward123@gmail.com |
356944b5eaa4a2018d0858ca1c35ac0c7787559f | c9b0dbd8055e914d1e3c7aba1bab81ab45282e3e | /onnxruntime/test/python/quantization/test_op_transpose.py | f1dd8a780e3b55511b2e0a28412ae63a2dbf3d28 | [
"MIT"
] | permissive | mosdav/onnxruntime | bcabacbb7cfbecf9e2d504e1d3eecff515eb6880 | 03276527b3b77db97f8a73fbce449ca0e0bcee50 | refs/heads/master | 2023-09-05T21:06:20.652278 | 2021-10-09T21:39:11 | 2021-10-09T21:39:11 | 275,559,914 | 1 | 0 | MIT | 2020-06-28T10:21:41 | 2020-06-28T10:21:40 | null | UTF-8 | Python | false | false | 4,197 | py | #!/usr/bin/env python
# coding: utf-8
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# -----------------------------------------------... | [
"noreply@github.com"
] | mosdav.noreply@github.com |
3c8ae4cf2c045f3853a27ccc14d51a31e1c7f5b7 | c03ce95669f17a648eb31cd2446e32357f339c94 | /plotting/profiles/T_evolution/Tall_evolution/derived_field_functions.py | 48b1c2d93116ecbc2d781f8d6883c531809bd320 | [
"MIT"
] | permissive | cavestruz/L500analysis | 1d29e3787ae81d6b2a2760dba15c59bc5dbcbb4c | 9af195f2426f9260145e3d55edc952eb06eccb78 | refs/heads/master | 2020-04-17T01:17:49.906420 | 2017-06-15T19:30:44 | 2017-06-15T19:30:44 | 52,736,854 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | from L500analysis.plotting.profiles.T_evolution.Tmw_evolution.derived_field_functions \
import *
from L500analysis.plotting.profiles.T_evolution.Tnt_evolution.derived_field_functions \
import *
from L500analysis.plotting.profiles.T_evolution.Ttot_evolution.derived_field_functions \
import *
from L500analysi... | [
"Camille Avestruz"
] | Camille Avestruz |
4ef14a92c3f3e2a32d6da14d21387d800d7e2af7 | 12f47e6cfc8bd2314409d4e443d25d2573837c40 | /fruitod/plot_scripts/dataset_plots.py | 139ff32fe95fb3d1a495e80775b6bf0de2565a24 | [] | no_license | nilskk/fruit_tf_od_api | 3933ce848d45c2e478bfe0b4d7e99e0648733229 | c89b331dda6dafa4ce851ae45515d07e9298ec5d | refs/heads/master | 2023-08-04T18:11:33.509010 | 2021-09-22T05:33:58 | 2021-09-22T05:33:58 | 309,675,250 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,665 | py | from lxml import etree as ET
from pathlib import Path
import json
import os
import numpy as np
import seaborn as sns
import pandas as pd
from lxml import etree
import matplotlib.pyplot as plt
import matplotlib.ticker as ticker
from object_detection.utils import dataset_util
if __name__ == '__main__':
data_dir_st... | [
"nils.kleine.klausing@uni-duesseldorf.de"
] | nils.kleine.klausing@uni-duesseldorf.de |
973563f47c93e5795c8f564be07c9269e4e24c26 | f9062ccd797042b4df5bc75a60127c639067cb8c | /archived_old_solutions/solutions in python/p40.py | b42fee26a8c45251020e0b94dbb5eaa828f39d27 | [] | no_license | azusa0127/ProjectEuler | c88aa1fde9be67fad20826364f5a2415cc34ab72 | 3c3b1d8b7e5a62aa624738976e3a00c39f959076 | refs/heads/master | 2021-01-18T23:40:41.974375 | 2016-05-12T12:32:53 | 2016-05-12T12:32:53 | 51,574,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | #coding: utf-8
'''
Problem 40: Champernowne's constantAn irrational decimal fraction is created by concatenating the positive integers:0.123456789101112131415161718192021...It can be seen that the 12th digit of the fractional part is 1.If dn represents the nth digit of the fractional part, find the value of the followi... | [
"phoenixsong@outlook.com"
] | phoenixsong@outlook.com |
11792d5ee8f35e482aeb9aa3dfe58b8d761598d7 | 139ef8139237792f85b0b91c152c0ec34386a723 | /model/document.py | eeb6d84eb75af8270b19a80ef1e3397dfefecc60 | [] | no_license | aj-fuentes/BrainApp | ab790451c80872e67acf54788da3698e1fa58770 | 753615f84b326b72010f8b9aab36650b6b939d1c | refs/heads/master | 2020-04-25T21:57:09.862117 | 2019-02-28T11:05:59 | 2019-02-28T11:05:59 | 173,096,087 | 0 | 0 | null | null | null | null | ISO-8859-1 | Python | false | false | 12,195 | py | #! -*- coding: cp1252 -*-
import itk
from model.confidence_connected_pipe import ConfidenceConnectedPipe
from model.voting_pipe import VotingPipe
from model.cast_pipe import CastPipe
from model.segment_pipe import SegmentPipe
from model.smooth_pipe import SmoothPipe
__author__ = 'Alvaro Javier'
##Esta clase modela la... | [
"alvaro.fuentes-suarez@inria.fr"
] | alvaro.fuentes-suarez@inria.fr |
0366444ae9eece2d51f67648df2afa3d8c684745 | 2b7c39b9a841d8fb67129c5dd62c0a7bba530224 | /desktopRemoteControl/device/manager.py | c294d06e95d1379d0708b80da92f86213df73eb9 | [
"ISC"
] | permissive | dpm76/eaglebone | 6be44f39a6a528e716675a90dde252da1d49a87c | 46403d03359a780f385ccb1f05b462869eddff89 | refs/heads/master | 2020-04-12T02:27:08.450212 | 2018-11-22T19:11:57 | 2018-11-22T19:11:57 | 52,774,836 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,533 | py | '''
Created on 22 de may. de 2016
@author: david
'''
from contextlib import contextmanager
import os
try:
import pygame
_pygameLoaded = True
except:
_pygameLoaded = False
import sys
from threading import Thread
from time import sleep
from device.event import EventHook
from device.joystick import Joystick
... | [
"davidpm.itengineer@gmail.com"
] | davidpm.itengineer@gmail.com |
a05737228108409c7e76c33930a38d897451d19d | 9f8fa729e0e5603bf7434839ab516b04151adb90 | /MergeSort.py | 5c73f5d59e6095cf85c836366fb85eb2eff5dbd9 | [] | no_license | rossmmurray/Algorithm-Implementations | 64b5e4a6ab8631ea98330c34cd6651e3cebfc516 | 832a72068276a6451ac9b95941241655de7a1c29 | refs/heads/master | 2020-04-02T06:40:17.854944 | 2018-10-31T17:37:21 | 2018-10-31T17:37:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | def main():
list_a = [1, 5, 3, 7, 2, 6, 4, 8]
sorted_list = merge_sort(list_a)
# print(list_a[:len(list_a)//2])
print(sorted_list)
def merge_sort(unsorted_list=[]):
if len(unsorted_list) == 1:
print(f'returning one element: {unsorted_list}')
return unsorted_list
else:
... | [
"rossmichaelm@gmail.com"
] | rossmichaelm@gmail.com |
59e44ba1af2617fe935446a0cabcd0aaf090e9a3 | b210d58b724c7199f43ddde031eba40996c82257 | /submissions/sm_107_hasmuddin/week_18/day_4/Blog_application/blueprintAuth.py | 3393f731b0a6a6e9eeb6a28707293268034a9771 | [] | no_license | Tanmay53/cohort_3 | 0447efd2dc8b3c1284b03da7326b35393fdf5f93 | 351fb6e1d0c29995fb5cb3b6af411dbcf0ced64c | refs/heads/master | 2021-05-23T17:55:36.508185 | 2020-04-05T12:58:07 | 2020-04-05T12:58:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,463 | py | from flask import request
from flask import Blueprint
import os
import hashlib
import json
import csv
import base64
import jwt
auth = Blueprint("auth", __name__)
fieldnames = ["id", "name", "email", "salt", "password_hash"]
path = "Data/users.csv"
def sha1_hash(string):
hashing = hashlib.sha1()
hashing.updat... | [
"mdaliansari33@gmail.com"
] | mdaliansari33@gmail.com |
70cdf6817a27dd3b5244f57b32546ab0cb108d97 | 0cc30330fc06c2b23d322d0dedc3c558b648e380 | /blog/migrations/0005_post_views.py | f642aadf8710b1dd396b3bb2b047ffab195be820 | [] | no_license | jamu1570/iCoder | 01f49ec316257e6dc28d3f707f36b109cc065650 | 9bb3c7d1f35465f6d9649deb75211922f149133e | refs/heads/master | 2022-11-28T01:41:23.158484 | 2020-08-03T16:57:24 | 2020-08-03T16:57:24 | 284,758,150 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | # Generated by Django 3.0 on 2020-05-05 19:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0004_auto_20200421_1625'),
]
operations = [
migrations.AddField(
model_name='post',
name='views',
... | [
"jayminmakwana157@gmail.com"
] | jayminmakwana157@gmail.com |
8b5d14b684dae7b7eac4615d179cbcb649f3b839 | 43108b48303f898e17740d57e61190238c876c56 | /file_hosting/app.py | 61ce52bc4fe327866ebd7a4103b6c3f2f302c94a | [] | no_license | ivdunin/sample_file_hosting | 957c8e67f3e0f55383355c1ac0bbff900555388a | 6b912f0695772c808a26c60a7e1d80f4ddf37f49 | refs/heads/master | 2021-06-17T09:25:32.969739 | 2020-09-04T06:13:18 | 2020-09-04T06:13:18 | 171,557,130 | 0 | 0 | null | 2021-03-20T00:36:27 | 2019-02-19T22:02:31 | Python | UTF-8 | Python | false | false | 1,180 | py | #!/usr/bin/env python
# Copyright (c) 2018 Dunin Ilya.
""" Main Service file """
from os import path, makedirs
from flask import Flask
from flask_restful import Api
from file_hosting.resources.file_hosting import FileHosting
app = Flask(__name__)
app.config.from_object('file_hosting.settings.development')
api = Api(... | [
"ilya.mirea@gmail.com"
] | ilya.mirea@gmail.com |
daf354cea52cc0b38c1452a5d1fd3ee9ff365979 | 13b803636ea92b634a9d6afc2b17bd7df2de8fc5 | /f_codes/PingFS/ping_server.py | e7ad13b04d3584305c3843f5b4dc642e080ad2e0 | [] | no_license | atupal/snippet | 0e00d9fadf8ae50797ddddc4c6ee09941f25c695 | bda9e154aa0acd9a5c23706bf740db6542479ed9 | refs/heads/master | 2022-06-22T09:39:15.729319 | 2022-06-06T07:06:57 | 2022-06-06T07:06:57 | 10,927,197 | 23 | 13 | null | null | null | null | UTF-8 | Python | false | false | 14,172 | py | import ping, threading, time, socket, select, sys, struct, Queue
import binascii, collections, math, random, logging
import ping_reporter
log = ping_reporter.setup_log('PingServer')
class PingTimer(threading.Thread): # helper class for PingServer to manage timeouts
def __init__(self, event):
self.queue = Queue.Pri... | [
"me@atupal.org"
] | me@atupal.org |
2ca1ed615108497115477b80afd5d2fecac50e40 | 82cc99e8fdbfe91d67f6f491706d252e72e531c2 | /manage.py | 314cee692ce6893d679d86908af0c8969992e72a | [] | no_license | PeterLiao/FindTrain | cf418d10dc0503c57e8299238ff3b985b8a54065 | 4ee3f9683e8b7b7b3e6a6c474ec4b5cb4184c199 | refs/heads/master | 2021-01-10T19:58:03.561788 | 2014-07-22T08:32:44 | 2014-07-22T08:32:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "FindTrain.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"s9356016@gmail.com"
] | s9356016@gmail.com |
40d1268160ff039fb4eb6c0e18a1719ad3baac13 | 769814957131fec3f519d4b8d7a6ed44201fabcf | /video_prediction/prediction_model4.py | 58f8e1b915035e04cfbed16215b6ac28c96ad9c4 | [
"Apache-2.0"
] | permissive | wangyang59/tf_models | 79d8c8e4de449a124bbca358f75c4acf0301a520 | 852339e6ebeab7f7587a36d5a81ddea876c5800f | refs/heads/master | 2022-10-18T09:34:26.539574 | 2017-09-12T18:37:45 | 2017-09-12T18:37:45 | 88,771,570 | 0 | 2 | Apache-2.0 | 2022-10-11T19:00:49 | 2017-04-19T17:22:30 | Python | UTF-8 | Python | false | false | 18,482 | py | # Copyright 2016 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 applicab... | [
"wangyang59@baidu.com"
] | wangyang59@baidu.com |
3424d90576cff18381aa8d2aa7290caf6fff993e | a19ab80e2aebe88da038d6900d0532a0ac030f58 | /backend/chat/models.py | b91c1fa676e0d9c7ede651c840fe200c079b1759 | [] | no_license | crowdbotics-apps/test-project-18237 | 1975ce9949626582c017baebe1ebd56a8bd0d99a | 27101ee2a0a2cdfb60bf4437191d2dfb08475dac | refs/heads/master | 2022-11-21T21:11:14.642037 | 2020-07-20T00:30:15 | 2020-07-20T00:30:15 | 273,353,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,946 | py | from django.conf import settings
from django.db import models
class ThreadAction(models.Model):
"Generated Model"
action = models.CharField(max_length=7,)
thread = models.ForeignKey(
"chat.Thread", on_delete=models.CASCADE, related_name="threadaction_thread",
)
profile = models.ForeignKey(... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
1a4fbbd353f863b050ded6155f139a22e17735b2 | 4384609f3b300375e0cfb82d2b04a6c675d6ac63 | /analysisinHPC/v6.2_17.12.2018/CNN_test_mva_16.6_80.5_VGG16_truemva_except_456/pattern_0/ISS_anylsis/loadmodel_test.py | db7d2560181d54e7d0767676bc62ce9bf19a31ab | [] | no_license | season0112/antiproton_to_proton_ratio | b5fc178886adffec0c9ed3ba21447e4f553b8eed | c35c1834b7113946bbc45ca25131a80604834790 | refs/heads/master | 2020-03-25T11:50:40.347777 | 2019-01-11T12:17:26 | 2019-01-11T12:17:26 | 143,750,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,775 | py | #!/usr/bin/env python
########################################################################
# #
# Toy Model for Pronton Charge Confusion with Dense Layer #
# version 1.0 07.03.2018 #
# ... | [
"li8@j3l04.juropa3"
] | li8@j3l04.juropa3 |
ee3e78f5244773102201d16a3406150e4742e9ef | 4e2a1197b47d0c861be98e1c574062c8b9988253 | /gendiff/constants.py | 2fc2aa753152c66da526fe12aa4b668431a3c75a | [] | no_license | gabady13/python-project-lvl2-1 | a72a0e45c5e6dc97d4a23e4c034994fab63b12bd | 77a62ecb0eea9a62d476a1bc93307dcc43d8566a | refs/heads/master | 2023-08-11T02:20:20.943323 | 2021-10-10T19:59:34 | 2021-10-10T20:17:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | """Common constants."""
INDENT = ' '
ADDED = '+'
REMOVED = '-'
NESTED = 'nested'
CHANGED = 'changed'
UNCHANGED = ' '
SIMPLE = 'simple'
COMPLEX = 'complex value'
| [
"me@sergeykalistratov.com"
] | me@sergeykalistratov.com |
6769adc1d325b19d2cf6a7305fc677a6b55f1df4 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /amplify_read_3/job_get.py | 7bf63412c69332288cc54d8318983d71ee50cc82 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import execute_two_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/amplify/get-job.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
15a0108c1ecf3548cee46e39c0c89ad95d9d0228 | 5f3f2377b7bd1865177c0c681df30bd06fa8e71d | /likes/serializers.py | 1ce1590f8cd0daa3ca8ccf3bfce1e62c05827fc8 | [] | no_license | mr-fibonacci/drf-sts-codealong | d1ffaaf8c26d92166d5877e6a90d25649a6f31fd | 59bbd944d0695fbee18cd10671b75870931f9dd3 | refs/heads/master | 2023-05-10T11:04:33.023936 | 2021-06-09T11:26:30 | 2021-06-09T11:26:30 | 368,148,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | from django.db import IntegrityError
from rest_framework import serializers
from likes.models import Like
class LikeSerializer(serializers.ModelSerializer):
"""
Serializer for the Like model
The create method handles the unique constraint on 'owner' and 'post'
"""
owner = serializers.ReadOnlyField... | [
"adamlapinski1@gmail.com"
] | adamlapinski1@gmail.com |
ae226e84b9e094aaaf017cb12423793840a31af4 | c12d468c6bef229a58033a6a40ea3925a52adae6 | /python/pns.py | 46552cfbb60f07e6db7e251fedeff5efbe67b650 | [] | no_license | aajarven/TM-harjoitustyo | 4b65558ee5216f7919d1a9436635148be26cc2e4 | 09a2cf73f7420c8041c5b4d77feef3f3dd8487ac | refs/heads/master | 2021-01-10T14:46:07.753756 | 2015-10-25T18:40:05 | 2015-10-25T18:40:05 | 44,267,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | # -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
import sys
from utils import *
if len(sys.argv) !=5 :
print "Anna komentoriviargumentteina sovitettavan käyrän aste sekä tiedostot, joissa käytettävät matriisit X, Y ja W ovat"
sys.exit(1)
aste = int(sys.argv[1])
xHavainto = lueMatriis... | [
"anni.jarvenpaa@gmail.com"
] | anni.jarvenpaa@gmail.com |
b9154c9c4115909fbb3e5991ec61067d7f7aae77 | 2a32ba95aa3b5da7b7376f7a7a4df5bc932c6b90 | /Stack and Queue/BSTSortedOrder.py | dd0a8e0aba651a94dd5281f6889844f37468abc3 | [] | no_license | maruichen2004/EPI | 33cb4f1860ca294c9aba460ac7f22e25c2c9b210 | 2379e83536bdbeaa7f21ceeb8f1e369a90f434a0 | refs/heads/master | 2016-09-06T03:32:04.412640 | 2014-11-23T05:29:59 | 2014-11-23T05:29:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | from Util.BST import TreeNode
from Util.BST import BST
class Solution:
# Time: O(n)
# Space: O(h)
def bstSortedOrder(self, node):
stack, cur, res = [], node, []
if node is None: return []
while cur or stack:
if cur:
stack.append(cur)
cur = cur.left
e... | [
"ruichenma@RUICHENs-MacBook-Pro.local"
] | ruichenma@RUICHENs-MacBook-Pro.local |
ffc0fbbe473bc936a32f0d705a41d7ef23a20216 | 8ac5fa643e54f6aac8af600eddbeb4c074095b2b | /tspdb/src/algorithms/pymf/bnmf.py | c70343667fa65184f5fee1099128dc41cf369245 | [
"Apache-2.0"
] | permissive | AbdullahO/tspdb | 00acca3b29a054f02ac07a0243c04ba575af0a19 | 6ba75833a128d4036caad488d144fb6b0ba682e6 | refs/heads/master | 2023-05-25T09:44:19.856796 | 2023-05-18T17:25:48 | 2023-05-18T17:25:48 | 210,507,080 | 179 | 60 | Apache-2.0 | 2023-02-10T23:10:00 | 2019-09-24T03:51:25 | Jupyter Notebook | UTF-8 | Python | false | false | 4,665 | py | # Authors: Christian Thurau
# License: BSD 3 Clause
"""
PyMF Binary Matrix Factorization [1]
BNMF(NMF) : Class for binary matrix factorization
[1]Z. Zhang, T. Li, C. H. Q. Ding, X. Zhang: Binary Matrix Factorization with
Applications. ICDM 2007
"""
import numpy as np
from base import PyMFBase
__all... | [
"aalomar@mit.edu"
] | aalomar@mit.edu |
c219ee966f58b6da567f9e09dd8d46c6f2c96b6a | 04e8267f3f7137c4f41fc9c8c72e1a9ab27ee2ff | /NLP_Assignment-3/dxp170020_memm.py | 502e9583ca6dfd0d6de582f684a22075d2345e67 | [] | no_license | ashutoshsenapati/NLP-Projects | a6dab578b9dfcfe807bba52e8464ad1f16c2eb9a | 76941d6ca297c290c3534feb37138e461bede2bc | refs/heads/master | 2022-03-06T02:47:43.528851 | 2019-10-28T19:48:33 | 2019-10-28T19:48:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,929 | py | import nltk
nltk.download('brown')
nltk.download('universal_tagset')
import numpy as np
from nltk.corpus import brown
import collections
import re
import sys
from scipy.sparse import csr_matrix
from sklearn.linear_model import LogisticRegression
import csv
import itertools
from itertools import groupby
############ c... | [
"noreply@github.com"
] | ashutoshsenapati.noreply@github.com |
381258816ff5fe8a9eeb8adbf2c8f7912bb17f52 | 103b8a33ba4d39443ae43e25132797ee2b2a7658 | /sign/views.py | ab3d8098105296bc4539af9deeee67084f13eed0 | [] | no_license | qj1106/qj_test | 2c624861c1c04b9d11e213c22481fa56a5aac3f6 | a6ac2660345989ffb43141fbd5261274f8ea36a9 | refs/heads/master | 2021-01-23T22:31:25.834968 | 2017-09-09T09:29:24 | 2017-09-09T09:29:24 | 102,941,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,533 | py | from django.contrib.auth.decorators import login_required
from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render, get_object_or_404
from django.contrib import auth
from django.views.decorators.csrf import cs... | [
"familyqj@163.com"
] | familyqj@163.com |
f54e21805de615c80002759056ee8b84f8513514 | a8e9b9915ee14caf88097b77a9f4b36e9ea34995 | /continuousMedian.py | bbce229b723c567c4a5e460fd90ca3c182fb3db8 | [] | no_license | pratyushgarg15/CodingPractice | b69f37c94dfd5033ea33c80bc1943a0c90717258 | cd70ec50c52bbefdfed972fd230ff6a563bc4704 | refs/heads/master | 2020-09-07T14:48:51.033534 | 2019-11-10T16:34:09 | 2019-11-10T16:34:09 | 220,815,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,287 | py | import math
class MinHeap:
def __init__(self, array):
# Do not edit the line below.
self.heap = self.buildHeap(array)
def buildHeap(self, array):
# Write your code here.
self.heap = array
for i in range(len(self.heap)//2,-1,-1):
self.minHeapify(i)
... | [
"pratyushgarg2017@gmail.com"
] | pratyushgarg2017@gmail.com |
b5a7140d7dc130dcdf39d4584f59b48f6e8762d8 | df901b7165323f1b03bc690d639c603bbeac9d5c | /airflow/providers/papermill/operators/papermill.py | 8e5cfe6beb326cd1ba26c3823497e9dcfd3121ff | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"BSD-2-Clause",
"Python-2.0"
] | permissive | nikspatel03/airflow | 04d81ccbe0a53a95e058afb3f6fc98427a65ff4b | 39375c01ced008a715bb2a540df31fe2cf908bbb | refs/heads/master | 2020-12-27T01:20:18.614360 | 2020-02-01T17:11:35 | 2020-02-01T17:11:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,574 | py | # -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
#... | [
"noreply@github.com"
] | nikspatel03.noreply@github.com |
f6b9d1c4d566ee024922349938ea97c3771a96fc | c8fcb8561ca9037969329b8aa7c5650a3405ff4a | /mhb-py/mhb_createjson_09-ratio_registr.py | e3391b79ab232a21c674acaafb522ee815264aa3 | [] | no_license | dbrechet/moocheartbeat | b0d15ad89f5c301abad302b0cea88651a1b34dd8 | af2f8652c27d37a26ee72a3e9930d32e1931e2c6 | refs/heads/master | 2021-01-02T09:43:29.673584 | 2015-01-12T10:12:35 | 2015-01-12T10:12:35 | 24,980,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,021 | py | #!/usr/bin/env python
#title :mhb_createjson_ratio_registr.py
#description :This will make a query to the database and create a json file to store the data. The data is lecture_view_total.
#author :dbrechet
#date :20141014
#version :0.1
#usage :python mhb_createjson_r... | [
"david.brechet@epfl.ch"
] | david.brechet@epfl.ch |
f3a14d75cb6f74deff6199083aa4c00c43f44e3c | 52084ad3ce08eed62fb8286964624eec4f775fb3 | /gig_finder/musicians/apps.py | 460a778a3f1c8289055aecfd4d1aee0b10494ebf | [] | no_license | armoredpigeon1111/gig_finder_backend | efd954cb384b3fad0099a5f2094b7785b3179e41 | 97aa8f6ce19e700b2e6a906e43fbd33d4cae364c | refs/heads/main | 2023-09-01T14:24:29.862928 | 2021-10-12T23:19:39 | 2021-10-12T23:19:39 | 414,647,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from django.apps import AppConfig
class MusiciansConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'musicians'
| [
"armoredpigeon1111@outlook.com"
] | armoredpigeon1111@outlook.com |
dfb8e76f0fccedb60e1e39eeb3046d19447bd0fb | dad17e34a71a097ccf9b6237b34ee733699a8f83 | /exercise_16.py | 2bd473f80df200368fd1ccf1bcc2ffd30d394c57 | [] | no_license | artazm/practice-python-sol | 0cba85c31f9f45f0c935729f24299ae06ef8523c | 299971cc07811dcf07d9b8f7c9683a1054c3f45d | refs/heads/master | 2021-01-16T06:51:24.129086 | 2020-02-25T14:13:36 | 2020-02-25T14:13:36 | 243,014,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # Password Generator
# weak (1-3) medium (4-6) strong ()
import random
passw = ['write', 'a', 'password', 'generator', 'python', 'creative', 'mix']
num = list(str(range(0, 10)))
symbols = ['!', '@', '#', '$', '%', '&', '*']
pass_gen = passw + symbols + num
i = 0
strength = input('How strong you want you... | [
"noreply@github.com"
] | artazm.noreply@github.com |
c7a690e0922c0f2a1823e095494aaedf862b75aa | 1e297bf3ed06537471d5d3f7109c6a9c8caf0827 | /HelloWorld/oop_init.py | bf168233ee1be972f9188c360481b5c930df3396 | [] | no_license | holyhan/Python-practice | 0ac0e1c44982c2e241e964024416439e5b27d863 | 82423550445b1f3d61594fb2afd99cbef57795e4 | refs/heads/master | 2020-03-19T08:00:41.405680 | 2018-09-12T08:46:50 | 2018-09-12T08:46:50 | 136,168,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | class Person:
def __init__(self, name):
self.name = name
def say_hi(self):
print('Hello, my name is', self.name)
p = Person('Swaroop')
p.say_hi()
# 前面两行同时也能写作
# Person('Swaroop').say_hi()
| [
"hanyang08@meituan.com"
] | hanyang08@meituan.com |
97c119f4d923746ea4284cbf0f78cfa18e90c6e2 | dcd6eb3161a4fd906f15c36b92bb562edc330f33 | /PycharmProjects/Matplotlib/test/test_1.py | 51c9b7921856c8a53f16bf9d0442a4d237020e95 | [] | no_license | ZHANGDINGREN123/numpy-pandas | 50c0ed8a0b6e496a6f9ca365078370a5324eb47a | 61c2b312f6a43c15996f6189dcfc4083a7be501c | refs/heads/master | 2021-09-14T04:13:09.570371 | 2018-05-08T09:22:53 | 2018-05-08T09:22:53 | 106,893,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | a = [1, 2, 3, 4, 3, 2, 1, 1]
a.append(0)#追加0
a.insert(2,100)
a.remove(1)
print(a[len(a) - 2])
print ("数组a的长度:",len(a))
print(a)
print(a[-1])
print("返回4的下标",a.index(4))
print("出现一的次数",a.count(1))
a.sort()#从小到大排序
print("从小到大排序",a) | [
"877905831@qq.com"
] | 877905831@qq.com |
fd98185f7e9703dffba7abb5f1031c7a0ea7b835 | da96d29b457eb123c01274efea562448df105fc6 | /chapter4/st8.py | 8eaec17aec53c648c569598be9a899ae03e3fa6e | [] | no_license | Alonsovau/sketches | a1336f1a7909ad059744c4613ab992c8361264f5 | dfb072086cc813d7409fa11393ebaad6e26db180 | refs/heads/master | 2021-01-19T22:29:15.827896 | 2017-10-19T15:37:28 | 2017-10-19T15:37:28 | 88,761,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # 跳过可迭代对象的开始部分
with open('somefile.txt') as f:
for line in f:
print(line, end='')
print()
from itertools import dropwhile
with open('somefile.txt') as f:
for line in dropwhile(lambda l: l.startswith('#'), f):
print(line, end='')
print()
from itertools import islice
items = ['a', 'b', 'c', 1, ... | [
"alonsovau@outlook.com"
] | alonsovau@outlook.com |
1cfac28232ffbf3f5da95399128712f4d11ba2de | 7ed748584247a743c30de0c790ccbcb60ffef574 | /Crawler/study/class8.py | b7d0248be2c0072ec458ea7acd938c98e06ee272 | [] | no_license | quqiao/eshare | 18f28640c9814d21ec44a69a3acb6c0968243daa | fe221e4187a26da9b5f93d5f68bf6ff64d581d73 | refs/heads/master | 2020-04-01T19:31:09.484384 | 2019-04-25T01:52:37 | 2019-04-25T01:52:37 | 153,551,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,462 | py | # coding=utf-8
'''
Created on 2019年04月12日
@author: quqiao
第八课:进程,线程的初步了解
'''
# 进程:程序并不能单独运行,只有将程序装载到内存中,系统为他分配资源才能运行,而这种执行的程序称为进程
# 程序和进程区别:程序是指令的集合,它是进程的静态描述文本。进程是程序的一次执行活动,属于动态概念
# 进程的概念:进程是操作系统对一个正在运行的程序的一种抽象。即进程是处理器,主存,IO设备的抽象,操作系统可以同时运行多个
# 进程,而每个进程都好像在毒战的使用硬件
# 并发运行:一个进程的指令和另外一个进程的指令是交错执行的
# 上下文切换... | [
"trnwk8r@dingtalk.com"
] | trnwk8r@dingtalk.com |
ba34b1efd290267f29bc5f2d582adaa0c9e66d9f | f5a351cb77d5c8e1e1f4d53fd24e9654d26e55f7 | /examples/bokeh/bokeh_plot_violin.py | 98b569b926785c40ad79922fb4b5fb2357318d3e | [
"Apache-2.0"
] | permissive | JulianPedro/arviz | f8e37e03eb07247dbdd77908d8bb5d8321319249 | 92f9e5bcda03468c228735fe16a52c2f7e616762 | refs/heads/main | 2023-08-11T17:45:17.427084 | 2021-10-03T10:43:26 | 2021-10-03T10:43:26 | 413,251,708 | 1 | 0 | Apache-2.0 | 2021-10-04T02:33:59 | 2021-10-04T02:33:58 | null | UTF-8 | Python | false | false | 182 | py | """
Violinplot
==========
_thumb: .2, .8
"""
import arviz as az
data = az.load_arviz_data("non_centered_eight")
ax = az.plot_violin(data, var_names=["mu", "tau"], backend="bokeh")
| [
"noreply@github.com"
] | JulianPedro.noreply@github.com |
d7d72f77c945542c4ce6e6ffd6dd52fc758c5f4a | 1bcb966740f47c0edc23e9b05afec55f2bcae36a | /app/share/dbopear/dbItems.py | 91bb279962de43eaf9ac657f7002bf23c5741bd5 | [] | no_license | East196/diabloworld | 0d2e9dbf650aa86fcc7b9fc1ef49912e79adb954 | d7a83a21287ed66aea690ecb6b73588569478be6 | refs/heads/master | 2021-05-09T12:15:31.640065 | 2018-02-04T15:16:54 | 2018-02-04T15:16:54 | 119,007,609 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | #coding:utf8
'''
Created on 2011-7-14
对物品表(tb_item)的操作
@author: lan (www.9miao.com)
'''
from gfirefly.dbentrust.dbpool import dbpool
from pymysql.cursors import DictCursor
all_ItemTemplate = {} #所有的物品模板信息
ALL_SETINFO = {}
def getAll_ItemTemplate():
"""获取所有的物品信息
"""
global all_ItemTemplate
sql="select... | [
"2901180515@qq.com"
] | 2901180515@qq.com |
0b3934663c0b429b89e7064ed4f2eb1e29285a06 | ea85259d8dff0fd8257e9132bdd4bf9d7b506a64 | /conf.py | 78e9dcbf9f97f8a410e92af41fd9f1ccdc48807a | [] | no_license | KartavyaKothari/DOCSFOR- | bd15fc6ea7a92ac5e7f0310693d2dc204f89c88c | 59ebbdf4dc5d181de00722e82460279bf5a6e730 | refs/heads/master | 2022-11-24T06:48:49.859648 | 2019-11-27T02:58:53 | 2019-11-27T02:58:53 | 224,326,527 | 0 | 0 | null | 2022-11-21T22:41:22 | 2019-11-27T02:23:55 | TeX | UTF-8 | Python | false | false | 1,942 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"kartavya@cse.iitb.ac.in"
] | kartavya@cse.iitb.ac.in |
5405576a4d430f4961545624fd7cb1ee1c920862 | 2e816dc7654fc8e124fd9adfe26a6c9adcf92542 | /parsetext.py | 07f96d6eb31f43e8cfba36707bafa788ea1b2aaa | [] | no_license | carlosmcastro/PlanetAPP-BACKEND- | 9db8d458a5d388dcd3e7b66737ed98675ebbe57d | 583511fe3d5f7295f2120a22c3d208b84b21bd0a | refs/heads/master | 2021-02-11T09:02:11.033396 | 2020-03-11T17:45:57 | 2020-03-11T17:45:57 | 244,475,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | #encoding: utf-8
from container_constantes import ASTRO_DATA, EQUIVALENCIAS
from exoplanets import concor
import pandas as pd
data=pd.read_csv(ASTRO_DATA)
#Data from binary stellar systems have been cleaned.
data=data.drop(data.loc[data['pl_cbflag']==1].index)
#Busquedador principal.
def whopl(who_type, e... | [
"noreply@github.com"
] | carlosmcastro.noreply@github.com |
a268bbdbc9b761a6f089807becb2a5f481bbd7be | ecfd331cfc18ca5cdddabea142ba1be8cc933e05 | /battle/classes/magic.py | 8766bea58303a38b5478fc7203a2b0b7c34f6381 | [] | no_license | jaybane-git/phython-source | c232a65c007256f0676ba61119186fcb04738516 | 45697595a91778cf830c1f4c89c3aac679b8e9ee | refs/heads/main | 2023-01-21T03:17:34.712333 | 2020-12-01T17:37:29 | 2020-12-01T17:37:29 | 317,559,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | class Spell:
def __init__(self, name, cost, dmg, type):
self.name = name
self.cost = cost
self.dmg = dmg
self.type = type
| [
"jaybane@hotmail.com"
] | jaybane@hotmail.com |
1b91fdde98fe3757f8f4dd5d71b99236dbfdcc6c | 1cc37210c56ad03dfa2d8364fa448797b69d68e6 | /Wettbewerbe/migrations/0002_auto_20170311_1954.py | c5ca12147dc0ecc5d4314cbe1be8dc94163825a9 | [
"MIT"
] | permissive | wmles/olymp | f536ad8a2054930995301e9110add74fcb824259 | 97b1a256982c2a75c39ba3a855b63a147d4409c5 | refs/heads/master | 2020-05-18T14:40:26.216562 | 2017-08-27T13:46:44 | 2017-08-27T13:48:35 | 84,254,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,612 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-11 19:54
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"ilja.goethel@arcor.de"
] | ilja.goethel@arcor.de |
dad300ee7448615a5b4d43887b4c87e13ffb1cc0 | 80d9d8263a62fbbd730a7d44cc926a0cb791f2c8 | /Solver.py | 19bc4e2617a362442332c010f32fd225d451c5c2 | [] | no_license | fazzadr/Skyline_in_Crowdsourcing_with_Imprecise_Comparisons | 8fc02d5607b6a2770ac21385540d127447b2b42c | 90aa96acb3dd97e1f26d451affa45f2cebc32b55 | refs/heads/main | 2023-07-12T04:22:08.918828 | 2021-08-17T17:12:17 | 2021-08-17T17:12:17 | 397,330,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,076 | py | import math
import numpy as np
import random
import itertools as it
import pprint as pp
from setuptools.command.install_egg_info import install_egg_info
class Solver:
# crowdsourcing comparisons made by one sky algorithm
###### sky_comparisons = set()
# set_comparisons__point_1__point_2__dim = set()
#... | [
"noreply@github.com"
] | fazzadr.noreply@github.com |
ba95e11df98a4b488b08b1f488845db12aa99289 | 9ca2f63f855906695b4b587f137257a7793a75bb | /DBASE/AppConfig/options/Gauss/Pythia8_Pt0Ref2.6_CT09MCS.py | 8d11b32e024d1f48e86b8da772ab0bbb161b9bee | [] | no_license | kidaak/lhcbsoft | a59ffb6c884e5b6e2d28740551d3c49f8338ec3d | b22a1dfea5d4d572e318d1e5d05dfb7484da5f3d | refs/heads/master | 2021-01-22T16:53:18.266147 | 2015-12-10T14:40:48 | 2015-12-10T14:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | from Configurables import Generation, MinimumBias, Pythia8Production
from Configurables import Inclusive, SignalPlain, SignalRepeatedHadronization
from Configurables import Special
Pythia8TurnOffFragmentation = [ "HadronLevel:all = off" ]
gen = Generation()
gen.addTool( MinimumBias , name = "MinimumBias" )
gen.Minimu... | [
"gcorti@4525493e-7705-40b1-a816-d608a930855b"
] | gcorti@4525493e-7705-40b1-a816-d608a930855b |
aafcd623cb57d0e5dc03351f6215fe2f34b4b783 | 26b93ed4b18392f5f577e85c1d06ad6252eff477 | /2021. 3./5543.py | 1bad76ca356dd5fdea7f1fd7411bd12e634edbd3 | [] | no_license | chengxxi/dailyBOJ | 9d245da99cae1972255701cbcb16209f454cd3a3 | 06c1e35d1873d3e39de956cacc88d9e92869cb5b | refs/heads/master | 2023-04-13T18:12:51.677637 | 2021-04-19T12:19:07 | 2021-04-19T12:19:07 | 335,271,521 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | # 5543: 상근날드
burgers = [int(input()) for _ in range(3)]
beverages = [int(input()) for _ in range(2)]
bur = min(burgers)
bev = min(beverages)
print(bur+bev-50)
"""
상근날드에서 가장 잘 팔리는 메뉴는 세트 메뉴이다. 주문할 때, 자신이 원하는 햄버거와 음료를 하나씩 골라, 세트로 구매하면,
가격의 합계에서 50원을 뺀 가격이 세트 메뉴의 가격이 된다.
햄버거는 총 3종류 상덕버거, 중덕버거, 하덕버거가 있고, 음료는 콜라와 사이다 두... | [
"noreply@github.com"
] | chengxxi.noreply@github.com |
a4904e6b0e4a67294faf226389fbd709ba1892d5 | 9613845558fa43a9302fb9821e333375966aa7b8 | /decorator.py | cb9a50e28f0570ca8d10984ed5b14991c5575185 | [] | no_license | Hex-s/python | 56d892048ec97ca519ae76bb72f57364cb5c256c | 499fc3e487807d320c3140767901703aa6a7d1c4 | refs/heads/master | 2021-01-10T17:49:24.436894 | 2016-03-07T07:01:15 | 2016-03-07T07:01:15 | 49,856,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | #!/usr/bin/python
#-*-coding:utf-8-*-
import time
def log(func):
def wrapper(*args,**kw):
print('call: %s' % func.__name__)
return func(*args,**kw)
return wrapper
@log
def now():
print('now:%s' % time.time())
#now()
#print(now.__name__) #wrapper
'''
如果decorator本身需要传入参数,
那就需要编写一个返回decorator的高阶函数,写出来会更复杂。
... | [
"syztobenum1@163.com"
] | syztobenum1@163.com |
3a795c578b70dbbb9d542086dbca989104d9bee0 | e17ffff5120e6746672080750298e9384ecc2434 | /app.py | df78519ebca275ae18efb1c8850b9605558fa3bf | [
"MIT"
] | permissive | Maker-Mark/Flask-SQLAlchemy-REST | 71274bca05f3159ddd0ae16b9bdb33fa8ccfd499 | 12d956c3ec2ec711fc118fd8a1891245b401065a | refs/heads/master | 2023-03-23T11:16:37.884643 | 2019-07-22T14:46:11 | 2019-07-22T14:46:11 | 197,855,881 | 0 | 0 | MIT | 2021-03-20T01:20:04 | 2019-07-19T23:43:31 | Python | UTF-8 | Python | false | false | 4,497 | py | ## Use this as our entry-point
from flask import Flask, request,render_template_string, jsonify #Jsonify allows us to take python dicts into json
from flask_sqlalchemy import SQLAlchemy
from flask_marshmallow import Marshmallow
import os
#init our app
app = Flask(__name__)
#Get our DB file/URI
basedir= os.path.absp... | [
"markgoldstein12@gmail.com"
] | markgoldstein12@gmail.com |
89fd0f1a7fee51b6e6d58cf67f040186f6cf26bb | 80867cdd8f7ea11cef96ebe0c894b87f9fc7afbb | /112_reverse_of_a_list.py | a52c82f565689f706a368ab893114e96c93bada3 | [] | no_license | srekan/pyLearn | fa1f56104adca625be196bc3ac975ea415b5c630 | bf7c2350fc7ca57777b84addc35cd10b404eaf86 | refs/heads/master | 2022-10-05T05:20:23.262597 | 2020-06-08T10:31:30 | 2020-06-08T10:31:30 | 265,237,788 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | # 112_reverse_of_a_list.py
my_list = [
34, 5, 77, 87, 556, 99, 98, 347, 33, 232
]
rev_list = []
last_index = len(my_list) - 1
for i in range(last_index, -1, -1):
rev_list.append(my_list[i])
print("Reverse: ", rev_list)
| [
"sravan.rekandar@drishya.ai"
] | sravan.rekandar@drishya.ai |
5998a3b039fda2f1608a7d35025afa24e81ee8f7 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_4/tama.eguchi/solve.py | cd6330c9e4e87932964281aeb28f5552d708afab | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,364 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#
# Problem D. Fractiles
# https://code.google.com/codejam/contest/6254486/dashboard#s=p3
#
import sys
import random
def solve(K, C, S):
# 1回cleanするとCヶ所のGの有無がわかる
# S回cleanできるので最大C*Sヶ所のGの有無がわかる
# Kがそれより多いと判別できない
if K > C * S:
return 'IMPOSSIBLE'
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
b63e1759752e61c1e109cfd8b7f4a57b4b9b6145 | c75f82516c4c54c6dca82acf15210a5fcc952b0b | /server/bufsm_location.py | 353d0bbff245e1a08501684b2eb891287158de75 | [
"MIT"
] | permissive | IotGod/bufsm | e4c7988fe43636d1fef257fc4c6e367c7cab8b3d | d4b54b8872488de91a9caa769cd6aea60c246a37 | refs/heads/master | 2020-12-18T22:54:20.777760 | 2019-08-10T14:22:49 | 2019-08-10T14:22:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | from datetime import datetime
from pytz import timezone
import paho.mqtt.client as mqtt
# The callback for when the client receives a CONNACK response from the server.
def on_connect(client, userdata, flags, rc):
print("Connected with result code "+str(rc))
# Subscribing in on_connect() means that if we lose... | [
"matheusdalmago10@hotmail.com"
] | matheusdalmago10@hotmail.com |
0e145319ab43967d522e00aa463c3ecd9b256441 | 2afdbbd7c09f376a93ef3c730a627e7efe14e7d5 | /cortex-alertmanager.dashboard.py | cf978c1b28f1aca09de973c3f2b537804af1a8da | [
"Apache-2.0"
] | permissive | oprietop/cortex-dashboards | 4a8efe857113375786c707a393276fa70b2192b1 | edde28bd6950557fdfe45cdd3df0de7f213f7a18 | refs/heads/master | 2022-12-09T21:30:32.669595 | 2020-09-03T09:48:05 | 2020-09-03T09:48:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,268 | py | # -*- mode: python; python-indent-offset: 2 -*-
import grafanalib.core as G
import common
dashboard = common.Dashboard(
uid='am',
title="Cortex > Alertmanager",
rows=[
G.Row(
title='Operations',
panels=[
common.PromGraph(
title="Alerts",... | [
"bjboreham@gmail.com"
] | bjboreham@gmail.com |
06120a3ffdc7b3e67b51502bdd604159274fa0fa | 11a246743073e9d2cb550f9144f59b95afebf195 | /acmsgu/193.py | 768cb75ea9152b431d5c7a3f66250a9afdbd9dea | [] | no_license | ankitpriyarup/online-judge | b5b779c26439369cedc05c045af5511cbc3c980f | 8a00ec141142c129bfa13a68dbf704091eae9588 | refs/heads/master | 2020-09-05T02:46:56.377213 | 2019-10-27T20:12:25 | 2019-10-27T20:12:25 | 219,959,932 | 0 | 1 | null | 2019-11-06T09:30:58 | 2019-11-06T09:30:57 | null | UTF-8 | Python | false | false | 90 | py | from math import gcd
n = int(input())
k = n // 2
while gcd(n, k) > 1:
k -= 1
print(k)
| [
"arnavsastry@gmail.com"
] | arnavsastry@gmail.com |
8a1554d203e48a6a1c62cac70266748ea0e9521b | e770376d6538ad11891defb2200b3a9bd56416ee | /comments/forms.py | 539ad3e4a8ed00a9ad422e53b1fda90f8853efa0 | [] | no_license | konradkrasno/travelblog | 812e7da34db97891784b572446dc37ed6ce35936 | eae532bc144eb9150defddb3cbe64bb32a1dba14 | refs/heads/master | 2023-04-15T20:23:15.354088 | 2021-04-24T15:49:44 | 2021-04-24T15:49:44 | 349,385,938 | 0 | 0 | null | 2021-04-24T15:49:45 | 2021-03-19T10:35:17 | Python | UTF-8 | Python | false | false | 350 | py | from django import forms
from .models import Comment, SubComment
class CommentForm(forms.ModelForm):
class Meta:
model = Comment
fields = ["body"]
class SubCommentForm(forms.ModelForm):
class Meta:
model = SubComment
fields = ["body", "main_comment"]
widgets = {"main... | [
"konradkrasno@gmail.com"
] | konradkrasno@gmail.com |
86109bf27331bf14ac7ddb352964c41a784eb8c7 | 03380a2cf46385b0d971e150078d992cd7840980 | /Python/pywarpx/PSATD.py | 0cd3038336a6bea77a29ae91a1787be2315e3a46 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause-LBNL"
] | permissive | ECP-WarpX/WarpX | 0cfc85ce306cc5d5caa3108e8e9aefe4fda44cd3 | e052c6d1994e4edb66fc27763d72fcf08c3a112a | refs/heads/development | 2023-08-19T07:50:12.539926 | 2023-08-17T20:01:41 | 2023-08-17T20:01:41 | 150,626,842 | 210 | 147 | NOASSERTION | 2023-09-13T23:38:13 | 2018-09-27T17:53:35 | C++ | UTF-8 | Python | false | false | 145 | py | # Copyright 2016 David Grote
#
# This file is part of WarpX.
#
# License: BSD-3-Clause-LBNL
from .Bucket import Bucket
psatd = Bucket('psatd')
| [
"noreply@github.com"
] | ECP-WarpX.noreply@github.com |
4c6d69cd4dd555e87bd94a6e5ae50b59b3b33462 | 1306c798b27f17972165daf51dae54ae71da0ddb | /tests/unit/utils/test_throttle.py | f25175c7ca5bb6dad0cf4ccbec95c8511187de6b | [] | no_license | Delaunay/track | 0dc8dbbc438011a26d06c06edadaa2daad1ce1a7 | c92247e28ef554f125ed7c8e6cd334327ec6600e | refs/heads/master | 2020-05-26T03:22:20.756722 | 2020-01-10T02:36:40 | 2020-01-10T02:36:40 | 188,088,865 | 0 | 1 | null | 2019-10-16T14:49:39 | 2019-05-22T17:59:00 | Python | UTF-8 | Python | false | false | 602 | py | from track.utils.throttle import throttled
import time
class Inc:
sum = 0
def add(self):
self.sum += 1
def test_throttle_time():
inc = Inc()
inc_throttled = throttled(inc.add, every=0.05)
for i in range(0, 100):
inc_throttled()
time.sleep(0.01)
assert inc.sum == in... | [
"noreply@github.com"
] | Delaunay.noreply@github.com |
929a68a4552f9a5a766212acbc4403159e965110 | b0748a6302d19cf6cf67e9258345d64506f28e12 | /dlltest.py | 470018ba4250b11becf35d4c8155c849c9de0bcb | [] | no_license | whitexiong/ymjh | 44077aec1671224ae016e0555e35b0d2fbcaa0c7 | 1a5f854c319a9661b3e7dbdc727b8c634787567d | refs/heads/master | 2022-04-14T08:59:26.859384 | 2020-04-14T12:27:35 | 2020-04-14T12:27:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | import ctypes
if __name__ == "__main__":
tmp_cv = ctypes.CDLL('./libopencv_imgproc420.dll')
tmp_cv.matchTemplate()
print(123) | [
"talkand@sina.com"
] | talkand@sina.com |
b62ad75b919cf48d96d7ab9b9ea96cddc8c3c163 | 066ea30676154a8eddadbf72488d35cb19e4f508 | /cars2.py | 61f64750e505a90b1c95b419f276ab5b7e8f98a3 | [] | no_license | Xiecf/Exercises | 1d5bf54f031958436dba9841b4e8569297aa7e6e | 2d9db3d14e6ca0f079da8c22e5e8403cde904786 | refs/heads/master | 2021-09-02T08:25:23.427122 | 2017-12-31T23:35:18 | 2017-12-31T23:35:18 | 108,338,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | cars = ['bmw','audi','toyota','subaru']
for car in cars:
if car == 'bmw':
print(car.upper())
else:
print(car.title())
car = 'bwm'
print(car == 'bwm')
print(car == 'BWM')
print(car.upper() == 'BWM')
print(car == 'audi')
a = 'xiechaofan'
b = 'Xiechaofan'
c = 'gaojinlei'
d = ['xiechaofan','Xie... | [
"x405139708@gmail.com"
] | x405139708@gmail.com |
2e81b9016cec6a4b5615e50c923ca887fdc1e699 | 42d12cbc8ab91caa84eb2bf279fb9bb8898ea8e3 | /chatbot.py | 29e85ddcfee8c0013f9fa8796998d7165faf5377 | [] | no_license | gjason98/hi1 | 8d561404f8f4d4012284a2a2c3d1618139e7046b | 7becb9cc167d16e6d6098606cae35c97e5e78b06 | refs/heads/master | 2020-05-03T12:04:24.371429 | 2019-03-30T21:55:30 | 2019-03-30T21:55:30 | 178,615,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,820 | py | import sqlite3
import json
from datetime import datetime
timeframe = '2010-01'
sql_transaction = []
connection = sqlite3.connect('{}.db'.format(timeframe))
c = connection.cursor()
def create_table():
c.execute(
"CREATE TABLE IF NOT EXISTS parent_reply(parent_id TEXT PRIMARY KEY, comment_id TEXT UNIQUE, ... | [
"gouthamjason@gmail.com"
] | gouthamjason@gmail.com |
83604841e247e2351977a2bf84d6d4fba795a011 | 6ba9e90cfd2a3d03806f730fbbca574c2f8de9f8 | /extensions/.stubs/clrclasses/__clrclasses__/Autodesk/AutoCAD/ApplicationServices/Core/__init__.py | 16b83275e04a59474443da8ef2844a1a0301b5d0 | [] | no_license | anshe80/Pycad | 696932a2e1eb720fec83790966b64cc4ff821426 | 8c238b23269fe70279a88626e9776a9b1ae9b9a2 | refs/heads/master | 2023-01-29T11:17:33.286871 | 2020-12-12T05:33:34 | 2020-12-12T05:33:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,289 | py | from __clrclasses__.Autodesk.AutoCAD.ApplicationServices import BeginDoubleClickEventHandler as _n_0_t_0
from __clrclasses__.Autodesk.AutoCAD.ApplicationServices import PreTranslateMessageEventHandler as _n_0_t_1
from __clrclasses__.Autodesk.AutoCAD.ApplicationServices import SystemVariableChangedEventHandler as _n_0_t... | [
"34087817+xsfhlzh@users.noreply.github.com"
] | 34087817+xsfhlzh@users.noreply.github.com |
dd7ac29d40bea1f4506785804167ad263dad33c7 | 46ccf20b5e9e03ece36c260ee910e0838796fa6b | /technology/computerBasis/algorithms/others/简单递归.py | 6110623678eeaebe3e964dfe695c11149385f1db | [] | no_license | alexwufeihao/Learn | 2d34f24695e7152d29d120821394b00d628355b5 | f8e0d7e05df7be3800aaca8ee53c726899bcdad1 | refs/heads/master | 2020-09-15T18:17:03.945239 | 2019-11-15T10:22:51 | 2019-11-15T10:22:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
def sumList(numList) :
if len(numList) == 1 :
return numList[0]
else :
return numList[0] + sumList(numList[1:])
def systemConversion(n, base) :
convertStr = "0123456789ABCDEF"
if n < base :
return convertStr[n]
else :
ret... | [
"alex@Alexs-MacBook-Pro.local"
] | alex@Alexs-MacBook-Pro.local |
c7ac74822eca60f7e35c153feddfccd92762e0d1 | 7ef302e0d3a9579740c822d4e4fd806ed43e21a7 | /web/app/controllers/indicators_handler.py | ae4f0cf78f4246076db60501defb8a811e1ef694 | [] | no_license | gcinnovate/mtracpro | d9b7327f4a02894621978fc65cf12b13e495e358 | 7220211e0af0c31991e4d456fd94a2b4e843859a | refs/heads/master | 2023-05-25T07:01:41.074148 | 2023-05-11T13:07:40 | 2023-05-11T13:07:40 | 157,218,976 | 0 | 0 | null | 2018-11-12T13:37:21 | 2018-11-12T13:37:21 | null | UTF-8 | Python | false | false | 5,874 | py | import web
from . import csrf_protected, db, require_login, render, get_session
from app.tools.utils import audit_log, default, lit
from app.tools.pagination2 import doquery, countquery, getPaginationString
from settings import PAGE_LIMIT
class Indicators:
@require_login
def GET(self):
params = web.in... | [
"sekiskylink@gmail.com"
] | sekiskylink@gmail.com |
663d22f51d1e0e55f0fe03f62605da3846c2db14 | 44f52bd8972633f4c4904352e3e1fbbc86f0dff4 | /series_2/Invincible/invincible.py | 0dc92fdeaf6a13c3dab980d60d2e0ba97a2ff0a0 | [] | no_license | MmahdiM79/Algorithms_Design_Sprig2021 | ca364fc59870960c755e334b48d080cf26237405 | 52ef00e2e3b882b698aadd5b1cfd8d1d767d3eb0 | refs/heads/main | 2023-06-29T04:11:59.860984 | 2021-07-27T12:48:21 | 2021-07-27T12:48:21 | 362,185,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py |
if __name__ == "__main__":
n, m, k = [int(num) for num in input().split(' ')]
buckets = {}
for i in range(m//k):
buckets[i] = []
for num in input().split():
buckets[int(num)//k].append(int(num))
largest_bucket = (-1, [])
for bucket in buckets.items():
if l... | [
"MmahdiM79@users.noreply.github.com"
] | MmahdiM79@users.noreply.github.com |
17958f36120e426c6d30503b1e0896488c0ec86c | 4dbfe46fc45348845f059bf3191c409e4a3a31ef | /codeforces/158A.py | 5b2e8aa9f3525fe95f07fdcd6122d109992be901 | [] | no_license | chinatip/problem-solving | b5b1ac40d354322599bbc39daed00a9b1e6280f8 | 7cff855a4bfd1a02815e15c98cf5ba2378bb1f9c | refs/heads/master | 2021-07-04T02:20:19.956352 | 2021-06-07T16:57:15 | 2021-06-07T16:57:15 | 83,819,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | from sys import stdin, stdout
n, k = map(int, stdin.readline().rstrip().split())
count = 0
list_a = map(int, stdin.readline().rstrip().split())
max = list_a[k-1]
for x in list_a:
if x >= max and x > 0:
count += 1
print count | [
"chinatip.v@ku.th"
] | chinatip.v@ku.th |
3e1d0e7d3a78fc1ec942c840368eb6532468301d | d80dd843b3d4ed1fff6e192695837a14d322c831 | /utils/crawl_rq.py | 4a58a3270465a9a4ef27eb975f76137279828ce0 | [] | no_license | scottliyq/convertible_bond | 9faea4e1949b56e0efce6aec3c81d3b01a83f222 | d01a5dad4a6edb34adc066d7a239e9dccd7ea1c0 | refs/heads/main | 2023-08-25T23:10:58.114982 | 2021-11-02T00:12:03 | 2021-11-02T00:12:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | #!/usr/bin/env python3
import json
import pathlib
from absl import app, flags, logging
from datetime import date, timedelta
from conbond import ricequant
import pandas as pd
from tqdm import tqdm
import logging
FLAGS = flags.FLAGS
flags.DEFINE_string('cache_dir', None, 'Cache directory')
flags.mark_flag_as_required(... | [
"paulhybryant@gmail.com"
] | paulhybryant@gmail.com |
5e5b7725a3819c8115be977c155635c73eee8e85 | 7316b60dcb8de197f075863c5014ff5b9c1ef3ce | /manage.py | 2bf2aff58f8266d586673c52452e4f99c969f314 | [
"MIT"
] | permissive | jirah/django-metrics-dashboard | 944c154222968c6f9d45dfd96ce1062f446bbd4d | f4275398960b286a087af94b3929397d1d8e173f | refs/heads/master | 2020-12-25T12:18:08.151073 | 2013-03-06T15:07:14 | 2013-03-06T15:07:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault(
'DJANGO_SETTINGS_MODULE', 'metrics_dashboard.tests.south_settings')
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"mbrochh@gmail.com"
] | mbrochh@gmail.com |
229ce162d2cfd193e01b36085ab0dc6132abacd2 | b8e6e35123911bb57027b751272f566ca2811a2f | /OpenCV-Ex4-Haar-ROI.py | 498e16670197891fa7c69e5e7e71a6f6af804eb8 | [] | no_license | amaxwong/mbs-3523 | 113ca7df3224b3ebd5e0722d9ca777ea6f3041b2 | a62f91c7f5b676a3cbe665789379829cd345ca42 | refs/heads/main | 2023-06-17T09:07:16.362774 | 2021-07-20T06:18:31 | 2021-07-20T06:18:31 | 335,199,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | # Save this file to your Github as OpenCV-Ex4-Haar-ROI.py
import cv2
import numpy as np
print(cv2.__version__)
faceCascade = cv2.CascadeClassifier('Resources/haarcascade_frontalface_default.xml')
capture = cv2.VideoCapture('Resources/IU-edited.mp4')
# capture = cv2.VideoCapture(0)
capture.set(3,640)
capture.set(4,480... | [
"noreply@github.com"
] | amaxwong.noreply@github.com |
07a65541dd334256a2a5e69f6d0ad3c139b8da01 | ab1dd7005b4a4273da3771665250c0b3fcf9d0c1 | /scripts/RoutVsTime.py | 3ddaa9962fb4d9f26f7bc34980e3e75af476b258 | [] | no_license | jordan-stone/Disks | 5388eb29e1bc38382ddb2cd25b921e31decba9bc | 8083c5e1c17e22356a396dfd7c08ed3df5fae605 | refs/heads/master | 2021-01-17T04:43:33.635093 | 2016-07-01T21:55:33 | 2016-07-01T21:55:33 | 61,930,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,208 | py | import numpy as np
import matplotlib.pyplot as mpl
from Disks import *
from Disks.evolve import j_mdot_new_rout, Offner_McKee_dotm_2CTC, J0, J_of_m
from Disks import Q
mf=0.05
j0=J0(1.5,mf,100)#units of specific angular momentum
mstar =[0.001]
mdisks=[0.0001]
routs=[0.5]
t=[0]
deltat=[0]
minfs=[0]
Js=[]
Ltots=[]
one... | [
"jstone@as.arizona.edu"
] | jstone@as.arizona.edu |
cb4922bf9a019bc69e5ac01be3bd96a2cc2222da | 3a94c9aab15768da927c1f4a8edfb94b41f8c9bf | /api/views.py | 816d65a7c8c763ed0ff43b2d308ec9693938734c | [] | no_license | humanbeing-dev/wb_todo-ex3 | 6ed7c8b2d9b9a1b2d033bfe1449e8971749aacde | ec4c6bcecf88492c22401158a15ff6659a240608 | refs/heads/master | 2022-12-03T16:55:03.466409 | 2020-08-22T09:05:59 | 2020-08-22T09:05:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | from django.shortcuts import render
from django.http import JsonResponse
from rest_framework.decorators import api_view
from rest_framework.response import Response
from .serializers import TaskSerializer
from .models import Task
@api_view(['GET'])
def api_overview(request):
api_urls = {
'List': '/task-li... | [
"maciej.sitowski@gmail.com"
] | maciej.sitowski@gmail.com |
f746a4ebd5b0ac7fc775267895f58a74ed2423be | f736d31cfaceb87e123b41ffdc2d02a344a18854 | /PM_Interview/16_2.py | c300ca8c00d982f592d3d8f2dfee83176b5cb838 | [] | no_license | jackiezeng01/Coding_Practice | 4aeddb38f986c31330851b4fc2f38ddcd3b6d863 | 670904585c3c9538832c6042e46e0bfb298b1cfd | refs/heads/master | 2023-07-08T21:45:14.447494 | 2021-08-02T02:27:30 | 2021-08-02T02:27:30 | 306,463,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | '''
Reverse the order of elements in an array (without creating a new array)
'''
def reverse_array(arr):
p1 = 0
p2 = len(arr)-1
while p1 < p2:
arr[p1], arr[p2] = arr[p2], arr[p1]
p1+=1
p2-=1
return arr
if __name__ == "__main__":
arr = [1,2,3,4]
print(arr)... | [
"dolphin.pool01@gmail.com"
] | dolphin.pool01@gmail.com |
d347704bb2848e440833e1b735926887eb7f9704 | 4af6edfc1d581ff8f2aaaafbb7628461e4d3a7e6 | /pictomood/conf/oea_less_cross_val_all.py | 530429237facacd029c9e58b5815d5c6c0451048 | [
"MIT"
] | permissive | pic2mood/pictomood | ec6a91f3e9e0c8ce0ef3b4a50e7c760df1d2ef66 | 3878e12002b008991571d63820f60154f500ce24 | refs/heads/master | 2021-05-09T12:32:55.441895 | 2018-03-03T17:02:01 | 2018-03-03T17:02:01 | 119,013,693 | 0 | 1 | MIT | 2018-03-03T08:06:17 | 2018-01-26T06:16:35 | Python | UTF-8 | Python | false | false | 1,035 | py |
from pictomood.config import *
model = {
'name': 'oea_less',
'validator': 'cross_val',
'emotions': 'all',
'ext': '.pkl'
}
trainer = {
'dataset': path_as([
'data',
model['name'],
name_generator(model, suffix='dataset')
]),
'model': path_as([
'data',
... | [
"franciscoraymel@gmail.com"
] | franciscoraymel@gmail.com |
dca7fb7cb747b50c4973e0758058bca3cef0d6a0 | eef17f98a29cec4e432df8b45e148117c75363a2 | /apps/apartments/admin.py | a39b26434d68bbeee3e0d2091f6bba10586a69df | [] | no_license | patriciohc1234/season_booking2 | e59e4b6cf63343ba0c157f3427e8aa41ab4da148 | a9a9032df5f3c47fcccbdf0b8799bd4e6ead8cd5 | refs/heads/main | 2023-09-04T21:38:27.099649 | 2021-11-25T16:02:38 | 2021-11-25T16:02:38 | 431,904,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from django.contrib import admin
from .models import Apartment
admin.site.register(Apartment)
| [
"p.huentemil@alumnos.duoc.cl"
] | p.huentemil@alumnos.duoc.cl |
fce32e3a6c06c5cdd01be9d8fd1b7129fe988b18 | a6c07cba0aa8f35e169291ceb0f6ff1a71087016 | /TareaTony.py | 61cec593205fce9d2353710feb52d00d09bef570 | [] | no_license | parra320/Python | fea52b46fb469f76cec2b3d451075c99b2bb1f93 | a691423fbbbbc0e4a00852d7074e8a4a6e1e93e4 | refs/heads/main | 2023-05-05T06:41:36.064912 | 2021-05-28T07:58:20 | 2021-05-28T07:58:20 | 371,624,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,797 | py | #Programa que permita calcular la presencia en las redes
AbrirArchivo= open("presenciaderedes.csv", "r")
Contenido= AbrirArchivo.readlines()
AbrirArchivo.close()
valor=[]
valor.append(Contenido[3])
print(type(valor))
print("\n\t¿Que operación quiere realizar?: ")
print("1)Calcular diferencia de cierto aspecto comp... | [
"luis.deathofnote@gmail.com"
] | luis.deathofnote@gmail.com |
f707c226507a04668fafe52bd8750d1ee2f28d0e | a4c9bbc5f46973111a52cb9cfe952fafe962ba9e | /src/board.py | 2740c4db1d99a2593b222914ef4733fe1d1e88ae | [] | no_license | aksalcido/connect-four-ai | a29654bc8cefef79099f44c4daf680e2c14ebf7a | f6698dbd7f139089106eb1f40b98d61635e90003 | refs/heads/main | 2023-05-04T11:31:40.037358 | 2021-05-22T01:00:17 | 2021-05-22T01:00:17 | 369,395,643 | 0 | 0 | null | 2021-05-22T01:00:18 | 2021-05-21T02:49:04 | Python | UTF-8 | Python | false | false | 8,616 | py | from python_settings import settings
class Board:
def __init__(self):
'''
Initializes a board object. This object contains the contents for the current game state of the board.
It essentially does the moving and winner checks but does not contain any of the game attributes
(e.g: p... | [
"aksalcid@uci.edu"
] | aksalcid@uci.edu |
f4e55afb4d540776177b889d78b3b62e4ea7ed2e | d99f3d21700b56d0b9f2fd30cccf23d3bebda3fa | /rdfdatabank/tools/broadcastDatasets.py | 18d32cd594872fbe1b5a6736dc80047f507b9336 | [
"MIT"
] | permissive | dataflow/RDFDatabank | 6e713044d8fd06644667b6346f63f57dee124a89 | 8a3abd28fefc62cbbfb9f77e7ddc920e23794f34 | refs/heads/master | 2021-01-18T07:44:31.110786 | 2015-01-28T15:48:56 | 2015-01-28T15:48:56 | 1,910,458 | 7 | 0 | MIT | 2018-12-05T16:20:21 | 2011-06-17T10:12:30 | Python | UTF-8 | Python | false | false | 2,229 | py | #-*- coding: utf-8 -*-
"""
Copyright (c) 2012 University of Oxford
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 limitation the rights to use, copy,... | [
"anusha.ranganathan@bodleian.ox.ac.uk"
] | anusha.ranganathan@bodleian.ox.ac.uk |
5b8aee1b33555ac5e21ed6566244155d7a42529c | 33424e1a3cc65ac7d4d5f88c5897ae59a32ae91e | /train.py | b1bb0c57c8f3b5279b7e19fb55abc6d03e23db7b | [] | no_license | file-campuran/Auto-Attendance-System-using-Deep-Learning | 08d5888d2ac046a35554c86cd4a4c15a485500bb | 495003e2dfe1a5ced097223dfaa1d328a44198a8 | refs/heads/master | 2023-03-22T23:11:28.366108 | 2020-09-25T20:39:29 | 2020-09-25T20:39:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py |
import cognitive_face as CF
from global_variables import personGroupId
Base_url = 'https://westcentralus.api.cognitive.microsoft.com/face/v1.0' # default endpoint when use free
CF.BaseUrl.set(Base_url)
Key= '20c5c11712244ba4b340ac8bf949b8ef' # subscription key needed
CF.Key.set(Key)
res = CF.person_group.train(per... | [
"nasirh831@gmail.com"
] | nasirh831@gmail.com |
d0d2b7a48aac0d51708a4b7cb8b413fae2d39bc3 | bc1c3b7386b80c8aa1ee9660606084aacf499e93 | /Bronze III/1267.py | ce2135f42a9bee7c2580012ad118b4898d82c210 | [] | no_license | Thesine/BOJ_Sine | ad93bcd47f622cb68ae794fbd70c3b73044c76aa | 4bde63726c0f14e9dea30eeb5d262039509b9e8b | refs/heads/master | 2022-11-05T01:22:55.674606 | 2020-07-15T07:14:49 | 2020-07-15T07:14:49 | 265,505,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | import math
N = int(input())
a = []
a = input().split()
Mres = 0
Yres = 0
if len(a)==N:
for i in range(N):
M = (math.trunc(int(a[i])/30)+1) * 10
Y = (math.trunc(int(a[i])/60)+1) * 15
Mres = Mres + M
Yres = Yres + Y
if Mres < Yres:
print('Y', Mres)
elif Yres < Mres:
print('M', Yres)
elif Mres==Y... | [
"noreply@github.com"
] | Thesine.noreply@github.com |
0fc4dd5e9ee64a6900a149cc32b70bc8fced8207 | 43ff465e2f2818f859596a22d9987b9aa984c54e | /emojix.py | bbca135b93d5cb5894c28d6418fdd6862ad174b6 | [] | no_license | ANSH3LL/Chatz-UI | df99329eb693cd85dad059cfd7473a34e2ad5f5b | bea54ba4c8b8445f3d4fbd944488dcbb528825da | refs/heads/master | 2020-12-04T14:43:02.170118 | 2020-01-27T07:07:31 | 2020-01-27T07:07:31 | 231,804,569 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,375 | py | import os, sys
from PyQt4 import QtCore, QtGui
class EmojiLabel(QtGui.QLabel):
def __init__(self, parent):
QtGui.QLabel.__init__(self, parent)
def mouseReleaseEvent(self, event):
self.emit(QtCore.SIGNAL('clicked()'))
class EmojiFragment(QtGui.QScrollArea):
def __init__(self, ... | [
"noreply@github.com"
] | ANSH3LL.noreply@github.com |
8c5d004e1a7e6632d8a036443c0040386507fabf | f2d189d9321f88d3f6104c81109dcebb2087578d | /wombot_teleop/src/joy_teleop.py | 09372c54cb03b7acbf12c44402ccc046d59e358d | [] | no_license | merlinwu/wombot | c7ec39a28cf745d1b9dd2edbe7982b2a27bd81ff | 215a8b57e2b3483c89f625dbe8f7b64f7508ad11 | refs/heads/master | 2021-01-01T04:01:16.058403 | 2012-02-18T08:30:46 | 2012-02-18T08:30:46 | 56,123,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,653 | py | #!/usr/bin/env python
import roslib; roslib.load_manifest('wombot_teleop')
import rospy
from art_msgs.msg import SteeringCommand
from art_msgs.msg import ThrottleCommand
from art_msgs.msg import BrakeCommand
from sensor_msgs.msg import Joy
from wombot_msgs.msg import WombotVehicle
from wombot_msgs.msg import Drivetra... | [
"tim@scott.id.au"
] | tim@scott.id.au |
93f85d2a622e280d631d659e7b62ab562683d6e3 | 99297ea97c84625d5cbe28ea2c862c2944f3f781 | /abstract_dump.py | 0ce6245b2930f9192f46462a74f2347bb2ad378a | [
"Apache-2.0"
] | permissive | subho007/apk_api_key_extractor | f7ad4fe8780586661f65526d871b1653651e1425 | cbc2a8b02a5758886ac6aa08ed4b1b193e2b02aa | refs/heads/master | 2020-12-22T20:23:46.901996 | 2019-09-02T09:19:04 | 2019-09-02T09:19:04 | 236,922,364 | 1 | 0 | Apache-2.0 | 2020-01-29T06:57:54 | 2020-01-29T06:57:53 | null | UTF-8 | Python | false | false | 254 | py | from abc import ABC, abstractmethod
class AbstractDump(ABC):
@abstractmethod
def dump_apikeys(self, entries, package, version_code, version_name):
pass
@abstractmethod
def dump_strings(self, entries):
pass | [
"didiego.alessandro@gmail.com"
] | didiego.alessandro@gmail.com |
1ed9797eae96b6c837f11417f40e151d6b5c53e6 | e717d3bc0d6c70f27f81d83d1adf43e71fd2b8bb | /molecule/default/tests/test_default.py | 3ec76a5d8cb681195e7076edc03ece52da653cb3 | [
"MIT"
] | permissive | gabops/ansible-role-packages-os | 85b178c645a6a497bf875ec1f21963335f99a599 | 72220dd4c9810f3971cdc23b0008a9df529a5478 | refs/heads/master | 2023-02-26T15:08:28.368881 | 2020-01-24T19:33:02 | 2020-01-24T19:33:02 | 205,724,504 | 4 | 0 | MIT | 2023-02-07T22:59:04 | 2019-09-01T19:45:22 | Python | UTF-8 | Python | false | false | 216 | py | import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('all')
def test_pkg_installed(host):
pass
| [
"gabriel.suarez@solarwinds.com"
] | gabriel.suarez@solarwinds.com |
0088c054c40c1b257edbf5330063ca493ed72165 | 2eb86b328bfa24a826a1ced7b6e58db234b0f044 | /algoritm_w2/p2.py | f8fc28d572a92370072cd95491dde7255b938c76 | [] | no_license | stkang9409/algorithm | ec965864f6226d5d82d0ef4d5d2e9264171ba5ca | 2660f015ea3f9bfb61fa43238696f767a7d1a909 | refs/heads/main | 2023-02-28T18:08:02.797369 | 2021-02-08T02:08:24 | 2021-02-08T02:08:24 | 324,918,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | import sys
input = sys.stdin.readline
tree_num, need = map(int, input().split())
trees = list(map(int, input().split()))
def get_tree_amount(h):
amount = 0
for tree in trees:
amount += tree - h if tree - h > 0 else 0
return amount
def bin_search(need):
low = 0
high = m... | [
"stkang9409@gmail.com"
] | stkang9409@gmail.com |
44ec1bf6c464c84cdeb3ebabf286821591ab9118 | c0f3714db335601d94172362b872142ab4cf14ed | /pos_receipt_invoice_number/__openerp__.py | 18ebd32d45d9738a505a09f7a0dcb4504d4ebc2d | [] | no_license | osmincano/number_invoice | 6f0843fbd90332a4ce6d421b492cadcb879d04f3 | 28010945d57e0eb900beb9f6b089bd4467da252e | refs/heads/master | 2020-05-09T14:55:15.457867 | 2019-04-16T06:41:32 | 2019-04-16T06:41:32 | 181,214,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | # -*- coding: utf-8 -*-
{
'name': "POS Receipt Show Invoice Number",
'version': '8.0.1.0.1',
'category': 'Point of Sale',
'author': ['TL Technology'],
'sequence': 0,
'depends': [
'point_of_sale'
],
'data': [
'template/import_library.xml',
'views/pos_config.xml',
... | [
"root@ubuntu.(none)"
] | root@ubuntu.(none) |
5c0be6abcd37ca54a235856fd740d48fbdaf07e5 | d6e2a4c5a45762abe4cda59695d4c50da557dd32 | /haming_fast.py | 7cf2b5cefc4d477502065ece9db32a69111d70da | [] | no_license | miskiewiczm/primers | 388f9f9967c168b8673dc89ec57c785a74683c82 | 5985ff0eef9515fb1752e25acc2d82eaeda4d5de | refs/heads/main | 2023-02-24T19:40:57.068003 | 2020-11-06T16:19:49 | 2020-11-06T16:19:49 | 307,627,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | primer1 = "AACCTTAAGGCCTTGGAA"
primer2 = "CCTTGGTTGGAAAATTGG"
dna_to_bin = {"A": "00", "C": "01", "T": "11", "G": "10"}
dna_B1 = ''.join(dna_to_bin[i] for i in primer1)
dna_B2 = ''.join(dna_to_bin[i] for i in primer2)
print(dna_B1)
print(dna_B2)
a = "".join(str(int(i == j)) for i, j in zip(dna_B1, dna_B2))
print(a.... | [
"noreply@github.com"
] | miskiewiczm.noreply@github.com |
ebf4d433e4477a4936756e073428420c5428f87c | 3e50ed55208122b2f8b34e7f26f33c9ef70efce5 | /python/requests_test/m1.py | d6f7f6b65b1ce61cd5e423cbf4700572f2ed54ae | [] | no_license | brady-wang/mac_home | b8343da428a4e6696b89d0e6a53ff0dfc87ffd21 | c56a739c31d3c0f62d26d8512fe1a90c036a1f96 | refs/heads/master | 2023-01-14T11:42:02.544322 | 2019-10-02T11:47:27 | 2019-10-02T11:47:27 | 193,177,718 | 0 | 0 | null | 2023-01-04T13:55:31 | 2019-06-22T01:27:10 | PHP | UTF-8 | Python | false | false | 1,145 | py | # *_*coding:utf-8 *_*
# 网易云音乐批量下载
import requests
import urllib
# 榜单歌曲批量下载
# r = requests.get('http://music.163.com/api/playlist/detail?id=2884035') # 网易原创歌曲榜
# r = requests.get('http://music.163.com/api/playlist/detail?id=19723756') # 云音乐飙升榜
# r = requests.get('http://music.163.com/api/playlist/detail?id=3778678')... | [
"brady.wang@qq.com"
] | brady.wang@qq.com |
df9c3f26577d821ab512476e94dfcb5d9f813e80 | 6af5bfa49a4fa2a4a1cdc094fa55a5ac38f4baff | /homework/mp2-code/instances.py | 542a47ee9beeeb06e504808bb6eeb3b4cd5cee01 | [] | no_license | milkshakeiii/simple_python_projects | 8d89493df14884c739b77d1ca1d39bc5b1f0f8da | aeffff25d3d0e9210a2ca93149cceded9eec796d | refs/heads/master | 2023-04-14T02:25:03.897211 | 2023-04-05T17:23:03 | 2023-04-05T17:23:03 | 69,521,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,691 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import numpy as np
uninos = [np.array([[i]]) for i in range(1,61)]
dominos = [np.array([[i],[i]]) for i in range(1,31)]
triominos = [np.array([[i,0],[i,i]]) for i in range(1,21)]
petnominos = [np.array([[0,1,1],
[1,1,0],
[0,1,0]]),
... | [
"milkshakeiii@gmail.com"
] | milkshakeiii@gmail.com |
30b6d0f6844219533ac55b79bf10342cfab2d660 | 921bc873efb33d32df249732ba77e32995b707a1 | /poems.py | d2c4bf3ef36e785e2b7ae6989e10cfff43f76517 | [] | no_license | AtharvaTawde/larvabot | 0df52bad4ae58390bf3701feff691fa8706ea3aa | ccf164f1fe42626ea491d691df14d66f7dfc5b69 | refs/heads/master | 2023-04-22T15:44:46.917354 | 2021-05-08T19:13:26 | 2021-05-08T19:13:26 | 363,477,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,880 | py | import random
poems = {
"Moon and Sun":
"Oh, those days when the sun and moon were alike\nBut now the moon envies the sun for it is so bright\nThe sun envies the cool dark night",
"Lava":
"I was in lava\nMy body was roasting fast\nIn the orange lake",
"Ain":
"I am Ain\nI am pain\nI like plane\n... | [
"atharvatawde894@gmail.com"
] | atharvatawde894@gmail.com |
41c6c69e9b8b7c35436dc0fb748fd21273bc0b83 | 9d388f338ccb52a818c345a6ccdc87775eb38c52 | /src/cobwebs/cobwebs/exceptions.py | 33797591c70f8b397e19e43ee8180df55a26355e | [
"Apache-2.0"
] | permissive | asteroide/immo_spider | 3750887d62f876ce35a70b9172caf4fd935a1487 | 864828c389173f6d6417392983bc8d39b5fd4ea2 | refs/heads/master | 2023-01-11T02:13:47.460448 | 2016-09-21T12:55:47 | 2016-09-21T12:55:47 | 56,408,229 | 0 | 0 | Apache-2.0 | 2022-12-24T02:34:04 | 2016-04-16T22:22:37 | Python | UTF-8 | Python | false | false | 622 | py | class NotImplementedException(BaseException):
message_format = "This function is not implemented."
code = 500
title = 'Not implemented'
class UnknownCommandError(BaseException):
message_format = "This command is not authorized."
code = 500
title = 'Unknown Command'
class ConfigFileException(... | [
"dt_github@domtombox.net"
] | dt_github@domtombox.net |
8dadd4adfb54d496723bb512cdb47c1749c4242a | 99eba20f2b0a547acb106ab4bdd94a7df330ff6b | /Utils.py | 7015c4b1152c05bb235ee4a8ddbd7ddadc1a8b5f | [] | no_license | apitsaer/Deep-Artwork-Analysis | 7e7d7836a4069dea674e99a6968717b8a3046bc4 | b8a6056e43e3de8100eaefaeea72f87bb6fec5ae | refs/heads/master | 2020-05-02T08:21:08.944920 | 2019-05-25T23:54:35 | 2019-05-25T23:54:35 | 177,840,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,409 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 3 16:11:22 2019
@author: admin
"""
import re
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.metrics import confusion_matrix
from sklearn.utils.multiclass import unique_labels
def getAllTypeMat(AWTableTOP):
... | [
"apitsaer@gmail.com"
] | apitsaer@gmail.com |
9ddc24cc3be2b389b945332eb5b4ae28a086dae6 | 3374acf28d40e502b00680aacbcab00e111fa437 | /cspp1-practice/m7/Functions - Square Exercise/square.py | 55828979709d62de40a4c16a757b689d589473f7 | [] | no_license | saisrinivasreddypatlolla/6019_CSPP1 | db2bd0ddb63b6a332b029340bf73f31017616d93 | e4092709128bcae778a4ee2e6c765b919762a2e5 | refs/heads/master | 2020-03-24T20:36:55.394170 | 2018-08-25T07:27:08 | 2018-08-25T07:27:08 | 142,987,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # Exercise: square
# Write a Python function, square, that takes in one number and returns the square of that number.
# This function takes in one number and returns one number.
def square(x):
'''
x: int or float.
'''
return x*x
# Correct
def main():
data = input()
data = float(data)
temp = str(d... | [
"nivasreddy08@msitprogram.net"
] | nivasreddy08@msitprogram.net |
839a175c960224f1cd6c4f26e5f954b2b481bc55 | 337562baac02e9ef39acf48c0cb0d0e612f42372 | /scripts/go.py | 0ca910891f0ec0683de6ec4964c50e36e84c55a1 | [] | no_license | y-shiigi/task_editor | 9d7a1ae3acd27faf0c00bf3ca582ae1d47874bd9 | 95f9e6f0e2d4812fe88bd38216d686499fa98392 | refs/heads/master | 2021-07-12T18:09:25.106358 | 2020-07-06T07:18:20 | 2020-07-06T07:18:20 | 174,313,759 | 0 | 0 | null | 2020-07-06T07:18:21 | 2019-03-07T09:30:14 | Python | UTF-8 | Python | false | false | 5,154 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import time
import rospy
##-- for navigation
import tf
import actionlib
from actionlib_msgs.msg import *
from geometry_msgs.msg import *
from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal
import yaml
import tf
import math
##-- for find pkg
import rospkg
... | [
"y.shiigi@thk.co.jp"
] | y.shiigi@thk.co.jp |
c09a11b8e00247f2e94a1ba4ec0526088e30eb49 | 1f99ddccebb5edfd133d5579c1889425dc966a49 | /grpc_interceptor_headers/header_manipulator_client_interceptor.py | 39404a92a44d7e0d2cb677a64132a3fec9fdd178 | [
"MIT"
] | permissive | sempr/grpc-interceptor-headers | 6452185e543e8bc6c499462c8017c372aed1e441 | 5ff36ccab2fc6f776db5c1fbbeb78538933bff9a | refs/heads/master | 2022-10-18T19:07:08.366404 | 2022-09-24T06:41:44 | 2022-09-24T06:41:44 | 155,700,022 | 0 | 0 | MIT | 2022-09-24T06:41:45 | 2018-11-01T10:41:56 | Python | UTF-8 | Python | false | false | 1,584 | py | # Copyright 2017 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | [
"iamsempr@gmail.com"
] | iamsempr@gmail.com |
4299b17a8916546238e85ee8fc1d9d23471f5891 | 921b0e79421e58c09c2331365c48b7fe991c8c88 | /feeder1.py | f632f9afcd73e331d5e106049b6f53ea5d0a9a67 | [] | no_license | ssaisanthosh/FishFeeder | 0fdcd035a211afcb2a7c85eb398cef86f852c197 | 0ec6598f9391a7a06344ed0908c8b04c00dc105c | refs/heads/main | 2023-01-21T10:31:38.526355 | 2020-12-06T20:51:14 | 2020-12-06T20:51:14 | 319,128,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,638 | py | #!/usr/local/bin/python
import RPi.GPIO as GPIO
import time
#control = [5,5.5,6,6.5,7,7.5,8,8.5,9,9.5,10]
control = [5,15]
servo = 17
#GPIO.setmode(GPIO.BOARD)
GPIO.setmode(GPIO.BCM)
GPIO.setup(servo,GPIO.OUT)
# in servo motor,
# 1ms pulse for 0 degree (LEFT)
# 1.5ms pulse for 90 degree (MIDDLE)
# 2ms pulse for 18... | [
"me@ssaisanthosh.com"
] | me@ssaisanthosh.com |
6be45dd06c5be6fafefaef95a61ae6f1c20a4184 | 2f41d9b78a88a6ed4c5724eae4da2d6c58b70d55 | /recipes/cairo/all/conanfile.py | 1ee19505ae145d6335d0796747ff6e91a51b07e1 | [
"MIT"
] | permissive | hrantzsch/conan-center-index | 378e951aab108d801be6f3c59a5481f443b31bab | 057f0a81e4ab01944220478a3227c58445b184db | refs/heads/master | 2023-07-06T02:22:46.043174 | 2023-07-04T13:53:53 | 2023-07-04T13:53:53 | 226,821,993 | 0 | 1 | MIT | 2022-01-29T16:05:40 | 2019-12-09T08:29:30 | Python | UTF-8 | Python | false | false | 15,841 | py | import os
from conan import ConanFile
from conan.errors import ConanInvalidConfiguration
from conan.tools.apple import fix_apple_shared_install_name, is_apple_os
from conan.tools.build import cross_building
from conan.tools.env import VirtualBuildEnv, VirtualRunEnv
from conan.tools.files import (
apply_conandata_p... | [
"noreply@github.com"
] | hrantzsch.noreply@github.com |
7db08649355d77be0d93b6eb24505fb3b1fcf3d6 | 1d2876eca2103bd67d8eb695b0096db4acaec1fe | /generate_face/utils.py | 19b7696d79c586d5cf7da1333fd4166f93492e8e | [] | no_license | liuaishan/FaceAdv | 7a02e245593ac0d643a08da7e9d176f0fc5650c3 | 5e953d6c861991e715f3078c7c9426fca0551164 | refs/heads/master | 2020-05-15T05:12:06.661716 | 2019-04-28T15:31:03 | 2019-04-28T15:31:03 | 182,101,738 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,845 | py | import random
import time
import datetime
import sys
import cv2
from torch.autograd import Variable
import torch
import numpy as np
from torchvision.utils import save_image
def tensor2image(tensor):
image = 127.5*(tensor[0].cpu().float().numpy() + 1.0)
if image.shape[0] == 1:
image = np.tile(image, (3... | [
"157908876@qq.com"
] | 157908876@qq.com |
89bd3418dcef3de5223cd4e346518cdd303334a8 | 6f0e0cb3b408f803bd31577959a8a05b90d37e42 | /utils/serialization.py | f647db170958fbc2eeb22b535100ec04ee0ceadd | [] | no_license | aralhekimoglu/ThesisImagePR | 8860189bc2869aa03b19f36eaca283b41f7ef39f | 3842e12312fa699cc0dc49e3a112aca453e2aae5 | refs/heads/master | 2022-12-10T10:06:59.324211 | 2020-01-05T15:49:12 | 2020-01-05T15:49:12 | 231,939,688 | 0 | 0 | null | 2022-12-07T23:54:12 | 2020-01-05T15:47:22 | Python | UTF-8 | Python | false | false | 1,246 | py | from __future__ import print_function, absolute_import
import json
import os.path as osp
import shutil
import torch
from torch.nn import Parameter
def read_json(fpath):
with open(fpath, 'r') as f:
obj = json.load(f)
return obj
def load_checkpoint(fpath):
if osp.isfile(fpath):
checkpoint =... | [
"aral.hekimoglu@gmail.com"
] | aral.hekimoglu@gmail.com |
6edcf5b03150c8e943e7fa762917b36ca3391087 | 0fa00ecf2dd671515dc001d4b14049ec6a0c1f1c | /custom_components/icloud3/support/service_handler.py | ca716f98124a0c0f3ddcc8d976d93751544e5677 | [
"Unlicense"
] | permissive | bacco007/HomeAssistantConfig | d91a5368344f50abbea881bd1e6dfc57a0e456ca | 8548d9999ddd54f13d6a307e013abcb8c897a74e | refs/heads/master | 2023-08-30T07:07:33.571959 | 2023-08-29T20:00:00 | 2023-08-29T20:00:00 | 230,585,631 | 98 | 16 | Unlicense | 2023-09-09T08:28:39 | 2019-12-28T09:05:02 | Python | UTF-8 | Python | false | false | 22,333 | py | #<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
#
# ICLOUD SERVICE HANDLER MODULE
#
#<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
import homeassistant.helpers.config_validation as cv
from homeassistant import data_entry_flow
import voluptu... | [
"thomas@thomasbaxter.info"
] | thomas@thomasbaxter.info |
48cc0d40c135bbab7009debb0fa2b4ef391485d5 | d74afbb1cfd00786fda380eb44f9524dc3182fd5 | /application/factory.py | 416a557c3985b2803c0a90eeaa43000bb0ea8bf9 | [
"MIT"
] | permissive | kdknive/flask-api-template | 95b9ea35ec9b0742e55459aa6b4934f2ffbea33f | f816d8af8633f5eabb9c8b611841a77cf6cd7c9b | refs/heads/main | 2023-08-10T17:56:08.853642 | 2021-10-03T21:19:17 | 2021-10-03T21:19:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | from flask import Flask
from application.api.moon import moon
from application.api.sun import sun
def create_app():
app = Flask(__name__)
app.register_blueprint(moon, url_prefix=moon.url_prefix)
app.register_blueprint(sun, url_prefix=sun.url_prefix)
return app
| [
"david.salter@outlook.com"
] | david.salter@outlook.com |
4492af906e447a4ad38c8eb08ed07bee989de5d3 | cf646fadb13f645753b0a9d2353d5679929d22e8 | /cricket_tournament/models/score_board.py | f9c93cc74ff0dbd2ec878a5d0ecf486282528809 | [] | no_license | vivektiwari-007/cricket_score_board | f84faefc152353f15a1612009c24e1d519311d0c | ab5b5231cae97198aabd2a93eaefa40fcf764a42 | refs/heads/master | 2022-04-08T07:46:38.602261 | 2020-02-18T13:18:53 | 2020-02-18T13:18:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,279 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models
class ScoreBoard(models.Model):
_name = "score.board"
_description = "Score Board"
company_id = fields.Many2one('res.company', required=True, default=lambda self: self.... | [
"tiwarivivek389.com"
] | tiwarivivek389.com |
bb4ad2746d26da85b8fdacf01f3f4797e6f2fe89 | 86f5d75d1bbbfa2d1f12c574d65415c9216a522f | /nairalirayoga/core/migrations/0013_auto_20160316_0242.py | 1ee13901775281baa6621492c04d707d2618fe9c | [] | no_license | joaosr/nairalirayoga | e5f260cc87348724ef8a8852655fc6ebd68172a4 | 4d222b14add9e832f217a8b9d14d6676eb560e03 | refs/heads/master | 2020-04-05T23:09:19.710486 | 2016-09-30T00:22:51 | 2016-09-30T00:22:51 | 58,102,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-03-16 02:42
from __future__ import unicode_literals
from django.db import migrations, models
import nairalirayoga.core.models
class Migration(migrations.Migration):
dependencies = [
('core', '0012_auto_20160316_0137'),
]
operations = [... | [
"eng.jmsoares@gmail.com"
] | eng.jmsoares@gmail.com |
7be7b33049864554e896f01363cd6ae90d48f9d6 | d755c825cacbb60e9a23234fbaaf93de48c6a058 | /June-CookOff-2019/multipleChoiceInput.py | dadd7cf19e50ae0fea6efb6676ab209a88a4c457 | [] | no_license | Subhash3/CodeChef | d82e4df751e6dd1e07205871b9e2c0b1202d0506 | 5301b0e4555aac55a72f175dfba8f786b4ea7bbd | refs/heads/master | 2020-08-04T20:17:18.339602 | 2020-01-21T16:10:12 | 2020-01-21T16:10:12 | 212,267,130 | 2 | 3 | null | 2019-10-15T12:07:44 | 2019-10-02T06:07:41 | Python | UTF-8 | Python | false | false | 559 | py | #!/usr/bin/python3
import random
correct = ""
N = int(input())
for i in range(N) :
a = random.randint(1, 5)
if a == 1 :
correct += 'A'
elif a == 2 :
correct += 'B'
elif a == 3 :
correct += 'C'
else :
correct += 'D'
chef = ""
for i in range(N) :
a = random.randi... | [
"subhashsarangi123@gmail.com"
] | subhashsarangi123@gmail.com |
e1441f3392629cded5e0890daa2c8b20e8cb5e4c | dd405b65af6793d9df52b26a0d6d8ba2d07985f4 | /trade/rl_train.py | b95cd1566cefc65877a340862b70ef908538a50e | [] | no_license | bendavidsteel/trade-democratization | 1965b16b38d77dcb860270c0f7dde3ba05ec056f | ea321f45b996f905db32535dd4d79902b350ce4a | refs/heads/master | 2023-01-24T19:59:36.892975 | 2020-11-24T23:49:16 | 2020-11-24T23:49:16 | 265,402,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,306 | py | import math
import torch
import tqdm
import nation_agent
import nation_env
import utils
GAMMA = 0.999
EPS_START = 0.9
EPS_END = 0.05
EPS_DECAY = 50
NUM_EPISODES = 100
REPLAY_CAPACITY = 20
NUM_COUNTRIES = 20
NUM_YEARS_PER_ROUND = 100
# if gpu is to be used
device = torch.device("cuda" if torch.cuda.is_available() e... | [
"bendavidsteel@gmail.com"
] | bendavidsteel@gmail.com |
3fa553721e7d58259f8b91d2d8c2dda5cb91b569 | 27d92b640d3814fa5dc8040b79a99d077cba3aae | /cpython/Lib/wsgiref/validate.py | 49eaa514cc5d0873f0bdcb9a4543cce71881803e | [
"GPL-1.0-or-later",
"Python-2.0",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-python-cwi"
] | permissive | ms-iot/python | 99a0f4d3dd3926703d49b75910c78c69cdb7aed7 | a8f8fba1214289572713520f83409762a4446fea | refs/heads/develop | 2022-12-07T23:26:31.339811 | 2017-11-17T02:24:32 | 2017-11-17T02:24:32 | 31,045,533 | 73 | 39 | BSD-3-Clause | 2022-11-16T20:24:24 | 2015-02-20T01:01:09 | Python | UTF-8 | Python | false | false | 15,151 | py | # (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org)
# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
# Also licenced under the Apache License, 2.0: http://opensource.org/licenses/apache2.0.php
# Licensed to PSF under a Contributor Agreement
"""
Middlew... | [
"juanyaw@exchange.microsoft.com"
] | juanyaw@exchange.microsoft.com |
985f2188c354d18e1eb3ea17b51af94488cee80a | 5d4249cc7a738eacbd274bfb30c0088176e17eca | /client/config/__init__.py | cccefba868023df91107cac61a52f57473da872d | [] | no_license | pstankiewicz/pihome | d194d14c376d28861bbf64da1ba9b3f6f80b1386 | a930cd18767127c349cdcf1560e04619b3b02024 | refs/heads/master | 2023-01-02T06:12:28.839516 | 2020-10-26T06:28:52 | 2020-10-26T06:28:52 | 297,110,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | try:
from .local import *
except ImportError as e:
print(e)
from .base import *
| [
"piotr.stankiewicz@gmail.com"
] | piotr.stankiewicz@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.