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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13fc2d742161aea7d1a51f351cac30e21bcd181e | 172eb751b879d36d95b04d81db87a501cd18d8a1 | /ImageNetGroundTruth/utils.py | ade17f70a1d804e602c97056b666102575e5f3e0 | [] | no_license | byh1321/Pruning_Quantization_Estimation | 447bd3d806fe17611d665e56d7796af4e05ee400 | 772969c5a58259e387c88829dd936274199212e8 | refs/heads/master | 2023-05-03T19:25:29.957732 | 2021-06-03T17:53:38 | 2021-06-03T17:53:38 | 289,804,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,298 | py | '''Some helper functions for PyTorch, including:
- get_mean_and_std: calculate the mean and std value of dataset.
- msr_init: net parameter initialization.
- progress_bar: progress bar mimic xlua.progress.
'''
import os
import sys
import time
import math
import torch
import torch.nn as nn
import torch.nn.i... | [
"byh1321@naver.com"
] | byh1321@naver.com |
df82e709433df0b153edd7d9aea14060851ad2cf | c31c8095ce4d4e9686e3e7ad6b004342e49671fa | /forum/classes/archives/CLASS_Lieu.py | c5b8db114583e2f045264fd8b45f2735706e116e | [] | no_license | Lionalisk/arrakambre | 7bcc96dea2ca2a471572bfb1646256f1382ce25b | 2caece9be5eebf21ddfa87a6c821c32b5d5019a2 | refs/heads/master | 2020-12-07T19:31:24.471090 | 2020-01-09T10:14:29 | 2020-01-09T10:14:29 | 232,782,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | from django.db import models
from forum.models import Maison
from forum.classes.CLASS_Perso import *
print('BBBB')
class Lieu(models.Model):
nom = models.CharField(max_length=100, unique=True)
description = models.TextField(default='')
image = models.CharField(max_length=40, default = 'lieu_none.jpg')
maison = mod... | [
"lionel.varaire@free.fr"
] | lionel.varaire@free.fr |
c04720b7f2c90ddef000767741021aff00156ee6 | f05a08881b606d593bb76fa725d62187fb8e6cc0 | /cache_ensembl/cache_ensembl_version.py | ddb8c6109f3c0db85deb10e5082eaa4b9b65cad7 | [] | no_license | bunbun/cache-ensembl | 6cf109dd0a9f6dad15744d4583ab701f7bda5a35 | 02ce50016321fecb5f9f784c63ce4f8e5066d74b | refs/heads/master | 2021-01-23T13:58:36.493124 | 2011-12-06T21:45:04 | 2011-12-06T21:45:04 | 32,793,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | #!/usr/bin/env python
################################################################################
#
# version.py
#
#
# Copyright (c) 11/3/2010 Leo Goodstadt
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"... | [
"bunbun68@localhost"
] | bunbun68@localhost |
ecbc2f6361f9a3096a212d2d31bb8b2868fa553e | bc29abf638643339025f2f9eebaec136f45deba6 | /CMDB/Equipment/views.py | a4552ecb9baec83287f52cb574a3b596dfaf0be1 | [] | no_license | enet01/CMDB | 351642106996681064f8b40e3e699664d678d38c | e0cab4c38c28c5d92f5658cfe132167d5b64afdf | refs/heads/master | 2021-05-08T12:04:20.605748 | 2018-02-07T12:24:51 | 2018-02-07T12:24:51 | 119,920,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,741 | py | #coding:utf-8
import chardet
import paramiko
from django.shortcuts import render
from django.http import JsonResponse
from django.views.decorators.csrf import csrf_protect,csrf_exempt
from models import *
from WhileCMDB.views import getpage
from django.shortcuts import HttpResponseRedirect
def eq_add(request):
pass... | [
"root@xuegod62.cn"
] | root@xuegod62.cn |
6900fdaae92eb7e538bb2dc5b81957fb00c5b18e | b7449f1162b5fb8ea371b80ef0d99154fac35620 | /Users/migrations/0001_initial.py | bf5f8dbe0ee72f9f6b0b3fab5414812eb9576641 | [] | no_license | shimaa3434/SafeBook | 93f69e5228adeae33adfb5a21d2c666b47d1a2b6 | 8ede2f9da4f6daf224fe203454525ff3d811ed51 | refs/heads/master | 2022-12-27T02:01:14.987227 | 2020-10-16T18:12:49 | 2020-10-16T18:12:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | # Generated by Django 2.2.5 on 2019-10-23 00:51
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"30625967+Shreyansh7499@users.noreply.github.com"
] | 30625967+Shreyansh7499@users.noreply.github.com |
718c1a3aa265318be8f270943122a2fef285e6e9 | 59d48214613a195573b5a0a1f10b32c889172155 | /alexa/reciPullLambda/ask_sdk_model/canfulfill/can_fulfill_intent_request.py | 61ffc9fb00f47a05ab691639b45bca434c75fe2e | [
"MIT"
] | permissive | ReciPull/recipull.github.io | 60861ebb7a6d77d39907c6332e346194ce4ad107 | e6b800af02658bb7948297c4ddc1b7af6d978839 | refs/heads/master | 2023-01-08T19:03:11.864298 | 2019-06-13T05:07:39 | 2019-06-13T05:07:39 | 180,684,629 | 1 | 0 | MIT | 2022-12-09T22:33:18 | 2019-04-11T00:33:03 | Python | UTF-8 | Python | false | false | 6,414 | py | # coding: utf-8
#
# Copyright 2019 Amazon.com, Inc. or its 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. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "lice... | [
"alexiscole@umail.ucsb.edu"
] | alexiscole@umail.ucsb.edu |
0179e7a8a04e4b16368086eadecffb7dd7768d15 | d51010a7f51a9cb8bf307f7d6ebed8a9903cd7be | /backend/base/urls/product_urls.py | 6bf8f12f47dc186906b94797e0489eb0facebea2 | [] | no_license | seidiv/ecommerce | d435fed53187316baf944f54632e7579372ea075 | b5c7de1f635ec2f12213dbbe6367f890465f2f7b | refs/heads/master | 2023-07-13T19:30:14.831156 | 2021-08-24T06:25:01 | 2021-08-24T06:25:01 | 392,608,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | from django.urls import path
from base.views import product_views as views
urlpatterns = [
path('', views.getProducts, name="products"),
path('create/', views.createProduct, name="product-create"),
path('upload/', views.uploadImage, name="image-upload"),
path('<str:pk>/reviews/', views.createProductRe... | [
"sajadeydi8@gmail.com"
] | sajadeydi8@gmail.com |
855119d2ca75bde3daef04448842f58070657e77 | 63e1c4a67d5317d945b284877b57560ab2ee0a1a | /TextGame_main.py | 2ae69326e45d0de6a04d60087357a93359d63d4a | [] | no_license | BugBiteSquared/pythonTextAdventure | 5cca0c60e47858da1d901ca11fb828bf34869ad3 | 6b07f55b1076946bb4296502b7dcd30d8a5d7e90 | refs/heads/master | 2021-05-03T10:48:26.911437 | 2018-07-31T17:14:44 | 2018-07-31T17:14:44 | 69,376,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,496 | py | """This is a work in progress. The game currently doesn't run."""
frontDoorOpen = False
balconyDoorOpen = False
class item(Object):
name = None
description = None
class consumable(item):
class roomState(Object):
"""There are 4 room states: kitchen, bedroom, living room, balcony"""
class livingRoomStat... | [
"blackboxhazard@gmail.com"
] | blackboxhazard@gmail.com |
da6fa81c852b746e1fded343f4e04a7e146e335e | 39b8aa964883b2bde4349e0c9c38e3233c310548 | /src/Power of Four.py | 96d2db9a48b59d6376e2dbcb8be1027d9d34085f | [] | no_license | orifake/leetcode-python | 053b82491e0b8d6197dd12d92eec5883211285db | 8e375ebebe0a0285efefc33ed61afb22f41d0c75 | refs/heads/master | 2023-03-09T14:32:17.833456 | 2021-02-26T16:09:31 | 2021-02-26T16:09:31 | 264,466,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | import math
class Solution(object):
def isPowerOfFour(self, num):
"""
:type num: int
:rtype: bool
"""
return num > 0 and (num & (num - 1)) == 0 and \
((num & 0b01010101010101010101010101010101) == num)
class Solution2:
def isPowerOfFour(self, num: int) ->... | [
"349758699@qq.com"
] | 349758699@qq.com |
07770f3574d74405c9660790d89873ae61cebd92 | b2e2277208f22fdd1654e7a2a19d49a0bdcb0ef6 | /twitterstream3.py | 0e5a9245d51619a2176e62ef1002a82e392e7b3c | [] | no_license | 13537875570/General-Urban-Evaluation | 504d3fa3c32f69940c454f13ac401be12d3d03ea | 513922d01d5b23ba9244f3704dab5d0793ecf165 | refs/heads/master | 2020-10-02T10:25:24.572538 | 2019-12-13T05:19:05 | 2019-12-13T05:19:05 | 227,756,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py |
from tweepy import Stream
from tweepy import OAuthHandler
from tweepy.streaming import StreamListener
import time
consumerkey='qgEq1bQqaPBtE9MUe9iXjel5J'
consumersecret='gZOzN5oQswfcfqkdTzLd49DgibiCKdVNY2hYuzQakwX4GYCnIR'
accesstoken='2780294182-MvbzCoYYsdiCgr5I2tzT9FSbqObkQhaYfbNlSA9'
accesssecret='kR7TQ3yN... | [
"noreply@github.com"
] | 13537875570.noreply@github.com |
2da5ce9852293d22aeae8c7605f8082ca24e70ee | 1ba58b17f33122abf4236e9e430a51d375e0eb53 | /km73/Zeleniy_Dmytro/4/task9.py | 8b6465f8fc2d6fdbe15585e505253054fa9dbeed | [] | no_license | igortereshchenko/amis_python | c4f8d86b88ab036d08ff0ce35c9b42ebeabecc42 | c6f0f2a70c82d5f269b3078eb296f82271b5bb10 | refs/heads/master | 2021-10-22T16:21:19.990650 | 2017-11-01T07:26:54 | 2017-11-01T07:26:54 | 104,785,028 | 0 | 139 | null | 2020-04-21T21:27:09 | 2017-09-25T18:11:42 | Python | UTF-8 | Python | false | false | 635 | py | start_row = int(input("Enter start row: "))
start_column = int(input("Enter start column: "))
finish_row = int(input("Enter finish row: "))
finish_column = int(input("Enter finish column: "))
if (start_row > 0 and start_row <= 8
and start_column > 0 and start_column <= 8
and finish_row > 0 and finish_row <... | [
"dzeleniy9@gmail.com"
] | dzeleniy9@gmail.com |
3bdcee9dd0423ab3902eff3a04ab25cae6306da5 | e49d91c15a95fb00e3b46f212237045c923a9035 | /nothashtag-figsenti/src/small_features/ngrams_classes.py | 8b4732558c90ca0cc08902ba252e4b8e4056b6e9 | [] | no_license | samtmcg/semevel_t11_2015 | dc1319c20836d4d5d2ec7d2d7260ebdcad04025b | 394e778dcb597c2e01de12e6fd2017416d96a85d | refs/heads/master | 2020-12-31T00:19:22.840011 | 2015-10-22T19:05:19 | 2015-10-22T19:05:19 | 44,766,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,334 | py | # -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
import sys
import argparse
from sklearn.feature_extraction.text import CountVectorizer,TfidfVectorizer
from sklearn import linear_model
from functools import partial
from scipy.sparse import *
import sklearn.metrics as metrics
parser = argparse.Argument... | [
"sarah.alice.mcgillion@gmail.com"
] | sarah.alice.mcgillion@gmail.com |
fca24cecd75975e7ff41a3ea139467d5f9774921 | 7177a8a9eb2030fa871f19f36144b7d055d5c5b3 | /main.py | e19f7da7cfa27a35074ea8d14b9b789db4f37925 | [] | no_license | Ziyu98/YOLOv3 | 5efb2bc809917041093cf61bfb7d52acbacb9fd7 | 4dfe50cf4a83bf0dde83ec3de8f6995461d6ce12 | refs/heads/master | 2021-01-06T19:26:56.256263 | 2020-02-18T20:32:17 | 2020-02-18T20:32:17 | 241,459,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,454 | py |
from __future__ import division, print_function
import tensorflow as tf
import numpy as np
import argparse
import cv2
import time
import shapely.geometry as sg
import shapely.ops as so
import math
import os
from utils.misc_utils import parse_anchors, read_class_names
from utils.nms_utils import gpu_nms
from utils.... | [
"noreply@github.com"
] | Ziyu98.noreply@github.com |
4a5a3b8daa86ac399ae0a0cc3604254a77635bbf | 00cb405170a6a9572bef0ec8f373813eada08c03 | /Agario/Window.py | bb5038b0e49d302d2ded8589eaacfcc9884a849c | [] | no_license | MarcPartensky/Python-Games | c0ad2857be5832d6029642bb0a96bc8e403a12e3 | ebfcaaf4a028eddb36bbc99184eb3f7a86eb24ed | refs/heads/master | 2022-09-03T00:04:16.402288 | 2022-08-12T17:10:22 | 2022-08-12T17:10:22 | 166,606,022 | 2 | 1 | null | 2021-03-07T16:20:15 | 2019-01-19T23:56:04 | Python | UTF-8 | Python | false | false | 1,621 | py | import pygame
from pygame.locals import *
class Window:
made=0
def __init__(self,game=None,size=None,font="monospace",set=True):
Window.made+=1
self.number=Window.made
self.title=game.name
self.font=font
self.open=True
pygame.init()
self.setSize(size)
... | [
"marc.partensky@gmail.com"
] | marc.partensky@gmail.com |
abc2fe52b390b7c640ccb2ff87cb1d20b07a358a | f4c39ea03255886185d72f4871f92cc9538b2ad3 | /crm/admin.py | 52199d99d740927aa64e82448255195775028a41 | [] | no_license | lgkiemde/Maverick-Food-Service | 359430b99588a2077736f81a50c4c663b7e65637 | 38a17e515941ae7471a5ca9cabd8cad9228e68d7 | refs/heads/main | 2023-08-30T15:12:23.512109 | 2021-10-23T01:27:59 | 2021-10-23T01:27:59 | 420,088,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | from django.contrib import admin
from .models import Customer, Service, Product
class CustomerList(admin.ModelAdmin):
list_display = ('cust_name', 'organization', 'phone_number')
list_filter = ('cust_name', 'organization')
search_fields = ('cust_name',)
ordering = ['cust_name']
class ServiceList(ad... | [
"74085491+lgkiemde@users.noreply.github.com"
] | 74085491+lgkiemde@users.noreply.github.com |
9ba8abccd4ecd06af19b8b0d1cb92d449e9cdbf9 | c0b9b12e5a5dc3d143fe13a80d4fe52c3ac97355 | /example_test/example_data_split.py | 8401270e0a51b94e87a5b30ff93fbc45c455786d | [] | no_license | liufei0820/anheng | afccbe7221dc292f110122e3181a3cf2fdb0cbfc | 27c33dde4d5f44f56b23ddb472b80817487e78ff | refs/heads/main | 2023-07-22T03:59:51.616987 | 2021-09-12T08:58:06 | 2021-09-12T08:58:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2021/9/12 3:02 下午
# @Author : Alioth
# @File : example_data_split.py
# @Email : thxthx1999@gmail.com
# @Software: PyCharm
import os
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
import json
import requests
if __name__ == '__m... | [
"1094168447@qq.com"
] | 1094168447@qq.com |
be24fff7640880924ac1b8352d63c9ce128039bd | 49beeee0d9aff3b776545cb553ef1bf15dd9f190 | /example/example/views.py | 6c06b12a01b8dad493049a74201b5a5b9af1ada9 | [
"MIT"
] | permissive | bluedisk/django-korean-fields | 238364cf4f766db824adec832aaa2d83619cded1 | b655e23d9a73e61cb217e34719ee6a2509f8f475 | refs/heads/master | 2020-03-19T09:55:10.974426 | 2018-11-10T15:02:02 | 2018-11-10T15:02:02 | 136,327,803 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # -*- coding: utf-8 -*-
from django.forms import forms, CharField
from django.http import HttpResponse
from django.shortcuts import render
from korean.fields import JuminFormField
class TestForm(forms.Form):
jumin1 = JuminFormField()
jumin2 = JuminFormField()
def demo(request):
if request.method == 'POS... | [
"bluedisk@gmail.com"
] | bluedisk@gmail.com |
17eb256179da0f291fdd0e5d21d32169501672e1 | e21ed71610f9d1004dfa21206300c0e9f3887e89 | /modulo_2/Codewars/dev-junior/find_even_array.py | beb4a2bad5d9a8b39ec87d16249da6a0ba36113a | [] | no_license | hpfn/wttd-2017-exerc | c0c79ee0cb3b5b331932787d280deee679357bc1 | b1bf1394d2e2adc29257b7c4273af21b8509335f | refs/heads/master | 2020-12-30T11:29:13.218980 | 2017-10-03T19:04:03 | 2017-10-03T19:04:03 | 91,572,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | # coding=utf-8
def find_even_index(arr):
tam_arr = len(arr)
for x in range(tam_arr):
if sum(arr[:x]) == sum(arr[x+1:]):
return x
return -1
| [
"hpfn@debian.org"
] | hpfn@debian.org |
42d9a5f7b77cd5d5e697db8aab5835e9505444fc | ce7e7085b6bc07abf5eab5d4345e045a16ee0d56 | /*backup/backup.py | 63630e15cc53af9d5c5dbd5bc1213fe4f7079b78 | [] | no_license | WHjiangxiaolin/Python | bad4a5edc80f2dc96e6256ab2761437f93e666ab | 2e6b4a02dba7d6016f846d6914eee9af61146860 | refs/heads/master | 2022-01-19T22:43:03.864235 | 2019-07-20T09:45:39 | 2019-07-20T09:45:39 | 197,872,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,322 | py | #-将/tmp/demo/security备份到/tmp/demo/backup中
#- 需要支持完全和增量备份
#- 周一执行完全备份
#- 其他时间执行增量备份
#分析:
#- 完全备份需要执行备份目录、计算每个文件的md5值
#- 增量备份需要计算文件的md5值,把md5值与前一天的md5值比较,有变化的文件要备份;目录中新增的文件也要备份
#- 备份的文件名,应该体现出:备份的是哪个目录,是增量还是完全,哪一天备份的
import tarfile
from time import strftime
import os
import hashlib
import pickle
def check_md5(fname): ... | [
"jxl@163.com"
] | jxl@163.com |
e3a72bd363e5d37a2c58181444706b9ab6a4d68f | 6170d8451dffcbf0b0a3d5606b33ab4467070640 | /Python/SCRIPTS/Python/UPDATA/host_seedfile.py | c6df67df9f72f0cd44fdc4e8b81b7ffb5d7cca35 | [] | no_license | jb26444/lazynet | 5ab848d998e0ddb23dc8362596ac06b47c0315cb | 6a39ed09e36e5deeca21714ce133f938dec7bf3d | refs/heads/master | 2021-05-01T16:18:25.804995 | 2018-03-17T21:39:24 | 2018-03-17T21:39:24 | 121,050,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | #
#
# Add the host addresses you want to log into
#
#network_devices = ['x.x.x.1', 'x.x.x.2', 'x.x.x.3', 'x.x.x.4']
#
#network_devices = ['10.205.205.1', '10.205.205.2', '10.205.205.3', '10.205.205.4', '10.205.205.5', '10.205.205.6','10.205.205.7','10.205.205.8', '10.205.205.9', '10.205.205.10']
network_devices = ['10... | [
"jan.blahuta@gmail.com"
] | jan.blahuta@gmail.com |
d380fe52b1c521e8ecdac7ec5218fc2ce599e77d | 34188f655a121b6db7c029c5da93779411ee92bc | /7a.Stos i kolejka/czynawiasowaniepoprawne.py | 2314d35fece5bdf050ca66135a6502608160bb6a | [] | no_license | aniagut/ASD-2020 | 3f0760f28888bdb0a6d689c357c8444bf09ff48b | f1a084d4f8175a76fd4274f270eab2ddc7a5e172 | refs/heads/master | 2023-03-08T07:51:05.351562 | 2021-02-28T17:30:24 | 2021-02-28T17:30:24 | 343,164,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | #jesli wchodzi nawias otwierajacy, to wrzucamy na stos
#jesli zmaykajacy to zdejmujemy ze stosu i sprawdzamy czy sie pokrywaja
class Stack:
def __init__(self):
self.s=[]
self.top=-1
self.size=0
def push(self,x):
self.top+=1
self.size+=1
if self.top==len(... | [
"noreply@github.com"
] | aniagut.noreply@github.com |
c4fe3b1f9b8f103406a394b5030f956677734043 | 20ad94b7bc15dc76ad7a78133b52f75fd3381470 | /C++ dasturlash asoslari/42. Tanlangan masalalar yechimi/f6.py | 44a12fa412552d42633a6c1cc6aefce98442c657 | [] | no_license | ilmfan/MohirdevAlgoritm | 8de810879b660561dd3582e486d58e1a342ad655 | d58ded8bc6aa3d348c27d26b3856ca223829800e | refs/heads/main | 2023-07-14T17:42:26.698190 | 2021-08-25T11:06:39 | 2021-08-25T11:06:39 | 395,877,110 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | """
author: Shodmonov Zafar
date and time: 09:00 14.08.2021
information about the algorithm:
InPut: n
OutPut: prime numbers up to n
"""
def prime_numbers(n):
output_list = [2]
for num in range(3, n+1, 2):
divided_into = []
does_not_divide = []
for i in range(2, num):
... | [
"dasturchi.uzbek@gmail.com"
] | dasturchi.uzbek@gmail.com |
495d0a5cabcec1b443839fa4e8201c4e9afae6dd | eefbfe5a3f0d655177fd3c17335ae1100e8398bd | /Server/structure/ShellInterface.py | 1fc7c51d327e3d4260d3c8a63c94a1262f4780f0 | [] | no_license | mkmagic/BCI_API | bd3c92c6162a29f2bfd37322e35c60a9446e1551 | aef94cc14d65e915dd97ce66d06542a4587d04f6 | refs/heads/master | 2020-06-21T22:24:13.059550 | 2020-03-12T11:21:46 | 2020-03-12T11:21:46 | 197,566,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,587 | py | """
The Shell Interface module, utilizes Python's argparse module to create shell-like programs.
To create a shell-like program, copy the template Interface class provided in this file
and follow the instructions marked by # comments.
Auther: Hayun, Yoav
E-mail: yoavhayun@gmail.com
"""
from __future__ import print_fu... | [
"michaelkanon1@gmail.com"
] | michaelkanon1@gmail.com |
d47c3724879680967f10765f503c820e7982fb3f | 714d4d2796e9b5771a1850a62c9ef818239f5e77 | /components/metrics/DEPS | 2f4d413d44817a460d2dc1304dd4027f1f530765 | [
"BSD-3-Clause"
] | permissive | CapOM/ChromiumGStreamerBackend | 6c772341f815d62d4b3c4802df3920ffa815d52a | 1dde005bd5d807839b5d45271e9f2699df5c54c9 | refs/heads/master | 2020-12-28T19:34:06.165451 | 2015-10-21T15:42:34 | 2015-10-23T11:00:45 | 45,056,006 | 2 | 0 | null | 2015-10-27T16:58:16 | 2015-10-27T16:58:16 | null | UTF-8 | Python | false | false | 243 | # This component is shared with the Chrome OS build, so it's important to limit
# dependencies to a minimal set.
include_rules = [
"-components",
"+components/compression",
"+components/metrics",
"+components/variations",
"-net",
]
| [
"j.isorce@samsung.com"
] | j.isorce@samsung.com | |
07e2550e41d1f8ee6112f46da821e1ab0852682c | 01ab6c9aa8f877cef36160b65b959019cece62df | /FullCopy/src/utils.py | 9612ea294f0921f8d8d9e06e5e2a96f012f57db2 | [] | no_license | kiscsonti/DPwithTorches | 40f693c77dd38860037d671a07f51c10ab9de185 | 3892c8fcf1436711691c65d23f63da5372349a92 | refs/heads/master | 2020-03-12T00:06:11.593266 | 2018-05-19T09:26:08 | 2018-05-19T09:26:08 | 130,341,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,953 | py | import os
import json
import string
import wikiwords
import unicodedata
import numpy as np
from collections import Counter
from nltk.corpus import stopwords
words = frozenset(stopwords.words('english'))
punc = frozenset(string.punctuation)
def is_stopword(w):
return w.lower() in words
def is_punc(c):
return ... | [
"kiscsonti@vipmail.hu"
] | kiscsonti@vipmail.hu |
8899018c3b57d2dc6e0f8fc1b71cb7428223e45c | b38abaa3b35f8c465be470d2240db515b460d469 | /blog/admin.py | 52f4623ff358530be5144a08ef1d4f2791309765 | [] | no_license | ninestep/mysite | fc44d12f0f2f69c802e83c829128f2a9420944cb | 57c9a9ef3401f80aa1c07ae81dc7cd64185ec544 | refs/heads/master | 2022-07-18T06:09:33.870245 | 2022-06-26T00:44:36 | 2022-06-26T00:44:36 | 59,069,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | from django.contrib import admin
from . import models
from markdownx.admin import MarkdownxModelAdmin
# Register your models here.
admin.site.register(models.articles,MarkdownxModelAdmin)
admin.site.register(models.comments)
admin.site.register(models.system) | [
"859696354@qq.com"
] | 859696354@qq.com |
881fdd4284165a6767a1d165b25cff1d89237f6f | 469fc3043fc99969d16cee36d299f5944e21225d | /plugin.video.D17Replay/default.py | 9d019f005f3994a8077d1205d57b10bc849a3f43 | [] | no_license | quatsch/JUL1EN094-xbmc-addons | 313371d5a37569fa7d6db4bd866fc9d9779640c1 | 907671229ee018962d3a7c291cf8afe3dc0d959c | refs/heads/master | 2021-01-18T11:38:27.451256 | 2014-04-14T17:23:50 | 2014-04-14T17:23:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,346 | py | # -*- coding: utf-8 -*-
# xbmc modules
import xbmc
import xbmcplugin
import xbmcgui
import xbmcaddon
# os and lib modules
import os
import sys
import urllib
import urllib2
import re
# print_exc
from traceback import print_exc
# parseDOM
import CommonFunctions
common = CommonFunctions
common.plugin ... | [
"jujul1en094@gmail.com"
] | jujul1en094@gmail.com |
7fb4ea8ca62ee742cb03add25202bb3018bba0d6 | 8562adfbeb7cf901aeeaf004dc1e53c286a24d48 | /beg86.py | ba49d5c28d0528682212047ecc0dd3986de5a4fc | [] | no_license | sarureddi/isogram | 1d4f8a7566a1df0f4a7b42502be60a1fafaabc10 | 3aca7e1172977cd116c0902761d70ded84402310 | refs/heads/master | 2020-06-03T11:03:43.392152 | 2019-06-12T09:54:11 | 2019-06-12T09:54:11 | 191,544,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | si1=str(input())
l=len(si1)
s=set(si1)
if(l==len(s)):
print("Yes")
else:
print("No")
| [
"noreply@github.com"
] | sarureddi.noreply@github.com |
466e2b548dafa31a902439b94559d4cce8d115ec | 051a5b30752d60b2f40c28c8440c1d59ff8d6f53 | /lab2/01_linear_regression.py | a78eff81a9fb58946fd4e6547b48db366f720184 | [] | no_license | yungbyun/Study_Tensorflow | e20c0de76e820898600c28fec2da3a88502f8403 | 8e2bcd191fd670068aaabe9845146df90da88182 | refs/heads/master | 2021-01-17T08:44:13.813361 | 2017-03-18T06:37:23 | 2017-03-18T06:37:23 | 83,952,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | from __future__ import print_function
import tensorflow as tf
import matplotlib.pyplot as plot
x_data = [1, 2, 3]
y_data = [1, 2, 3]
W = tf.Variable(tf.random_uniform([1], -1.0, 1.0))
b = tf.Variable(tf.random_uniform([1], -1.0, 1.0))
hypothesis = W * x_data + b
cost = tf.reduce_mean(tf.square(hypothesis - y_data)... | [
"byclink@gmail.com"
] | byclink@gmail.com |
ee88edd0ac690cc450f39f6384e744c016c895de | 92ca965a167316bb531671d8e28c58bc1decb7e8 | /rbac/middlewares/rbac.py | bd4b4ab5038583dbb78a7d0266946e3dafcbafa7 | [] | no_license | yaozhengjie/crm-1 | b879a095af54d720ae6ab4b73efa7758b6760093 | 89d72631b6065cfb390a0d4fa0331c5da01a080e | refs/heads/master | 2020-04-08T16:25:31.169742 | 2018-11-28T11:16:34 | 2018-11-28T11:16:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
from django.utils.deprecation import MiddlewareMixin
from django.shortcuts import HttpResponse
import re
from django.conf import settings
class RbacMiddleware(MiddlewareMixin):
'''
1.获取当前用户的url
2.获取当前用户在session中的url权限列表
3.权限信息进行匹配
'''
def process_... | [
"41354304+yjiu1990@users.noreply.github.com"
] | 41354304+yjiu1990@users.noreply.github.com |
191fb84e33cb5a9226de5e021a42e6bc6fb12eb0 | 48700c7222de631fc2ea4463abbb1b0b9aaebeec | /nodered-api-client-basic/get-json.py | b213550ee405012eb1ab0e95e123e110b401ad71 | [] | no_license | kopikaki/python_examples | cf4daf6d1ccac53e5910872b93f994e0c99c3de4 | 3395e9fe176014d404aaa9797f75e5c445805e55 | refs/heads/master | 2021-01-05T05:36:06.682296 | 2020-03-28T04:16:35 | 2020-03-28T04:16:35 | 240,898,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | import json
import requests
#这里用 HTTPS End Point 代替
nodeUrl = 'https://nr02.d1.zetez.com/node'
apiUrl = nodeUrl + '/data'
resp = requests.get(
apiUrl
)
if resp.status_code != 200:
# This means something went wrong.
print('HTTP Error: ' + resp.status_code)
else:
respJson = resp.json()
p... | [
"jeffqu08@gmail.com"
] | jeffqu08@gmail.com |
bdef4180111df6d6c82feab386dc5b173629453f | 40ac650d3eeec0e4951dcc21d9da1f09a11de9ff | /test_leetcode05.py | 0d2e19f28eaefa8e65f730685d048adc6ea12beb | [] | no_license | liuyufei-pia/BR | 499a65ecd398cd259f5cb17d405d0b17c89a94e4 | 1861716f5dfca78a3c69ba56a827e225a4d9b800 | refs/heads/master | 2020-07-23T07:27:18.668754 | 2019-11-27T09:06:03 | 2019-11-27T09:06:03 | 207,485,295 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | def longestPalindrome(s: str) -> str:
# 马拉车算法
# 先在字符串中间加符号隔开,使得奇偶回文数的形式统一
# 然后用kmp的思想去优化中心扩散
if len(s) == 0:
return ""
s_new = '#' + '#'.join(s) + '#'
print(s_new)
# 已遍历的最大右边界
mx = 0
# 对应的中心点
mid = 0
l = len(s_new)
# 扩散半径数组,初始值1或者0都可以,只是代表刚开始的时候扩散半径是多少而已
p =... | [
"q.we85273@163.com"
] | q.we85273@163.com |
2023b3467ceed0986d27fb4c617037077678dc8d | 7d58be2bbd4fed35a604b3732eecd1013e255bb8 | /modules/exit.py | 2289d2e1231c089ac8eeae575e642a45e7e8261d | [] | no_license | Tianchai/to-do-list | b02c645020a65a10e0b5d3716dd0fca32f8f6177 | 3485d1d7ce79226e78d78fc40f80b285db281640 | refs/heads/master | 2021-07-24T15:10:35.454499 | 2018-07-25T18:15:05 | 2018-07-25T18:15:05 | 142,311,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | from pyfiglet import Figlet
import sys
def exit(redis, style):
exit_msg = Figlet(font='slant')
print(exit_msg.renderText('Good Bye . . .'))
sys.exit() | [
"tianchai.riengviwat@gmail.com"
] | tianchai.riengviwat@gmail.com |
ef5014df5a01fb40ab483a448b2b532e3c791cd5 | ca680d06086cef25a28bf7e5e7678b179bf99497 | /14032020 1day 1commit.py | ed1a37ded5db15802c85235fb3da1fda7631d8d9 | [] | no_license | kierenmihaly/worldwebproject | 660f09471c44c8db59bb49b16d41180026633df7 | 34578ffbac29a115bb731065c469f930831d28bd | refs/heads/master | 2020-09-29T23:17:23.300891 | 2020-08-31T01:46:51 | 2020-08-31T01:46:51 | 227,146,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | #14032020
#파트3 조건문 - 파이썬 if else
SCISSOR = '가위'
ROCK = '바위'
PAPER = '보'
WIN = "win"
DRAW = 'draw'
LOSE = 'lose...'
mine = '가위'
yours = '바위'
if mine == yours:
result = DRAW
#짧은 if 와 else를 많이 쓰는방법 ))
else:
if mine == SICSSOR: #내가 낸게 가위
if yours == ROCK:
result = LOSE
... | [
"noreply@github.com"
] | kierenmihaly.noreply@github.com |
4868059941e7bf0fd7ddb81c0359474f6b1d0a89 | 4e522c82894fafbbd87997f39eff0e63b63df14c | /request.py | c2e4470b58b1a7f03f2ee0ebbb6e20513bc7bba2 | [] | no_license | tejas198606/wine-new | 9a6be88190ce752394e970287682b0e83d15ccd7 | aa79ed820ac59cc3fd374322a2d076a25b11cbd3 | refs/heads/master | 2022-12-04T10:21:44.235146 | 2020-08-30T06:39:49 | 2020-08-30T06:39:49 | 291,415,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | import requests
url = 'http://localhost:5000/predict_api'
r = requests.post(url,json={'fixedacidity':2.0000,'volatileacidity':6.0000,'citricacid':2.00000,'residualsugar':9.00000,'chlorides':6.00000,
'freesulfurdioxide':9.00000,'totalsulfurdioxide':6.00000,'density':20000,'pH':900000,
... | [
"noreply@github.com"
] | tejas198606.noreply@github.com |
d3b6e9f0e660a6ab3559ab5e2029a46b8e10bf27 | 255efb54075eb8cc2412bf1d5c936a97a003337e | /xt/environment/__init__.py | 69338935f833cbdd1def7455667f8075e68b8eed | [
"MIT"
] | permissive | jinqiuzhao/xingtian | 914a4d48c62fd8b3d4ddd0479e9bab54bbe5cba7 | 95953dc6109c96e68dcdeb9755b3679ff51742d4 | refs/heads/master | 2023-06-06T06:20:28.815549 | 2021-07-02T10:00:42 | 2021-07-02T10:00:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Build environment module.
Do encapsulation for different simulations.
Unify the single and multi-agents.
"""
from __future__ import division, print_function
from xt.framework import Registers
def env_builder(env_name, env_info, **kwargs):
"""
Build the inte... | [
"hustqj@126.com"
] | hustqj@126.com |
46e48392571cf7b50609181560a7a5b5cfd54d72 | 1d665f40197ba89f756e862c0e62a889c42cddfb | /commission/migrations/0007_auto_20150407_2034.py | 2b1be1c3a9965aa2314ab05057b9179433f0c7eb | [
"MIT"
] | permissive | Ourinternet/website | 8d9f9ddfe7d17fb0bb11b978cf3a7cd34af456ed | 648203c0d0620da2d11b3b0e398ee218b5bef5df | refs/heads/master | 2021-01-21T21:49:06.834576 | 2016-03-16T20:43:58 | 2016-03-16T20:43:58 | 15,683,988 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('commission', '0006_auto_20150407_1825'),
]
operations = [
migrations.AlterField(
model_name='feature',
... | [
"csimpson@cigionline.org"
] | csimpson@cigionline.org |
3b2e792a01d05f90502f8647222c52e55e4095ee | ffc5257d66a581ed18d3ed024e263c2430f27cf3 | /noi/noi/settings.py | 0e261bf7f8a22230dfc1cd1d843e349b23424edd | [] | no_license | ShadowLore/wow | e7456ff4702d94e522ff435c5893a4fa7b299e9a | d3e1a3d52d4ef2ae492910c2313e54fbfc37e54f | refs/heads/master | 2023-08-20T02:56:14.059858 | 2021-10-22T13:44:57 | 2021-10-22T13:44:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,242 | py | """
Django settings for noi project.
Generated by 'django-admin startproject' using Django 3.2.8.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib imp... | [
"67012072+ShadowLore@users.noreply.github.com"
] | 67012072+ShadowLore@users.noreply.github.com |
a62cffaf25c5e7ee992b973d0e3635e1296188ff | fbcb3c05e34e21573fc926282c9dbae1c0a36021 | /Level 1/prison-labor-dodgers/solution.py | 174f16bfac9f70e585ff1b24281b40dba58458ac | [] | no_license | mattany/google-foobar | deb806f27505a98fed52c3eddf228dfa282ec0fa | 33549bb6041fefcd0556de8583c5a7fca7d7508b | refs/heads/master | 2023-01-03T19:57:46.159094 | 2020-11-01T00:03:22 | 2020-11-01T00:03:22 | 305,119,929 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | def solution(x, y):
sorted_x = sorted(x)
sorted_y = sorted(y)
for i in range(min(len(x), len(y))):
if sorted_x[i] != sorted_y[i]:
return min(sorted_x[i], sorted_y[i])
if len(x) > len(y):
return x[-1]
else:
return y[-1] | [
"mattany@gmali.com"
] | mattany@gmali.com |
bdc5fa0179d1b979bd63b233f5b2dcf76cf0b4a1 | 4676aae1f14170150782455b8c664a9fb462ba87 | /lawbot/teledomain/util.py | 3f5ba3e5d66c3fa8d541bb54717d1c8c7bd1c126 | [] | no_license | alages97/contract_translation | 488fdae9bc237a205f7840229943c6bd08c622de | adcf2bf91667a9c77912b7695f986731f1b95957 | refs/heads/master | 2021-01-16T17:32:49.834527 | 2020-03-12T14:18:37 | 2020-03-12T14:18:37 | 243,198,277 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,204 | py | import os
import sys
import time
import logging
#import win32api
import subprocess
import shutil
from pathlib import Path
import getpass
PATH_DIR = os.path.dirname(os.path.realpath(__file__))
PATH_DIR = r"%s" % PATH_DIR
OUTPUT_DIR = os.path.join(PATH_DIR, "./toTransfer/")
LOG_DIR = os.path.join(PATH_DIR... | [
"noreply@github.com"
] | alages97.noreply@github.com |
5913c16ac7eff4c10d1d7a3590760b8884e2bfc5 | f857a029ca13d7bcfa957b75c9d73a39ef10703f | /Python Brasil/Estrutura sequencial/2.py | c10690064e6703b84eda9058318fc9cddd9c486a | [] | no_license | Matheus-Morais/Atividades_treino | c011989de9cb1dd74bfae873f191e6af546a740f | 6fceb1c39a23f992e0845e65e8a76eb53b6ff30d | refs/heads/master | 2023-02-24T00:09:58.064600 | 2021-01-27T14:13:05 | 2021-01-27T14:13:05 | 333,433,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | numero = int(input('Digite um numero:'))
print(numero)
| [
"matheus2992morais@gmail.com"
] | matheus2992morais@gmail.com |
447949c77b5e8715fdf2eafed6ecb92897e81cab | f75c0721ab885cec9d269bba798803197cc78787 | /age_scraper.py | f6be723b7c0d9633c5a33100c38a1db7b697ddd3 | [] | no_license | shravan-shandilya/game-of-death | b635a51f327e5bb45d183262bb315eb61aa12418 | 59d45e053031ab9023d7da3d1538212aaace64df | refs/heads/master | 2022-02-11T17:18:14.074438 | 2016-06-22T13:51:41 | 2016-06-22T13:51:41 | 53,967,559 | 1 | 0 | null | 2022-01-13T00:48:38 | 2016-03-15T18:09:21 | CSS | UTF-8 | Python | false | false | 542 | py | #!/usr/bin/python
from bs4 import BeautifulSoup
import requests
base_url = "http://gameofthrones.wikia.com/wiki/"
char_file = open("char_data.txt","r")
for char in char_file:
char = char.split(",")[0].replace(" ","_")
soup = BeautifulSoup(requests.get(base_url+char).content,"html.parser")
results = soup.find_all("d... | [
"s.shravan95@gmail.com"
] | s.shravan95@gmail.com |
c36195265104ac0d70f7475b9cbc3d7d62808045 | 8ed85fda69449832e6edc1ed44694eda8d953e98 | /ml/GestureRecognizer.py | d977e678e5da6740d1f21955df1f58ccdee4c26a | [] | no_license | rajeevku02/exp | 4bad7bb69c3c8a45a11a5136a55d0895349d2d23 | 518e8ddea9a0e0eed37065ce8d4304bd83ca282c | refs/heads/main | 2023-09-04T16:56:02.083630 | 2021-11-24T09:20:47 | 2021-11-24T09:20:47 | 410,766,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,324 | py | import numpy as np
from tensorflow import keras
from Gestures import *
from geometry import dist
from Util import log, pt
from drag_2_gesture import check_drag_2, deactivate_drag2
from drag_1_gesture import check_drag_1, deactivate_drag1
gestures_names = {
0: 'drag1',
1: 'drag2',
2: 'thumb',
3: 'pinch... | [
"rajeevku02@gmail.com"
] | rajeevku02@gmail.com |
92378b9d2b6ae21a09ab5425517a89f70af2e4f6 | e8503af6e8c8b7c10b93a76dcf0cbb141074361e | /pswa_django/pswa_django/urls.py | 2bcd250b9cffc4ca636ab62a350aadf613f498e5 | [] | no_license | jjbyrne1/Project-Scheduler-Web-App | ea5e15ebe6627c1f619b6182bddd359362d7f67f | ef15fbb5853bda83dd2d11efeb6ae8625f5ba103 | refs/heads/main | 2023-04-21T02:36:16.726708 | 2021-05-13T18:09:25 | 2021-05-13T18:09:25 | 340,113,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | """pswa_django URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"jjbyrne@ksu.edu"
] | jjbyrne@ksu.edu |
044985b9b265586f2b071cc1296c5845a039b17d | 56b7e5ed6941fc4b83148e00bd51421dc3ac993a | /Indeed/Expire Map.py | 2b1778212c66da456e0bb6bd3e0defd2bbc1db77 | [] | no_license | samir-0711/Leetcode-Python | f960e15015a3f2fd88f723d7f9237945a7133553 | d75876ae96bcd85c67bbfbf91bbc0f0bc773e97c | refs/heads/master | 2022-12-18T05:27:48.224001 | 2020-09-30T21:03:42 | 2020-09-30T21:03:42 | 300,061,318 | 0 | 0 | null | 2020-09-30T20:59:42 | 2020-09-30T20:59:42 | null | UTF-8 | Python | false | false | 722 | py | import time
class Data:
def __init__(self, value, duration):
self.value = value
self.duration = duration
self.startTime = int(round(time.time()))
class ExpireMap:
def __init__(self):
self.map = {}
def get(self, key):
data = self.map[key]
if data == None:
... | [
"weng8916@gmail.com"
] | weng8916@gmail.com |
ab88b8234f344ef4469f84313c26e2edc8cec90b | d56a3ebea066bdd10e8f554be13be7260118ddad | /Server Code/server.py | d7e4a81da83d92f9398b9e34de9e6672797d1183 | [
"MIT"
] | permissive | Shanjiith-Pranov/AOGS-Code | 20ce7d003f80521ff0d98c8c43a873539075a3c9 | ed4c1b15a16fdb336da42eb838f83aaa16151b0d | refs/heads/main | 2023-06-01T21:36:04.786653 | 2021-06-19T05:42:37 | 2021-06-19T05:42:37 | 378,325,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,497 | py | import unittest
from datetime import datetime
from math import log, sin, cos, atan2, asin, degrees, radians, sqrt
import numpy
earth_radius = 6371 # kilometers
def haversine(point1, point2):
"""
Calculates the distance between two points on the earth.
haversine((52.2296756, 21.0122287), (52.406374, 16... | [
"62892238+Shanjiith-Pranov@users.noreply.github.com"
] | 62892238+Shanjiith-Pranov@users.noreply.github.com |
ab9de07f610e712458e834dd574d3d92370c62d3 | 70b176a173825ba46a3688bb1f7a98046093f201 | /SongGrapher.py | 4261c18adf32c72e831e4c889b4fb8d22cbac5f7 | [] | no_license | ebovio/MusicMiner | b767871db4de47ff9e6411deecac1a5707ba68f5 | 8be7ceb9a31e24344b39b3c86ab03a84a4a9060d | refs/heads/master | 2020-05-18T21:57:33.534620 | 2019-08-14T03:54:16 | 2019-08-14T03:54:16 | 184,677,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py | import pymongo
import numpy as np
import matplotlib.pyplot as plt
dbPath = 'mongodb://localhost:27017/' #Direccion de la conexion
dbName = 'canciones' # Nombre de la BD
colName = 'lista_canciones' #Nombre de la coleccion
myclient = pymongo.MongoClient(dbPath)
mydb = myclient[dbName]
mycol = mydb[colName]
year = 1957... | [
"e.bovio08@gmail.com"
] | e.bovio08@gmail.com |
4986a3100e08387b0cd05dec0ec98e374ed7f5c9 | b3585d5d5379540a06b146c40dd50b424cc2aa6b | /leetCode/isSameTree.py | c899e335ee0dbf03fbfa752d2ad4d3ef741d4e58 | [] | no_license | shivamkaushik12007/practice | 402e839512099a42bd94426a863f71f3e8d4156c | 6689bc725d3bc58741b9bcb48cada4c276c4853f | refs/heads/master | 2021-07-10T07:25:42.966500 | 2020-09-26T18:00:23 | 2020-09-26T18:00:23 | 200,655,807 | 1 | 2 | null | 2019-08-05T13:25:04 | 2019-08-05T12:58:24 | null | UTF-8 | Python | false | false | 504 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def isSameTree(self, p: TreeNode, q: TreeNode) -> bool:
if(p==None and q==None):
return ... | [
"noreply@github.com"
] | shivamkaushik12007.noreply@github.com |
bee96e8e20e7141cc0a9bfd1c6a79a254632d4a3 | 92a1114f93ec0140fd9c60e93ecb39748dc5ac54 | /Sample Preparation/gray2rgb.py | 885e42beab92bb852002f4fefbb9de3ab70636e3 | [
"Apache-2.0"
] | permissive | A-new/ResNet-Packed-Malware-Detection | 527f92341591421e4cc103ac5157d80f00885b0e | b7f9760285246c2ba4e3e6ce8a3b39c3ffbda52f | refs/heads/main | 2023-06-29T17:18:16.753863 | 2021-07-30T07:06:35 | 2021-07-30T07:06:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | import numpy as np
import cv2
src = cv2.imread("目标路径与文件名", 0)
src_RGB = cv2.cvtColor(src, cv2.COLOR_GRAY2RGB)
cv2.imshow("2rgb", src_RGB)
cv2.imwrite("写入的路径与文件名", src_RGB)
cv2.waitKey(0)
| [
"noreply@github.com"
] | A-new.noreply@github.com |
f8f461746d356c6b4f3a0fdabc67b71a89a74e00 | 1fcd563548cc6c54f40a9a7a8b5629db480aef7d | /database_handler.py | 9ae295caff7f1c18e87e783de23e9ab5ff4b7b4f | [] | no_license | benno0810/finance_data_scrapy | b350954f6e38033eb3a1be7b2114818ac0fdcca8 | 767d6231a382f5df241eaf58a1e51e7c1b696f82 | refs/heads/main | 2023-02-09T04:06:11.599816 | 2020-12-29T05:34:36 | 2020-12-29T05:34:36 | 319,832,871 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,446 | py | import pymongo
import time
class DB():
def __init__(self,db_type='MongoDB',db_address='mongodb://localhost:27017/',db_name='db_test',table_name='col_test'):
self.db_address=db_address
self.db_type=db_type
self.db_name=db_name
self.table_name=table_name
def connect(self):
... | [
"benno0810@gmail.com"
] | benno0810@gmail.com |
d98e426c5ffa96200e49a63c91cbb1ac43216323 | 220e3fe31f00df908dc8d00c507400425f924cc3 | /examples/multi_system/act6/unload.py | bf0fcc574b45c2f7fcf2d21c030c21e4aa89ff1f | [
"MIT"
] | permissive | danielmitterdorfer/Thespian | 3ed700d9fc6da35becfe801d3ab3bb68c86bddbc | f59439df8a6147b90ec31b44924d6a1b620f09d9 | refs/heads/master | 2021-01-19T05:06:33.005708 | 2017-07-31T04:44:03 | 2017-07-31T04:44:03 | 65,544,862 | 0 | 0 | null | 2016-08-12T10:22:29 | 2016-08-12T10:22:29 | null | UTF-8 | Python | false | false | 238 | py | from thespian.actors import ActorSystem, Actor, ValidateSource, ValidatedSource
import sys
portnum = int(sys.argv[1])
srchash = sys.argv[2]
asys = ActorSystem('multiprocTCPBase', {'Admin Port': portnum})
asys.unloadActorSource(srchash)
| [
"kquick@godaddy.com"
] | kquick@godaddy.com |
98da7301ee8877e6ff6c1b20ba1b0043c82e30e9 | a2db2ed8f6e982b4d2d1a743e824964ffa386148 | /accounts/migrations/0022_auto_20171029_1555.py | 0956576e79cb70e5a12af42bc44a580d25b2ef54 | [] | no_license | defydef/forum_board | ffae964dc9c877963dc1984a29fff15a9f424e53 | 41a46cb58fdc1757ed9329782aefa105849e9c32 | refs/heads/master | 2022-12-24T08:27:23.707497 | 2017-11-19T06:48:45 | 2017-11-19T06:48:45 | 111,266,814 | 0 | 0 | null | 2022-12-08T00:34:52 | 2017-11-19T05:20:05 | Python | UTF-8 | Python | false | false | 760 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-29 04:55
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0021_auto_20171028_2111'),
]
operations = [
migrations.RemoveFi... | [
"devy.f.sihaloho@gmail.com"
] | devy.f.sihaloho@gmail.com |
6d9a899cc5415e40329693b80d3cc1bbf9759db2 | a257bf65a2a1ba2c6841dd25c89d98c5672e4e57 | /BackEnd/Semana22/DjangoRestFramework/DjangoRestFramework/wsgi.py | 424593130b609b9f268eda5e5d98d2c974645dad | [] | no_license | jorgegarba/CodiGo9 | 190cb67e3c7f9cbad271baf62657bda7ca03ec42 | 3b85c36a3ed8d2d5ee1d0fb6e8ca18599621fe47 | refs/heads/master | 2023-01-22T22:31:00.244982 | 2020-03-31T17:59:37 | 2020-03-31T17:59:37 | 211,982,487 | 6 | 5 | null | 2023-01-05T05:23:27 | 2019-10-01T00:21:25 | JavaScript | UTF-8 | Python | false | false | 415 | py | """
WSGI config for DjangoRestFramework 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/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('... | [
"ederiveroman@gmail.com"
] | ederiveroman@gmail.com |
6f9219124cdf28edd912b1cbde65e7ea17aece30 | 7b315bbe8c85ce05e6c51112e985ae1b392d83f5 | /desafio_calcipv4/__init__.py | 52688559769bae42e626eb8e42a779ae27f16e24 | [] | no_license | Cica013/aprendendoPython | e9f993b1b144e294a338a53f2bc36673d3cd00a6 | 9c964f2322e3d52b39a811aceec64b169bab4e10 | refs/heads/main | 2023-08-10T20:12:47.640239 | 2021-10-06T21:01:19 | 2021-10-06T21:01:19 | 385,755,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | from classes.calcipv4 import CalcIpv4
calc_ipv4 = CalcIpv4(ip='192.168.0.1', mascara='255.255.255.0')
| [
"61808853+Cica013@users.noreply.github.com"
] | 61808853+Cica013@users.noreply.github.com |
05b6a07425082a6af963320ba3ad7ce4ae2bf435 | c885e60f9a86dc636b43bfd28e86162bd6d68806 | /Students/xml与json数据之间的转换.py | f040c1ae36c13cd0a5c7c87322ba7c132fb33c45 | [] | no_license | zhaopengtian/requesttest | 4eaa235293447cac39964ab383e77436cd70f81c | df3ca7a4ad4bd8b5cf67efbc9aff4ee7ad8242f8 | refs/heads/master | 2023-09-05T12:30:39.077101 | 2021-11-08T10:27:55 | 2021-11-08T10:27:55 | 424,950,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,064 | py | #首先安装xmltodict,python3 -m pip install xmltodict
import xmltodict
import json
#定义XML转Json的函数
def xmltojson(xmlstr):
xmlparse = xmltodict.parse(xmlstr) #parse是XML解析器
jsonstr = json.dumps(xmlparse,indent=2,sort_keys=True)
return jsonstr
#定义Json转XML函数
def jsontoxml(jsonstr):
xmlstr = xmltod... | [
"chinaume@163.com"
] | chinaume@163.com |
a4df80ef0342700b0d72315bfaa9dafc12385988 | 87666a8920b134f2cd0815c9c127c4fa92e98b1b | /rover_project/test/test_reader_read_rover_starting_position.py | 86d1b9dcfed5a8c3d37cd34b1327ffa5e5edf81b | [] | no_license | gacrta/backend-rover-challenge | 7f6d617eaa3528f3151af8ffdfedb33eb71162d7 | 1d3c690c908e485faeffde912aa73227b0490da4 | refs/heads/master | 2020-04-21T05:30:06.572240 | 2019-02-11T09:15:19 | 2019-02-11T09:15:19 | 169,342,584 | 0 | 0 | null | 2019-02-06T01:54:44 | 2019-02-06T01:54:44 | null | UTF-8 | Python | false | false | 1,679 | py | from rover_project import reader
import unittest
class TestReaderReadRoverStartingPosition(unittest.TestCase):
""" Test Class for Reader.read_rover_starting_position
method at reader module.
"""
file_path = 'rover_project/tests/'
def test_reader_read_x_coord(self):
"""
Test if reader gets correct x_coord fr... | [
"gabrielcrta@gmail.com"
] | gabrielcrta@gmail.com |
00bde05cade22c41d0a35433fd6cb5452820be66 | c8cf17465cfaf9858fe79de7d56841564226b67b | /Block.py | e4178e03c1e4acc98c64e32caf7b2e4c82c9f5db | [
"MIT"
] | permissive | bullgom/Network-Project | 29ebeb6699486ecb3528a05f91592b947c3488bd | a5a0ffad006c67c9ddbb769bb1d3c557c15d344d | refs/heads/master | 2020-03-07T21:30:40.895642 | 2018-07-08T09:15:05 | 2018-07-08T09:15:05 | 127,728,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | import pygame as pyg
from GUI.base import BaseWidget
from Locals import *
class Block(BaseWidget):
def __init__(self, pos, size, name, id, imageDirectory, level, anchor=CENTER):
super().__init__(pos,size,anchor=anchor)
self.name = name
self.id = id
self.image = pyg.image.lo... | [
"noreply@github.com"
] | bullgom.noreply@github.com |
aa196ae79a573731a31b45d1c19f8134b2e2a7bc | effa594367e5760dd2800a0a9707c2f26c3d4bd4 | /connection.py | b767752708bdf4a89b2cd7e67f3026ae08556210 | [
"MIT"
] | permissive | diogocanut/blockchain-sniffer | 5e2f5595e7e2f5e283c44c2cbcf4049996d5049d | 8d14844ee2a508e1d5e931c515a27171832ae5cc | refs/heads/master | 2023-03-28T17:10:53.027427 | 2021-04-03T18:11:02 | 2021-04-03T18:11:02 | 147,882,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,694 | py | # Bitcoin P2P network transactions analyser
#
# This file is based on https://github.com/sebicas/bitcoin-sniffer by @sebicas
#
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
import asyncore
import socket
import struct
import ... | [
"diogocanut@hotmail.com"
] | diogocanut@hotmail.com |
21aaffec3ed8892eaf0a660128ffde4513149715 | 5ae5026dcbaddf976fa925338fb07d498bcc7f11 | /ncvoter/wsgi.py | f2d906e89e65828a66c8c05f414c5340e5a1110e | [
"MIT"
] | permissive | calebsmith/voters-ingestor | de947aa0aa6218b077f71fed8acfa2ccc68590ea | 175a1195ec5b7402bf952ed28cff110e504982bb | refs/heads/master | 2021-07-23T08:14:05.005640 | 2017-11-02T23:40:54 | 2017-11-02T23:40:54 | 109,330,315 | 0 | 0 | null | 2017-11-02T23:42:16 | 2017-11-02T23:42:16 | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for ncvoter 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("DJANGO_SETT... | [
"caleb.smithnc@gmail.com"
] | caleb.smithnc@gmail.com |
b891a21e50fd7f9a52706f2b802ad343cca4ea72 | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-compute/azure/mgmt/compute/v2018_04_01/models/compute_management_client_enums.py | 94796a92c7936618c37a51b7bf0ec2a9b37639ee | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 1,085 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | lmazuel.noreply@github.com |
8707c6732a08d5007fe5f72f81bc5b3ae3317802 | 2a27d1c04b86fc32afea72cb4df12848f4a39078 | /VNOI/pnumber.py | f8ec7a2caefa926ccafeffb8080595d84b7963b4 | [] | no_license | ngctnnnn/Competitive-Programming | 9b68d3d30bdb8c0b258708b0c70005a037f2d01a | 461d715720d4cdf88c0c79011c2aa873fb9e189c | refs/heads/main | 2023-07-02T09:07:26.138500 | 2021-08-03T12:50:37 | 2021-08-03T12:50:37 | 321,263,350 | 4 | 0 | null | 2021-02-22T14:53:03 | 2020-12-14T07:11:07 | C++ | UTF-8 | Python | false | false | 394 | py | def prime(x):
if x == 2 or x == 3:
return True
elif x % 2 == 0 or x < 2:
return False
else:
for i in range(3, x, 2):
if i*i > x:
break
if x % i == 0:
return False
return True
x, y = map(int, input().split... | [
"noreply@github.com"
] | ngctnnnn.noreply@github.com |
0bebf2b16ff727c6ad6f1d7aca0f42970ec1dc48 | bed559d18b0a9604e6d18879e1f3837d228d1440 | /rx/backpressure/pausable.py | 631ce64e952fd6f555f3e9866c6f605c96299a8e | [
"Apache-2.0"
] | permissive | jesonjn/RxPY | a80b7a8f0a3a8a6ddcb7f3ed678d2f8411cad84e | 9dfb62979f2c54b93bbb8c0ee5fa18cfae4d73d0 | refs/heads/master | 2020-12-29T00:25:17.866220 | 2014-11-15T10:24:05 | 2014-11-15T10:24:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,932 | py | from six import add_metaclass
from rx import Observable
from rx.internal import ExtensionMethod
from rx.disposables import CompositeDisposable, Disposable
from rx.subjects import Subject
class PausableObservable(Observable):
def __init__(self, source, subject=None):
self.source = source
self.subje... | [
"dag@brattli.net"
] | dag@brattli.net |
eaff76abf8820739330402fe77b0aff5538045b0 | cde14b5c9ed4fec317abfee4611af59b4967dbef | /team-separation/src/rooms.py | 218974a62f6c80ca12b291093abf41c2617ff79d | [] | no_license | hackohio/judging | de949e582b500b0fb0c9989ad85cad4c80645a3a | 2adba3e2c11daa356ba0f2b3caa73e06860950ea | refs/heads/master | 2020-09-01T08:47:14.179356 | 2019-11-03T12:21:45 | 2019-11-03T12:21:45 | 218,923,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | BALLROOM = 'Grand Ballroom (2nd floor)'
SENATE = 'Senate Chamber (2nd floor)'
TRADITIONS = 'Traditions Room(2nd Floor)'
CARTOON = 'Cartoon Room(3rd Floor)'
| [
"kelly.wu.98@gmail.com"
] | kelly.wu.98@gmail.com |
5a00b73020577be86d6b7c9f68827501ec2be3eb | fafb5b817011892be9a824a4693bae58cebd5f04 | /app/routes/auth/__init__.py | e3db8201ab12cfce7b750fd3cbb96e4e2952274a | [] | no_license | vincentscode/Data-Studio | 4c3f94a9d8bdf10bf08136637cb6c8ba162eeb0a | 65d6b665a7b6ceef2ef388c96f6b6f6661fee2ce | refs/heads/master | 2020-07-28T09:43:49.805922 | 2019-12-01T15:06:16 | 2019-12-01T15:06:16 | 209,384,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | from . import GoogleAuth
| [
"vincentscode@gmail.com"
] | vincentscode@gmail.com |
d7147c0137ee9e0ad4bd9852404b8af452a36406 | 191e0df0aa9f2bb7e5a9da214e2ca73fd9f277e9 | /src/apps/myapp/views.py | 45899d4020acf1ee1d7e7f9ee2029db2d08c96db | [
"MIT"
] | permissive | NewReStarter/Django_Form | 720b76fd8bffacbf46ba96d31e0ea5f862658a7c | 3a9c8b536f5750ed9490533cee64ca358020a265 | refs/heads/master | 2020-03-13T04:23:12.460130 | 2018-05-08T15:52:35 | 2018-05-08T15:52:35 | 130,961,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,222 | py | from django.shortcuts import render
from django.views.generic.base import View
from .models import *
import json
class FormView(View):
def get(self, request):
categories = Category.objects.filter(status=1)
return render(request, "index.html", {'categories': categories})
def post(self, request... | [
"ziliugao@gmail.com"
] | ziliugao@gmail.com |
5db76e654df91d80b843b73dd410c5b47ee56eeb | 57b6db85bd35ffa9c5ab8f38cf5bca5821b42d73 | /reader_file_csv.py | 72ee5a3064914def4e49534021923ec1bcff2107 | [] | no_license | Suryana009/PythonTutorial | 2adb880f20dbfed64e9f8e7b2f9aa18f18bac1ad | 858a5fe146cf9c6b82d89c236ba6c4524f1782fd | refs/heads/master | 2020-03-09T22:06:21.236164 | 2018-04-23T06:17:57 | 2018-04-23T06:17:57 | 129,026,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | import csv
f = open('karyawan.csv', 'r')
reader = csv.reader(f)
for row in reader:
print row
f.close()
| [
"suryana.ryan009@gmail.com"
] | suryana.ryan009@gmail.com |
e2053a52894b2dba4c8f3b3e5598d763d3246c1e | 809b59be1161be7cf19a483ff1154fe2c8eda794 | /loss_from_log.py | 687abcf780272687c083b35408390555e7da9ff6 | [] | no_license | qzhao/train-CRF-RNN | d444bdc434424c20e98a68ca408a935cdb1b575c | 9af2ce367e34f9d3d12df55701ad14757b908d58 | refs/heads/master | 2020-12-29T00:55:42.557635 | 2016-03-10T09:21:49 | 2016-03-10T09:21:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,642 | py | #!/usr/bin/env python
# Martin Kersner, 2016/01/13
from __future__ import print_function
import sys
import re
import numpy as np
import matplotlib.pyplot as plt
from utils import strstr
def main():
log_files = process_arguments(sys.argv)
train_iteration = []
train_loss = []
test_iteration = []
test_... | [
"m.kersner@gmail.com"
] | m.kersner@gmail.com |
cec8243c693159b82311f03b0f97f689b0252e68 | 8ed2700f29e669a05e324c23fc3cced361c25dd1 | /cli/ceph/osd/crush.py | e2876d2eb9566dbd481491c580912e453ca9c57d | [
"MIT"
] | permissive | red-hat-storage/cephci | 179cdc8cc01f20bb80cb171800f04123ae8d6651 | 0691fbaf8fca2a9cd051c5049c83758c65301654 | refs/heads/master | 2023-08-31T15:19:00.375389 | 2023-08-31T14:43:30 | 2023-08-31T14:43:30 | 171,728,354 | 28 | 87 | MIT | 2023-09-14T18:59:33 | 2019-02-20T18:36:22 | Python | UTF-8 | Python | false | false | 4,811 | py | from cli import Cli
class Crush(Cli):
"""This module provides CLI interface to manage the Crush service."""
def __init__(self, nodes, base_cmd):
super(Crush, self).__init__(nodes)
self.base_cmd = f"{base_cmd} crush"
def rule(self, *Kargs):
"""
To create rules
Kar... | [
"pranavprakash20@gmail.com"
] | pranavprakash20@gmail.com |
79a7f455388690fa7a0287ab242b104b0be5b488 | 6233dfe18e53b55aef0c5eef9d6b59730f96dccb | /adminNotification/views.py | 4583d1d1789130bfe01feecf28960ae530ccfaf0 | [] | no_license | omar74/HISIK_API2-master | 6fe4f8380717f0a767409c62c1ffcfd060fddd4d | 5d891bc9c7a31de8cdb0591a77d5fb1e0f759984 | refs/heads/master | 2020-12-15T15:38:33.103082 | 2020-01-20T18:48:18 | 2020-01-20T18:48:18 | 235,158,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | from django.shortcuts import render
from .models import NotificationAdmin
from .serializer import NotificationAdminSerializer
from rest_framework import generics
class AdminNotificationListView(generics.ListCreateAPIView):
permission_classes = []
authentication_classes = []
queryset ... | [
"omar.ashraf0597@gmail.com"
] | omar.ashraf0597@gmail.com |
3c9a07fa27647dc38716eb782a3a4838a70b2d17 | 1e182038f280285fa6a833b5aaf49591c707ad53 | /ycombinator/encodings.py | deb67e51fe3528a3081ec9107a5ac4be87b9b944 | [] | no_license | turing-complet/samples | 87e13e75ea1cb52503d0937cc32d02ad380909b9 | 87e1042cdf2d427def822a56a9701817b2f3fae8 | refs/heads/master | 2021-12-15T08:46:48.493475 | 2021-12-13T02:25:18 | 2021-12-13T02:25:18 | 235,974,764 | 0 | 0 | null | 2021-12-13T02:36:02 | 2020-01-24T09:36:55 | Jupyter Notebook | UTF-8 | Python | false | false | 109 | py |
class Numeral:
def __init__(self, n):
pass
class Bool:
def __init__(self, b):
pass | [
"jhagg314@gmail.com"
] | jhagg314@gmail.com |
992d0d89d6bb0e793cbf80caa45bb759cd343dba | 58674e0ea4f0faa70892db30627fda006c3dc478 | /Beginner/1060_positive_numbers.py | 8e603faa7151ff993363d4fcdc22e248597d36bf | [] | no_license | ShekhRaselMasrurAhmmadNissan/URI-Online-Judge | fe0f176987f63dc342d741de34c52b10edb3f6f6 | 1554d12a0338850ba1f07f401633390815e505b2 | refs/heads/main | 2023-02-23T10:36:42.935212 | 2021-01-25T14:21:26 | 2021-01-25T14:21:26 | 325,745,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | # Reading the Data...
numbers = list()
for serial_number in range(0, 6):
numbers.append(float(input()))
# Checking the conditions...
positive_number_count = 0
for number in numbers:
if (number >= 0):
positive_number_count += 1
print(f'{positive_number_count} valores positivos')
| [
"shekhraselmasrurahmmadnissan@gmail.com"
] | shekhraselmasrurahmmadnissan@gmail.com |
79b21ab5c4ba6fadd6e18c4bc14248a109112bf2 | e008b7ec16cbcffb5368bb1685d44b75c4019a44 | /DeepVO/deepvo_net.py | bfb623602caa9d49fad86c837efe32080b09047b | [] | no_license | akhanian/VisualOdometry | df02d03c031901f3b746e8e77a574a0f319f9acd | 03bd99fa2312687cd67b159a20afa72ae15ba4c4 | refs/heads/master | 2023-01-06T08:41:24.802547 | 2020-11-11T05:10:29 | 2020-11-11T05:10:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | # -*- coding: utf-8 -*-
"""
Created by etayupanta at 6/30/2020 - 21:10
__author__ = 'Eduardo Tayupanta'
__email__ = 'eduardotayupanta@outlook.com'
"""
# Import Libraries:
from tensorflow import keras
from tensorflow.keras import layers
class DeepVONet(keras.Model):
def __init__(self):
super(DeepVONet, se... | [
"wetayupanta@gmail.com"
] | wetayupanta@gmail.com |
1cf78c07b6bdc205a1bca76933f89a3c6e6c2fd3 | 83e472f89c48a2793fa244f573a032bae80ba6bb | /Dragomir Robert-Simion/camera_app/blueprints/main/routes.py | 965401d01a0abb990fe0e376f4b7a57201dcecfd | [] | no_license | rodicadp/mobile-2020 | 992293d516a47cfe78a13b63fff7b1e9a4b475bd | 9c3ceb82c1b4ec5b1e75af2a884c611990164e74 | refs/heads/master | 2020-12-27T19:47:27.515452 | 2020-02-03T19:13:21 | 2020-02-03T19:13:21 | 238,030,034 | 0 | 0 | null | 2020-02-03T18:12:56 | 2020-02-03T18:12:55 | null | UTF-8 | Python | false | false | 2,700 | py | import os
from flask_login import login_required
from flask import render_template, redirect, url_for, request, flash, Blueprint, session
from sqlalchemy import exc
from camera_app import db
from camera_app.blueprints.main.forms import Form_Photo
from camera_app.blueprints.main.models import Photo
main = Blu... | [
"noreply@github.com"
] | rodicadp.noreply@github.com |
1b1488f2e5ebd9c410f0123465c4c7e05c7126e8 | c097eb64ab0305fb653bba74c616161a64b42a29 | /carspy/convol_fcn.py | 884fb80ada4dd43c536d8a786c54b3e392fe101e | [
"BSD-3-Clause"
] | permissive | zhangxin19981016/carspy | f832a7a58dc1683506eefb6c4341c09cb5b95300 | 4c91138018b288635e1e608e7f8b0edd8950085b | refs/heads/main | 2023-04-12T05:44:38.123167 | 2021-05-09T19:12:31 | 2021-05-09T19:12:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,439 | py | """Functions used in the convolution of CARS spectrum.
- Laser lineshape
- Impulse spectral response function (ISRF) for the spectrometer slit
"""
import numpy as np
def gaussian_line(w, w0, sigma):
"""Generate a normalized Gaussian lineshape (integral equals to 1).
Parameters
----------
w : sorted ... | [
"43315257+chuckedfromspace@users.noreply.github.com"
] | 43315257+chuckedfromspace@users.noreply.github.com |
f075ed8bbec5b8e9a2aa280e5a35872d3244c077 | f170a491f323a63665ccf39291ae2ad3fe8d626b | /privat_bank_test/wsgi.py | a1f6538b7d18f522fa3ec9e8b05ae0ac9fb13d3c | [] | no_license | DmitryFleur/PrivatBankTest | 098f1829a3c031f619ae82b8e498b827640dde5b | 0ac2d605966735575b3fe498b92d20c352fdf458 | refs/heads/master | 2020-03-27T00:49:30.499822 | 2018-08-22T05:33:43 | 2018-08-22T05:33:43 | 145,660,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for privat_bank_test 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/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"bDEFpm74!!"
] | bDEFpm74!! |
747a7cb3b08db83515a6456c6b9e5af1e2d0e703 | c818b186c3e76f6d3c5edb8e2e30a04c2a1b99a9 | /early-bird-impl/early_bird/wc_gc.py | 48f2ab50c70b1d0126a8320643a5e33f7ebb09b6 | [] | no_license | imperialguy/algc | 3048e31e16e19ea195797d4935111e8238244455 | 3d71210e6fd0e33249bfa461473da2fa79fff433 | refs/heads/master | 2021-03-24T09:32:59.492479 | 2017-05-05T21:52:25 | 2017-05-05T21:52:25 | 82,343,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,901 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 17 14:12:31 2016
@author: mcontrac
"""
import ConfigParser
import math
import numpy
import pandas
from helpers import setup_logging
from helpers import get_discount_amount
from helpers import get_dnb_scores
from helpers import get_sic_major_group
from helpers import ro... | [
"ven.karri@aig.com"
] | ven.karri@aig.com |
cddab9580d9af9da3a18d635c9717ed2acc1f201 | 4bc2d855558ccb962991f997e9779919031687dd | /capstone/causalmodel/migrations/0001_initial.py | d9fe267a7a9b8e4c5697913127b312847c7b2554 | [] | no_license | jmblontoc/Likha-Capstone | 80081e44b7ad6457eb776432e623c6db8b7a17e2 | e1c32911b58cd1419c8e1a554ac32210456d201d | refs/heads/master | 2022-12-10T03:26:32.946638 | 2018-12-09T04:33:10 | 2018-12-09T04:33:10 | 134,726,142 | 0 | 1 | null | 2022-11-25T23:52:42 | 2018-05-24T14:21:36 | Python | UTF-8 | Python | false | false | 1,187 | py | # Generated by Django 2.0.5 on 2018-06-27 15:33
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='DataMap',
fields=[
... | [
"37819032+jmblontoc@users.noreply.github.com"
] | 37819032+jmblontoc@users.noreply.github.com |
3ad629c37259ce486878f28cf6844c6bc01b524f | bdb781b295f2c4fe570ff2db39b9bfe38cab6476 | /example/auth0login/urls.py | 68805a4c05ba7da12313edc66b0c5a93f436d96a | [] | no_license | jangita/learn-django-auth0 | c8386dc138e9706c9507c5472402b60cb119bc17 | 3cdf25a066409dd7acecf0308ed901fbc136fddb | refs/heads/master | 2023-01-02T01:34:53.665904 | 2020-10-28T03:17:53 | 2020-10-28T03:17:53 | 308,088,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | urlpatterns = [
path('', views.index),
path('dashboard', views.dashboard),
path('logout', views.logout),
path('', include('django.contrib.auth.urls')),
path('', include('social_django.urls')),
] | [
"jangita.nyagudi@gmail.com"
] | jangita.nyagudi@gmail.com |
7557f544a64fd0f4ff99c1cbdade203205fdfb81 | 279967844e5b35f5d926f75f34d2a3e926819a52 | /covid-19-timelapse/dashapps/term_frequency/utils.py | 9e1c38043f6edbf626ced82cf315979851293bb5 | [
"Apache-2.0"
] | permissive | thehonduranjazzman/developer-platform | e22e62c27714e531fb87c77087aafb286221a797 | ba3d8be69c78dc3ec189d0e1df045f5e7272341c | refs/heads/master | 2022-05-23T18:27:27.935734 | 2020-04-22T08:54:13 | 2020-04-22T08:54:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,727 | py | import collections
import json
import random
import re
from datetime import datetime
import fastavro
import nltk
import pandas as pd
import requests
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
from nltk.util import ngrams
from .config import TERMS_TO_REMOVE
# nltk.download('stopwords')
... | [
"miballegh@outlook.com"
] | miballegh@outlook.com |
bee21a100ddcbd04daa619398ab9c09790be2d86 | 106536a7448d4414fac079cb657044f1dc92a588 | /framework/machine.py | 6cb012ab17185fe4a33168086a06f249a3002025 | [] | no_license | ChrisQiqiang/drlScheduler | 0b9a10c8de4883cea2ada7565cdfb65185608dc4 | 2cd8b984bfed16687a7852baccb79742d1a35773 | refs/heads/main | 2023-08-03T17:55:17.654560 | 2021-09-14T15:17:56 | 2021-09-14T15:17:56 | 405,674,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,161 | py | from framework.instance import Instance
class MachineConfig(object):
# def __init__(self, machine_id, cpu_capacity, memory_capacity, disk_capacity):#, cpu=None, memory=None, disk=None):
# self.id = machine_id
# self.cpu_capacity = cpu_capacity
# self.memory_capacity = memory_capacity
# ... | [
"2290142073@qq.com"
] | 2290142073@qq.com |
770781cf8434a6484eb3418aafba1bd504f0315d | 1a819b4d69a7c455199b638b1609d3284ecbf255 | /alttprbot_srl/racebot.py | c760ffc28d30de0301fd73fb1bf3fb04a1d6a28b | [] | no_license | Maxor14/sahasrahbot | 5167355a23a4e9d91171b583fe8065acd0ab99a6 | 9183933869f87743d94867cf52c463179d0b687a | refs/heads/master | 2021-05-22T21:30:54.015013 | 2020-04-01T01:01:47 | 2020-04-01T01:01:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,951 | py | import asyncio
import math
import re
import ircmessage
from alttprbot.database import spoiler_races, srl_races
from alttprbot.tournament import league
from alttprbot.util.srl import srl_race_id
from alttprbot_srl import alt_hunter, discord_integration
from config import Config as c
starting = re.compile(
"\\x034... | [
"tcprescott@gmail.com"
] | tcprescott@gmail.com |
49af44e9d1dc28c1ec60101728e6a68fa331e058 | 9788bf7929da8a87d7dfab8b633601122df88bf2 | /accounts/urls.py | 920c688f52fbd6db80c3959580af4dc27ff733f8 | [] | no_license | praneshsaminathan/dukaan | d0eab83d28625857a84c6f6ab1f44619326985b3 | f4986966892fb7b3cede083b142bccf35174e068 | refs/heads/main | 2023-03-02T02:38:15.003309 | 2021-02-10T17:20:43 | 2021-02-10T17:20:43 | 337,749,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from accounts.views import LoginAPIView, GenerateOTPAPIView, StoreViewSet
from dukaan.utils.apps import get_api_url
router = DefaultRouter(trailing_slash=True)
router.register(r'stores', StoreViewSet, 'api-stores')
urlpatterns = ... | [
"pranesh"
] | pranesh |
4ddc52309634f93275931f026fe9acd394cf88e0 | 04d1c898b4fdd1b55785c48260f0b7efcd8d0060 | /int.py | 76537a32fd9ae97927370dbb376a91ce8b0d25a7 | [] | no_license | protosscom/python-ch2.2 | 27799f8971839456333aa61ba249c2c67b04efa9 | 61e70008f4261068bb7c570b2f9eaa6a6940f87b | refs/heads/master | 2020-04-10T16:03:52.606662 | 2018-12-10T07:04:40 | 2018-12-10T07:04:40 | 161,131,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | # 2진, 8진, 10진, 16진 Literal
a = 23
print(type(a))
b = 0b1101
o = 0o23
h = 0x23
print(b, o, h)
# 3.x에서는 int와 long이 합쳐졌다. 표현범위가 무한대
e = 2**1024
print(type(e))
print(e)
print(e.bit_length())
# 변환 함수
print(oct(38))
print(hex(38))
print(bin(38)) | [
"protosscom@gmail.com"
] | protosscom@gmail.com |
0a034e44b177bb293899d150df0f040bea24495c | 8e35bffd191e2eec8b50370828ca954b5e249ae8 | /flaskps/resources/api/ciclos_lectivos.py | ab6b587733294ca3a1e1d6c424845cb928fd9b7a | [] | no_license | jmsolar/proySoft2019 | 6a0e42af239f13f3a7e314f5cf740c2a6b6d7a51 | bc607c3e0c9830d5a0b48d88e299df46b5b20c6f | refs/heads/master | 2023-05-30T02:44:02.410680 | 2020-01-21T17:23:06 | 2020-01-21T17:23:06 | 235,398,209 | 0 | 0 | null | 2023-05-22T22:38:36 | 2020-01-21T17:16:12 | HTML | UTF-8 | Python | false | false | 1,903 | py | from flask_restful import Resource
from flask_restful import request
from flaskps.models.ciclo_lectivo import CicloLectivoModel
from flaskps.models.configuracion import Configuracion
class CicloLectivo(Resource):
def get(self):
datatables = False
page = None
if request.args.__len__() == 0... | [
"matias.solar@outlook.com"
] | matias.solar@outlook.com |
0dc52145873acef997045ced74eebb0ce1aa6d7f | 19b0fd18df23da2999d298ee9aa426451b4e5c12 | /src/sonic_ax_impl/mibs/vendor/__init__.py | 5514a7346795691dbb1528f20f694081290f58e4 | [
"Apache-2.0"
] | permissive | qiluo-msft/sonic-snmpagent | ced0e2fd053bbed60ee5f22c1794040105ab5a4f | a5b2983be06fa51a711cded92cbc4f089a147233 | refs/heads/master | 2023-02-19T15:17:49.463707 | 2022-03-28T18:15:00 | 2022-03-28T18:15:00 | 79,850,509 | 0 | 0 | NOASSERTION | 2023-02-14T21:49:13 | 2017-01-23T21:33:48 | Python | UTF-8 | Python | false | false | 2,146 | py | import collections
import time
import psutil
from ax_interface import MIBUpdater
from sonic_ax_impl import logger
class SystemUtilizationHandler(MIBUpdater):
def __init__(self):
super().__init__()
# From the psutil documentation https://pythonhosted.org/psutil/#psutil.cpu_percent:
#
... | [
"noreply@github.com"
] | qiluo-msft.noreply@github.com |
178a175dbfafdd590e2ff2248e27c5ae44eedd7d | 1a6b18b8009f64006771b6da742742db45cedfe0 | /Experiment 3/hyperparams.py | b800fe076219572bd4af833256e17f3c0ad8fcfe | [] | no_license | HibaShah/Chinese-English-Translation-Machine-Based-on-sequence-to-sequence-network-speech-synthesis- | a2776987b1d20f08c965f7b6f781fae5f66ab056 | ce370129676052e1159c6e42e8ff6cb9be79a044 | refs/heads/main | 2023-08-17T16:24:46.735428 | 2021-09-29T07:44:55 | 2021-09-29T07:44:55 | 411,400,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py |
class Hyperparams:
'''Hyper parameters'''
# pipeline
prepro = False # if True, run `python prepro.py` first before running `python train.py`.
vocab = "PE abcdefghijklmnopqrstuvwxyz'.?" # P: Padding E: End of Sentence
# data
data = "/data/private/voice/LJSpeech-1.0"
# data = "/data/p... | [
"noreply@github.com"
] | HibaShah.noreply@github.com |
3eef37096a1b8dfa04f2d43d8a80e433d5771e3c | 0d4966bb125abc0def9a48309e8353b05c242c4c | /Test1/diseases/migrations/0001_initial.py | 5d68d0d3942a4853924bb3d73981ea9df6115ece | [] | no_license | ChanBong/Viral-De-cease | 8b7b30c698883f45f26d2f9f2be7ab787399a484 | b44c95cdbf87af76039ae32bbe3ac4502fe9045e | refs/heads/master | 2023-02-12T20:49:11.879306 | 2021-01-11T16:37:20 | 2021-01-11T16:37:20 | 327,962,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | # Generated by Django 3.1.4 on 2021-01-09 09:05
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Diseas',
fields=[
('id', mo... | [
"harsh_k@ch.iitr.ac.in"
] | harsh_k@ch.iitr.ac.in |
07c821b253d8b2176af47cd42bb65e0f706db38a | 3109e3a7f2f2dccc5a806695f0adbe0fed879112 | /ecommerce/Loma/migrations/0022_auto_20190204_1200.py | 4724c3c1c3f80c03fa75c1a13fc32a1f6bb13401 | [] | no_license | Maheshwari2604/ecommercee | 9ebbf18b4fbf933a0d9641009f7f17ce836de587 | 4411e7e10eccda907711200d2c0d873db3d7f803 | refs/heads/master | 2020-04-20T18:03:49.575124 | 2019-02-12T16:02:05 | 2019-02-12T16:02:05 | 169,007,411 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2019-02-04 06:30
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Loma', '0021_auto_20190203_1829'),
]
operations = [
migrations.AlterField(... | [
"maheshwarishivam2604@gmail.com"
] | maheshwarishivam2604@gmail.com |
404cc31ac2c1214b9ebd5d4d1ef590b04436a905 | 0e130ed05664c02888ed2f7305ddacc34192519f | /changecsv.py | 590aea1330fe38d20bbd249578a1c18e515dd5a0 | [] | no_license | victormm88/Click_Through_Rate_Prediction | 86acd70784fc11d56bb113a9738ce1b549b6abd1 | cc2df8724dc95776f3ec6974f13e61a34408ba8c | refs/heads/master | 2021-01-21T07:38:57.697293 | 2015-02-13T05:16:16 | 2015-02-13T05:16:16 | 30,741,451 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
''' '''
__author__ = 'Wang Junq'
import csv;
pre=33563901./6865066;
pre=1-pre/(pre+1);
f_init=open('l1005.csv','rb');
f_result=open('l1005-change.csv','wb');
csv_init=csv.reader(f_init);
csv_result=csv.writer(f_result);
tittle=csv_init.next();
csv_result.writerow(tittle... | [
"351868656@qq.com"
] | 351868656@qq.com |
74a40fde608fbfe9129efe89a8eff85127fc7b21 | 2d8898337f9b16a084bec9c447af9a59d4a8c69c | /server_less/fargate/container-app/main.py | 0b4ea91b8e7c73b62847457e7511aa1accc70e6b | [] | no_license | hayaosato/advent-calendar-2019 | de22e780ea2a5131da5da5943b93a354dd2e21e9 | eba09cf3abfbde2e05f7b0e9eb5ca47fab54cdc1 | refs/heads/master | 2022-12-28T23:04:32.755496 | 2019-12-20T03:20:18 | 2019-12-20T03:20:18 | 225,546,645 | 0 | 1 | null | 2022-12-08T04:03:50 | 2019-12-03T06:24:04 | HCL | UTF-8 | Python | false | false | 132 | py | """
hoge
"""
import sys
def main(arg):
"""
hoge
"""
print(arg)
if __name__ == "__main__":
main(sys.argv[1])
| [
"jake.bibikyary.880@gmail.com"
] | jake.bibikyary.880@gmail.com |
1c07148d7ab0dac268d97289f85bcfd5323f3892 | 4c7ccea26d2a6f7197fcdd7b8413652cea199485 | /IPython/SdA/StackeddAutoencoder.py | 88ef597fa78dc3337214ffa36a0bb97d7a894564 | [] | no_license | cgallego/Section3 | 77fc1c8e5f6dfa273775f165cfb54f28c05e0f52 | 1745cb018811541b6ece603f2762ef05cc263b3b | refs/heads/master | 2021-01-19T06:41:31.153702 | 2016-08-08T16:45:43 | 2016-08-08T16:45:43 | 60,637,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,074 | py | """
Stacked denoising auto-encoders (SdA) using Theano.
Denoising autoencoders are the building blocks for SdA.
They are based on auto-encoders as the ones used in Bengio et al. 2007.
An autoencoder takes an input x and first maps it to a hidden representation
y = f_{\theta}(x) = s(Wx+b), parameterized by \theta=... | [
"admin@webdsdesign.com"
] | admin@webdsdesign.com |
1e92f6030603376b040c99b7ed7806971393cfca | a500d0a13e025a7e25376592188663f26c13385e | /lpthw/ex24.py | 088c897cf7916cf73da44aba4071ebebfe6f2a79 | [] | no_license | sraywall/GitTutorial | c6096cfa9dc5c89ebaedee10ee93fed69118f296 | cd0de5db58e42fb4a5094504147ba804b0424247 | refs/heads/master | 2021-04-27T20:36:30.290444 | 2020-05-07T19:27:06 | 2020-05-07T19:27:06 | 122,381,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | print("Let's practice everything.")
print('You\'d need to know \'bout excapes with \\ that do:')
print('\n newlines and \t tabs.')
poem = """
\tThe lovely world
with logic so firmly planted
cannot discern \n the needs of love
nor comprehend passion from intuition
and requires an explanation
\n\t\twhere there is none.
... | [
"sraywall@gmail.com"
] | sraywall@gmail.com |
9c68ae44c857794289d718b86b9cf28781944546 | d49f38323dc30a3cb4a581b451f7db7eec220324 | /app.py | c50f59488d7cad0a63272dce103f97c62cf594dd | [] | no_license | bbiyongel/NaverAPI-telegram | 0e67259ed2faa86860014f0a5ff1ee0528175b67 | bfcffdb03c6c2cb2387aee461490c520542227bf | refs/heads/master | 2022-01-15T19:50:28.409431 | 2019-07-12T09:00:15 | 2019-07-12T09:00:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,740 | py | from pprint import pprint
from flask import Flask, request
import requests
from decouple import config
import random
app = Flask(__name__)
token = config('TELEGRAM_TOKEN')
base_url = f"https://api.telegram.org/bot{token}"
naver_client_id = config('NAVER_CLIENT_ID')
naver_client_secret = config('NAVER_CLIENT_SECRET')... | [
"jjgk91@naver.com"
] | jjgk91@naver.com |
e6a2a28a5d17ffa3424d45048710a8687df2c863 | 9256eeff108787245a1d9a8e27f80c04377ba10f | /src/datasets/mnist.py | 49071693a70659a10514560cc67cff58309b79cf | [
"MIT"
] | permissive | martinhavlicek/meta-inference-public | 99a22daef937921deb9f677f68aa1c954e456e55 | 3cad0b84acd407f3d790f3d75d3045f62bdbf250 | refs/heads/master | 2022-04-12T14:15:42.514426 | 2020-03-31T21:39:50 | 2020-03-31T21:39:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,748 | py | import math
import numpy as np
from PIL import Image
from torchvision import datasets
from torchvision import transforms
# ----- ROTATED MNIST -----
ROTATIONS = np.arange(-180, 180, 20)
DEFAULT_ROTATIONS = ROTATIONS[0::2]
UNSEEN_ROTATIONS = ROTATIONS[1::2]
DEFAULT_ROTATIONS_SPARSE = np.array([-160, -80, 0, 80, 160]... | [
"me@mikewuis.me"
] | me@mikewuis.me |
8c1b2c443b10f64ad81dbb48b78341c22ec527dc | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/discount_info_v3.py | 3eeec1c5d49a77c443407f9193187e6c6e93816a | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,663 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class DiscountInfoV3:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
7f19a3de1a2177407921827f9a30e9f957520c64 | ace2dc6096eb0b7a540f28e57df8459adafad6ed | /Algorithmic Toolbox/week3_greedy_algorithms/MaxValueofLoot.py | d0556e46829682f74ac9c48922ded067c88a5f6e | [] | no_license | tdslivensky/AlgorithmsAndDataStructures | 6ad2c28204600b1f8f72228c13d29d2c3c9437c9 | e8b1011ab5210bc52854f911e2a7e41a83b36740 | refs/heads/master | 2023-01-11T16:32:49.399654 | 2020-11-13T13:49:18 | 2020-11-13T13:49:18 | 289,050,279 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,156 | py |
def get_optimal_value(capacity, weights, values):
TotalWeight = capacity
value = 0
weightValueIndex = 0
arr = [0] * len(weights)
# write your code here
for i in range(len(weights)):
WeightPerValue = values[i]/weights[i]
arr[i] = [weights[i],values[i],WeightPerValue]
a = sor... | [
"tslivensky@emailatg.com"
] | tslivensky@emailatg.com |
4e8fb660e0be3d0885aa9b36d0333165ee44736b | a33ee2ee3d67526fa353060b7efe48398d38e8db | /demovibes/webview/views.py | cc242832d23da2a871237f1c2cc6ad7ce9bc131c | [] | no_license | rj76/demovibes-cvgm | 5666164f57a5458872f6add1eb18620aa0fd5072 | 8c0f5e011baec3c9b732165c9c74dd07c87c290f | refs/heads/master | 2023-06-02T11:41:16.093070 | 2021-06-19T02:28:38 | 2021-06-19T02:28:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86,960 | py | from webview import models as m
from webview import forms as f
from webview import common
from webview.decorators import atomic, cached_method
from openid_provider.models import TrustedRoot
from mybaseview import MyBaseView
from tagging.models import TaggedItem
import tagging.utils
from forum import mod... | [
"fishguy8765@gmail.com"
] | fishguy8765@gmail.com |
f0338b1f24a90d5fbc5b99ebe5f32f64d18dd26f | 34f1693e4bd6b85abc289725d535656b36fb5e72 | /.file/hash/6.py | 64c612f22b34aebed2e2831867886eeed92feae8 | [] | no_license | mels595/termux-toolkit | f15aeeb8f673082e2ee6cde50f72f6d40481eb61 | 872b9220e9fe857b65502ff775073e26fedbc0b9 | refs/heads/master | 2022-11-17T18:35:09.892480 | 2020-07-11T18:46:29 | 2020-07-11T18:46:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | import hashlib
text = raw_input("\033[00m[\033[1;31m+\033[00m] Text\033[1;31m: \033[0;36m")
m = hashlib.new('sha384')
m.update(text)
md4 = m.hexdigest()
print "\033[00m[\033[1;32m+\033[00m] SHA384 \033[1;31m: \033[0;33m"+md4
| [
"bangaslanz@yahoo.com"
] | bangaslanz@yahoo.com |
b5c1fff82ac0901d1ae985cd1826ca4b47c6f5af | 5b93930ce8280b3cbc7d6b955df0bfc5504ee99c | /nodes/Bisong19Building/I_PartVIII/C_Chapter47/index.py | cce9e2225cec24eabc5302e3a2817b1a5b9cd72f | [] | no_license | nimra/module_gen | 8749c8d29beb700cac57132232861eba4eb82331 | 2e0a4452548af4fefd4cb30ab9d08d7662122cf4 | refs/heads/master | 2022-03-04T09:35:12.443651 | 2019-10-26T04:40:49 | 2019-10-26T04:40:49 | 213,980,247 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,830 | py | # Lawrence McAfee
# ~~~~~~~~ import ~~~~~~~~
from modules.node.HierNode import HierNode
from modules.node.LeafNode import LeafNode
from modules.node.Stage import Stage
from modules.node.block.CodeBlock import CodeBlock as cbk
from modules.node.block.ImageBlock import ImageBlock as ibk
from modules.node.block.MarkdownB... | [
"lawrence.mcafee@gmail.com"
] | lawrence.mcafee@gmail.com |
9ca3d949f4eba7c4f5c4434c364d62be9b136a99 | aa4024b6a846d2f6032a9b79a89d2e29b67d0e49 | /UMLRT2Kiltera_MM/graph_MT_post__Model.py | 3f264f3c35aea6264d6efa85f991b713f54237a9 | [
"MIT"
] | permissive | levilucio/SyVOLT | 41311743d23fdb0b569300df464709c4954b8300 | 0f88827a653f2e9d3bb7b839a5253e74d48379dc | refs/heads/master | 2023-08-11T22:14:01.998341 | 2023-07-21T13:33:36 | 2023-07-21T13:33:36 | 36,246,850 | 3 | 2 | MIT | 2023-07-21T13:33:39 | 2015-05-25T18:15:26 | Python | UTF-8 | Python | false | false | 2,610 | py | """
__graph_MT_post__Model.py___________________________________________________________
Automatically generated graphical appearance ---> MODIFY DIRECTLY WITH CAUTION
___________________________________________________________________________
"""
import tkFont
from graphEntity import *
from GraphicalForm impor... | [
"levi"
] | levi |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.