blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
57f18d2d17a7cb6eca7d70d8d978cc510de04737 | 818462196c483ce25ceb84cdab386d4a5a5db131 | /customusers/migrations/0001_initial.py | a62390d5e27e1136f0d4e40625cf26c3f140b41c | [] | no_license | denn-is-njeruh/DjangoMutltipleUsers | 0239c09fd80cc630513428d6e8ac84fa051a8190 | a6f0d58183b01efe626e33842fa62388e08cb61a | refs/heads/main | 2023-08-21T21:15:32.523655 | 2021-10-05T05:33:12 | 2021-10-05T05:33:12 | 413,668,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,655 | py | # Generated by Django 3.2.7 on 2021-10-05 04:32
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations = [
migrations.CreateModel(
name='User',
... | [
"dennis.njeru@student.moringaschool.com"
] | dennis.njeru@student.moringaschool.com |
8a2150267801d8dbbb8be912f431c32e54340802 | 55a661e7f50d326b45f1419b694d6b93a218c70f | /code/layers.py | 0026ea81113086bfdeb76239594c99f87d9d0c41 | [] | no_license | pearsonlab/gbds | 9e3f918b5e2ed6e312c87f9a91f2a0fd3c50f8cf | ddccec69e774d867548b5db2cb0db9e670450955 | refs/heads/master | 2021-01-22T18:50:39.810108 | 2017-06-08T21:02:10 | 2017-06-08T21:02:10 | 85,121,733 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,276 | py | """
The MIT License (MIT)
Copyright (c) 2017 Shariq Iqbal
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, modify, merge, ... | [
"shariqiqbal2810@users.noreply.github.com"
] | shariqiqbal2810@users.noreply.github.com |
3a58a95ff9ca04c8a9228ff5e3822cfa35a2e6dc | 3ccc43f582471af88c90d52bcba0142186d9829e | /src/sorter.py | 3cfc650ed0c98ddf50f57f4e7b863c29b968c8e6 | [] | no_license | sd2017/typer | bc6dded8acfff5c773b854686a2f81c478db5da3 | e0e1e1604598f8d5be492b6b646c02421e809e1c | refs/heads/master | 2021-05-03T12:19:44.672193 | 2016-10-17T00:51:50 | 2016-10-17T00:51:50 | 70,138,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py | import linecache
import strategy
import strategy_eng
import logger
import logging
class Sorter:
def __init__(self,loggeri,filename,dicti,strategy):
self.logger=loggeri
self.filename=filename
self.dicta=dicti
self.line="the most noticeable members of the Reform Club, though he seemed... | [
"sd2017@walla.co.il"
] | sd2017@walla.co.il |
bc8fbb48a26fbbb57765c7ee73f93db6fb9cad11 | a05fdeb2958b16640fd98120a1898610b9a88467 | /ResNet_tf2/source/network_models/resnet50.py | da9bf7270713d57796d2af4c889a4cc3feadc453 | [] | no_license | kawayoshiHirota/endscope_diagnosis | 15bd6197512736a207010db2c4adb864d03e4735 | 02006f4db309bfb301707ddb0f67ad391d9fa885 | refs/heads/main | 2023-03-08T15:04:19.595681 | 2021-02-24T05:01:40 | 2021-02-24T05:01:40 | 338,940,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,572 | py | # -*- coding: utf-8 -*-
import os
import warnings
from tensorflow.keras import models
from tensorflow.keras import backend
from tensorflow.keras import layers
import tensorflow.keras.utils as keras_utils
def identity_block(input_tensor, kernel_size, filters, stage, block):
filters1, filters2, filters3 = filters
... | [
"shohei@hirota-mbp.local"
] | shohei@hirota-mbp.local |
7860766fce7868311fe335a79413268f3035d2e4 | 20670e0ee8673317d90e22f9c99a230c5c810877 | /interview/urls.py | ddccc499cdf4513f32930b56b7519b17c5b9912e | [] | no_license | SameerRokade/video-interview-platform | a98871d831508c18e7a314ecc12c00861d3ecc8f | c4d832fd1163daea787fbfa9f0a95d3fdf3f1cba | refs/heads/master | 2023-06-17T06:06:17.078647 | 2021-07-14T22:49:29 | 2021-07-14T22:49:29 | 386,064,507 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('record/', views.record, name='record'),
path('ajaxHandler/<int:num_question>/', views.getQuestionAjaxHandler, name='ajaxHandler'),
path('create-interview/', views.createInterview, name='create-i... | [
"sameerrokade5@gmail.com"
] | sameerrokade5@gmail.com |
cde14b6cc471a81ced9162a70e2bbfd34f16cf3e | 2be837d9b230753853cc5bb1ef8339196462f4be | /manage.py | a11d0815cdd16e20353ceae1ed6608d63558369d | [] | no_license | DensonNgumo/deenze-music | 0b2747c8698f317bb5bdb1d73db1c44094a6eddc | 3ae3d1ad600f718a25b0e0599d555dcc344b58ae | refs/heads/master | 2021-01-02T22:40:55.627175 | 2017-08-07T17:20:09 | 2017-08-07T17:20:09 | 99,366,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "deenze.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"ngumohd@gmail.com"
] | ngumohd@gmail.com |
5bd0e53ba54a4a57cf01aa9a0f830f42c969bd2f | e08e7bb643b81899d261bbdada63754eb32da2e8 | /demos/helloworld/jinja2-support/main.py | fff720215c30da226ea87bdea8861ee34f58e750 | [
"Apache-2.0"
] | permissive | tao12345666333/app-turbo | 95baa0e0d7f7172183591c2bc177efc9ae0e1b37 | 8717ba5631e47c476e277c3a897d85b5a93f9082 | refs/heads/master | 2020-12-25T04:45:26.575354 | 2016-12-11T15:35:12 | 2016-12-11T15:35:12 | 31,700,837 | 0 | 0 | null | 2015-03-05T07:14:08 | 2015-03-05T07:14:08 | null | UTF-8 | Python | false | false | 478 | py | #-*- coding:utf-8 -*-
from tornado.options import define, options
import tornado.options
import setting
import turbo.register
import turbo.app
#uncomment this to init state manager: store
#import store
turbo.register.register_app(setting.SERVER_NAME, setting.TURBO_APP_SETTING, setting.WEB_APPLICATION_SETTING, __fil... | [
"zhyq0826@gmail.com"
] | zhyq0826@gmail.com |
b32f8c39c81c04f7be2b22b229a7687ece7a70fd | ccbb20f765ed4c4804af9e9141710e9eb8c36567 | /news/urls.py | 4f2ddc1cb65e9932f0e26bc8194a0b74c41bb51c | [] | no_license | sabyrbekov/newsblog | 7f9d84877f8ff6739e2f1b0c9b3b10b285b1568b | 014527cc09fc6cc753dd777ab71f597819a9e57b | refs/heads/master | 2023-01-30T01:24:23.769452 | 2020-12-06T18:44:37 | 2020-12-06T18:44:37 | 319,101,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | """news 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-based vi... | [
"aza10k@mail.ru"
] | aza10k@mail.ru |
9e1564d5ecf85014989676a983939906ad716413 | a709c22084dd15d0e162416569d811986cb52d3b | /solutions/problem20.py | 71bc3b960dcd686a8540796bf8800fe39e37e1a6 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | wy/ProjectEuler | 1fe137364293d373fb2e3738bcaa01969fc2d601 | 842d45994fe76ef0ea70dbe6b6f2a559078f45f3 | refs/heads/master | 2020-09-16T06:49:36.345278 | 2017-06-27T22:03:33 | 2017-06-27T22:03:33 | 94,484,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | # coding: utf8
# Author: Wing Yung Chan (~wy)
# Date: 2017
import math
x = math.factorial(100)
s = str(x)
acc = 0
for i in s:
a = int(i)
acc = acc + a
print(acc)
| [
"wingyungchan@gmail.com"
] | wingyungchan@gmail.com |
22731541dd107b93c3c9efbc5cf7a570dc5ca82e | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/pointcloud/hoverlabel/font/_color.py | ab79906bd35243f454c553b46a4a5012a256ba50 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 473 | py | import _plotly_utils.basevalidators
class ColorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(
self, plotly_name="color", parent_name="pointcloud.hoverlabel.font", **kwargs
):
super(ColorValidator, self).__init__(
plotly_name=plotly_name,
parent_na... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
b1e8dff10bd7f06b4f82282a4a65779bd9215537 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/hamming/ccca6c36f7464721986b3e6214962018.py | 73c19fda905d9bdfc0b57e3963e8c92516bc8d4d | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 239 | py | def distance(strand1, strand2):
if len(strand1) != len(strand2):
raise Exception('length mismatch', len(strand1), len(strand2))
hd = 0
for i in xrange(len(strand1)):
if strand1[i] != strand2[i]:
hd += 1
return hd
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
66f4ca605b876deb7eac52d014d5a6b74acf04b6 | 6da1a1ca56acf3d45c3f96939fc4d299c0c571f1 | /dependencies/punica/cli/tool_cmd.py | e9bee5ce703b616c97a05599d7d25512dd357ca4 | [] | no_license | OnyxPayDev/SmartContractDemo | 87b510c85abba35dd564e747426274d8028e956c | 907aee784367bb339bb8a081f074bef5f4815d12 | refs/heads/master | 2020-08-15T12:05:58.858948 | 2019-10-15T19:02:58 | 2019-10-15T19:02:58 | 215,338,981 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,692 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import click
from punica.tool.tool import Tool
from .main import main
@main.group('tool', invoke_without_command=True)
@click.pass_context
def tool_cmd(ctx):
"""
Data format conversion tool
"""
if ctx.invoked_subcommand is None:
... | [
"5020980+DancingAxolotl@users.noreply.github.com"
] | 5020980+DancingAxolotl@users.noreply.github.com |
0ddbf86f3bedb7bcc299a23d41f190b92dc242af | bc2c2d63ac18dfa6b5171ff97ad6b88f647dc282 | /mininet/wifi/util.py | 00b9511e070c1f3f235e10d02d277a5b7d286e1e | [
"LicenseRef-scancode-x11-stanford"
] | permissive | MatthiasEckhart/mininet-wifi | ca8cadccb62db7ce6221ab0dcf4af7a79a93e74e | 95392e59f82e1380730b0b3f4e375a04839316ce | refs/heads/master | 2020-03-16T00:52:39.895729 | 2018-05-11T09:17:26 | 2018-05-11T09:17:26 | 132,427,457 | 1 | 2 | null | 2018-05-07T08:03:36 | 2018-05-07T08:03:36 | null | UTF-8 | Python | false | false | 1,014 | py | "Utility functions for Mininet-WiFi"
from mininet.util import retry
def moveIntfNoRetry(intf, dstNode, printError=False):
"""Move interface to node, without retrying.
intf: string, interface
dstNode: destination Node
printError: if true, print error"""
from mininet.wifi.node import Stat... | [
"ramonreisfontes@gmail.com"
] | ramonreisfontes@gmail.com |
7bacefcd596348b1f5cbe3fa92de6644588f16e7 | a1f1e51fd8c75775f6f28f578e0510cd5acefdd2 | /messaging/migrations/0012_auto_20200916_0702.py | 5161b2ade8cd722c03986ad1450215265f815b0b | [] | no_license | shantanu-tomar/teamit | 31740563bb5a10c2f32644d07c9fe9789fc10bd3 | 17fec26466485b8795c8e5a981d1a00ce0ced6af | refs/heads/master | 2022-12-21T07:12:49.485986 | 2020-09-28T12:04:18 | 2020-09-28T12:04:18 | 296,505,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | # Generated by Django 3.0.8 on 2020-09-16 07:02
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('messaging', '0011_auto_2... | [
"shantanu.tomar94@gmail.com"
] | shantanu.tomar94@gmail.com |
094fb1998b4fb1a04b1860e17d4d7bcda5a15b28 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_0848+249/sdB_PG_0848+249_lc.py | 3419530c1b53949ad19342e48dd7c6716eb727b3 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[132.907667,24.697419], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_PG_0848+249 /sdB_PG_0848+249_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
80ca757742ecfdb8fa368be024eac91a254813d2 | 023ef60f3ab5e97f436def9cbb5b62472223796e | /todo/models.py | 1f691bb9e485cb0eb221f45447315a6c9a871770 | [] | no_license | Sahouaneyassine/ToDo | 4cf4a537d47e25c8c6c7b5a7aaf3cf7ce732c587 | e657f9f2c5a28186b68130d0fb42a5a97b7f227d | refs/heads/main | 2023-02-17T11:52:29.313699 | 2021-01-06T23:44:08 | 2021-01-06T23:44:08 | 327,454,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Todo(models.Model):
title=models.CharField(max_length=100)
memo=models.TextField(blank=True)
created=models.DateTimeField(auto_now_add=True)
datecompleted=models.DateTimeField(null=True,blank=True... | [
"sahouaneyassine1999@gmail.com"
] | sahouaneyassine1999@gmail.com |
4880c6673cf71e0c7ee5ecb34afce54a4736b043 | 48156b85839d832ecfe8fdf0a0e17b5ebf8b9460 | /75.findPeak.py | 1672766c60cae18647eadcca3b6c3ce2ede0c597 | [] | no_license | Aissen-Li/lintcode | 7dc2564fcec20667f073d9219fe049808c5de625 | 4d2a717956a75197ce1dfa1094cdd5ab3a1d2004 | refs/heads/master | 2020-11-28T16:43:21.760691 | 2020-01-14T15:08:45 | 2020-01-14T15:08:45 | 229,871,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | class Solution:
"""
@param A: An integers array.
@return: return any of peek positions.
"""
def findPeak(self, A):
if A[1] > A[2]:
return 1
if A[len(A) - 2] > A[len(A) - 3]:
return len(A) - 2
start, end = 0, len(A) - 1
while start + 1 < end:
... | [
"aissen_f@163.com"
] | aissen_f@163.com |
085e7bbd3a6c1d51945a3a15cfab6d8854d292a9 | 3a8edf3c09ff69dc654a6a3a3af2c6f5058ab3e7 | /C4_BT13.3.py | a7aaa33f23a82f4289c2444803ee29223626c362 | [] | no_license | Huynhngocthanh/shinzerorin | f05375966ebe86b314e260d1c2e3dd986d0fc234 | 5cb0baf715ba48331d3abeeb28f29c784a475440 | refs/heads/main | 2023-04-17T22:18:04.552717 | 2021-04-26T04:17:00 | 2021-04-26T04:17:00 | 314,985,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | import os,random
import string
t = input('Nhập tên thư mục: ') #Em muốn tạo thư mục trực tiếp trên python
path = 'C:\\Users\\MyPC\\Documents\\'
os.chdir(path)
os.mkdir(t)
file_name = input("Nhập tên file dữ liệu: ") #Em muốn tạo tên file trực tiếp trên python
n = int(input("Nhập tổng số lượng file với dung lượ... | [
"noreply@github.com"
] | Huynhngocthanh.noreply@github.com |
81e8042a40de433fce29be36bc546150bd69ec66 | 87e60b0504be11c6997f1b20b72e9428cc128342 | /python/cowbells/data/tqplot.py | 5ca6659a29428f017baacabacc79523cfcbe6ff4 | [] | no_license | brettviren/cowbells | 70a85856fdfc54526c847f115d5dc01ec85ec215 | 1ceca86383f4f774d56c3f159658518242875bc6 | refs/heads/master | 2021-01-10T18:44:41.531525 | 2014-04-09T15:17:29 | 2014-04-09T15:17:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,644 | py | #!/usr/bin/env python
'''
Make some plots from the TQ tree.
'''
import ROOT
import math
def liberate(tobj):
ROOT.SetOwnership(tobj,0)
return tobj
def draw_stats(pad, h, fitnum =111):
h.Draw()
pad.Modified()
pad.Update()
stats = h.FindObject("stats")
if stats:
stats.SetOptStat(1110... | [
"bv@bnl.gov"
] | bv@bnl.gov |
32356ca667142349328e148f40149adb4f120c1a | 639494a7ac8fcd9f7cd00533669b1888cc626cd2 | /src/scripts/addDocument.py | c660da2de42009c234896cbc4889d1dfd83cb325 | [
"BSD-2-Clause"
] | permissive | kstaken/Syncato | 17fb859b1e0b7a8373b919f0e1a8d12b916881e3 | 860822e08b08b88b749961a1d61be902ce3b8ea3 | refs/heads/master | 2020-04-05T22:48:28.727982 | 2013-05-19T05:49:27 | 2013-05-19T05:49:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | #!/usr/bin/env python
#
# See the file LICENSE for redistribution information.
#
# Copyright (c) 2003 Kimbro Staken. All rights reserved.
#
# Adds a new document to the database
import libxml2
import sys
sys.path.append('lib')
import WeblogUtil
if (len(sys.argv) != 6):
print "Usage: addDocument.py host baseU... | [
"kstaken@kstaken.com"
] | kstaken@kstaken.com |
da20b663295dc181cdefdec4059f904a810546e2 | f86a8b55b6e983e694a453300b2b9a58806f73a0 | /src/embeddings.py | eeca4ddc3a4e7fd6719d4c030664cdcd1d780a17 | [
"MIT"
] | permissive | ArturPrzybysz/ReutersRNNClassifier | d56479fab4ef61d02a7705734007941c1a2e46a4 | fba90eccdb73832c4f8057ed43aa23e025f944d3 | refs/heads/master | 2020-05-07T10:22:44.572242 | 2019-04-15T12:13:58 | 2019-04-15T12:13:58 | 180,415,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | import csv
import numpy as np
import pandas as pd
from ReutersRNNClassifier.src.config import MAX_NUM_WORDS
def embeddings(glove_model_path: str):
words = pd.read_csv(glove_model_path, sep=" ", index_col=0, header=None, quoting=csv.QUOTE_NONE)
vocab_len = MAX_NUM_WORDS + 1
emb_dim = words.iloc[0].shape... | [
"prz.artur@gmail.com"
] | prz.artur@gmail.com |
eb93998c886f3467fdcd99b8c83ff8a9276b0aa1 | 74a1145f20945311d6223d92a5affac688a97622 | /Attraction/enums/DangerLevel.py | ffd0de398f91ddc10b8c89cba3e9e222469707f4 | [] | no_license | OrestSrasiv2001/Lab11 | 844073e91f7c351d50d9091d6f2c4ec2c53a8d21 | 78a68ab0f1b8a9361c4ac35be2c30d0abdc2b5b3 | refs/heads/master | 2020-06-01T03:00:46.705667 | 2019-06-06T16:03:27 | 2019-06-06T16:03:27 | 190,607,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from enum import Enum
class DangerLevel(Enum):
LOW = 0
MIDDLE = 1,
HIGH = 2,
MAXIMUM = 3 | [
"stasiv.orest@gmail.com"
] | stasiv.orest@gmail.com |
94b494245f7b4c4498e64b18adc55b39bbe3f559 | 592e01558a8dafca01b143c2f063a196edc0ea77 | /05-django/02-required/Ninja_Gold_project/manage.py | 397915e9e628ee279674e531fcbb3be6d3e1c96d | [] | no_license | Python-November-2018/nshredz | 899ccb975cbb6779771f0e3555f82235a16556a6 | ad840b570546dc036eb135c5edb1a9de58e8b1f8 | refs/heads/master | 2020-04-03T22:34:31.629095 | 2018-12-18T21:01:58 | 2018-12-18T21:01:58 | 155,607,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Ninja_Gold_project.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensur... | [
"44245934+nick77-s@users.noreply.github.com"
] | 44245934+nick77-s@users.noreply.github.com |
6bbd854d7aa3af2c54a8a772e46e58e79118d2ad | 6857f021aebab3e5be9b6bb2b917026034739465 | /EasyLogistics/settings/base.py | 2a053944d4bff7b58b7a5b273fefb97cedeeb81b | [] | no_license | gauravgs06/EasyLogistics | 4e798c5878e96fce833caceaba0b9f1d9e965de4 | 509734971f11f2a222c4230ee61ae7fba3efdb6a | refs/heads/master | 2022-02-02T10:54:26.480448 | 2019-07-21T09:01:34 | 2019-07-21T09:01:34 | 167,551,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,006 | py | """
Django settings for EasyLogistics project.
Generated by 'django-admin startproject' using Django 2.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import... | [
"gauravsharmags06@gmail.com"
] | gauravsharmags06@gmail.com |
cd7a6e39bddcd867989015fc0c40cc09c18bc796 | d86e9d59784097a7262fa9337585a36bd58a6d29 | /cvxbenchmarks/lib/data/epsilon/epopt/problems/hinge_l2.py | 41b8b42fd08be15cf32527c0526e7dc334f6548e | [] | no_license | nishi951/cvxbenchmarks | 2ae36e75c42c8bd35fafac98bad5d9d88168bd68 | 932141d8e4e929860011bf25c41e941e2f8fbd76 | refs/heads/master | 2021-01-11T07:23:32.260811 | 2018-09-15T22:23:14 | 2018-09-15T22:23:14 | 62,177,196 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | """Standard SVM, i.e.. hinge loss w/ l2 regularization."""
from epopt.problems import problem_util
import cvxpy as cp
import epopt as ep
import numpy as np
import scipy.sparse as sp
def create(**kwargs):
A, b = problem_util.create_classification(**kwargs)
lam = 1
x = cp.Variable(A.shape[1])
f = ep.hi... | [
"nishimuramarky@yahoo.com"
] | nishimuramarky@yahoo.com |
87a1365fd6a9f6ccca02348485d3a70abebd022f | 34a26b713021f15d94d416b9728bac50d283ed5f | /interno_pymedigital-9.0/sale_order_invoice_amount/models/sale_order.py | 7dc71e3de0680f62a283f98ad86d6675e8ad4e35 | [] | no_license | Brahim820/odoo-1 | 7641b2a0ef411fb3b82f806a11e88b9880875a46 | d8ee18a7dc467ff250113a0a3df3fcf1e876b321 | refs/heads/master | 2020-04-07T10:58:09.517097 | 2018-11-19T16:56:45 | 2018-11-19T16:56:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,690 | py | # -*- encoding: utf-8 -*-
from openerp import api, fields, models, _
from openerp.tools import float_is_zero
from openerp.exceptions import UserError
class SaleOrder(models.Model):
_inherit = 'sale.order'
@api.multi
def action_invoice_create_from_amount(self, grouped=False, amount=0):
if amount ==... | [
"ceduardodch@gmail.com"
] | ceduardodch@gmail.com |
d6412d262b12115aff9e4f9c44ad0910e0fa69e8 | b6d1a5740a4931c216a9f4e4a602e2c817c7270b | /72.py | 5f8e11e8fa55efaf8ef4dc6f7d466824400db848 | [] | no_license | Kavinkumaran/pri-codekata | 9645087019d4b972770d41af47f2fcf235b79464 | 1ffc2b228ed6b15829f4c28bba8aee0ecab53fa9 | refs/heads/master | 2020-06-19T04:33:34.604445 | 2019-07-10T18:43:16 | 2019-07-10T18:43:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | s=input()
p=set(s)
if(p=={"1","0"}):
print("yes")
else:
print("no") | [
"noreply@github.com"
] | Kavinkumaran.noreply@github.com |
f412ca0a2c5181ff18128b3529882d3a0380882b | 8fe1c908807f53fa489a9fae0afcec79b24e9aeb | /run.py | a3397d3e7b3c7c4b9dd45a0a4c21ce0a196e280e | [] | no_license | satwik77/Simple_LoginApp | 2fe8973e86b128b3a4b71149606149389416c6b4 | af8c4a08ef909985127fb6267a8701bbeb7ae288 | refs/heads/master | 2021-01-10T04:04:01.857690 | 2016-04-14T14:51:13 | 2016-04-14T14:51:13 | 55,737,211 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | #!flask/bin/python
from login_app import login_app
login_app.run(debug=True)
| [
"satwik55@gmail.com"
] | satwik55@gmail.com |
8dfbfec39bab4550e6585a3ead46beabf5f8759b | 70543b9ba43e3026b10d2e5b85589c5f3adbfff5 | /recommendation_engine/content_retrieval_v4.py | 7249f90634668352da79545511716e17fd0fe13c | [] | no_license | gitw3ll/content_recommendation_engine | 2ceb4256b398f01e135509d2380a0fd7548ac29f | 8624beacf470ebd5ad96313430b34c426c2672d9 | refs/heads/master | 2023-03-01T13:46:23.135697 | 2021-01-03T16:25:04 | 2021-01-03T16:25:04 | 279,657,049 | 0 | 0 | null | 2020-10-31T21:54:41 | 2020-07-14T17:59:07 | Jupyter Notebook | UTF-8 | Python | false | false | 2,617 | py | import numpy as np
import sqlite3
import dask.dataframe as dd
from collections import deque
class ContentRetrieval:
def __init__(self):
self.event_type_strength = {
'VIEW': 1.0,
'LIKE': 2.0,
'BOOKMARK': 3.0,
'COMMENT CREATED': 4.0,
... | [
"noreply@github.com"
] | gitw3ll.noreply@github.com |
d5458814021de425558b79919347e857df1cc131 | b9da4c5de88d3f965b2d39f4174678e886d91c15 | /russian/posts_crawler.py | 51e935d248f124e4f5dd6a952d74bb01f4477abe | [
"MIT"
] | permissive | snail-fuji/troll2vec | b35e1aed88adf3e2e94f5feb5e875bb91cb79f47 | 3c77d52db56c2a4e9cab7249db7c906925f562ee | refs/heads/master | 2023-08-03T02:18:38.084553 | 2019-03-11T01:08:08 | 2019-03-11T01:08:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | import scrapy
import pdb
from tqdm import tqdm
PAGES = 1000
class PikabuSpider(scrapy.Spider):
name = 'pikabu'
start_urls = ['https://pikabu.ru/new?page={}'.format(i) for i in range(PAGES)]
def parse(self, response):
for post in response.css('.stories-feed__container > .story'):
yield {
'url'... | [
"belchikov1996@gmail.com"
] | belchikov1996@gmail.com |
efb56228f8ae67a595e421d815297f1e01d08b2f | 60381c941ec5394ec255d5873a2bf0d662a12b52 | /24.py | 56ba76acabe17fff6f161b10c7eb2213950ca281 | [] | no_license | lee000000/leetcodePractice | 16fc154111a0f5561da8e3a7e9c1442bd5124567 | 552e2673d8b3022f6a4e8df234332c9ed653779e | refs/heads/master | 2020-01-23T21:31:56.135550 | 2017-01-02T20:49:33 | 2017-01-02T20:49:33 | 74,700,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py | '''
24. Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space. You may not modify the values
in the list, only nodes itself can be changed.
'''
from ListNode im... | [
"licheng@utexas.edu"
] | licheng@utexas.edu |
24673abaadfc0876b37e11c910ea20939b0461a1 | e7823c85962f7b7b08339cbcf7aa05de422c0fe2 | /td/credentials.py | 05a309651f83069bd35e17910b624d0130bdcbe5 | [
"MIT"
] | permissive | Aftermath213/td-ameritrade-api | 1a8a4a63b98b2fef1543ef24b069de90f1ef9612 | e5132f13c883d9bd6d15f282662f548467b6ef55 | refs/heads/master | 2023-09-02T23:44:40.935626 | 2021-10-31T18:59:17 | 2021-10-31T18:59:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,506 | py | import json
import urllib
import pathlib
import webbrowser
from typing import Union
from datetime import datetime
from urllib.parse import parse_qs
from urllib.parse import urlparse
import requests
class TdCredentials():
"""
### Overview
----
TD Ameritrade uses an oAuth protocol
to authenticate... | [
"alexreed1192@gmail.com"
] | alexreed1192@gmail.com |
0aa840636aa5d3f237b7344f2e83e0a8f9147d66 | 3c279bde31a5fde7599d529cead82662e4173462 | /finndex/util/dateutil.py | 6ca4d066237bd564f138980075af0e510e4e1d51 | [
"MIT"
] | permissive | FinnitoProductions/finndex | 77eea27cdeaf85076d5b1baf13526e8409e002b8 | 777c985ae7ec082284c27dc5e928bdd998bcc962 | refs/heads/master | 2022-03-03T20:02:03.660374 | 2020-12-14T19:24:51 | 2020-12-14T19:24:51 | 194,348,404 | 0 | 1 | MIT | 2022-01-21T19:57:44 | 2019-06-29T00:43:26 | Jupyter Notebook | UTF-8 | Python | false | false | 1,119 | py | '''
Contains utility functions providing an extension to Python's datetime.
'''
import datetime
import pytz
__author__ = "Finn Frankis"
__copyright__ = "Copyright 2019, Crypticko"
DESIRED_DATE_FORMAT = "%Y-%m-%d"
DESIRED_TIME_ZONE = pytz.timezone("US/Pacific")
'''
Converts a timestamp (represented as a string) in ... | [
"finn@teachmy.com"
] | finn@teachmy.com |
d76399a2a5ee7d97c620a67a442b0bc91905f22e | 9a88d758e94da3c24e81157bb1aa9862e9346b03 | /urls.py | f34132f34626b6046e654b70b9e1a3122aff7706 | [] | no_license | Gokulk123/E-Learning | adc04efbd64d2a12ca0b3a68f616e36a78a0b619 | 2a8193fd9bbfdc70f971d9bda10585a4bff3fd19 | refs/heads/master | 2022-09-12T18:19:10.450464 | 2020-05-29T08:28:56 | 2020-05-29T08:28:56 | 267,805,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,282 | py | """djangoproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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... | [
"gokulkrishnanml@gmail.com"
] | gokulkrishnanml@gmail.com |
6436176ee36f61be4e18fceb8292042e2a8cd3bd | ccbb7fb8fda4d936e765263f05a435058b397bd9 | /src/guiltytargets/ppi_network_annotation/model/__init__.py | ab512ca4a78d001836dbb692256bd93d16deee04 | [
"MIT"
] | permissive | GuiltyTargets/guiltytargets | 5a5d3ba9e45867a64c81a91529ae6689f8be447f | c20a5cae6c9cc71c2ca73080a862abe986bc34c0 | refs/heads/master | 2022-02-13T03:30:49.705239 | 2021-12-22T12:51:20 | 2021-12-22T12:51:20 | 154,318,881 | 10 | 5 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | # -*- coding: utf-8 -*-
"""Package that includes classes for data models."""
from .attribute_network import AttributeNetwork # noqa: F401
from .filtered_network import FilteredNetwork # noqa: F401
from .gene import Gene # noqa: F401
from .labeled_network import LabeledNetwork # noqa: F401
from .network import Net... | [
"cthoyt@gmail.com"
] | cthoyt@gmail.com |
34ea6aa1267f976a48d3711fbeae24feee76691c | a74cabbe1b11fc8ef575ea86f2543cd95db78ec9 | /python_program/q1769_Minimum_Number_of_Operations_to_Move_All_Balls_to_Each_Box.py | f0c1cbca670d01a831baba6505718f6aabeab348 | [] | no_license | tszandy/leetcode | 87e3ccf291b2879637d2d8238935a455b401a78a | f1f4361541dcffbb291285663c8820d7ffb37d2f | refs/heads/master | 2023-04-06T15:34:04.847875 | 2023-03-26T12:22:42 | 2023-03-26T12:22:42 | 204,069,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,932 | py | from typing import List
from collections import Counter,defaultdict
from math import *
from functools import reduce
import numpy as np
from heapq import *
class Solution:
def minOperations(self, boxes: str) -> List[int]:
num1sAhead = 0
num1sBehind = 0
initialDiff = 0
res = []
... | [
"444980834@qq.com"
] | 444980834@qq.com |
f320a663594ea9a837f11ecad07ff612adf1e65b | c9b33b67e3b5b562f696502d7a8c72afc07e7392 | /tests/test_client.py | ad8aaf2b5c319bf3be2233a12da4d42ff046d0dd | [
"MIT"
] | permissive | GinnyGaga/20171202flasky | 09abe186736da990881b6e1c548ea040a73dda82 | 298787c1f54b9ece8048fd359d56044716ffa345 | refs/heads/master | 2021-08-23T01:49:38.835610 | 2017-11-27T15:54:26 | 2017-11-27T15:54:26 | 112,824,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | import unittest
import re
from flask import url_for
from app import create_app,db
from app.models import User,Role
class FlaskClientTestCase(unittest.TestCase):
def setUp(self):
self.app = create_app('testing')
self.app_context = self.app.app_context()
self.app_context.push()
db.create_all()
Role.insert_rol... | [
"mo@example.com"
] | mo@example.com |
3f7145a11f4c1d019d782a5fae6848a3d4d3f507 | 1d892928c70ee9ddf66f2a37a8e083d2632c6e38 | /nova/api/openstack/compute/contrib/rescue.py | 7bf815a37979d0e68811a4baac694cc8f191f500 | [
"Apache-2.0"
] | permissive | usc-isi/essex-baremetal-support | 74196c3f1332ee3cdeba9c263faff0ac0567d3cf | a77daf8ef56cf41e38de36621eda25ed3f180156 | refs/heads/master | 2021-05-19T03:12:11.929550 | 2020-07-24T14:15:26 | 2020-07-24T14:15:26 | 4,702,421 | 0 | 1 | Apache-2.0 | 2020-07-24T14:15:27 | 2012-06-18T15:19:41 | null | UTF-8 | Python | false | false | 3,310 | py | # Copyright 2011 OpenStack, LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | [
"dkang@isi.edu"
] | dkang@isi.edu |
c4b7bae3a9e4612d8b544cb4149dab7657f8aa0c | 0a2e83d03cbe7633cce6e6fc1d6ce114f0d507a1 | /CourseSchedule.py | 90f452e1c0e3b72f0b297a16b0e4dbeff194fc49 | [] | no_license | Pr0Vlad/Coding-Problems | 69fe8bddb2e44aa747791ebf4d9ec782ba54031c | a00f5464e06abdc39bce6304868776f7ae390d00 | refs/heads/master | 2022-11-24T07:29:52.816561 | 2020-07-27T22:19:25 | 2020-07-27T22:19:25 | 269,507,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,523 | py | #eachcourse has pre reqs and need to figure out how to take them
#we can store all the data as a graph and the edges go to the next class
#if there is a cycle you cant make the schedule because if a pre req for class 1 is class 2 and other way around that will have a cycle
#first option is to use dfs for checking a ... | [
"noreply@github.com"
] | Pr0Vlad.noreply@github.com |
c7a1755f0e7fbc0d4edee7b813130bfb252193cf | 2acf64fca88200f4a4ada46f5da4f96702bafa06 | /stubs/facebook_business/adobjects/hotelroom.pyi | 0c74f95680b203626a30e5473345113f0c61cb3b | [] | no_license | vlab-research/adopt | bf6cdbfb751f7d85674e3925b207639e7d9d92c4 | 66347b00996e26910290e4fdb883e4231cc614af | refs/heads/master | 2023-04-12T12:16:23.061861 | 2021-05-18T14:17:01 | 2021-05-18T14:17:01 | 278,025,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,736 | pyi | from facebook_business.adobjects.abstractcrudobject import AbstractCrudObject as AbstractCrudObject
from facebook_business.adobjects.abstractobject import AbstractObject as AbstractObject
from facebook_business.adobjects.objectparser import ObjectParser as ObjectParser
from facebook_business.api import FacebookRequest ... | [
"nandanmarkrao@gmail.com"
] | nandanmarkrao@gmail.com |
c9e9c0a25d752fb2e2355dea5265a18f0927289f | 444e82743a5fbfdadbab3b9725d4e790ef015e0b | /ABSSetup.py | fdb4bdc297217230bd988ccce8f960aa87071dfb | [] | no_license | Mamietti/ABS | 31c471b664f88eebee6e96a66ebd3cf827b2fd58 | 747ea6c38536aa85aba9d326bf0ef9648b5bad81 | refs/heads/master | 2021-01-15T13:36:24.567754 | 2018-03-14T16:25:08 | 2018-03-14T16:25:08 | 99,679,965 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | '''
This is the list of default addons which we consider the absolute basics
'''
default_addons_list = [
'English (South African) Language Pack',
'English (GB) Language Pack',
'Application Update Service Helper',
'Pocket',
'Web Compat',
'Site Deployment Checker',
'Default',
'Ubuntu Modifications',
'Multi-process staged... | [
"mauri.miettinen13@gmail.com"
] | mauri.miettinen13@gmail.com |
f3c4b37ede8d850a373064ba90b5ab31a2185e64 | 80522f7edca55f7d85c0e0578f484b4af765b042 | /Session4/Exercises/starter/Question1.py | 7f77f97e7e91eb3b4951219aac6aefbd3e8c7d9e | [] | no_license | georgiedignan/she_codes_python | 607f7aa2c0903ac77e56336b63350afc561b185a | 99a6c07eac74dff2a1b210f3c9664f2f88c1469b | refs/heads/main | 2023-07-07T09:22:42.045543 | 2021-08-08T09:06:18 | 2021-08-08T09:06:18 | 383,382,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | import csv
# with open("colours_20_simple.csv",mode="r") as csv_file:
# csv_reader = csv.reader(csv_file)
# #print(csv_reader)
# headers = next(csv_reader)
# for line in headers:
# print(f"{line[0]} {line[1]} {line[2]}")
with open("colours_20_simple.csv",mode="r") as csv_file:
csv_reader... | [
"georgiedignan@gmail.com"
] | georgiedignan@gmail.com |
ba1e83684db87779aa34544d18e4959accdff376 | aec66866bfb377d66b9f85883b79c1d5070a96a8 | /mysite/blog/models.py | 1e0b3b36c5263bb91e0a41894147d43c77db649a | [] | no_license | royrob21/my-first-blog | 07432a7c3ecee4381a5ed987be34ef7ce971f622 | d50d7208928c7e1b45e2c7c5fb9a527fdf6b00a9 | refs/heads/master | 2023-06-30T15:27:18.289703 | 2021-08-02T07:46:00 | 2021-08-02T07:46:00 | 391,602,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | from django.conf import settings
from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateT... | [
"roberto.roba@virgilio.it"
] | roberto.roba@virgilio.it |
1bda6fd6e7271cebb0d5a3ec0f810bf5ba116d12 | 386d1b6557f4cbaf20794cd222f3b7b8598ef6a6 | /data/clean_data/A1/18.py | 165e341e4a20acdb7adcf06e11bc7e769b947482 | [] | no_license | woowei0102/code2pro | 3baf86985f911264362963c503f12d20bdc1f89f | 0b16c62a1cb9053ab59edd7a52e1b3b39fdf66dc | refs/heads/main | 2023-06-28T23:09:23.998798 | 2021-07-13T11:49:27 | 2021-07-13T11:49:27 | 385,585,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | class Account:
def __init__(self, name):
self.name = name
self._balance = 0
def deposit(self, amount):
self._balance = self._balance + amount
print('{}存了NT${:,.0f}元.'.format(self.name,self._balance))
def withdraw(self, amount):
if amount < self._balance:
se... | [
"54971984+woowei0102@users.noreply.github.com"
] | 54971984+woowei0102@users.noreply.github.com |
ba164fd970f555f659c1acf2f986cfdf267ee658 | 4a66b8cd4e2fdeead33665303ab4d7f961402995 | /models/layers/layer_normalization.py | 4f89aae97ce336ef4d29f165b2dc748ec96d9591 | [] | no_license | SJ-moon/Transformer | e5e1f45f08f42e512dd471ddddaf97b2afa0f45c | be6f3b48a734dfc13b9e55a300eb1f8887ec96d3 | refs/heads/master | 2023-08-15T02:23:34.556503 | 2021-09-14T15:04:37 | 2021-09-14T15:04:37 | 406,413,884 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | import torch
from torch import nn as nn
class LayerNorm(nn.Module):
def __init__(self, d_model, eps=1e-12):
super(LayerNorm,self).__init__()
self.gamma = nn.Parameter(torch.ones(d_model)) ## Parameter 와 nn.tensor의 차이점: parameter는 paramter()로 검색이 가능
self.beta = nn.Parameter(torch.ze... | [
"seungjunee@DESKTOP-NBNJANH.localdomain"
] | seungjunee@DESKTOP-NBNJANH.localdomain |
d6de7da64fe8278c4dcc7e25bc1fdf741e82efa8 | d7e9bf5d59343f9ea1670fc529e1afa8fdcbf337 | /Section-04/create_tables.py | 2cd9ed6868b3e5aafebbbf768358599456b3f6fa | [] | no_license | tyday/solid-guacamole | 2610985f3156d44144cf40dd65b040898fb8c159 | f1a1544ae831c18c2acf558afdf8a1d4c9991152 | refs/heads/master | 2020-05-05T09:01:56.946260 | 2019-04-14T17:49:13 | 2019-04-14T17:50:21 | 179,888,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | import sqlite3
connection = sqlite3.connect('data.db')
cursor = connection.cursor()
create_table = "CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY, username text, password text)"
cursor.execute(create_table)
create_table = "CREATE TABLE IF NOT EXISTS items (name text, price real)"
cursor.execute(create_tab... | [
"tyrday@gmail.com"
] | tyrday@gmail.com |
02eff9f9d7f73775338d09a8547e254b76580d7d | d04b04735026e8ec27a9210a42c0ffdafa7a75a7 | /venv/bin/flask | c8e56c713c9df5382b3040c2afa5fd1d77a9c0e1 | [] | no_license | iamaayush98/ChatterBotAPI | 4732cdf8e78c1c0d12f4fa8695db0e28ff1f4c61 | f43ae130e65d3458c3121b4a5b52f9de2f356c93 | refs/heads/master | 2020-08-26T17:00:28.647918 | 2019-10-23T19:12:12 | 2019-10-23T19:12:12 | 217,080,609 | 0 | 0 | null | 2019-10-23T19:12:13 | 2019-10-23T14:40:17 | null | UTF-8 | Python | false | false | 260 | #!/home/fake_batman_/PycharmProjects/ChatterBotAPI/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"harshitmah98@gmail.com"
] | harshitmah98@gmail.com | |
ec8bf2a34021126680723c6e854594b55fffde82 | c085f61a0f9da8ccd2f56ab9142799a4dcfd1052 | /bindings/pydeck/examples/path_layer.py | 161fb47737afa6902c05f29604126911794705cb | [
"MIT",
"Apache-2.0"
] | permissive | visgl/deck.gl | 148ec752c02cf6d0a35d7e11dbb44b5e341553c2 | 1c4f9a99596b3f913426f7d5df3d7e831b4e99c0 | refs/heads/master | 2023-09-01T00:08:12.457341 | 2023-08-29T22:19:23 | 2023-08-29T22:19:23 | 48,030,204 | 3,929 | 1,012 | MIT | 2023-09-14T17:42:01 | 2015-12-15T08:38:29 | TypeScript | UTF-8 | Python | false | false | 773 | py | """
PathLayer
=========
Locations of the Bay Area Rapid Transit lines.
"""
import pandas as pd
import pydeck as pdk
DATA_URL = "https://raw.githubusercontent.com/visgl/deck.gl-data/master/website/bart-lines.json"
df = pd.read_json(DATA_URL)
def hex_to_rgb(h):
h = h.lstrip("#")
return tuple(int(h[i : i + 2]... | [
"noreply@github.com"
] | visgl.noreply@github.com |
448948bbf93501104da3edaacec3e43f8968c928 | 657ab1c997e11c43801960a21368e7167d1df344 | /SHOP/apps.py | 2b17bc9c8d7930b0a52eec1f06c3a850df8655f5 | [
"MIT"
] | permissive | EmilioMartinez22/Tienda-Django | e2916c9bd0f9d87fa904d172e24f6f695f900352 | 7a6dce1a178b019593b6892990866c520e5695a4 | refs/heads/main | 2023-06-16T08:50:57.432115 | 2021-07-06T16:13:30 | 2021-07-06T16:13:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | from django.apps import AppConfig
class ShopConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'SHOP'
| [
"83561976+Kevin-Busy@users.noreply.github.com"
] | 83561976+Kevin-Busy@users.noreply.github.com |
6a377949935a75af9eaadc89fad29c3b315a1549 | 824b582c2e0236e987a29b233308917fbdfc57a7 | /sdk/python/pulumi_google_native/managedidentities/v1beta1/get_domain_iam_policy.py | fb18cbda25e88bff30ce2de666aa2916274a7222 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | 24601/pulumi-google-native | ce8faf8455609a9572a8cbe0638c66427bf0ae7f | b219a14201c6c58eaa10caaeacbdaab528931adf | refs/heads/master | 2023-08-23T05:48:31.819709 | 2021-10-08T18:50:44 | 2021-10-08T18:50:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,609 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | 24601.noreply@github.com |
4d16cd37adbbc640904a7479f501b5411125f4d6 | 4afc520ad2173499b7a83d0d9deb34593823b163 | /check_postgres.py | 173ea598fa94ceea3965c3881523c46c1e0ea36d | [] | no_license | goncalomatos-ic/vector-api | a1caf6c76d0a17f18b94a69af0dd688ad31bc924 | cc26155c6fff1e740799ea6deaf20cbf6e771239 | refs/heads/master | 2023-01-10T05:57:55.005675 | 2020-10-30T14:25:34 | 2020-10-30T14:25:34 | 307,221,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | import time
# Wait for postgres to be up and running
#
# Improvement: try to connect to postgres
#
# Note: pinging the container is not enough because
# it doesn't ensure that postgres is running
time.sleep(10) | [
"goncalo.matos@indiecampers.com"
] | goncalo.matos@indiecampers.com |
d1bbb2ee724567016d3a3f4f29ed535e7a845f16 | 778ca26a77a2796d3f69f88d792cb92bd066d064 | /module_2/4_with_class/movie.py | 3e5b1c19e6af146ffb1406109d5a932bbf9f0963 | [
"MIT"
] | permissive | esterfogaca/acelera-dev-loadsmart-women | 20f2c6e1b003964d050e6d1e623b977ca47f1859 | 71aac82f3fe2667ee5acda1619ddf9c82b18319d | refs/heads/master | 2020-04-30T14:30:15.810234 | 2019-03-12T09:57:10 | 2019-03-15T01:25:47 | 176,892,528 | 0 | 0 | MIT | 2019-03-21T07:30:02 | 2019-03-21T07:30:01 | null | UTF-8 | Python | false | false | 831 | py | import time
import webbrowser
class Movie:
def __init__(self, title, stars, director, trailer_url, votes):
self.title = title
self.stars = stars
self.director = director
self.trailer_url = trailer_url
self.votes = votes
def print_specifications(self):
print('\n... | [
"cmaiacd@gmail.com"
] | cmaiacd@gmail.com |
caa8266f63e9454a80ff08be34a5a07f072d0f01 | 98a359465e6e0620accede5b87b819aed663179d | /schol_library/migrations/0059_auto_20190922_1729.py | f4818e0050c290afbb640c3b9136a5ea6ce4a2ed | [] | no_license | mustavfaa/back-end | 88f8674bd6c2f8d0c4984a2a3d34f2aece3ec8d1 | 6635e8f504c7a7ba9709121b4dd8d5ccecdf05ca | refs/heads/main | 2023-08-15T10:48:03.461138 | 2021-09-27T15:26:03 | 2021-09-27T15:26:03 | 410,938,832 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | # Generated by Django 2.2 on 2019-09-22 11:29
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('schol_library', '0058_auto_20190922_1144'),
]
operations = [
migrations.AddField(
model_name='requestedition',
... | [
"72229762+mustavfaa@users.noreply.github.com"
] | 72229762+mustavfaa@users.noreply.github.com |
51acb83d0318a202b1d0631ef8efa17b80816cf3 | 39a9281201d1fc2c5dfe01beb1d2c64805df1e61 | /PYTHON-MUNDO 2/CONVERSAO_TO_BIN_HEX_OCT.py | 0bc47e0d5afef427b494e82e1638bcc08e86010c | [] | no_license | patrickmalg/aulas-python | 1b456efb1c4fcf039ec4cfca530c67aacf2b4587 | ee4b0ec01f270c3b3a318eb13b20e67e9fa1440f | refs/heads/master | 2020-04-23T02:59:49.879284 | 2019-05-09T18:36:11 | 2019-05-09T18:36:11 | 170,863,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | num = int(input("Digite um número inteiro: "))
print("""Escolha uma das bases para conversão:
[1] BINÁRIO
[2] OCTAL
[3] HEXADECIMAL""")
opçao = int(input("Opção: "))
if opçao == 1:
print("{} convertido para BINÁRIO é igual a {}".format(num, bin(num)[2:]))
elif opçao == 2:
print("{} convertido para OCTAL é igual... | [
"patrickmoreira2001@hotmail.com"
] | patrickmoreira2001@hotmail.com |
56ebc3cd0c2af8321e6569378d04115e236581c5 | 2d8519f34fff220e854ec625bed06443d5f50d2f | /book/settings.py | f397a597814e7d94492210c656896dfafa1eb756 | [] | no_license | oneway-fullstack/book-management | a40a9fc5debe54d3c5304334568fa0b47e5b167e | 4985ae067bc873b2ca113b2d8978e8a17083a945 | refs/heads/main | 2023-04-14T05:22:20.110122 | 2021-04-21T12:02:10 | 2021-04-21T12:02:10 | 360,101,616 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,393 | py | """
Django settings for book project.
Generated by 'django-admin startproject' using Django 3.2.
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/
"""
import os
from cor... | [
"guang.jin@chatterize.com"
] | guang.jin@chatterize.com |
3c801ed688a7770f9e2393cb09ac8a8de8a49b2a | 0c83baa22afa84347cc319e0cab214ff779e3254 | /01_fyyur/starter_code/app.py | 8777009175793e3adf6fc9d0e2bd6243990dc656 | [] | no_license | rahulaVT/FullStackNanoDegree | 52c8380bf6e6f050955f1bc1e3797bfc6ffba132 | 2b7b6042f8c804637efcba85554abd6518b96eed | refs/heads/master | 2022-07-02T19:23:46.698131 | 2020-05-18T01:26:43 | 2020-05-18T01:26:43 | 261,893,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,936 | py | #----------------------------------------------------------------------------#
# Imports
#----------------------------------------------------------------------------#
import json
import dateutil.parser
import babel
from flask import Flask, render_template, request, Response, flash, redirect, url_for, jsonify
from fla... | [
"rahula@vt.edu"
] | rahula@vt.edu |
eb129243a035487b54c5721c6288ed1cc40cdb22 | 96a34a048c783a75736bf0ec775df22142f9ee53 | /packages/models-library/src/models_library/services_access.py | 9e121fad95a0a38e9c550ccca50cfff86227dfc2 | [
"MIT"
] | permissive | ITISFoundation/osparc-simcore | 77e5b9f7eb549c907f6ba2abb14862154cc7bb66 | f4c57ffc7b494ac06a2692cb5539d3acfd3d1d63 | refs/heads/master | 2023-08-31T17:39:48.466163 | 2023-08-31T15:03:56 | 2023-08-31T15:03:56 | 118,596,920 | 39 | 29 | MIT | 2023-09-14T20:23:09 | 2018-01-23T10:48:05 | Python | UTF-8 | Python | false | false | 666 | py | """Service access rights models
"""
from pydantic import BaseModel, Field
from pydantic.types import PositiveInt
GroupId = PositiveInt
class ServiceGroupAccessRights(BaseModel):
execute_access: bool = Field(
default=False,
description="defines whether the group can execute the service",
)
... | [
"noreply@github.com"
] | ITISFoundation.noreply@github.com |
aa4d37db1784f9b47b8a48004ec42075076b27bb | 65576a4a827f08d4c8d950b418c03f93a0ee5f04 | /python-program/lcs.py | 59457d90e6fe1e959bcd9e11ac1de6f78d479d0a | [] | no_license | ayuranjan/ARESNAL | ea5dff1e43a7d6ff53250091091e2a7921f9dab5 | db2664a3db01d681368de1ffa91e20c87b62eb53 | refs/heads/master | 2022-11-12T05:19:55.265418 | 2020-06-27T00:11:13 | 2020-06-27T00:11:13 | 138,479,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | # Dynamic Programming implementation of LCS problem
def lcs(X , Y):
# find the length of the strings
m = len(X)
n = len(Y)
# declaring the array for storing the dp values
L = [[None]*(n+1) for i in xrange(m+1)]
"""Following steps build L[m+1][n+1] in bottom up fashion
Note: L[i][j] contains length of ... | [
"ayushranjancr7@gmail.comgit config --global user.name Ayushgit config --global user.email ayushranjancr7@gmail.com"
] | ayushranjancr7@gmail.comgit config --global user.name Ayushgit config --global user.email ayushranjancr7@gmail.com |
425e6ebef4b89f2b0fc514000916eb5d1fa1d4c7 | e06802b9d35d0c1f9ed8046b512af8bfb4366232 | /algorithm_practices/ABC/ABC_20200301/A.py | 5debf79959a5247b30030c2fcc89dec30e333316 | [] | no_license | oyuchangit/Competitive_programming_exercises | e12ae437d1f86138f94e52d8c6d6f952d0c07539 | 4e8210b77dae0a889dd5a4c1fe3bb09727eb0466 | refs/heads/master | 2021-07-08T15:50:42.073220 | 2020-12-28T08:51:59 | 2020-12-28T08:51:59 | 220,625,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | N = int(input())
if N % 2 == 0:
print(N // 2)
else:
print(N //2 + 1) | [
"oyuwantto@gmail.com"
] | oyuwantto@gmail.com |
729f18e269f677d40622fcf61aebbc76d5b43238 | 63bbe2f37dc3f9dd11e31c5f0dbcaee362bf069f | /weixitest/media.py.bak | cf7082c78c5eee1883235b19742ab2ef67444fe3 | [] | no_license | yuxuefendou/weixin | a3809e86e066a5c14abf38c663834ccf2e4a43cb | 73ebd84c0d8b68214d89cf1a53597544e926b8fc | refs/heads/master | 2021-04-06T12:02:38.724598 | 2018-03-09T09:07:56 | 2018-03-09T09:07:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | bak | #!/usr/bin/env python
#-*- coding:utf-8 -*-
'''
Created on 14:03 2017/11/4
@author: acer
'''
from basic import Basic
import urllib2
import poster.encode
from poster.streaminghttp import register_openers
class Media(object):
def __init__(self):
register_openers()
#上传图片
def uplaod(self, accessToke... | [
"1131419557@qq.com"
] | 1131419557@qq.com |
5431703d1c4fa12874ad6fb9cb4a6c792be79bb7 | 0809ea2739d901b095d896e01baa9672f3138825 | /ORMproject1/testApp/migrations/0002_proxyemployee_proxyemployee2.py | 947459ac9771a7ef22b74ac0159c4d06da01f56a | [] | no_license | Gagangithub1988/djangoprojects | dd001f2184e78be2fb269dbfdc8e3be1dd71ce43 | ea236f0e4172fbf0f71a99aed05ed7c7b38018e2 | refs/heads/master | 2022-11-15T23:46:46.134247 | 2020-07-15T06:37:51 | 2020-07-15T06:37:51 | 273,479,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | # Generated by Django 3.0.5 on 2020-04-30 05:40
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('testApp', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='ProxyEmployee',
fields=[
],
... | [
"djangopython1988@gmail.com"
] | djangopython1988@gmail.com |
a3cbe14666f7b53f829f52bf78e3d94f8cbf88ac | 0e96b335079815d176e96cf6e903f899f3ade24f | /Ecommerce-site1/site1/store/migrations/0002_productmdl_image.py | 2d6bec9bbeb42170788f77cd4ff5042e3910a7ae | [] | no_license | sudarshannkarki/sda-project | ad2c0a1bed410754b078a53936ff8c11f9f4b26a | b2b17296269028149131ce273d098f575d8cf260 | refs/heads/master | 2022-12-18T14:46:19.429488 | 2020-09-29T11:31:50 | 2020-09-29T11:31:50 | 293,024,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # Generated by Django 3.0.7 on 2020-08-21 07:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='productmdl',
name='image',
fi... | [
"sudarshannkarki@gmail.com"
] | sudarshannkarki@gmail.com |
798728848c3880f0e9c27998ada62af9f5d61bd4 | 85ce509476109c756e26cc7f49298ab42d16ad9b | /openapi_client/models/overpayment.py | f4b2f95c29bf122789f2b3b01090b824d443cf23 | [] | no_license | 33N-Ltd/Xero-Python-SDK | 0ea3388fa94a1becc45a0bd3a7e0687ed64aeba7 | b31cbd34e68e5dce31394c7c57601c39997214ea | refs/heads/master | 2020-06-28T01:20:32.424682 | 2019-08-21T07:55:40 | 2019-08-21T07:55:40 | 200,104,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,682 | py | # coding: utf-8
"""
Accounting API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 2.0.0
Contact: api@xero.com
Generated by: https://openapi-generator.tech
"""
import pprint
import re ... | [
"michael@33n.co.uk"
] | michael@33n.co.uk |
20c69bda08acefab9be2eee8b98a21f97815c495 | 2596d930832260faf2514a35663744340ffecd29 | /functions/diagnose_name_gender_attraction_health.py | 9b709e39c12d8bb4e6c62ebddedeb31f134cb226 | [] | no_license | fuggla/fc-aqua-fish | 971580cc90deae4efa8c599beb732b6e0f10cc12 | 566198fe9a5257851118382233d3ad120ef5ceed | refs/heads/master | 2023-08-31T13:18:36.376163 | 2020-07-30T18:07:48 | 2020-07-30T18:07:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py |
import arcade
def diagnose_name_gender_attraction_health(fish_list, info_list):
# Funtions som skriver ut fiskarnas status
# Informationen ligger lagrad i "info_list"
if len(info_list) < len(fish_list):
list_length = len(info_list)
else:
list_length = len(fish_list)
for i in range... | [
"john_nordstrand@hotmail.com"
] | john_nordstrand@hotmail.com |
f3f75af6d875f307aaf0c5dd59ebde978c2efb5d | 19101bf9478c585f73540f1962494a0315ccd0a6 | /ax/models/tests/test_alebo_initializer.py | 8c37f09dce95a0e81f510189ed5551873bcd1268 | [
"MIT"
] | permissive | liusulin/Ax | 4ca1dcaa34f129d25faa2f52a8094b5f6e399eba | 850b6975b7c7f9960ad5461e71d0304b2670232a | refs/heads/main | 2023-07-14T01:02:38.044397 | 2021-08-18T15:34:06 | 2021-08-18T15:35:11 | 397,664,102 | 1 | 0 | MIT | 2021-08-18T16:16:10 | 2021-08-18T16:16:09 | null | UTF-8 | Python | false | false | 1,047 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import numpy as np
from ax.models.random.alebo_initializer import ALEBOInitializer
from ax.utils.common.testutils impor... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
66f2df3cf8c49c743f988bcbdddae4207bad389c | c0c8aeb5aaf08925d8c9e1d660b02c89cbc7ad71 | /Algorithms/Medium/105. Construct Binary Tree from Preorder and Inorder Traversal/answer.py | bec4709a6dc30054d5688961993bb42736c611cf | [
"Apache-2.0"
] | permissive | kenwoov/PlayLeetCode | b2fdc43d799c37683a9efdc31c4df159cf553bf5 | 4012a2f0a099a502df1e5df2e39faa75fe6463e8 | refs/heads/master | 2022-12-17T05:54:22.775972 | 2020-09-26T14:08:43 | 2020-09-26T14:08:43 | 214,839,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | from typing import List
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def buildTree(self, preorder: List[int], inorder: List[int]) -> TreeNode:
if not preorder:
return None
root = TreeNode(preorder[0... | [
"kenwoov@outlook.com"
] | kenwoov@outlook.com |
b9cdb9a5157fe7ff4a82a7e5b176f97a6af89eee | 8494c17343d8918f83236b239275bde50c1490bc | /production/test/spamrgb.py | 40f236efec605c1e795e374e5ddc68849ba9511f | [
"MIT"
] | permissive | Blinkinlabs/EightByEight | 87084d0287abb9a6a69341173e134cfb3367344e | 9df6381c33987d6e1bdc88115bfc41287b6bc875 | refs/heads/master | 2020-04-10T01:41:39.113292 | 2019-09-18T18:03:21 | 2019-09-18T18:03:21 | 61,876,895 | 20 | 8 | null | 2016-11-22T11:01:33 | 2016-06-24T10:25:22 | Eagle | UTF-8 | Python | false | false | 1,195 | py | #!/usr/bin/python
# Spam RGB test pattern over UDP
import socket
import fcntl
import struct
import time
UDP_PORT = 5453
colors = (
(255,0,0),
(0,255,0),
(0,0,255),
(255,255,255)
)
# from:
# https://www.quora.com/Which-Python-library-allows-us-to-specify-network-interface-to-connect-to-the-Internet
def get_ip_addres... | [
"matt@blinkinlabs.com"
] | matt@blinkinlabs.com |
8f24ccd8e70cbb75f418b0ad12133319c853e24c | ebb16386c12ad3286aabdf8d8cac452712a3b715 | /Lesson_1_Grishechkina/task_1.py | 90a4a3138fe81193f7a06e2b7c727a0928529eaa | [] | no_license | TatianaGrishechkina/python_DBPyQT | 77e9b8b4ca9945e415b36a31085bc95780000c51 | 73831af5cb58cf978744f80c01e35b7d1efd559b | refs/heads/master | 2023-04-14T20:10:02.402412 | 2021-04-20T06:34:30 | 2021-04-20T06:34:30 | 351,223,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,336 | py | """
1. Написать функцию host_ping(), в которой с помощью утилиты ping
будет проверяться доступность сетевых узлов.
Аргументом функции является список, в котором каждый сетевой узел
должен быть представлен именем хоста или ip-адресом.
В функции необходимо перебирать ip-адреса и проверять
их доступность с выводом соответ... | [
"tatiana.grishechkina@amdocs.com"
] | tatiana.grishechkina@amdocs.com |
9ad1b7332ec84c019061f954c4bed86e46639726 | 5ecb0648f4585afd7cf0871f0876106100c77931 | /selenium_wework_main/page/main.py | df0a9960224fb620f595d9426ccb31dfb7b310de | [] | no_license | anranshixing/aaa | d97156b231c9509e2188729825858f8003035987 | d7c27dee9314b7c5aa10abdc79cec2a1f294b005 | refs/heads/main | 2023-08-24T18:06:51.510122 | 2021-11-05T10:00:54 | 2021-11-05T10:00:54 | 405,020,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | import os
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium_wework_main.page.add_member import AddMember
class Main:
def __init__(self):
# options = Options()
# options.debugger_address = '127.0.0.1:9222... | [
"1553872085@qq.com"
] | 1553872085@qq.com |
ddb5cfc7fe57f3ccc7c6a72f40c8474f83f8f56d | 1c3ba582bf434264d0c6643307345475845c7750 | /5.机器学习/src/CardNumberRecognition/CNN_number.py | 7382a92c0881fd95e6940535de9162e53ffd9db7 | [] | no_license | amaris0508/cultivate | 5b4daf9514db8e6d88a73adc6b700643982742f7 | 10d950060bf3d963bf3b5f5db6812592b838253c | refs/heads/master | 2023-02-10T08:14:35.199223 | 2021-01-07T09:57:51 | 2021-01-07T09:57:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,519 | py | from keras.models import Sequential
from keras.layers import Conv2D
from keras.layers import MaxPooling2D
from keras.layers import Dense
from keras.layers import Flatten
from keras.layers import Dropout
from keras.layers import BatchNormalization
filters = 32#滤镜个数
filter_size = 3#滤镜大小
pooling_size = 3
conv_layers = 2
... | [
"624310862@qq.com"
] | 624310862@qq.com |
4ea33e6f46050d5ded98f694ae406241e7ca7d0b | aa0f42f0fe81239e542c52550110baed2380bc96 | /apps/operation/migrations/0001_initial.py | b84004eda21defec456c3eee8a3bfc6f897920d2 | [] | no_license | ChenHangKeep/Django-Education | eda281be2dcbf5bdf566981e1a94ff5fa21b8f82 | 05f815ecc4132dbb28aaded89c9fde93c15928e2 | refs/heads/master | 2020-04-22T15:43:30.756173 | 2019-02-22T04:22:55 | 2019-02-22T04:22:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,529 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-11-19 19:16
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"596560557@qq.com"
] | 596560557@qq.com |
4fd186ecb8de7d13fb1a560a5b7063dd55cf34c3 | b0856a2d66cc4c71705b8c16c169848070294cf6 | /graphValidTree.py | c267910cc1708fcf239eee741ff3637ac2e1b0d5 | [] | no_license | jfriend08/LeetCode | 9e378ff015edc3102a4785b0832cf0eeb09f5fc2 | f76d3cf2e7fd91767f80bd60eed080a7bad06e62 | refs/heads/master | 2021-01-21T19:28:25.354537 | 2016-01-15T04:53:11 | 2016-01-15T04:53:11 | 28,518,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,012 | py | '''
Given n nodes labeled from 0 to n - 1 and a list of undirected edges (each edge is a
pair of nodes), write a function to check whether these edges make up a valid tree.
For example:
Given n = 5 and edges = [[0, 1], [0, 2], [0, 3], [1, 4]], return true.
Given n = 5 and edges = [[0, 1], [1, 2], [2, 3], [1, 3], [... | [
"ys486@cornell.edu"
] | ys486@cornell.edu |
fff07f478d6c87c76f671d1ea906c7fc262cc018 | 01f7cfcae361edd7f5f530fa8d8ce44d42021b84 | /Classification/Decision Tree Classification/Python/decision_tree_classification.py | 5100f69795467adbe6505e9e1062ed012e3257cb | [] | no_license | chh14025/ClassAssignments | dec4fb0b4a3f928b7e9f1d7aeee9d4200d086bb1 | 49bb54f0fc6ec097f248c9025b24c3a2b0e511ac | refs/heads/master | 2022-08-02T06:45:57.707092 | 2020-06-03T03:14:01 | 2020-06-03T03:14:01 | 268,873,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Apr 27 16:05:22 2020
@author: s.p.
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
dataset = pd.read_csv('Social_Network_Ads.csv')
x = dataset.iloc[:, 2:4].values
y = dataset.iloc[:, 4:].values
from skle... | [
"64234764+chh14025@users.noreply.github.com"
] | 64234764+chh14025@users.noreply.github.com |
d1676107aebbd8f6a8e915250251ab1170737d58 | 66a9c0e23af1fab7f3c0b2f0cd6b8c6ac060b1d7 | /models/image_segmentation/tensorflow/maskrcnn/inference/fp32/coco.py | b9813e3e51326ca1273d56c770bca83f18cab6b1 | [
"Apache-2.0"
] | permissive | hekaplex/resnet_dl | ea289864b330bfa74996444d0325f1a062feae59 | fc8d4dcc0adffbe22d01d333e6cf5db955f2f011 | refs/heads/master | 2023-04-15T06:03:18.696578 | 2021-05-05T14:18:13 | 2021-05-05T14:18:13 | 364,602,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,454 | py | #
# -*- coding: utf-8 -*-
#
# Copyright (c) 2019 Intel Corporation
#
# 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 requ... | [
"archaeus@hekaplex.com"
] | archaeus@hekaplex.com |
88231ca16773294f42e2cf6d51ba1b8dc86895a1 | 25b81256057c9a2de014ab511e04703dc617f050 | /etl/census/census_features.py | 19b6e85b6775b9ed6933def9b874cd9390f5bb66 | [
"MIT"
] | permissive | conorhenley/cincinnati | 7b9b2fc6d13e49ad5e95a557cd79b28bd17f0565 | 5ca86a8a31099365188969493e0dd369b4faefc0 | refs/heads/master | 2021-01-13T06:50:18.403686 | 2016-05-26T20:21:12 | 2016-05-26T20:21:12 | 64,249,902 | 1 | 0 | null | 2016-07-26T19:51:03 | 2016-07-26T19:51:03 | null | UTF-8 | Python | false | false | 7,805 | py |
# coding: utf-8
# In[1]:
from sqlalchemy import create_engine
import pandas as pd
from lib_cinci.config import main as config
user = config['db']['user']
password = config['db']['password']
host = config['db']['host']
database = config['db']['database']
engine = create_engine('postgresql://{user}:{password}@{ho... | [
"edu.blancas@gmail.com"
] | edu.blancas@gmail.com |
bd8e762db4466a9af6f76b507af09e77b0f9bb95 | 6d913a2fe43717d73e7e9122b9fbad973315a7b3 | /blog/migrations/0001_initial.py | d70c9f11c5d6a50f4e2c5140b5fbecdf084309ed | [] | no_license | k3nn1x/my-first-blog | b8cb4fb9e53a49d9f8bd4a12abe167363bb0000a | 0868c29983ff5575caf298fa4a8c52aa2aeb925f | refs/heads/master | 2016-09-14T07:05:26.295328 | 2016-06-13T12:05:51 | 2016-06-13T12:05:51 | 59,143,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-18 15:31
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depen... | [
"kennypedrique@gmail.com"
] | kennypedrique@gmail.com |
a0da45bec4db182816084ee19fbf9ac37ec705d9 | d93bd218582a25e7f87ef068ded78a39750a9c0d | /chapter_13/thirteenOne_settings.py | c8f7c6b4f888e009c23564a140fc2caf71f00f77 | [] | no_license | kelvDp/CC_python_cc_projects | e080ff681b81694a25e2d1474d0a224126f42cd4 | 7c49f8f05afa58c99979bf490f7bc4ff85a87167 | refs/heads/master | 2022-12-13T07:36:20.532977 | 2020-07-28T08:27:52 | 2020-07-28T08:27:52 | 281,634,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | class Settings:
"""Class to manage settings"""
def __init__(self):
"""Inits settings"""
self.screen_width = 1000
self.screen_height = 600
self.speed = 1.1
| [
"noreply@github.com"
] | kelvDp.noreply@github.com |
6c4a7e879ce82bb106ec665d968edc363888052d | 24798e941b1dc52f39d45fcafe9e7707d161e74e | /src/config.py | 12ade15a10614a5b15742fc861012dd58032178c | [] | no_license | IanMadlenya/pugg | a2aa1d12510090026fd806656da4447b262a4419 | 806642e1b37d8657db4f41a4a81bdfe878a28bba | refs/heads/master | 2021-01-25T09:14:33.671412 | 2013-03-30T01:48:25 | 2013-03-30T01:48:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | global MONGO_SERVER
global PUGG_DB
try:
MONGO_SERVER
except NameError:
MONGO_SERVER="127.0.0.1"
PUGG_DB="pugg_production"
| [
"natematias@gmail.com"
] | natematias@gmail.com |
d410f466a0f98bdf23b7fc68a30269a04ef74fca | a276798900d6f99d0dc79b8e4e66c23973ede4a9 | /blog/urls.py | a96decec9876c70c542bf8f64bd4f22291847321 | [] | no_license | Mgarchuk/MyBlog | ad73a06e008f80644b33fba795eb601dead21754 | a2890a347ab4b56f1e703053840c1cdd1dddb5ba | refs/heads/main | 2023-03-07T07:03:32.991927 | 2021-02-24T22:14:07 | 2021-02-24T22:14:07 | 342,049,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | from django.conf.urls import url
from django.urls import path
from django.views.generic import ListView
from blog.models import Post
from . import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
url(r'^$', views.main_page, name='main_page'),
path('post/<int:pk... | [
"mgarchuk6@gmail.com"
] | mgarchuk6@gmail.com |
b561022b7fd0c683ba9c07ba5381c7a55b8b49cd | bc599c9a404940fae21ed6b57edb7bb9dc04e71c | /test/base_test/graphics/baseScatter.py | 2bd2cb944a44d6477901a3cff545da2ae9d41870 | [] | no_license | jcarlosglx/SparkReport | c9b37a1419f113ea13341e6641ceb17056aeb7d0 | 9d6b044f037e8dfe583bcf76c51dd792ac1cc34a | refs/heads/master | 2023-08-11T16:04:28.393856 | 2021-09-21T23:06:08 | 2021-09-21T23:06:08 | 409,001,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | from test.base_test.base_http.baseGetTest import BaseGetGeneralTest
from test.base_test.base_dimension.baseGraphicTwoDimensionTest import \
BaseGraphicTwoDimensionTest
from typing import List, Type
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
class BaseGetScatterTest(BaseGetGeneralTest, BaseGr... | [
"j.carlosglxg@gmail.com"
] | j.carlosglxg@gmail.com |
fc81e5b25c0c45e42a8c1089b51deb267ca9c1c1 | 72616f323d12c8a6ca2dea8f143c885790de8c61 | /test/test_oauth_flow.py | fcbf1497bd673b09a3b2047413332b7b116540a5 | [
"MIT"
] | permissive | jbn/brittle_wit_core | af9ac9d9bc5f2958805e4476f8c772d202fcee2d | c7c086af1d9e9b3833052fa77416a18405154213 | refs/heads/master | 2021-01-21T05:56:34.994069 | 2018-05-09T00:08:56 | 2018-05-09T00:08:56 | 101,930,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,775 | py | import pytest
from brittle_wit_core.oauth import (extract_access_token,
extract_request_token,
obtain_access_token,
obtain_request_token,
redirect_url,
... | [
"jbn@abreka.com"
] | jbn@abreka.com |
70be044b2afc007606fdccb195846bb31d41a92a | 4d332c45578246847ef2cdcdeb827ca29ab06090 | /modules/Bio/SeqUtils/IsoelectricPoint.py | 817626b257eee1231c8ea29aca828e2ba2de2cf3 | [
"MIT"
] | permissive | prateekgupta3991/justforlearn | 616cc297a2a6119fa959b9337a5e91c77a11ebf7 | 3984c64063b356cf89003e17a914272983b6cf48 | refs/heads/master | 2021-03-12T22:09:12.184638 | 2014-01-28T10:37:07 | 2014-01-28T10:37:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | /usr/share/pyshared/Bio/SeqUtils/IsoelectricPoint.py | [
"prateekgupta.3991@gmail.com"
] | prateekgupta.3991@gmail.com |
da2cb9526c79dd2e914a5982b37cc3c42794cf39 | c4157663e2aeaf553f64f9cd44540db6a718cdb8 | /Edurights/Edurights/settings.py | 919115c3ec432b8cf0efaba66766354af31427dc | [
"MIT"
] | permissive | AnshShrivastava/EduRights | dba60ae5e33f8e639b7244e94137a197bc8a55fe | 3bb66f168cfa1f012c805032ea192f218a779624 | refs/heads/main | 2023-02-27T04:09:19.825207 | 2021-02-01T16:53:08 | 2021-02-01T16:53:08 | 334,899,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,394 | py | """
Django settings for Edurights project.
Generated by 'django-admin startproject' using Django 3.1.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathl... | [
"anshshrivastava1705@gmail.com"
] | anshshrivastava1705@gmail.com |
c85cb0f32d51c4871c1b38ca50593c5a5e7ecd75 | b95f80c0c2e7700ed24248bb84f4ef02723e367c | /tests/k8s/test_discovery.py | 3bec8820ae816dfa8b80dda2036bf7231f9dce29 | [
"MIT"
] | permissive | tinyzimmer/kopf | b97faab3f396dc169ebe053c6b41d57d20756738 | 74c42a2acdf2a72446d290fa1f27b53ec5d43218 | refs/heads/master | 2022-12-04T17:51:30.648646 | 2020-08-30T00:23:18 | 2020-08-30T00:23:18 | 291,496,989 | 0 | 0 | MIT | 2020-08-30T15:26:12 | 2020-08-30T15:26:11 | null | UTF-8 | Python | false | false | 4,573 | py | import aiohttp.web
import pytest
from kopf.clients.discovery import discover, is_namespaced, is_status_subresource
from kopf.structs.resources import Resource
async def test_discovery_of_existing_resource(
resp_mocker, aresponses, hostname):
res1info = {'name': 'someresources', 'namespaced': True}
r... | [
"nolar@nolar.info"
] | nolar@nolar.info |
be5499ad00fe3147d9b4398c71f0d529e962e236 | d4386dbbeb95d6ebcd4fe17a6ecbfeabd4850a44 | /SocialNetwork/authentication/migrations/0003_auto_20190105_1848.py | 3162f5cfc7fa4227a1da658b43cdc3bff7b5ee46 | [] | no_license | abdulwahid24/socialnetwork | a20c7c78a96341c8c3dff46b3f1c7997daf56a47 | 778c4ba0b23647370a37b3b098f4398843fe29c7 | refs/heads/master | 2020-04-30T19:57:56.394788 | 2019-03-22T01:46:39 | 2019-03-22T01:46:39 | 177,053,119 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # Generated by Django 2.0.8 on 2019-01-05 18:48
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('authentication', '0002_profile'),
]
operations = [
migrations.RemoveField(
model_name='user',
name='first_name',
),
... | [
"abdulwahid24@gmail.com"
] | abdulwahid24@gmail.com |
35275eeab4f24091188144ceabf10d79a583b99d | cec34868d9bb1740caf0b04004ebf128da03c445 | /dueros/directive/AudioPlayer/Control/NextButton.py | a56a35129de9c97a7da44c3b12e2ec3743a6d959 | [] | no_license | imzeali/dueros_mind_reader | 59c4bfc5976ce561d747c75bce69c672e29f31bd | e1e0b6275acbe7e95e7573c94ef0c561a31a42c8 | refs/heads/master | 2022-12-15T14:42:43.476167 | 2019-11-26T10:01:35 | 2019-11-26T10:01:35 | 170,806,962 | 8 | 2 | null | 2022-12-08T01:21:22 | 2019-02-15T05:30:28 | Python | UTF-8 | Python | false | false | 337 | py | #!/usr/bin/env python2
# -*- encoding=utf-8 -*-
# description:
# author:jack
# create_time: 2018/5/28
"""
desc:pass
"""
from dueros.directive.AudioPlayer.Control.Button import Button
class NextButton(Button):
def __init__(self):
super(NextButton, self).__init__('NEXT')
pass
if __name__ == '__... | [
"lizhi@eastwestec.com"
] | lizhi@eastwestec.com |
34ac7b227de0b5c86431e6551131dd49c60e99a1 | 1049985e1fce47ad36b74f8bd162d01ab1ff4580 | /trydjango1-11/src/Scripts/django-admin.py | ca9e6d1181ec0115a43f5a9d9e97084c3d4e0c58 | [] | no_license | Humphreychinedu/first-App-2017 | 8c89fb2aaa717b58cfd204029b3a363cad8e73df | f881879f0a13c1b95f970b8fd97ccf8544bf1b87 | refs/heads/master | 2022-11-23T06:46:27.674197 | 2017-11-24T22:10:54 | 2017-11-24T22:10:54 | 111,957,540 | 0 | 0 | null | 2022-11-16T18:58:01 | 2017-11-24T21:43:21 | Python | UTF-8 | Python | false | false | 174 | py | #!c:\users\toshiba\desktop\dev\trydjango1-11\src\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"mefendja.chinedu@gmail.com"
] | mefendja.chinedu@gmail.com |
63eb117df50510a881cad1cd17e8650e4c931d87 | 84a5c4c2e0977d42425771098f5f881c750da7f0 | /neomodel_constraints/fetcher/constraints/util.py | 3a08ca6379d4f6cab307f35957905429b97c95ac | [] | no_license | SSripilaipong/neomodel-constraints | 6c3023ba156275e48f5f7ebcbdd283ce8d41f9a1 | 4b91185ba9eec993c58e9ae770fd3d0e90f915ae | refs/heads/main | 2023-07-15T09:58:41.451631 | 2021-08-29T13:19:38 | 2021-08-29T13:19:38 | 390,312,509 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | from typing import List
from neomodel_constraints.constraint import ConstraintSet, TypeMapperAbstract
from .data import Neo4jConstraintQueryRecord
def convert_constraints_with_type_mapper(
raw: List[Neo4jConstraintQueryRecord],
type_mapper: TypeMapperAbstract
) -> ConstraintSet:
constraints = s... | [
"santhapon.s@siametrics.com"
] | santhapon.s@siametrics.com |
20f4e8a0618bd5f9a0a9beeb9b7851d0af09dcdc | 354b10475f3006b79a8ed78d784980c43efeb9d2 | /Marvellous_Infosystem_Assignment_2/Assingment2_7.py | 1d244667966bc1dcafdc726487190447c86417ea | [] | no_license | spd94/Marvellous_Infosystem_Python_ML_Assignments | 1c851f8e95dcdfa493b2015c64c96afaf3adf3ef | 1c2f578b27fed04e42cef47b97b657eb02888f4a | refs/heads/master | 2020-09-09T14:37:50.791208 | 2019-12-18T11:41:16 | 2019-12-18T11:41:16 | 221,473,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | def print_pattern(n):
i=0
print("Output :")
while(i<n):
j=0
k=1
while(j<n):
print(k,end=" ")
k+=1
j+=1
print("")
i+=1
print("Input :",end=" ")
x=int(input())
print_pattern(x) | [
"shrihari.dhanorkar@spit.ac.in"
] | shrihari.dhanorkar@spit.ac.in |
8b0fa897111dee9d44d7c7bcbc88c5c4ae1a6577 | c91478e1327dcd3e42d6280973ca59afcf1eb91a | /test/regex/corpus2sentences-p.py | a9676e43af45cdaaa377e5efd255204a3c92a8ca | [] | no_license | josefK128/varencoder_docs | 33fc545a83efa445b3549b579f8a212b6e0c2472 | ddaeb4ee8a2eea8bac15dd4eeb24365fa8116656 | refs/heads/master | 2022-12-13T00:59:34.881828 | 2020-09-09T17:09:19 | 2020-09-09T17:09:19 | 274,789,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,155 | py | # corpus2sentences.py
# reads corpus and builds dictionary {doc-index:[doc-sentences],...}
# filters unnecessary and error-causing period expressions such as:
# i.e, e.g, A. Taylor (A.)
# returns dictionary docs to filter_sentences.py
import os
import re
#closure vars for action() - free vars in action()
dbasepat... | [
"mark_rudolph@yahoo.com"
] | mark_rudolph@yahoo.com |
aa09a18e47cf459ca97ff6019aee653207fedacf | 47b3a72fa07b705a17b6156741f17fb99946250a | /ServiceTeam/ServiceTeam/settings.py | b8c3689710625fb2a85cad0e7d08834e336935f6 | [] | no_license | Kuber-Ietermagog/Service-Team | 15b65a6a5572c26362ada06b6edd61c6b710566c | d11e18fc4afb8c21f17b4d7df5491b74d099cd78 | refs/heads/master | 2020-05-04T21:48:30.293699 | 2019-04-30T10:04:58 | 2019-04-30T10:04:58 | 179,489,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,517 | py | """
Django settings for ServiceTeam project.
Generated by 'django-admin startproject' using Django 2.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import o... | [
"kuber.ietermagog@gmail.com"
] | kuber.ietermagog@gmail.com |
f9296a08deaa5d0ce4a8d34fad46b6f4e17d1cbd | 67cac71810c704596b02b58e56dfd7d825f75c13 | /function_expl.py | 03d3bf2346f243662c934dae6d86cd44d4598b40 | [] | no_license | manhlam/python-core | c3caf8011f176af0d6eb481566c20c568d1e6eaa | a26b952b3f273abc5fdace38d1be3e9509c4406e | refs/heads/master | 2022-11-18T10:59:50.423682 | 2020-07-21T02:46:29 | 2020-07-21T02:46:29 | 255,303,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | import math
print(math.pi)
print(math.e)
#lam tron 2 chu so sau dau phay
print(round(math.e, 2))
#in ra so lam tron xuong cua 1.9
print(math.floor(1.9))
#in ra so lam tron len cua 2.1
print(math.ceil(2.1))
#lay gia tri nguyen cat bo phan thap phan sau dau phay cua so thuc
print(math.trunc(-1.9))
#in ra giai thua ... | [
"manhlamvepj7543@gmail.com"
] | manhlamvepj7543@gmail.com |
05033b6c1a6811a8241b7fbeb834a416dfd6694b | f7c83e064b497380314e542b1dbfdd62a2d77658 | /singleton_multithreading_metaclass.py | dbf4dec777d16e66e69f1cc4a7b7f4bda4539466 | [] | no_license | Pythonyte/Python_Short_Notes | 52c7947c4d077daecc8840f8c4b092513fd68768 | 9e91348191d97ab8416ad6c06d67c62953811872 | refs/heads/master | 2021-07-22T01:53:57.695489 | 2020-07-10T13:57:31 | 2020-07-10T13:57:31 | 75,210,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | import threading
lock = threading.Lock()
class Singleton(type):
_instances = {}
def __call__(cls, *args, **kwargs):
"""
This check, (first check) is for avoid unnecessary locking, once instance is
set in _instances in dict
"""
if cls not in cls._instances:
# C... | [
"sumits2@webintensive.com"
] | sumits2@webintensive.com |
5926bf8b1d8f5f1cfca7194aa1b78be52247f472 | 4512420c8330a2b27c6604996edebf7996f8c645 | /gs_quant/analytics/datagrid/data_column.py | 16470870f6139ac680a06b6cbf31512c26b5a5ef | [
"Apache-2.0"
] | permissive | OfficialEasyQuant/gs-quant | 8dd9fb439e0bf8c0256169a85c21cfba6aaeb3fd | b28570be0371976205b6b4c1d88c3b95281a3dbf | refs/heads/master | 2023-04-08T12:12:41.510396 | 2021-04-23T21:57:45 | 2021-04-23T21:57:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,744 | py | """
Copyright 2019 Goldman Sachs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software di... | [
"noreply@github.com"
] | OfficialEasyQuant.noreply@github.com |
7688658bbde4b5698dc86820d79528f60b976b8e | 4acaa74999d4cb4bbe57aaf8d9c7b4b8c40c4b3d | /todo/tasks/migrations/0002_auto_20201012_2148.py | 03430b1a58bc2fb8c614ca4c53629461568def19 | [] | no_license | AndreRebelo/projeto-todo | 20a550858a9e059048921095404ba5021922564c | 44e501eb190ac4c3869d0a3687057c0dc164a334 | refs/heads/main | 2023-01-06T22:47:21.600178 | 2020-11-09T11:10:51 | 2020-11-09T11:10:51 | 308,009,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | # Generated by Django 3.1.2 on 2020-10-12 20:48
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('tasks', '0001_initial'),... | [
"71769528+AndreRebelo@users.noreply.github.com"
] | 71769528+AndreRebelo@users.noreply.github.com |
f51a66342976016246f44004594dec3297759626 | 44f60a52dd6864075171c24df4dd62da425cd3b6 | /vis/migrations/0008_auto_20150523_1123.py | 7467bfc2dfda786b7adc9e0abae79ed049ad5570 | [] | no_license | lukaprelic/Visdjango | 63c1af7391e984186da41d78f2e091728fa06ff1 | 9708e7a4f7cfff140b3801687c053b4872de3015 | refs/heads/master | 2021-01-17T12:21:13.547862 | 2018-09-19T22:25:36 | 2018-09-19T22:25:36 | 28,752,780 | 0 | 0 | null | 2018-09-19T21:40:39 | 2015-01-03T19:37:38 | JavaScript | UTF-8 | Python | false | false | 690 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
class Migration(migrations.Migration):
dependencies = [
('vis', '0007_auto_20150523_0005'),
]
operations = [
migrations.AddField(
model_name='visits',
... | [
"luka.prelicads@gmail.com"
] | luka.prelicads@gmail.com |
74173ef5d6c8e8f1b2f1282a3ba50014aaf181af | 5db0fab37c2b8a618d85d3b60fab9f806c416474 | /src/python/pants/backend/experimental/terraform/lint/tfsec/register.py | da368f57c9b4d2296cb0466cd1219a8d9616b2f6 | [
"Apache-2.0"
] | permissive | pantsbuild/pants | 4988d1ac5474ec95f94ce2218aeb759401e4b011 | 98cbda8545f0d58c586ed2daa76fefd729d5e0d5 | refs/heads/main | 2023-09-05T03:44:17.646899 | 2023-09-01T19:52:09 | 2023-09-01T19:52:09 | 7,209,075 | 2,708 | 593 | Apache-2.0 | 2023-09-14T19:33:33 | 2012-12-17T17:39:04 | Python | UTF-8 | Python | false | false | 245 | py | # Copyright 2023 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from pants.backend.terraform.lint.tfsec.rules import rules as tfsec_rules
def rules():
return tfsec_rules()
| [
"noreply@github.com"
] | pantsbuild.noreply@github.com |
ee5e410ecf0452265ebf968fe25bbe2adf0808ed | 029bf437976481b5debf3f717bd3fca3a7b3db90 | /recursion[1]/recursion1.py | 73a6097f4908d12ef1a140fa7f4a8a7d6650d60b | [] | no_license | cau-algorithm-study/Python-Data-Structure | 510e22709a1ee69a81a0ebfd9e9634b1b5d15f30 | 91722311123ca985f4c773851b7b212ffc7d21aa | refs/heads/master | 2020-06-15T05:46:19.654957 | 2019-07-08T08:19:20 | 2019-07-08T08:19:20 | 195,218,270 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,715 | py | # -*- coding:utf-8 -*-
'''
남태평양에 있는 어느 나라에 11개의 섬이 다음과 같이 다리로 연결되어 있다.
이 나라의 관광청에서는 관광객들이 11개의 섬들을 모두 방문할 수 있는, 순서가 다른 3개의 관광코스를 만들었다.
각 코스의 관광은 섬 H에서 시작한다. 관광청에서는 각 관광 코스의 방문 순서를 다음과 같은 규칙에 따라 만들었다.
H
/ \
F S
/ \ / ... | [
"leehj8687@gmail.com"
] | leehj8687@gmail.com |
7dc9604087cf0915f612460be51b976ab915ce17 | 9ec687021cde3b162ae69eebae1d3738507e7d5f | /smart-lock/libs/exit_app.py | cd9ad9a2f08631fd677dc61de6212b49e1dfec96 | [
"MIT"
] | permissive | jorisvos/rasplock | 032d61198b7f10560e4350a3553baad635e4e022 | c22eb8a7f6d161ad75a7733650b5c718a06b35f1 | refs/heads/master | 2021-07-19T19:19:43.129132 | 2020-04-29T12:15:19 | 2020-04-29T12:15:19 | 148,496,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | import variables.colors as c
from libs.clear import *
def exit(signal, frame):
clear()
print(c.bcolors.OKGREEN+"Bye!"+c.bcolors.ENDC)
sys.exit(0)
| [
"jorisvos037@gmail.com"
] | jorisvos037@gmail.com |
e0d0bff373d69b9455fd52b2ddecf9431c15390d | e95eb3b5332ba010669f921fe6ac22f85837da2a | /examples/analysis/parse_demo.py | 1470b8acd579aa33a07b0bd3b49fffc8f89cffa2 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | LABSN/expyfun | a5998722f09bfb08e3167d6309ce0d5d534b8b18 | f324eb8c65afa9530698f15ca058700518355a8f | refs/heads/main | 2023-08-05T13:06:15.026909 | 2023-07-25T19:07:03 | 2023-07-25T19:07:03 | 11,614,571 | 13 | 19 | BSD-3-Clause | 2023-07-25T19:07:05 | 2013-07-23T17:28:02 | Python | UTF-8 | Python | false | false | 733 | py | # -*- coding: utf-8 -*-
"""
============
Parsing demo
============
This example shows some of the functionality of ``read_tab``.
"""
# Author: Eric Larson <larson.eric.d@gmail.com>
#
# License: BSD (3-clause)
import ast
from expyfun.io import read_tab
print(__doc__)
data = read_tab('sample.tab') # from simple_ex... | [
"larson.eric.d@gmail.com"
] | larson.eric.d@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.