repo_name stringlengths 7 111 | __id__ int64 16.6k 19,705B | blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 151 | content_id stringlengths 40 40 | detected_licenses list | license_type stringclasses 2
values | repo_url stringlengths 26 130 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 42 | visit_date timestamp[ns] | revision_date timestamp[ns] | committer_date timestamp[ns] | github_id int64 14.6k 687M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 12
values | gha_fork bool 2
classes | gha_event_created_at timestamp[ns] | gha_created_at timestamp[ns] | gha_updated_at timestamp[ns] | gha_pushed_at timestamp[ns] | gha_size int64 0 10.2M ⌀ | gha_stargazers_count int32 0 178k ⌀ | gha_forks_count int32 0 88.9k ⌀ | gha_open_issues_count int32 0 2.72k ⌀ | gha_language stringlengths 1 16 ⌀ | gha_archived bool 1
class | gha_disabled bool 1
class | content stringlengths 10 2.95M | src_encoding stringclasses 5
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 10 2.95M | extension stringclasses 19
values | num_repo_files int64 1 202k | filename stringlengths 4 112 | num_lang_files int64 1 202k | alphanum_fraction float64 0.26 0.89 | alpha_fraction float64 0.2 0.89 | hex_fraction float64 0 0.09 | num_lines int32 1 93.6k | avg_line_length float64 4.57 103 | max_line_length int64 7 931 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
VVILD/sendd | 3,040,836,862,992 | d9b1aa106f0b7e351967a11e31b262b7ece88e32 | 99fb1fa5262bc8a701ca4407d833b0134c62d5e0 | /core/utils/track_request_test.py | d8a22819af4b3c867629f0df466768faaa1f663b | [] | no_license | https://github.com/VVILD/sendd | 0dd2f83e9acb30cd1b7b523bf6e4df06db0c6442 | 96d6dc3a84e826c59a506a93d2cb16d5c684d10a | refs/heads/master | 2021-03-19T12:13:51.916905 | 2015-12-07T13:46:45 | 2015-12-07T13:46:45 | 33,768,401 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | __author__ = 'vatsalshah'
#!/usr/bin/env python
"""
This example shows how to track shipments.
"""
import logging
from ..fedex.config import FedexConfig
from ..fedex.services.track_service import FedexTrackRequest
# Set this to the INFO level to see the response from Fedex printed in stdout.
logging.basicConfig(level... | UTF-8 | Python | false | false | 1,566 | py | 109 | track_request_test.py | 76 | 0.722861 | 0.699234 | 0 | 43 | 35.44186 | 78 |
RandomGamer123/TheBrainOfTWOWCentral | 13,202,729,478,487 | 42aed4169ae6cc10f81dd314d58f82074c0cdac1 | 9dc0ff36610128728af64003f9d9f18ea5089cd3 | /Commands/idtime.py | dbbcc58b13a438ebd81afda1c67094e385cc1609 | [
"MIT"
] | permissive | https://github.com/RandomGamer123/TheBrainOfTWOWCentral | 46bd5efba383438fb0939511006b485386678525 | f29e7268b97c77309f52821525b5776ef11707b2 | refs/heads/master | 2022-12-12T18:35:53.796133 | 2020-09-03T00:02:32 | 2020-09-03T00:02:32 | 292,417,015 | 0 | 0 | null | true | 2020-09-02T23:32:38 | 2020-09-02T23:32:37 | 2020-08-31T21:35:46 | 2020-08-31T21:35:43 | 39,111 | 0 | 0 | 0 | null | false | false | import discord, datetime
def HELP(PREFIX):
return {
"COOLDOWN": 1,
"MAIN": "Finds the time corresponding to a Discord snowflake (ID).",
"FORMAT": "[id] (id2) (mode)",
"CHANNEL": 0,
"USAGE": f"""Using `{PREFIX}idtime` will return the time corresponding to the provided Discord
snowflake. "message" or "user... | UTF-8 | Python | false | false | 2,760 | py | 45 | idtime.py | 43 | 0.628716 | 0.595359 | 0 | 85 | 31.458824 | 103 |
micheledallatorre/soaring_club | 18,554,258,760,900 | 981d4e77600b55281369d1f2e72fc74d6caa4e3a | b7aced6770c732b8695faf44810c68c1c70aee5a | /soaring_club/apps/aircraftlogger/views.py | b3a17a0c15d89e37b2b02fdbdf17516f518a60a4 | [] | no_license | https://github.com/micheledallatorre/soaring_club | 9088834acef4205d71844c30f5815b4af424c360 | c481cc5f761598c8f305eeccb731443527c9c652 | refs/heads/master | 2021-01-16T23:15:29.501904 | 2016-06-16T15:45:47 | 2016-06-16T15:45:47 | 61,134,627 | 0 | 0 | null | true | 2016-06-14T15:33:23 | 2016-06-14T15:33:22 | 2016-06-14T15:18:02 | 2012-07-15T23:40:45 | 1,640 | 0 | 0 | 0 | null | null | null | from django.http import HttpResponse, Http404
from django.db.models import Q #@UnusedImport
from django.shortcuts import render
from django.shortcuts import redirect
from django.shortcuts import get_object_or_404
from django.contrib.auth.decorators import login_required
from django.utils.translation import ugettext_la... | UTF-8 | Python | false | false | 29,282 | py | 76 | views.py | 30 | 0.497302 | 0.495697 | 0 | 653 | 43.839204 | 144 |
swapsha96/jwst | 4,312,147,200,263 | ae9d42c732757d011c37b124336f049eb434df35 | 9f67986758d23aa25c5110150177e43ae710b543 | /jwst/datamodels/traps.py | 797a165ef7f3d9eaebb552a94acd75a427655ddc | [
"BSD-2-Clause"
] | permissive | https://github.com/swapsha96/jwst | b589d6b2a7c17270accd666b9fe598f525bfde74 | ad260a6e65c9b98269273ccb3c7292256abea5ae | refs/heads/master | 2021-01-21T14:24:49.130271 | 2017-06-24T12:27:46 | 2017-06-24T12:27:46 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from __future__ import absolute_import, unicode_literals, division, print_function
from . import model_base
__all__ = ['TrapsModel']
class TrapsModel(model_base.DataModel):
"""
A data model for trap capture and decay.
Parameters
----------
init : any
Any of the initializers supported b... | UTF-8 | Python | false | false | 813 | py | 16 | traps.py | 7 | 0.643296 | 0.643296 | 0 | 29 | 27.034483 | 82 |
seanbehan/screenshotes | 5,497,558,151,128 | 7f033cebb3cb35898bcfca2bfcef6323eeb7df03 | 2e29a58c7f43e08d58dabe6c0eac1dfedb389775 | /library.py | e6d26762c7e27f0b40dd05b6b480bb249ffab93f | [] | no_license | https://github.com/seanbehan/screenshotes | 2963b44ee09547c39ee0a8d667b8fec2dbaa5b69 | 6efc4fb95496e133d5a96842abaa874de8018d54 | refs/heads/master | 2020-05-20T23:53:55.323281 | 2015-07-19T01:46:11 | 2015-07-19T01:46:11 | 37,335,505 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from hashlib import md5
from collections import OrderedDict
import os, datetime, urlparse
import requests
from os import environ as env
from uuid import uuid4
def _url(url):
if url.startswith('http'):
... | UTF-8 | Python | false | false | 2,134 | py | 7 | library.py | 2 | 0.639644 | 0.627929 | 0 | 62 | 33.419355 | 147 |
sarath1plaza/Quiz | 3,049,426,799,199 | 43cd5d7d2c52b186ac4bdc27b40495897c553d23 | 582c97e75dcceb4f590fcfc33a09984a19cb1b45 | /restapi/migrations/0002_auto_20191114_1811.py | b48141bc11804f69a9b47a756381cf27e27c655f | [] | no_license | https://github.com/sarath1plaza/Quiz | 9f605b3d6cee5fa90602d404d18602e82c6cafe0 | 57d7b0a0d90bb7aa0b6abe6fcd0ee35406d4ed8a | refs/heads/master | 2022-03-15T07:32:11.498762 | 2019-11-15T18:23:34 | 2019-11-15T18:23:34 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 2.2.5 on 2019-11-14 18:11
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('restapi', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='logclass',
new_name='registartion',
),... | UTF-8 | Python | false | false | 327 | py | 10 | 0002_auto_20191114_1811.py | 8 | 0.58104 | 0.522936 | 0 | 17 | 18.235294 | 47 |
Cloudxtreme/MyProject | 18,897,856,126,021 | 8e824b9eb64afeb7ee6e8d79a67165c16b5fa4d4 | 3b786d3854e830a4b46ee55851ca186becbfa650 | /SystemTesting/pylib/vmware/kvm/api/default_setup_impl.py | eae559ffa2fcff11a7905c340ed5c55c7ae40926 | [] | no_license | https://github.com/Cloudxtreme/MyProject | d81f8d38684333c22084b88141b712c78b140777 | 5b55817c050b637e2747084290f6206d2e622938 | refs/heads/master | 2021-05-31T10:26:42.951835 | 2015-12-10T09:57:04 | 2015-12-10T09:57:04 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import lib.kvm as kvm
import lib.hypervisor as hypervisor
import vmware.interfaces.setup_interface as setup_interface
import vmware.common.global_config as global_config
pylogger = global_config.pylogger
kvm_objs = {}
REQUIRED_OVS_PKGS = ["openvswitch", "kmod-openvswitch"]
class DefaultSetupImpl(setup_interface.Setu... | UTF-8 | Python | false | false | 1,648 | py | 2,856 | default_setup_impl.py | 1,843 | 0.646238 | 0.645024 | 0 | 39 | 41.25641 | 78 |
lihongqiang/cv-models | 14,869,176,792,072 | 0c2c16cf97c88e3450f8b3a34a1877cc03a467ae | 4903eee3b4987833f9bb27d56b56927d38267824 | /highwaynet.py | 5c96716a0a91411d3d59412d0d44cc177626c252 | [] | no_license | https://github.com/lihongqiang/cv-models | 213fefc7cb5c16183f36769ff1cf5012d04e3200 | c40bfef7dc79981ebcb6f4a677170fefe026fad2 | refs/heads/master | 2021-01-21T06:39:49.335429 | 2017-03-02T08:33:35 | 2017-03-02T08:33:35 | 83,269,085 | 1 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 27 18:16:27 2017
@author: lhq
"""
#%%
import tflearn
import tensorflow as tf
X, Y, X_test, Y_test = tflearn.datasets.mnist.load_data(one_hot=True)
#%%
with tf.Graph().as_default():
input_data = tflearn.input_data(shape=[None, 28*28])
... | UTF-8 | Python | false | false | 1,228 | py | 6 | highwaynet.py | 5 | 0.59202 | 0.54886 | 0 | 37 | 32.216216 | 83 |
ataola/a2python | 481,036,363,245 | 3378fb8ac56ac076538aae51b899ffbe4931c77d | a222c1f3028b49abefa0708b8f71784ca467cb3c | /code/demo/06-word-count.py | 62e0fd87113895f1ebfe8b73803219971eb5868e | [
"MIT"
] | permissive | https://github.com/ataola/a2python | 6fd015a0e0f3a09ada825257bb55b85affa6ac98 | 3b098d5004ee5b4e101feb76a5c210c03ad8fa94 | refs/heads/master | 2023-04-12T20:09:36.058650 | 2023-03-20T03:01:29 | 2023-03-20T03:01:29 | 242,354,710 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import pathlib
file_name = "01-address-book.md"
# 取得脚本所在目录
current_path = pathlib.PurePath(__file__).parent
# 和脚本同目录下的文件绝对路径
file = current_path.joinpath(file_name)
# 打开文件
with open(file, encoding='utf-8') as f:
# 读取文件
content = f.read()
words ... | UTF-8 | Python | false | false | 460 | py | 52 | 06-word-count.py | 41 | 0.622449 | 0.612245 | 0 | 18 | 19.777778 | 48 |
KayMutale/pythoncourse | 6,193,342,863,457 | 55d57de648b2923c2dead5f80a74dac25fe6eb6a | 46c76c7ca1d9d030606f2e3e95a2a9e6bbad2789 | /game.py | a9c78cf27a0b99786c6468a6220b60bf8be66ec2 | [] | no_license | https://github.com/KayMutale/pythoncourse | be9ff713cffc73c1b9b3c1dd2bdd6d293637ce1e | 985a747ff17133aa533b7a049f83b37fc0fed80e | refs/heads/master | 2023-04-13T07:58:00.993724 | 2021-04-16T14:19:41 | 2021-04-16T14:19:41 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python
from random import randint
score = {}
def dice():
return randint(1,6)
def setplayers(*players):
for player in players:
score[player] = 0
def turn():
winner = None
winning_roll = 0
for player in score:
raw_input('%s press key for dice roll' % player)
... | UTF-8 | Python | false | false | 610 | py | 257 | game.py | 223 | 0.568852 | 0.560656 | 0 | 29 | 19.862069 | 56 |
imfangli/vimrc | 7,112,465,887,171 | 17b93f4d88d9afcc524705598144bc568badaebd | 5db3009eb36afe7110ed5402be3a9e570c58c540 | /my_plugins/YouCompleteMe/third_party/ycmd/ycmd/tests/java/get_completions_test.py | 7c7c7e7b2ea6466c57ed96721c0bcdd8eb87ad7c | [
"MIT",
"GPL-3.0-only",
"GPL-1.0-or-later"
] | permissive | https://github.com/imfangli/vimrc | ced2c6caece1cf19421c6ea7deb017bec4ca3a27 | d2d14e7d083d70cc8627ddccb5b99c53c3c38be3 | refs/heads/master | 2022-02-01T00:34:31.855421 | 2022-01-22T15:57:28 | 2022-01-22T15:57:28 | 211,766,038 | 2 | 0 | MIT | true | 2019-09-30T03:15:03 | 2019-09-30T03:15:02 | 2019-09-30T02:50:54 | 2019-09-20T05:44:36 | 16,570 | 0 | 0 | 0 | null | false | false | # encoding: utf-8
#
# Copyright (C) 2017-2019 ycmd contributors
#
# This file is part of ycmd.
#
# ycmd is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | UTF-8 | Python | true | false | 21,233 | py | 882 | get_completions_test.py | 452 | 0.527635 | 0.521415 | 0 | 695 | 29.536691 | 80 |
rictts/Gestao-de-Turmas | 8,615,704,402,957 | 5b2ab3035538c2e069bba55da5db81da7d299fc3 | 19d0b52cc1bf768e91ea48e9e14cd3429c3544bf | /BD_disciplina.py | 6bd6d3fc3c7d34ecf95a8718e9c67a91e5c40ef1 | [] | no_license | https://github.com/rictts/Gestao-de-Turmas | a42aca104be539ee275af316be2b5fd9a38fb7ec | b67b57d931a4fe07db8a29b16fe6c0318c543ea0 | refs/heads/main | 2023-05-05T16:32:23.545229 | 2021-05-28T12:59:32 | 2021-05-28T12:59:32 | 367,845,137 | 0 | 0 | null | false | 2021-05-28T12:59:33 | 2021-05-16T10:11:43 | 2021-05-28T12:58:27 | 2021-05-28T12:59:32 | 31 | 0 | 0 | 0 | Python | false | false |
import os
import sqlite3
dbName = "Turmas.db"
global conn
conn = sqlite3.connect(dbName)
def insert_disciplina(disciplina):
print("Insere na Base de dados:",disciplina)
sql = """INSERT INTO disciplina(Nome_Disciplina) VALUES (?);"""
c = conn.cursor()
dados = (disciplina)
c.ex... | UTF-8 | Python | false | false | 924 | py | 16 | BD_disciplina.py | 14 | 0.61039 | 0.608225 | 0 | 43 | 19.302326 | 67 |
bookwyrm-social/bookwyrm | 9,878,424,790,447 | bc83b422416bd2e1adf0acf822312dc852392df1 | 8fa191cd4a67431a04eff62d35122ee83cc7b0af | /bookwyrm/migrations/0089_user_show_suggested_users.py | 047bb974ce670b02cdbc737a13fc24a2f5a17a10 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | https://github.com/bookwyrm-social/bookwyrm | 24678676a7a58dba96641194dfae3fffbf01574d | 0f8da5b738047f3c34d60d93f59bdedd8f797224 | refs/heads/main | 2023-08-20T21:45:30.957277 | 2023-08-19T23:41:50 | 2023-08-19T23:41:50 | 236,415,735 | 1,398 | 216 | NOASSERTION | false | 2023-09-08T20:43:06 | 2020-01-27T03:51:54 | 2023-09-08T18:02:43 | 2023-09-08T20:43:06 | 60,885 | 1,908 | 224 | 338 | Python | false | false | # Generated by Django 3.2.4 on 2021-09-08 16:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("bookwyrm", "0088_auto_20210905_2233"),
]
operations = [
migrations.AddField(
model_name="user",
name="show_suggested... | UTF-8 | Python | false | false | 399 | py | 889 | 0089_user_show_suggested_users.py | 492 | 0.596491 | 0.518797 | 0 | 18 | 21.166667 | 52 |
sabareeshs/codenames | 12,446,815,234,734 | 258548b759ad097a49f578addb4e0c11d0ee7dd7 | 5190df8d0da29a78111e4c74cedde5ea48cf0b5f | /gameplay/urls.py | 3e4ba06181964a5c8f240eb675a1fd3de14d1465 | [] | no_license | https://github.com/sabareeshs/codenames | 7aa2a44bcac7f8c7e7f153301e016d6dad69b187 | 39db5269f41ae7dfb4e13d8445d66ca35547eec9 | refs/heads/master | 2022-08-29T03:37:42.488840 | 2020-05-30T06:59:53 | 2020-05-30T06:59:53 | 265,723,481 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.conf.urls import url
from gameplay import views
urlpatterns = [
url(r'^$', views.index, name='gameplay_index'),
url(r'^create_board/$', views.create_board, name='create_board'),
url(r'^(?P<board_id>[0-9a-f]{8}\-[0-9a-f]{4}\-4[0-9a-f]{3}\-[89ab][0-9a-f]{3}\-[0-9a-f]{12})/delete/$', views.delete, name='de... | UTF-8 | Python | false | false | 966 | py | 16 | urls.py | 5 | 0.546584 | 0.44824 | 0 | 12 | 79.5 | 182 |
ushitora/vizdoom_experiments | 8,684,423,909,956 | b0507e71f68c6cb07ef7602f27c6d3e8426be213 | 68f6e727e8f95391d6381669c72857f8bc4ac142 | /source/a3c_demo/a3c_demo.py | 62c4f7626635c3f97714f86b29f7bb971ac676ff | [] | no_license | https://github.com/ushitora/vizdoom_experiments | db6b6279ce0b248c1e933340d518ce90189be37d | fcc6febcbd9039b0f0f0aea1d472b2226b5395e5 | refs/heads/master | 2020-04-28T09:40:56.209848 | 2019-03-12T10:00:28 | 2019-03-12T10:00:28 | 175,175,368 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
# coding: utf-8
# In[ ]:
#!/usr/bin/python
from __future__ import print_function
import math
import time,random,threading,datetime
import tensorflow as tf
from time import sleep
import numpy as np
from vizdoom import *
import skimage.color, skimage.transform
from tqdm import tqdm
import h5py
from tensorflow.python... | UTF-8 | Python | false | false | 44,392 | py | 82 | a3c_demo.py | 43 | 0.559416 | 0.543301 | 0 | 1,115 | 38.289686 | 424 |
shingo-kagami/raspi_videoplayer | 9,998,683,912,039 | 160b234dad992159156f5e5e1bbb0c012a444c50 | f1a6734b8349c2dded5b1aeccd7400067d25cf88 | /playlist.py | fe53bd1ff7fac0bd9b6e6338c0d849488c4c7305 | [
"BSD-2-Clause"
] | permissive | https://github.com/shingo-kagami/raspi_videoplayer | 64f4ca5dafd867ddec0ffe6e7b68bf8cc648a3df | 875697c880edc5a19f8f5c69a065d88fc531f14b | refs/heads/master | 2020-12-03T17:52:18.945897 | 2019-12-27T07:41:39 | 2019-12-27T07:41:39 | 231,417,396 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # vids = [
#'/home/pi/Videos/aaa.mp4',
#'/home/pi/Videos/bbb.mp4',
#]
| UTF-8 | Python | false | false | 72 | py | 3 | playlist.py | 2 | 0.555556 | 0.527778 | 0 | 4 | 16.75 | 28 |
Arxcis/bitwise_sudoku | 8,727,373,571,654 | f8e7a4339a773931eb26950cd8d744b3dcba7ee5 | 7072a881d818ed031e45b34034107900d110d762 | /file.py | 77319791990297c7569550dcae2c04860cad542b | [] | no_license | https://github.com/Arxcis/bitwise_sudoku | 9e6885512b5d0f35a1962ae258bea875e8629cbf | 6100184aa25b0982a91442413db066379ab9c009 | refs/heads/master | 2017-05-08T15:41:33.529454 | 2017-02-17T12:19:56 | 2017-02-17T12:19:56 | 82,253,938 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/local/bin/python3
#-*-coding:utf-8-*-
# File : file.py
# Exercise: Sudoku solver
# Author : Jonas Solsvik
# Email : jonas.solsvik@gmail.com
# Date : 16.02.17
# License : Free as in pizza
import pickle
toggle_bits = 0x1ff
top_bit = 0x200
single_bits = {
0 : 0x0,
1 : 0x1,
2 : 0x2,
... | UTF-8 | Python | false | false | 2,463 | py | 4 | file.py | 3 | 0.583435 | 0.556638 | 0 | 122 | 19.188525 | 161 |
razinkovaleksey/chromedriver78extentionerror | 15,676,630,665,065 | 24159410e1c035219e386c6c600183f34f4d3c17 | 75dbbf709bb5ca431d2cca5e633216fb086e10b9 | /run.py | 2ca487eecef2b4a3fca204a11919350a033549d8 | [] | no_license | https://github.com/razinkovaleksey/chromedriver78extentionerror | 5154e0264c688c4466406adf1d1cd0cd6e42a26c | 30f4247e07fa153f542838c34914e5d59bb6df16 | refs/heads/master | 2020-08-30T21:08:21.141935 | 2019-10-30T09:38:27 | 2019-10-30T09:38:27 | 218,489,852 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import importlib
from selenium.webdriver.chrome.options import Options
wd = importlib.import_module('selenium.webdriver')
chrome = getattr(wd, 'Chrome')
chrome_options = Options()
chrome_options.add_extension('plugin.crx')
driver = chrome(options=chrome_options, service_args=["--verbose", "--log-path=qc1.... | UTF-8 | Python | false | false | 328 | py | 1 | run.py | 1 | 0.731707 | 0.728659 | 0 | 11 | 27.818182 | 89 |
pedromneto97/ProjetoSOS | 5,463,198,416,612 | bb14655abcb4fdbf4b4eaa03a9424cc296a04f75 | cfbe46ac439cbcee24862fada33766587dc2c102 | /ESP32-Server/server.py | c5e0fbd32beb66550152c973f23b74f5499543d8 | [] | no_license | https://github.com/pedromneto97/ProjetoSOS | 9701ef32a1b18181ea8008c19a58bfd2942f02c3 | 3893069f39796d56fbccab1f2b105d8207071608 | refs/heads/master | 2020-03-09T13:18:37.561467 | 2018-11-19T23:52:38 | 2018-11-19T23:52:38 | 128,807,707 | 6 | 1 | null | false | 2018-11-19T23:52:39 | 2018-04-09T17:14:08 | 2018-11-19T23:50:12 | 2018-11-19T23:52:39 | 113 | 1 | 0 | 2 | Python | false | null | import socket
from gc import collect
from time import sleep_ms
import ujson
from machine import reset
from tipo import Tipo
# Classe do server
class Server:
# Construtor
def __init__(self, sta):
self.station = sta
def endereco(self):
confs = self.station.ifconfig() # Recebe as configur... | UTF-8 | Python | false | false | 5,406 | py | 10 | server.py | 9 | 0.424113 | 0.415939 | 0 | 119 | 44.235294 | 110 |
M-Kub/PyScraping | 15,659,450,765,061 | e5c7127c6bb8464cf481abc2dfd7bb0862d86fa1 | 856d89ab37dc378d8aaad84ac5e0f58638fb8ace | /imaspi.py | b853bc15a87d8f3be8fed97de08e1b687a685368 | [] | no_license | https://github.com/M-Kub/PyScraping | 9c5a1dff6a706386853fe14562e52982d139c724 | 7567b9a6fba40cf1cba09fdf02c6e67080ed81c3 | refs/heads/master | 2020-08-24T04:19:38.099784 | 2019-11-18T10:52:22 | 2019-11-18T10:52:22 | 216,761,050 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from urllib.request import urlopen
from bs4 import BeautifulSoup
import re
html = urlopen('https://cdn1.spiegel.de')
bs = BeautifulSoup(html, 'html.parser')
images = bs.find_all('img',
{'src': re.compile('/images/image.*.jpg')})
for image in images:
print(image['src'])
print(len(images))
| UTF-8 | Python | false | false | 300 | py | 6 | imaspi.py | 6 | 0.696667 | 0.69 | 0 | 13 | 22.076923 | 47 |
maiyeu97/nguyenduyhoang-fundermental-c4e14 | 962,072,681,190 | ffd4d5678a4619048e914b7db88adec6227654e7 | ff349a301c6c261bbaed6b207a29413be1efb9ef | /fundamental/session01/hinh_tam_giac.py | 03ce64384af16a878b413780f74530119931098f | [] | no_license | https://github.com/maiyeu97/nguyenduyhoang-fundermental-c4e14 | 955c48dc195df6edf071fb8797931768a84a52fc | 4ab42e9a36b841215a8da20ca2933375f4f1598e | refs/heads/master | 2020-03-15T23:42:32.624930 | 2018-05-07T02:58:25 | 2018-05-07T02:58:25 | 112,141,401 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from turtle import *
color("red")
shape("arrow")
# speed(-1)
for i in range(20):
forward(200)
left(120)
mainloop()
| UTF-8 | Python | false | false | 123 | py | 85 | hinh_tam_giac.py | 69 | 0.634146 | 0.560976 | 0 | 8 | 14.375 | 20 |
babamba/sideAppServer | 352,187,351,227 | 9ed597e205df21b28180a10f5aa9b0d63ea98a9b | 7958401b2fb438f6bbc518e6b536cc8ec28bd559 | /TodaySalary/users/migrations/0008_user_push_token.py | 1cc821b6e86fc9b6914f6d96dd0d02b50a640875 | [
"MIT"
] | permissive | https://github.com/babamba/sideAppServer | db49a209802b90cbbade70aaa23d0cce1f4c2208 | 607d61cbea9d05fe902b9f8e772bbd9f7baca28c | refs/heads/master | 2022-12-13T12:52:15.944602 | 2019-03-31T03:07:49 | 2019-03-31T03:07:49 | 174,468,137 | 0 | 0 | MIT | false | 2022-12-09T15:04:51 | 2019-03-08T04:19:03 | 2019-03-31T03:08:00 | 2022-12-09T15:04:50 | 8,042 | 0 | 0 | 31 | JavaScript | false | false | # Generated by Django 2.0.9 on 2019-03-26 17:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0007_auto_20190311_1641'),
]
operations = [
migrations.AddField(
model_name='user',
name='push_token',
... | UTF-8 | Python | false | false | 381 | py | 41 | 0008_user_push_token.py | 35 | 0.574803 | 0.493438 | 0 | 18 | 20.166667 | 47 |
thauptfeld/CAT | 18,803,366,841,289 | 138aae520cde5f235fd5dda882b46e788b82f493 | 6b1ec5a21b99b6741b8b2b58ae59aa3411daa9b6 | /CAT_pack/contigs.py | df9ec319a704f04a2a8d8704d0d1d857e774646a | [
"MIT"
] | permissive | https://github.com/thauptfeld/CAT | bf0bf7d653a1386ac3ae01df1dfeebca0e0d4020 | e41ebd66a059b67b43c8e141002f37b3df755509 | refs/heads/master | 2023-05-04T12:29:28.844113 | 2021-06-01T11:18:19 | 2021-06-01T11:18:19 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
import argparse
import decimal
import sys
import about
import check
import shared
import tax
def parse_arguments():
parser = argparse.ArgumentParser(
prog='CAT contigs',
description='Run Contig Annotation Tool (CAT).',
usage='CAT contigs -c -d -t [optio... | UTF-8 | Python | false | false | 14,781 | py | 12 | contigs.py | 10 | 0.512956 | 0.505108 | 0 | 401 | 35.860349 | 114 |
JetBrains/intellij-community | 11,003,706,217,897 | 4a4e9c07f643f46ceadb10d7d06f7feb71a302f9 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stdlib/turtle.pyi | 13197c336e5ed549b65cec3c966e9fd223c72c31 | [
"Apache-2.0",
"MIT"
] | permissive | https://github.com/JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | false | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | 2023-09-12T03:37:30 | 2023-09-12T06:46:46 | 4,523,919 | 15,754 | 4,972 | 237 | null | false | false | from _typeshed import Self
from collections.abc import Callable, Sequence
from tkinter import Canvas, Frame, Misc, PhotoImage, Scrollbar
from typing import Any, ClassVar, Union, overload
from typing_extensions import TypeAlias
__all__ = [
"ScrolledCanvas",
"TurtleScreen",
"Screen",
"RawTurtle",
"Tu... | UTF-8 | Python | false | false | 21,990 | pyi | 127,182 | turtle.pyi | 70,394 | 0.574488 | 0.572487 | 0 | 695 | 30.640288 | 122 |
Kacper99/spotifydl | 13,743,895,362,718 | 1076a57e73bfd06f04ce693a687033f018c9d671 | 29c4ddb536572aea3cec856355fa4b2edd2b2c3b | /spotifydl.py | 335d625aa2095708e539b4fb2250d6e687a584e9 | [] | no_license | https://github.com/Kacper99/spotifydl | 614fe48590fca4c2dbdcaa30175aa84fbe55f78d | 87489b8056e5b128e69bfb220501319253ff1329 | refs/heads/master | 2022-11-07T11:54:07.051296 | 2020-06-26T20:17:41 | 2020-06-26T20:17:41 | 275,000,335 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import spotipy
import spotipy.oauth2 as oauth2
import argparse
import os
import multiprocessing
from downloader import Downloader
from itertools import product
save_dir = '/'
def get_args():
parser = argparse.ArgumentParser('Download your spotify playlist through youtubedl')
parser.add_argument('--id', help... | UTF-8 | Python | false | false | 2,304 | py | 4 | spotifydl.py | 2 | 0.671441 | 0.666667 | 0 | 68 | 32.882353 | 108 |
jik0730/csed331-algorithms | 12,008,728,579,512 | b23c76378f9b2872f6fc1ec314bac37f71fc7130 | f8d649847f592ec492566050d9e0cff27ec3ffff | /assn8/p1.py | 1f961a7b09855f9344c0def3f85730f5a6bc4863 | [] | no_license | https://github.com/jik0730/csed331-algorithms | 35044808ccdcabb02a3077fff9a30dd3f6ac9166 | 9cf6b519e9beba71ee05228e50c60ffe732d9b3f | refs/heads/master | 2021-01-01T06:52:35.188802 | 2017-07-18T01:23:04 | 2017-07-18T01:23:04 | 97,537,313 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import sys
import itertools
def main():
numOfTests = int(sys.stdin.readline())
while numOfTests:
n, m = map(int, sys.stdin.readline().split())
graph = makeGraph(n, m)
route_distance = TSP(graph)
if route_distance == float('inf'):
print -1
else:
... | UTF-8 | Python | false | false | 1,303 | py | 25 | p1.py | 24 | 0.534152 | 0.524942 | 0 | 51 | 24.568627 | 94 |
Melodyh20809/leetcode | 12,051,678,274,516 | d1e30d23d36a6af07c3e9d5b6f1b905e4734ce88 | 67b025788ba0319347c9eed0c49ce826921ad22c | /0724 pivotIndex.py | 5ee0f7547affac35fa0264cbf6ca138897fc9aa9 | [] | no_license | https://github.com/Melodyh20809/leetcode | d68b76f32b7acc21a4cbed40b2fdfa507cac6151 | 50a57dee36efd2d5ef311c66f3a75bd479b0a798 | refs/heads/master | 2020-12-20T19:18:49.908879 | 2020-10-03T14:38:28 | 2020-10-03T14:38:28 | 236,185,085 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class Solution:
def pivotIndex(self, nums):
if not nums:
return -1
if len(nums)==1:
return 0
l=0
r=sum(nums[1:])
for i in range(len(nums)-1):
if l==r:
return i
l=l+nums[i]
r=r-nums[i+1]
if l==... | UTF-8 | Python | false | false | 423 | py | 159 | 0724 pivotIndex.py | 159 | 0.439716 | 0.416076 | 0 | 19 | 21.315789 | 36 |
fatima72/raniai | 5,231,270,179,865 | dee136b78c09591ea8246a8889031fc124914dc8 | 1fee4378f4451984fdddf0323f13b96b13af1215 | /08-07/setmatrixzero.py | af44ea4b7e21756eb93598c74dc848f8988d238b | [] | no_license | https://github.com/fatima72/raniai | d67cc79cf9f64fbd920a25fe474495fbb5189f84 | 18ad4e8ccf43074e9732deae69d684cb6d266d21 | refs/heads/master | 2023-06-12T22:59:17.736468 | 2021-07-09T16:02:21 | 2021-07-09T16:02:21 | 383,495,989 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
Given an m x n integer matrix matrix, if an element is 0, set its entire row and column to 0's, and return the matrix.
"""
m,n = list(map(int,input().split()))
matrix = []
zero_column = []
for _ in range(m):
column = list(map(int,input().split()))
for j in range(n):
if(column[j]==0):
c... | UTF-8 | Python | false | false | 537 | py | 26 | setmatrixzero.py | 26 | 0.52514 | 0.515829 | 0 | 24 | 20.833333 | 118 |
NeverC12307/ImbalanceClassification | 10,969,346,516,392 | d6f15a152f204c386702cb33de3ffdb2c657d40a | 6a0263f8bbe1cb538a8e3bbfb6e094eb938a1396 | /other_people/AdaC2Classifier.py | 96456c26d27263ce1753584220d8de97cc0f3da0 | [] | no_license | https://github.com/NeverC12307/ImbalanceClassification | 812d4e8cab8c48c0435e155c68d3d1736b4094de | 754d89bccfeeb563de1d18b20c7ce2ae452c0908 | refs/heads/master | 2023-04-10T09:52:55.102927 | 2021-04-07T12:54:51 | 2021-04-07T12:54:51 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # 描述:来自论文 Cost-Sensitive Boosting for Classification of Imbalanced Data, Yanmin Sun
import numpy as np
from sklearn import metrics
from sklearn.tree import DecisionTreeClassifier
from data.read_data import get_data, shuffle_data
class AdaC2Classifier:
"""
代价敏感分类器
"""
def __init__(self, T, C):
... | UTF-8 | Python | false | false | 5,050 | py | 38 | AdaC2Classifier.py | 20 | 0.424613 | 0.407811 | 0 | 209 | 20.92823 | 83 |
a77654135/ScrapyProject | 7,026,566,546,182 | 288eea3a71c57f830c766ba91d8c61a24e32c144 | 574ef9a69c4c5d9bef7331bde567e17b56ff7446 | /ScrapyProject/items/btbaItem.py | fe9644513b1138838c47a0de04cbe066e5383033 | [] | no_license | https://github.com/a77654135/ScrapyProject | 370ef835e8bd09c197c98dfdd97ac84511b3e278 | 59ed19ce4c9df1bbfd3f57ae9e765b5c66983f6d | refs/heads/master | 2018-10-04T22:42:17.732679 | 2018-06-08T03:06:11 | 2018-06-08T03:06:11 | 124,848,339 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: btbaItem
Author : talus
date: 2018/4/8 0008
Description :
-------------------------------------------------
"""
import sys
import scrapy
class BtbaItem(scrapy.Item):
category = scrapy.Field()
... | UTF-8 | Python | false | false | 603 | py | 35 | btbaItem.py | 28 | 0.490818 | 0.472454 | 0 | 26 | 22.076923 | 49 |
VijayKr0810/VijayProject | 13,632,226,232,886 | 8362385b7931aaf77c31f6ecd57db51d80f31e23 | 156287b4f229c117667fe2d2c365903b8aaf83c5 | /io_simulator/struct_check.py | 2a43cb25d3d2303c1fdb16539a1d2c63bb6587f9 | [] | no_license | https://github.com/VijayKr0810/VijayProject | 8e854682b648ef3ec732c2ff9c206c9e07e804c0 | 6b0776188df0890e6e33a8da8b8d8f92cff190d6 | refs/heads/master | 2020-08-31T15:12:32.266282 | 2019-10-31T10:09:16 | 2019-10-31T10:09:16 | 218,719,131 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import ctypes,struct
import ctypes
from ctypes import *
from datetime import datetime
curr_time = datetime.now()
print curr_time.year
print curr_time.month
print curr_time.day
print curr_time.hour
print curr_time.minute
print curr_time.second
print curr_time.microsecond/1000
... | UTF-8 | Python | false | false | 328 | py | 10 | struct_check.py | 6 | 0.685976 | 0.67378 | 0 | 14 | 18.857143 | 32 |
finleysg/gamer-api | 16,801,912,091,784 | e33a7cb00da26e821ae7bdeedba0ea601073a01a | 9feb104f5542cca535b791a1eff769f484892ae2 | /core/migrations/0009_auto_20180422_0942.py | acba467071253b314d3054ef648040fa804810c1 | [] | no_license | https://github.com/finleysg/gamer-api | 013b7e02853890b3243ea5961d14c44e5e4ec717 | 9123fe7a59a509ebaa5c065e6ef10fe449fe6cf0 | refs/heads/master | 2020-02-28T01:19:10.836226 | 2018-07-03T18:59:31 | 2018-07-03T18:59:31 | 86,816,000 | 0 | 0 | null | false | 2020-08-17T02:57:22 | 2017-03-31T12:18:43 | 2020-08-17T02:56:58 | 2020-08-17T02:57:21 | 72 | 0 | 0 | 3 | Python | false | false | # Generated by Django 2.0.4 on 2018-04-22 14:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0008_auto_20180422_0923'),
]
operations = [
migrations.RemoveField(
model_name='gang',
name='owner',
... | UTF-8 | Python | false | false | 891 | py | 62 | 0009_auto_20180422_0942.py | 50 | 0.52413 | 0.489338 | 0 | 36 | 23.75 | 105 |
AronForero/Chameleon-Project-Back | 7,576,322,341,488 | 4ce44e66f4ce3c81ac2ab615d224d0139b6a6048 | 24eba2468a74f84ccaf92f0c78eaa8c6c6f5507c | /forum/views.py | 1dbcb60d1b99108fdbd3efcca695012fc7f82967 | [] | no_license | https://github.com/AronForero/Chameleon-Project-Back | 34692d391c3feb238208ee0e7bff837fc728fde9 | ce8c3309aa5e7125ff2eae657572897c94e3bb22 | refs/heads/develop | 2023-08-21T19:54:07.010381 | 2021-04-14T05:16:17 | 2021-04-14T05:16:17 | 262,084,897 | 0 | 1 | null | false | 2021-09-10T18:39:09 | 2020-05-07T15:14:32 | 2021-04-14T05:16:48 | 2021-09-10T18:39:09 | 141 | 0 | 1 | 2 | Python | false | false | """This file handles the logic that will be executed when the endpoint are called"""
from django.shortcuts import render
import datetime
from django.shortcuts import get_object_or_404
from rest_framework import status, viewsets
from rest_framework.response import Response
from rest_framework.permissions import AllowAny... | UTF-8 | Python | false | false | 1,243 | py | 10 | views.py | 9 | 0.760257 | 0.757844 | 0 | 38 | 31.710526 | 84 |
soitun/commcare-hq | 2,190,433,337,589 | f184db30b09a4c54fb9ec9af4ea637111ffe3b13 | 136b315c9573cbbd6d613e45c34c6e79e98c8b25 | /corehq/apps/hqcase/tests/test_case_api_permissions.py | 825168bbccd00508eb03bcda9e020d1de7e3e27c | [
"BSD-3-Clause"
] | permissive | https://github.com/soitun/commcare-hq | 088074835dd9cb1507a3d57523e5065ae4533fd8 | 5ee0ecadc08ecd1691ee0a26f8907ae0728af28e | refs/heads/master | 2023-08-23T08:06:09.694400 | 2023-05-12T10:18:24 | 2023-05-12T10:18:24 | 124,774,234 | 0 | 0 | BSD-3-Clause | true | 2023-05-15T22:20:21 | 2018-03-11T16:08:49 | 2022-05-12T08:54:19 | 2023-05-15T22:20:21 | 789,886 | 0 | 0 | 13 | Python | false | false | import uuid
from contextlib import contextmanager
from django.http import QueryDict
from django.test import TestCase
from django.urls import reverse
from casexml.apps.case.mock import CaseBlock
from corehq import privileges
from corehq.apps.case_search.models import CaseSearchConfig
from corehq.apps.commtrack.tests.... | UTF-8 | Python | false | false | 6,950 | py | 42 | test_case_api_permissions.py | 36 | 0.576115 | 0.572086 | 0 | 218 | 30.880734 | 89 |
MAyaCohenCS/PrivacyAttackSimulator | 18,889,266,201,443 | 920aaf79ffdb49a79b02fbd321209085d3645691 | ac70c3bc0be40815ce1a954803b23b7779dfd849 | /simulator.py | 3f671b326a4aad48dee08866c5fbb40c3fc3c27d | [] | no_license | https://github.com/MAyaCohenCS/PrivacyAttackSimulator | 494f8713757b97af726854cdc0a66c6bdbcacdb2 | c7da1e0d638ddbd97bac7d981b6b6cd902b101c3 | refs/heads/master | 2020-12-28T04:11:17.508672 | 2020-02-24T09:08:32 | 2020-02-24T09:08:32 | 238,177,311 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import attacks_lib
import private_mechanisms_lib
import data_utils
import matplotlib.pyplot as plt
import numpy as np
ATTACKS = [attacks_lib.LP_reconstructor]
BASELINES = [private_mechanisms_lib.No_privacy,
private_mechanisms_lib.Random_Answers]
MECHANISMS = [private_mechanisms_lib.Round_to_R_multipli... | UTF-8 | Python | false | false | 4,559 | py | 17 | simulator.py | 4 | 0.623382 | 0.616363 | 0 | 131 | 33.770992 | 125 |
YunShiTiger/ProxyPool | 12,575,664,269,594 | eea60ed60843c9fa5f09fb0ffc53ca1a78ae6b0c | af76168df443fd7a231646ec4a956603a1581152 | /DB/MongodbClient.py | c7e83d723453c2a8daefcb132ef8f9011ed984a9 | [
"MIT"
] | permissive | https://github.com/YunShiTiger/ProxyPool | 86a30609564df12ade8eb2b5fd3ef1b830eb28e7 | 9aab5ea8be34ec4331ff3ececd3780c7dd074eba | refs/heads/master | 2020-04-06T22:26:29.958534 | 2018-11-16T05:35:14 | 2018-11-16T05:35:18 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # coding: utf-8
from pymongo import MongoClient
class MongodbClient(object):
def __init__(self, name, host, port, **kwargs):
self.name = name
self.client = MongoClient(host, port, **kwargs)
self.db = self.client.proxy
def changeTable(self, name):
self.name = name
def get... | UTF-8 | Python | false | false | 1,880 | py | 11 | MongodbClient.py | 8 | 0.554787 | 0.539362 | 0 | 73 | 24.753425 | 79 |
schmitzl/AI_project | 3,118,146,270,257 | f8cf69a9fcf829292e9aeb9a1f720cbf039a366f | 3f8d59509632239bdd38c2fb823557311dceafe8 | /Documents/test.py | 0cda6cd68259a92638f804bf0e7f353b4a55c339 | [] | no_license | https://github.com/schmitzl/AI_project | e43a50ba26650457edfdf5fd85b6cf8408c44de7 | 41a4b0b6edc310e689b4cc43bf671e5074f19735 | refs/heads/master | 2021-05-03T14:57:51.914552 | 2016-10-27T13:04:34 | 2016-10-27T13:04:34 | 42,666,822 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
------- README ------
How to perform feature extraction / get a dictionairy and create bag of words from
it using scikit-learn python libraries.
Most stuff taken from http://scikit-learn.org/stable/modules/feature_extraction.html#the-bag-of-words-representation. I also added some more commentary coz the... | UTF-8 | Python | false | false | 4,348 | py | 20 | test.py | 9 | 0.674333 | 0.630405 | 0 | 170 | 24.511765 | 315 |
Abhi1997/crawler | 11,244,224,413,485 | 23b8410254ec8cbf9cb4b836368f350fec7a8221 | 8a3afaf51a617516268a8067575491be92b1a259 | /ExtractAll.py | 9fc37f93c31c65fca8773373af8ad1ad82658995 | [] | no_license | https://github.com/Abhi1997/crawler | 427564c028b5aafd162ef200be9c2dc337c7e22a | 660702e7e42445d323f40dcd62208c4585e8da76 | refs/heads/master | 2018-09-27T16:26:48.547705 | 2018-07-16T05:28:19 | 2018-07-16T05:28:19 | 135,258,602 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import requests
import bs4
import csv
import re
def name(x):
url = 'https://www.drugs.com' + x
req = requests.get(url)
soup = bs4.BeautifulSoup(req.text, 'lxml')
for a in soup.body.b:
return a
def dosage(y):
url = 'https://www.drugs.com' + y
req = requests.get(url)
soup = bs4.Bea... | UTF-8 | Python | false | false | 4,749 | py | 8 | ExtractAll.py | 7 | 0.508107 | 0.502 | 0 | 123 | 37.609756 | 159 |
denskif/CRM_test | 18,459,769,441,886 | 84d3c00653cfe2a08cd8a3550c570e2c09b129ca | 4f00b1285305bdc70d1e2a0fa8259bf8cca95598 | /CRMSuit_2_Company.py | d9d034f78000fec219ad05ff2b3d96ce4c7d5b66 | [] | no_license | https://github.com/denskif/CRM_test | 266a554564cbdffcb98a6d1ff30eac295943adf0 | 991fb2e7929e5315cb633230aa0c1cbdbc98e05c | refs/heads/master | 2019-11-28T16:50:27.173951 | 2017-09-27T16:37:05 | 2017-09-27T16:37:05 | 100,393,024 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #-*- coding: UTF -8 -*-
import unittest, time, sys
from datetime import datetime
import Shop_side as Shop
import CRM_side_Company as CRM
import CRM_side_Home as CRM_Home
from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.keys import Keys
from selenium... | UTF-8 | Python | false | false | 4,790 | py | 7 | CRMSuit_2_Company.py | 7 | 0.638329 | 0.620734 | 0 | 124 | 37.040323 | 188 |
BYU-AUVSI/GroundStation | 4,836,133,216,565 | ebb0fb8c509c87bd08aa5d6e226c7bdea1c328a4 | 5214f6ef55b5ab5f1e2beb847d690c377827265f | /src/ground_station/marble_map.py | 279bd1f3ebd44763f1578ed32ba48ed1061fb5ac | [] | no_license | https://github.com/BYU-AUVSI/GroundStation | 021d45c319cf0dc5e5edb3e3d1906bf5ed9e0bc8 | 79ada62392ebaf592ee787305e634e7a41871f69 | refs/heads/master | 2017-12-07T10:35:45.218850 | 2017-06-21T01:56:00 | 2017-06-21T01:56:00 | 79,607,833 | 0 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | from PyKDE4.marble import *
from PyQt4.QtCore import *
from PyQt4.QtGui import *
import os.path
from math import ceil, floor, sqrt, sin, asin, cos, acos, radians, degrees, fmod, pi
import map_info_parser
import rospy
from std_msgs.msg import String, Float32MultiArray
from rosflight_msgs.msg import State, GPS, RCRaw
fr... | UTF-8 | Python | false | false | 24,251 | py | 54 | marble_map.py | 22 | 0.623315 | 0.603893 | 0 | 498 | 47.696787 | 164 |
holi87/Selenium3 | 7,971,459,342,921 | 8716917312092e09df5ce2db5057b2c9c1df81b2 | bd757c63a76b1e1fcce1aef14669c237bdc2fb6e | /test_kraje_i_geostrefy.py | dc1f07587fce42dc8579ffa95e77344e5f365cbc | [] | no_license | https://github.com/holi87/Selenium3 | 3dad049a2ae19ef4c1e98c55cdfc90842925cc8b | 75cbe53a4b1fc45ecd012c0d41e25033cd3da13d | refs/heads/master | 2021-01-20T22:02:09.959004 | 2017-09-28T18:40:46 | 2017-09-28T18:40:46 | 101,796,049 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pytest
from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as ec
@pytest.fixture
def driver(request):
wd = webdriver.Chrome()
request.addfinalizer(wd.quit)
return wd
# task 9 - part 1
def test_countr... | UTF-8 | Python | false | false | 3,091 | py | 12 | test_kraje_i_geostrefy.py | 11 | 0.646716 | 0.637981 | 0 | 77 | 39.142857 | 117 |
Kokemomo/Kokemomo | 9,405,978,421,042 | 4c016697169a5b069a42e1afed59d84c924f9323 | 6c1ff800e79c8a5498c83e2708fdb3f9bd836821 | /kokemomo/plugins/admin/model/km_user_admin.py | 09edb3e54b74b932b00f8213c535ca9733de67d9 | [
"MIT"
] | permissive | https://github.com/Kokemomo/Kokemomo | 45759c1aad38bd55819331e4e9a77ba8be2dcf68 | 614504dc49b2f509b25c9ec2229f4438db73bab7 | refs/heads/master | 2020-12-25T22:47:54.786463 | 2019-05-11T05:33:41 | 2019-05-11T05:33:41 | 23,455,240 | 5 | 2 | MIT | false | 2019-05-11T05:33:42 | 2014-08-29T06:48:37 | 2017-09-12T10:44:58 | 2019-05-11T05:33:41 | 4,754 | 2 | 3 | 14 | Python | false | false | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from kokemomo.plugins.engine.model.km_user_table import KMUser
from kokemomo.plugins.engine.model.km_group_table import KMGroup
from kokemomo.plugins.engine.model.km_role_table import KMRole
class KMUserAdmin:
@classmethod
def save_user(cls, data):
id = dat... | UTF-8 | Python | false | false | 1,250 | py | 112 | km_user_admin.py | 74 | 0.5888 | 0.588 | 0 | 40 | 30.225 | 67 |
mxttbennett/Civic-Connect | 2,113,123,930,999 | 91f3a60432c61f16982422164eb29a2f35200a7b | 2f64dafa3445a4b7da74c8df317afd6c581bd150 | /cc/models.py | c73d9dfbf00c9a47600d3fdacc58134b024b9a3d | [] | no_license | https://github.com/mxttbennett/Civic-Connect | 38baeff5b55a4429e6ef43b96b22c84a11f32ac0 | 9545392ec8c703574ce9e2477d1440b2fb0c8719 | refs/heads/master | 2023-03-22T00:55:30.740777 | 2021-03-08T07:08:42 | 2021-03-08T07:08:42 | 345,561,206 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from django.db import models
class Issue(models.Model):
user_id = models.CharField(max_length=200, default="admin")
issue_name = models.CharField(max_length=200)
issue_text = models.CharField(max_length=3000)
is_approved = models.BooleanField(default=True)
class SiteUser(models.Model):
user_id = m... | UTF-8 | Python | false | false | 1,261 | py | 18 | models.py | 11 | 0.716098 | 0.679619 | 0 | 32 | 38.4375 | 63 |
Wps-8th-Wadiz/Wadiz | 1,906,965,527,580 | 7ba04a9dd75256ccd9cb84cafbb34fddb92e369b | 0d2eb2a50b2631532a24dddb0a7b4ea81d8aebf1 | /app/members/urls/apis.py | 679dee59f53689114524d59bbeef5b7806c70a93 | [] | no_license | https://github.com/Wps-8th-Wadiz/Wadiz | 0a71643ad8a096631f0b6bdb0bd797914bc5d7f5 | 40023762ee1576d36adf9aae79e571f5bbe881ac | refs/heads/master | 2022-12-27T01:47:52.523693 | 2019-05-29T16:12:12 | 2019-05-29T16:12:12 | 143,415,865 | 0 | 3 | null | false | 2022-12-08T02:54:55 | 2018-08-03T10:51:54 | 2019-05-29T16:12:22 | 2022-12-08T02:54:55 | 5,526 | 0 | 2 | 17 | Python | false | false | from django.urls import path
from .. import apis
app_name = 'user'
urlpatterns = [
path('', apis.UserList.as_view()),
path('signin/', apis.AuthToken.as_view()),
path('detail/<int:pk>/', apis.UserDetail.as_view()),
path('signup/', apis.UserList.as_view(), name='signup'),
path('activate/<str:uidb64... | UTF-8 | Python | false | false | 485 | py | 32 | apis.py | 23 | 0.637113 | 0.63299 | 0 | 15 | 31.333333 | 93 |
hgpaula85/SeleniumProjects | 12,506,944,790,249 | 6e58c448c245d907bf626b88545be4faff53043a | ac59a4444b7fedf696e622e027a419db95e86f11 | /PyTestPack/test_case_demo_2.py | d248c5fd7c9f22e915b6b106728a173f976212e9 | [] | no_license | https://github.com/hgpaula85/SeleniumProjects | 9490166cb6bd8217551e13b6b54b51cbd7a7f294 | 2477241bb6c98f39bbc01f3c720843a02bb56815 | refs/heads/master | 2021-01-13T05:22:02.779933 | 2020-01-30T09:12:47 | 2020-01-30T09:12:47 | 81,366,904 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import pytest
@pytest.yield_fixture()
def set_up():
print("\nRun demo 2 set up")
yield
print("\nRun demo 2 tear down")
print("-" * 50)
def test_demo_2_test_01(set_up):
print("Running demo 2 test 01")
def test_demo_2_test_02(set_up):
print("Running demo 2 test 01")
| UTF-8 | Python | false | false | 296 | py | 35 | test_case_demo_2.py | 34 | 0.618243 | 0.564189 | 0 | 18 | 15.444444 | 35 |
xiaorancs/business-exit-risk-forecast | 11,888,469,498,081 | 688a3eca38e283684de2b27bdffdfbffd65fd913 | a3943ff15380cc7da674f4c9ac90fb197c995c5c | /stack/remove_onefeatures.py | bc7b5b8c995e54c4c92677c6676a470d4f14065f | [
"BSD-2-Clause"
] | permissive | https://github.com/xiaorancs/business-exit-risk-forecast | 7849b395c2a571ec7f1afb45a1cd1efd89b5a7bc | 2d8fbfa3a90883e486884b84717e08b86f1daa8d | refs/heads/master | 2018-12-10T11:00:47.399696 | 2018-10-12T06:32:03 | 2018-10-12T06:32:03 | 113,841,805 | 20 | 3 | null | null | null | null | null | null | null | null | null | null | null | null | null |
# coding: utf-8
# In[1]:
import pandas as pd
import numpy as np
# 重新审视数据,对年和月进行分割,对不听的类别的特征添加更过的one-hot编码
# ont-hot
# 1. HY
# 2. ETYPE
# 3. ALEREO
# 4. WXCODE
# 5. 年和月(日期)
#
#
# > 可以确定的one-hot编码:
# + HY
# + ETYPE
# + CHANGE_FIRST_ALTERNO
# + CHANGE_END_ALTERNO
# + CHANGE_ALTERNO_MUCNID
# + RIGHT_FIRST_TYPECODE
#... | UTF-8 | Python | false | false | 4,309 | py | 34 | remove_onefeatures.py | 28 | 0.638882 | 0.62335 | 0 | 113 | 33.168142 | 123 |
legendofdoug/Log_Puller | 9,268,539,431,837 | 44648b044c29053e56804b2cdc58705d7fdca3ac | 10bffb03a8fade5e4f09a2cab02f5c4cf4df9540 | /misc_tools.py | b7fd6669c805cabe0827596f575c6e88d45a3443 | [] | no_license | https://github.com/legendofdoug/Log_Puller | f97a339b32df4bb505a52ac9c39563fedfbb8b4c | b01bb47921e7b5d104bdd093937577dba88d9629 | refs/heads/master | 2022-12-09T05:27:23.054186 | 2020-08-28T21:53:29 | 2020-08-28T21:53:29 | 275,969,168 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import socket
import argparse, os
from subprocess import call
from config import *
import os
import getpass
"""This file is no llonger used, but is being kept just in case I need it."""
# function below is from https://stackoverflow.com/questions/166506/finding-local-ip-addresses-using-pythons-stdlib
def get_ip():
... | UTF-8 | Python | false | false | 932 | py | 9 | misc_tools.py | 8 | 0.646996 | 0.620172 | 0 | 29 | 30.965517 | 115 |
harshad-deo/TorchVI | 1,090,921,741,124 | 3d0a8d94a0e3494e1bc91f797ce4d650e68620a1 | 02f3b2a84ea1fc0ff243fd5f4dc39c9f44e68657 | /abinitio/03_linear_regression.py | 7091b0913a5e1f2f7478a5c709db6e7aafaf6240 | [
"Apache-2.0"
] | permissive | https://github.com/harshad-deo/TorchVI | fb2095c826424c8160e3447399c71414b3830756 | f66d1486201368c9906869477ba7ae254d2e7191 | refs/heads/main | 2023-02-25T10:20:05.907847 | 2021-01-20T15:34:31 | 2021-01-20T15:34:31 | 317,140,695 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import math
import numpy as np
import torch
from torch import optim, distributions
from tqdm import tqdm
class Model:
def __init__(self, reg_prior_mu, reg_prior_sd, noise_prior_scale):
self.mu_0 = torch.randn(1)
self.mu_1 = torch.randn(1)
self.mu_2 = torch.randn(1)
self.omega_0 = t... | UTF-8 | Python | false | false | 3,786 | py | 59 | 03_linear_regression.py | 35 | 0.584258 | 0.550449 | 0 | 132 | 27.681818 | 91 |
paulmagnus/CSPy | 4,578,435,146,120 | 58302ebe9743c9eb451a676047928c97400d99d4 | 672c7054ad3954ad0cbb9feaf1a18b2d48b8da83 | /Games-2017/28/Game.py | 8ccf8f633f9fb3b3e28ea9c2074c6590a2ffad06 | [] | no_license | https://github.com/paulmagnus/CSPy | 5197d78309ab85d1e8cc979ed5c17782ff4249e1 | e5d96a65fc84481b85072cfb55dea9a0666634b5 | refs/heads/master | 2020-03-07T23:08:35.445403 | 2018-04-02T13:46:38 | 2018-04-02T13:46:38 | 127,773,207 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | """
*****************************************************************************
FILE: Game.py
AUTHOR: Olivia Maddox
PARTNER: N/A
ASSIGNMENT: Project 6
DATE: 04/07/17
DESCRIPTION: This program builds a Hamilton-themed Monopoly game. It involves
graphics and several classes including a die, a deck, a set of Chance... | UTF-8 | Python | false | false | 30,996 | py | 179 | Game.py | 152 | 0.483933 | 0.456381 | 0 | 971 | 30.92173 | 80 |
novayo/LeetCode | 2,138,893,740,721 | 41a5999dba31548a6506b1174dd777a70a637a05 | 2f63688febd21dc3ae6b19abfa79ad313c820154 | /0158_Read_N_Characters_Given_Read4_II_-_Call_multiple_times/try_2.py | a4c2dd4e8324887b41c77bbd258c20c2e4d12a53 | [] | no_license | https://github.com/novayo/LeetCode | cadd03587ee4ed6e35f60294070165afc1539ac8 | 54d0b3c237e0ffed8782915d6b75b7c6a0fe0de7 | refs/heads/master | 2023-08-14T00:35:15.528520 | 2023-07-30T05:56:05 | 2023-07-30T05:56:05 | 200,248,146 | 8 | 1 | null | false | 2022-11-19T04:37:54 | 2019-08-02T14:24:19 | 2022-11-02T09:01:22 | 2022-11-19T04:37:54 | 1,851 | 5 | 1 | 0 | Python | false | false | # The read4 API is already defined for you.
# def read4(buf4: List[str]) -> int:
class Solution:
def __init__(self):
self.rest = []
def read(self, buf: List[str], n: int) -> int:
while len(self.rest) < n:
tmp = [''] * 4
num = read4(tmp)
if num == 0:
... | UTF-8 | Python | false | false | 537 | py | 2,665 | try_2.py | 1,754 | 0.44879 | 0.437616 | 0 | 20 | 25.8 | 50 |
ukchiji/team-project-3-matron | 8,091,718,411,467 | 86611b4ac4af3f8940359db4bc3d5a1f77f91d42 | 2686ef5f9fbe941796f4c773c72cc03be813b68c | /selenium_test/test_IE/test_basics.py | c70d191a006c949ed49511c50c83eba7711cd595 | [
"MIT"
] | permissive | https://github.com/ukchiji/team-project-3-matron | 25b4f46a7c4b232fc78dcc9220110129aa465052 | 53e4298ac8ff2866f187783a2e7d74cae578d4d5 | refs/heads/master | 2023-04-12T22:48:17.371003 | 2020-04-11T01:27:28 | 2020-04-11T01:27:28 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import unittest
from selenium import webdriver
import time
from selenium.webdriver.common.action_chains import ActionChains
import os
from testutils import EasyDriver
class seleniumtest(EasyDriver):
def test_Heroku(self):
self.driver.maximize_window()
self.driver.get("https://floating-shore-5... | UTF-8 | Python | false | false | 758 | py | 25 | test_basics.py | 18 | 0.646438 | 0.630607 | 0 | 26 | 28.115385 | 70 |
garaemon/gcal-watcher | 4,801,773,484,710 | 395003288a3b12ea21d1598d9c46207c048edb40 | e8ca9de4562353e77daee9fda8b05993480dc60a | /gcal_watcher/command.py | b24f6c2eb5b76cc14882159124ff97361c52a3c0 | [] | no_license | https://github.com/garaemon/gcal-watcher | 547d04c3bae334b36950c172b0895f0326c32cb1 | da380235e3c41ee8a96d6cc4bdbaf5907a180758 | refs/heads/master | 2021-05-10T13:35:24.801393 | 2018-02-03T07:25:40 | 2018-02-03T07:25:40 | 118,480,214 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import datetime
import json
from threading import Thread
import requests
class CommandException(Exception):
pass
class Command(object):
REQUIRED_FIELDS = ['method', 'url']
def __init__(self, json_object, event_date):
Command.verify_fields(json_object)
self.is_started = False
se... | UTF-8 | Python | false | false | 3,168 | py | 10 | command.py | 8 | 0.553346 | 0.543245 | 0 | 99 | 31 | 95 |
cubedro/raiden | 7,662,221,666,865 | 4dc97ed4a54528565198265e9a1b2fd6266e9015 | 4b70ceb354c84d2281fa32a606883cfe407f311d | /raiden/tests/test_service.py | 860daf1f202f2f45a47677ef115cbfb5c1d0e7b1 | [
"MIT"
] | permissive | https://github.com/cubedro/raiden | 0254673f8bd9e227b870452c4d477dfbcb583f7f | eed6e2d88d3caa755b2aa51d1ca5f8295b5ab670 | refs/heads/master | 2021-01-12T13:27:33.059247 | 2016-03-03T14:31:18 | 2016-03-11T17:32:17 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from raiden.messages import Ping, Ack, decode
from raiden.app import create_network
from raiden.transport import UnreliableTransport, UDPTransport
from raiden.raiden_protocol import RaidenProtocol
from .utils import setup_messages_cb
import gevent
def test_ping():
apps = create_network(num_nodes=2, num_assets=0, ... | UTF-8 | Python | false | false | 2,609 | py | 17 | test_service.py | 15 | 0.644308 | 0.621694 | 0 | 87 | 28.988506 | 85 |
pulumi/pulumi-azure-native | 14,267,881,393,696 | 9a2dbf1df6711d101e57fd7e62a4167f3a2e67b9 | b049a961f100444dde14599bab06a0a4224d869b | /sdk/python/pulumi_azure_native/desktopvirtualization/__init__.py | 4cff60e757ad5f60f7795da7f0a7abb842681113 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | https://github.com/pulumi/pulumi-azure-native | b390c88beef8381f9a71ab2bed5571e0dd848e65 | 4c499abe17ec6696ce28477dde1157372896364e | refs/heads/master | 2023-08-30T08:19:41.564780 | 2023-08-28T19:29:04 | 2023-08-28T19:29:04 | 172,386,632 | 107 | 29 | Apache-2.0 | false | 2023-09-14T13:17:00 | 2019-02-24T20:30:21 | 2023-09-11T17:08:08 | 2023-09-14T13:16:52 | 2,507,628 | 104 | 26 | 377 | Python | false | false | # coding=utf-8
# *** WARNING: this file was generated by pulumi. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from .. import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .application import *
from .application_group import *
fro... | UTF-8 | Python | false | false | 2,551 | py | 13,948 | __init__.py | 5,665 | 0.792238 | 0.678949 | 0 | 52 | 48.038462 | 107 |
harshpv07/InternRESTAPI | 11,536,282,172,819 | 695a855272bd654c11aa7aebf5e8b668928a39aa | dda8b38073a7e0bed87a0fa9b948f188384cb1fe | /venv/lib/python3.7/sre_parse.py | da55ab08d648534a54f78219228f25e92202c832 | [] | no_license | https://github.com/harshpv07/InternRESTAPI | fcb6e0a4f9c6e80484855649821d27971344fd8e | 57d3bcc7ca41925d79ea00227e57a96d53dd22b3 | refs/heads/master | 2021-06-20T13:55:21.593685 | 2019-05-25T11:25:09 | 2019-05-25T11:25:09 | 188,557,165 | 0 | 0 | null | false | 2021-03-19T22:41:14 | 2019-05-25T11:20:24 | 2019-05-25T11:25:12 | 2021-03-19T22:41:14 | 15,511 | 0 | 0 | 1 | Python | false | false | /home/harsh/anaconda3/lib/python3.7/sre_parse.py | UTF-8 | Python | false | false | 48 | py | 48 | sre_parse.py | 46 | 0.8125 | 0.75 | 0 | 1 | 48 | 48 |
nguyennhut401/quangly_vanban | 12,275,016,570,802 | e1ec988f00032f54baf6b4932b5a7c988249d04c | 53c6d31da97e7c1a6bc72cc4440361689a5c1f53 | /the_docs/models.py | 5d73e029548aa12ae201f94368843d429d1c0ee5 | [
"MIT"
] | permissive | https://github.com/nguyennhut401/quangly_vanban | ab8e7832b5df8f7cedaf7a0e9e56071c4e30a446 | 39a485156b567654ceece1fac28f043a58886006 | refs/heads/master | 2019-01-26T22:00:04.855791 | 2017-08-01T13:01:10 | 2017-08-01T13:01:10 | 98,044,891 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from slugify import slugify
import hashlib
from .library import UnicodeHtmlToUnicode, RemoveHTML
import pdb
# Create your models here.
class Dictionary(models.Model):
"""Model Dictionary"""
name = models.CharField(max_lengt... | UTF-8 | Python | false | false | 3,192 | py | 16 | models.py | 13 | 0.715539 | 0.709273 | 0 | 81 | 38.419753 | 128 |
nicolasbon38/Werewolf_game_discord_bot | 17,806,934,415,400 | 39a2cb8512c11af2bd417fa656fc29abe4201411 | 4d57da4b95251a6a9af861a855b0b1ca4b50b7fe | /state_witch.py | 50be5ea79f37a9d4ea0f82265cb43e57423d815a | [] | no_license | https://github.com/nicolasbon38/Werewolf_game_discord_bot | f351c8328dcefde14593978c8bfad1e0b40dbe7b | fadbd4e56bc0c5ee5f14aa8e483a7775a5026b82 | refs/heads/master | 2022-11-29T19:57:37.899112 | 2020-07-15T20:00:57 | 2020-07-15T20:00:57 | 278,888,823 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class State_witch:
def __init__(self):
self.life_potion = True
self.death_potion = True | UTF-8 | Python | false | false | 107 | py | 8 | state_witch.py | 7 | 0.588785 | 0.588785 | 0 | 4 | 26 | 32 |
ErikBjare/quantifiedme | 16,149,077,060,200 | e52f3736c23ea39aa935a2eed68264f1db64894a | 0a9abbab28fa1a082f93b8749b1ac4ab04f43809 | /src/quantifiedme/load/activitywatch_fake.py | ffb4169d785b8279fc08550a5672e3004f35fc82 | [] | no_license | https://github.com/ErikBjare/quantifiedme | 297a2e28d1a653f0edc751328c92db212013786a | 1a187f5cf0855bc2168cb000873718df4825d3c7 | refs/heads/master | 2023-05-28T08:34:40.007693 | 2023-05-23T17:51:18 | 2023-05-23T17:51:18 | 134,724,751 | 25 | 1 | null | false | 2023-03-23T10:08:07 | 2018-05-24T14:11:10 | 2023-03-07T15:32:40 | 2023-03-23T10:07:22 | 6,136 | 21 | 2 | 3 | Python | false | false | import random
from typing import Iterable
from datetime import datetime, timedelta
import numpy as np
from aw_core import Event
fakedata_weights = [
(100, None),
(2, {"title": "Uncategorized"}),
(5, {"title": "ActivityWatch"}),
(4, {"title": "Thankful"}),
(3, {"title": "QuantifiedMe"}),
(3, {... | UTF-8 | Python | false | false | 1,661 | py | 39 | activitywatch_fake.py | 27 | 0.596026 | 0.576761 | 0 | 54 | 29.759259 | 82 |
chukyjack/ace_it_dataconsole | 11,596,411,728,879 | 9f2fa505dd9ea48326a704499c7b1d1f461afbff | 5ebd67d6574f03b4481694f610e899672a9fff71 | /ace_it/schedule/migrations/0003_schedule_is_confirmed.py | 344a4f5f38fa95b061a023adaefe908187a0a300 | [] | no_license | https://github.com/chukyjack/ace_it_dataconsole | 1d1f12e0e04b8b2e9ce47736a44614f98a9aa0cd | 57605d9c47121d67a7a28e5b5cd46e88c656109a | refs/heads/ace_it_backend | 2022-12-13T00:53:17.052007 | 2020-10-20T06:15:40 | 2020-10-20T06:15:40 | 210,095,730 | 0 | 0 | null | false | 2022-12-08T01:24:03 | 2019-09-22T05:31:21 | 2020-10-20T06:16:55 | 2022-12-08T01:24:02 | 152,373 | 0 | 0 | 16 | SCSS | false | false | # Generated by Django 2.2 on 2020-01-20 04:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('schedule', '0002_auto_20191009_0612'),
]
operations = [
migrations.AddField(
model_name='schedule',
name='is_confirmed... | UTF-8 | Python | false | false | 394 | py | 299 | 0003_schedule_is_confirmed.py | 206 | 0.596447 | 0.520305 | 0 | 18 | 20.888889 | 53 |
shibom/google_py_exercise | 9,216,999,837,143 | 1e0b777a4816e0701196b0a4740f298d493dd921 | 772c687c823f8a588d76fa2a55a2594be5755f64 | /alice_counter.py | 51ad64a7f48bfe197ef089610c2e5562e96305f9 | [] | no_license | https://github.com/shibom/google_py_exercise | 183cf5bdbc9c26bcdaa7e59c4d26367277911b3e | d312c7ee5519d946269c57e125801499e56ccf6c | refs/heads/master | 2021-01-01T05:14:44.354126 | 2015-07-24T00:36:15 | 2015-07-24T00:36:15 | 39,601,638 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/bin/env python
from collections import Counter
import pylab
from pylab import *
import matplotlib.pyplot as plt
infile = open("alice.txt", 'r')
all_lines = infile.readlines()
num_words = 0
word_count = Counter()
words = {}
for lines in all_lines:
lines = lines.split()
for word in lines:
wor... | UTF-8 | Python | false | false | 616 | py | 13 | alice_counter.py | 12 | 0.673701 | 0.652597 | 0 | 29 | 20.241379 | 42 |
nurulsucisawaliah/python-project-chapter-6 | 644,245,096,293 | 1d3afef9f1bc082f45e57595ee36c154015fdef2 | 00522b2228ead8a634d9b2095c1e67f67f81d9ea | /statistik/bagian A.py | fb6f0b715a56fa66a9aad7123fb2992de2d0dd5a | [] | no_license | https://github.com/nurulsucisawaliah/python-project-chapter-6 | 94a2c4ef2deac599c050cb01359a07fa4c45aab3 | a830ae05ba0439e69838cf063ef807804597b50c | refs/heads/main | 2023-01-08T12:06:58.991579 | 2020-11-09T16:23:15 | 2020-11-09T16:23:15 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def sum(*n):
i=0
for x in n:
i=i+x
print(i)
| UTF-8 | Python | false | false | 69 | py | 8 | bagian A.py | 8 | 0.362319 | 0.347826 | 0 | 5 | 11.8 | 15 |
ioncann0ns/ad2dispatch | 5,360,119,232,026 | 8aa06bfd03d59d0695b495e9dad761bd0f383c04 | ee569d3f3d7629225e741d04774a54936b328474 | /pages/views.py | b48c2dedf4a8bd878f6f0bff47f5eebb8ef4072d | [
"Apache-2.0"
] | permissive | https://github.com/ioncann0ns/ad2dispatch | b6e0bd52e1559620f4b13e9b1fe4b88dc8e7b4d2 | 0fcce967466c5abc00dc71480a92b31fabb06cf2 | refs/heads/master | 2016-08-10T21:11:55.281679 | 2016-04-19T02:34:26 | 2016-04-19T02:34:26 | 42,753,900 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import markdown
from django.http import Http404
from django.shortcuts import render
from .models import Page
def page(request, page_title=None, sub_page=None):
try:
# Get page data
if page_title is None:
selected_page = Page.objects.filter(parent_page=None).order_by('order').first()
... | UTF-8 | Python | false | false | 2,069 | py | 17 | views.py | 12 | 0.570807 | 0.567907 | 0 | 56 | 35.946429 | 109 |
cuthai/ML_Assignment5 | 11,553,462,057,261 | 68be2345b17e93da7028da7a4b83af9d2dd083e9 | 4e852b51e571f1db6d12ebcda6cb22fdbd40749c | /neural_network/output_layer.py | 7cd00493b69367b9cd549d303e97bb5833534bef | [] | no_license | https://github.com/cuthai/ML_Assignment5 | 2afcd4a31e8d44cb5789f601ea9dd41d81362c95 | cf2ff6381524fbc3ec41cbf1b06cf839b388fb1a | refs/heads/master | 2023-01-10T23:58:29.425180 | 2020-11-15T03:49:27 | 2020-11-15T03:49:27 | 307,850,702 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import numpy as np
import math
class OutputLayer:
"""
Class OutputLayer
This class receives the inputs and perform classification using a softmax function. The max of the function is used
for prediction
"""
def __init__(self, dimensions, classes, class_names, input_count, step_size, conve... | UTF-8 | Python | false | false | 3,178 | py | 37 | output_layer.py | 8 | 0.594399 | 0.588106 | 0 | 100 | 30.78 | 119 |
timpierce/superlists | 5,497,558,166,820 | b78d3f3153f7ffa9d1b3f4e948efc363fcd5a0c7 | 29e4a512fabcb9ae3782974c5dd792bd6877dfba | /deploy_tools/fabfile.py | 03213b938ad1ed2e8007048517545334f3fcdcb8 | [] | no_license | https://github.com/timpierce/superlists | fc0d5269e104a8623880869e1ef9b1fa42b97891 | 6b3dcacec7dc3fcabae818da4cdb45dce6741c4f | refs/heads/master | 2021-08-22T15:26:49.445216 | 2018-12-10T19:21:41 | 2018-12-10T19:21:41 | 160,975,881 | 0 | 0 | null | false | 2021-06-10T21:02:33 | 2018-12-08T20:26:55 | 2018-12-10T19:22:06 | 2021-06-10T21:02:32 | 27 | 0 | 0 | 2 | Python | false | false | import random
from fabric.contrib.files import append, exists
from fabric.api import cd, env, local, run
REPO_URL = 'https://github.com/timpierce/superlists.git '
def deploy():
pass | UTF-8 | Python | true | false | 188 | py | 5 | fabfile.py | 3 | 0.744681 | 0.744681 | 0 | 9 | 20 | 57 |
heitorlessa/serverless-encryption-workshop | 1,099,511,634,625 | 16a6c544bfb103f62bf3298edd8c122ec37ed079 | 15568b26730d7de7baaf8a3b025744ebd371f050 | /lab2/config_sample/dynamo/encryption_service.py | be61c95c88024f27a75ac1831972bb7d7b22e1f6 | [
"Apache-2.0"
] | permissive | https://github.com/heitorlessa/serverless-encryption-workshop | ff119d909bdce6ba37cb0ab913cc018dde61c141 | b2a42034aef02dc27463a857eccec9307a50ee3f | refs/heads/master | 2021-01-19T07:06:58.708323 | 2016-10-12T13:00:10 | 2016-10-12T13:00:10 | 64,591,597 | 2 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #-------------------------------------------------------------------------
# Name: Encryption microservice for Lambda
# Purpose: Demonstrate use of KMS Encrypt endpoint, configuration handling via DynamoDB local
# Author: Heitor Lessa
#--------------------------------------------------------------------... | UTF-8 | Python | false | false | 3,177 | py | 25 | encryption_service.py | 9 | 0.595845 | 0.584199 | 0 | 108 | 28.416667 | 99 |
haitham88/currency_exchange_rate | 7,988,639,216,284 | 6b88bed62393d8d22bf05f84691c5cc06afc09be | cf584b351b02845a9b69cce6dc055339fc9a1d30 | /app/utils/response.py | 5c6c995e9b6555e65e485ad76bbf25cef41eee82 | [] | no_license | https://github.com/haitham88/currency_exchange_rate | 8bd810764c656e403938551eb9565345457be55a | 1fb1d318a5f909f95ad81f6993bf5a3517262a4d | refs/heads/master | 2023-01-29T19:37:21.756667 | 2020-12-11T12:07:40 | 2020-12-11T12:07:40 | 320,328,374 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null |
class Response(object):
status: bool
status_code: int
data: dict | UTF-8 | Python | false | false | 81 | py | 17 | response.py | 15 | 0.617284 | 0.617284 | 0 | 4 | 19 | 23 |
thanyachanok/-1 | 9,526,237,484,509 | 1ff4c32b64c544f1f5a1ce96da5cabde03d36caa | 30a9765fc0a1804e7809e51f4dd4c4055bc6e489 | /รองเท้า.py | 4fef9a16f35bcb9b941c8815285ced5585be545d | [] | no_license | https://github.com/thanyachanok/-1 | 6eddeb908833a904281422ca0f972750c3acbe1a | ae852d577880ddd8c4ffdef919e159947f8d2271 | refs/heads/master | 2022-09-01T13:45:24.447905 | 2020-05-27T14:53:53 | 2020-05-27T14:53:53 | 267,347,787 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | a = []
x=0
while True :
print ('--------------\n ร้าน MiDream \n-------------- ')
print ('1)Nike ลด 20% [n]\n2)Adidas ลด 30% [a]\n3)converse ลด 50% [c]\n สิ้นสุดการเลือกรายการ [x]\n home [y]')
brand = input ('Please select brand : ')
brand = brand.lower()
while brand =='n' :
print (... | UTF-8 | Python | false | false | 4,879 | py | 1 | รองเท้า.py | 1 | 0.40955 | 0.33399 | 0 | 89 | 43.606742 | 182 |
enda1111/deep-learning | 14,370,960,613,213 | f6731c128edfa58506e4ef8ea2ab85343323e6c9 | 71791e19d6f420324b2426369f7ca008ee5ddac8 | /nn/__init__.py | 66a1182454fec1a55b557f1bf10d52c37a7e24d0 | [] | no_license | https://github.com/enda1111/deep-learning | ebba94b2942586baa0d79666d389bc0b24d9619b | 778cbdec7815d1617df4adcf47c57705da71b65e | refs/heads/master | 2021-01-24T10:37:22.860780 | 2016-10-10T14:39:02 | 2016-10-10T14:39:02 | 70,310,141 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from . import trainer
Trainer = trainer.Trainer
| UTF-8 | Python | false | false | 49 | py | 7 | __init__.py | 7 | 0.77551 | 0.77551 | 0 | 3 | 15.333333 | 25 |
tonymontaro/Algorithmic-Problem-Solving | 8,057,358,658,229 | a0af33944a8a604bdbeccb6052c6933f126db792 | 187b62e1b808fa92b04912c211301a5695a2d1fe | /Hackerrank/algorithms - practice/sorting/07-quicksort-1-partition.py | 51153b2ce1a5871493dfb6e6e404d97e18893057 | [] | no_license | https://github.com/tonymontaro/Algorithmic-Problem-Solving | fda498ee841a88e9e43ad624136e86b4e101e587 | 290e4c3af79ff5477b31a314a08eb24f3690890b | refs/heads/master | 2021-06-07T04:49:22.786439 | 2020-11-24T10:49:00 | 2020-11-24T10:49:00 | 122,983,998 | 0 | 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | n, l, left, right = input(), [i for i in input().strip().split()], [], []
el, equal = int(l[0]), [l[0]]
for i in range(1, len(l)):
if int(l[i]) == el:
equal.append(l[i])
elif int(l[i]) > el:
right.append(l[i])
else:
left.append(l[i])
print(' '.join(left + equal + right))
| UTF-8 | Python | false | false | 310 | py | 188 | 07-quicksort-1-partition.py | 95 | 0.493548 | 0.483871 | 0 | 12 | 24.833333 | 73 |
MeanTuple/hello_world | 10,136,122,845,392 | 179f0d18f71fd5e29711fb773f29c27ce3728260 | d33c1f5c659129c7708540bd62c6ae00937d5c78 | /hw.py | 4657b4ed1a0e3dd8e8fadd037870e2e5ffeea8d7 | [] | no_license | https://github.com/MeanTuple/hello_world | 22edb9c251eeed5048d35541c5015eade80d5281 | e3931147fc0d652fa9d430c2f1bd5b0c7c115b51 | refs/heads/master | 2021-04-06T00:16:29.037815 | 2018-04-22T05:14:38 | 2018-04-22T05:14:38 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | print "Hello,world!" #python 2.7
print("Hello,world!") #python 3.6
| UTF-8 | Python | false | false | 67 | py | 1 | hw.py | 1 | 0.686567 | 0.626866 | 0 | 2 | 32.5 | 33 |
meloun/ew_aplikace | 4,148,938,431,066 | 97cb8f4f4d22a56486a7e49144a377ac7929bc52 | dc99adb79f15b3889a7ef6139cfe5dfc614889b8 | /Aplikace_1_0/Source/libs/test/odr.py | eeb3f66e23f8eea260b1110f6560e6d92ac5a345 | [] | no_license | https://github.com/meloun/ew_aplikace | 95d1e4063a149a10bb3a96f372691b5110c26b7b | f890c020ad8d3d224f796dab3f1f222c1f6ba0eb | refs/heads/master | 2023-04-28T06:43:12.252105 | 2023-04-18T19:59:36 | 2023-04-18T19:59:36 | 2,674,595 | 0 | 2 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
Created on 2.12.2013
@author: Meloun
'''
mystr = "0100"
print mystr
print hex(int(mystr)) | UTF-8 | Python | false | false | 101 | py | 160 | odr.py | 113 | 0.623762 | 0.514851 | 0 | 8 | 10.875 | 21 |
acaciawater/gw4e | 2,422,361,569,435 | a762227eec2107a4142f4dfe369ec99d58d3d5b4 | 473734eb1f5efc4261856a93bed3aab78d2ca28e | /maps/migrations/0034_documentgroup_open.py | 93df419cc865149e29e6e831ad2c3cc96063b422 | [] | no_license | https://github.com/acaciawater/gw4e | 922e35b40d502a6eec7bfac4fefd8836518bb8ea | 2ea0cce334b87df69aa7aa2651fc7e8f43295b07 | refs/heads/master | 2021-06-21T04:03:23.685705 | 2021-01-04T14:08:56 | 2021-01-04T14:08:56 | 163,511,033 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 2.2.12 on 2020-04-15 19:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('maps', '0033_delete_userconfig'),
]
operations = [
migrations.AddField(
model_name='documentgroup',
name='open',
... | UTF-8 | Python | false | false | 389 | py | 99 | 0034_documentgroup_open.py | 76 | 0.59383 | 0.542416 | 0 | 18 | 20.611111 | 53 |
AnthonyMChong/leetcodepractice | 7,859,790,156,317 | c49a1ca25716fdbc1ec20e8c1e160e1141adda98 | bcf93f61800fb0152603326da81b161f01d440dd | /monotonic-array/monotonic-array.py | 82d64bb5cd8e95feec3d1ec187b74fcda676b697 | [] | no_license | https://github.com/AnthonyMChong/leetcodepractice | ae313ffdf169340a41968ca511e3d7abf35fdefc | 0094d2a8241a5c52d38b96a6d79965ca7ca727af | refs/heads/master | 2020-04-26T02:43:05.485726 | 2019-08-22T01:56:28 | 2019-08-22T01:56:28 | 173,243,018 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | def ismonotonic ( inlist ): # will use mode flag to check 0 monotone -1 if dec , 1 if inc
monoflag = 0
preVal = None
for checklist in inlist:
if preVal == None:
preVal = checklist
elif (checklist > preVal) :
if (monoflag < 0):
return False
... | UTF-8 | Python | false | false | 603 | py | 35 | monotonic-array.py | 30 | 0.525705 | 0.492537 | 0 | 22 | 26.454545 | 89 |
Lee-Geon-Yeong/SW_Expert_Academy | 3,109,556,343,725 | c9253556655275cb7d8c144b2d434a6866f6d4aa | fc3096160a9df7c3c9a11f1eb9e51fd3790e5890 | /D1/6240_repeatation.py | 9eaa4733c4b0ec3b30e84e2c76e56bd75ffe463a | [] | no_license | https://github.com/Lee-Geon-Yeong/SW_Expert_Academy | dc14d11be5adf8a86c5107214b07acc49e089561 | 2a3cb6a2f10de92a93f44e93bc806e618a5b79c4 | refs/heads/master | 2023-06-30T11:12:00.333653 | 2021-08-09T14:23:42 | 2021-08-09T14:23:42 | 325,823,891 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | arr = 0
for i in range(1,101) :
if i % 3 == 0 :
arr += i
print("1부터 100사이의 숫자 중 3의 배수의 총합: %d" % arr)
| UTF-8 | Python | false | false | 142 | py | 52 | 6240_repeatation.py | 51 | 0.491228 | 0.385965 | 0 | 5 | 21.8 | 44 |
hanbinchoi/Python_practice | 8,864,812,509,827 | 67119415c1e11f86067ef53cc585927eb1802b1a | 32489d1fc435558b0fb9245a7ec8f1d55ef28643 | /entry.py | 7c2991df81f66b67242de1b251a0cfc7fdff6a1c | [] | no_license | https://github.com/hanbinchoi/Python_practice | d51232bb2916c43030a90403d9ccbd69152681e1 | 7615be210117859565fb61589c5d3ea9e883ee11 | refs/heads/master | 2020-05-30T04:15:25.500650 | 2020-03-30T10:13:31 | 2020-03-30T10:13:31 | 189,532,442 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from tkinter import *
win=Tk()
def click():
print(entry.get())
entry=Entry(win,show='*')
entry.pack(fill=X)
btn=Button(win,text='view',command=click)
btn.pack(fill=X)
win.mainloop()
| UTF-8 | Python | false | false | 190 | py | 76 | entry.py | 75 | 0.678947 | 0.678947 | 0 | 13 | 13.615385 | 41 |
noilpa/3DMID-URX | 15,582,141,350,128 | 31f3d9fc65082a56c4cef3f47a42ae23335dc976 | cfe2e076420bd9e2622c7770ce0ccd727a018c72 | /3dMid.py | bb3a6ffd9ad39241f902e34e1539285fc8a974aa | [] | no_license | https://github.com/noilpa/3DMID-URX | 0c1e6891d994c8f76bfcf7a140892d21bc8f4df2 | 5f70a478d87f0452fb5fea30b82841e485c1c30b | refs/heads/master | 2021-04-26T22:11:13.626019 | 2018-05-28T13:07:37 | 2018-05-28T13:07:37 | 124,035,207 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import reader as rd
import math
import urx
import math3d as m3d
from math3d import Vector
from math3d import Orientation
import time
from utils import *
# -----------=====TRASH=====-----------
# def initialize_robot(rob, file_path):
#
# tcp = (0, 0, 0.066, 0, 0, 0)
# rob.set_tcp(tcp)
# # my_csys = rob.new_... | UTF-8 | Python | false | false | 10,273 | py | 6 | 3dMid.py | 4 | 0.478121 | 0.432116 | 0 | 320 | 30.990625 | 114 |
leandrosilvaf/sisemp | 1,159,641,188,195 | c9d41713f0035e8e605aa02b35fab93c0ac9d084 | ff2832113399d5fddbb2b52afd9cd9c9c665059f | /sisemp/emprestimo/models.py | c20950405b4e95be0b8630d59cf747f661811835 | [] | no_license | https://github.com/leandrosilvaf/sisemp | ed015d2e396c4326aa3f4488e8692a0229b14e55 | f5097d410ad274f6945d406a531d1ea150d120a2 | refs/heads/master | 2020-05-20T08:22:02.811398 | 2019-05-09T22:58:38 | 2019-05-09T22:58:38 | 184,151,221 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (c) 2010 Wille Marcel Lima Malheiro and contributors
#
# This file is part of VaiVem.
#
# VaiVem is free software under terms of the GNU Affero General Public
# License version 3 (AGPLv3) as published by the Free
# Software Foundation. See the file README for copying condition... | UTF-8 | Python | false | false | 3,456 | py | 15 | models.py | 5 | 0.672786 | 0.6588 | 0 | 86 | 38.906977 | 158 |
simran137/Pharmacy_Management_System | 9,251,359,564,373 | c3742a64c37de1f2c077e8b7574375cd7f257f58 | ee2b94e52f5e06aafcf152a4d5a79db8cc5a2c81 | /pharmacy/items/migrations/0014_auto_20190507_0614.py | d903d95cefd7a9e9defb8f415788c8ed522b3722 | [] | no_license | https://github.com/simran137/Pharmacy_Management_System | 4c0938db641ada4617762f88fc34e444e5c50838 | 404f5bba4562479420ae9d089fbfc6e8563e503e | refs/heads/master | 2020-06-22T01:45:53.831050 | 2019-07-18T14:21:39 | 2019-07-18T14:21:39 | 197,603,033 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # Generated by Django 2.2.1 on 2019-05-07 06:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('items', '0013_remove_item_concentration'),
]
operations = [
migrations.AlterField(
model_name='item',
name='type',
... | UTF-8 | Python | false | false | 569 | py | 31 | 0014_auto_20190507_0614.py | 31 | 0.572935 | 0.536028 | 0 | 18 | 30.611111 | 232 |
lnsongxf/PythonExamples | 5,016,521,802,719 | 94161a7c4d4b8b2b3ac6d221af8f58ca3280d1f9 | b2c6f3bddd8f8a3e820b5db19b6a77efdeaec548 | /Code/Miscellaneous/DictOfDataFrames.py | dab096f69015fda766ac406be8b7abd2560b4101 | [
"Apache-2.0"
] | permissive | https://github.com/lnsongxf/PythonExamples | 99883936547803ab0eb8a19fb407840f43d3f1e7 | a20a866f0f1dcf6ca429e5114baac1e40cf1da42 | refs/heads/master | 2020-04-08T00:39:10.191362 | 2015-07-19T13:58:00 | 2015-07-19T13:58:00 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # ==============================================================================
# purpose: create a dict of Python DataFrames from a DataFrame
# author: tirthankar chakravarty
# created: 13/5/15
# revised:
# comments:
#==============================================================================
import pandas as pd... | UTF-8 | Python | false | false | 530 | py | 47 | DictOfDataFrames.py | 32 | 0.473585 | 0.44717 | 0 | 18 | 28.333333 | 80 |
jedsada-io/100-days-of-code-tracker | 10,136,122,820,440 | 1727791468a244f79b6242494156f9d35c11f78e | 0d19a212dffb471ca3cf9feb6110958332fb236f | /Python-t/Jedsada12thOct/TkinterTemplate.py | 699898d759ba686192e787dd62a8b1eeacef06a6 | [] | no_license | https://github.com/jedsada-io/100-days-of-code-tracker | 1c1b24845817e7ed53c1b4c90797d2887e98a4a4 | 3da399bef3670a9f9816e27ad0485ec4291e9aca | refs/heads/main | 2023-04-14T04:53:22.152051 | 2021-11-21T20:02:56 | 2021-11-21T20:02:56 | 331,627,166 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import tkinter as tk
class Application(tk.Frame):
def __init__(self, master):
"""Inheriting from Tkinter"""
super(Application, self).__init__(master)
self.grid() # Calling the grid method from Tkinter
#### Customise!!!
self.create_widgets() # Calling a method
def create_widgets(sel... | UTF-8 | Python | false | false | 1,807 | py | 83 | TkinterTemplate.py | 64 | 0.639889 | 0.614404 | 0 | 59 | 29.59322 | 79 |
LiuSilva/studying_python | 6,777,458,396,075 | cdcefaa8278ab704b988d3970ba47c4e2e5a4352 | 98986e8ffd03fe9ea6064396349870c5496f6c7e | /30_days_of_python/templates.py | 7015da2ccbb585b4b2188837304c5a1e29595d90 | [] | no_license | https://github.com/LiuSilva/studying_python | 097e045d0b118289a863752f8b1223ec57067283 | bab97f8f511fb6681a6a1fc4a32ad78055366740 | refs/heads/master | 2021-01-01T05:58:33.683207 | 2018-06-08T23:04:31 | 2018-06-08T23:04:31 | 97,322,964 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | import os
def get_template_path(path):
file_path = os.path.join(os.getcwd(), path)
if not os.path.isfile(file_path):
raise Exception("Arquivo não existe.\n %s" % (file_path))
return file_path
def get_template(path):
file_path = get_template_path(path)
return open(file_path).read()
def render_context(template_... | UTF-8 | Python | false | false | 852 | py | 276 | templates.py | 270 | 0.720329 | 0.710928 | 0 | 31 | 26.483871 | 59 |
MaxYandexLyceum/kapuchino | 16,501,264,357,809 | 52bf5f5605ac1bcba79f42117289aa5a77f39f75 | 0df0c0537a372e16e2bfbd984ef50654cb977f71 | /espresso-master/main.py | 9b25bae21e4ede9b3089844a82549fc28462c9ae | [] | no_license | https://github.com/MaxYandexLyceum/kapuchino | 2b81ce421b9565642e8ba59873acb0320ee5eed9 | fad29cd9f4dc6399c68c317632cfe7a20fa67f33 | refs/heads/master | 2023-03-09T20:23:43.999572 | 2021-02-21T20:11:45 | 2021-02-21T20:11:45 | 340,994,453 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QVBoxLayout
import sqlite3
import sys
import PyQt5
from PyQt5 import uic
from PyQt5.QtGui import QStandardItemModel
from PyQt5.QtWidgets import QApplication, QMessageBox, QPushButton, QInputDialog, QWidget, QVBoxLayout, QLabel, \
QLineEdit, QComboBox
... | UTF-8 | Python | false | false | 2,685 | py | 1 | main.py | 1 | 0.60709 | 0.6 | 0 | 77 | 33.805195 | 178 |
1071179133/boamp | 1,958,505,135,715 | cd73ad2fe6fa9572f02b59823a06376db03978f6 | f2cc9b7b855914fe15a58273e8de1f7b44d98f24 | /super_admin/urls.py | 5cc383725544da1d475ab85b331a64ab381ffb6a | [] | no_license | https://github.com/1071179133/boamp | b001cb4be52f6ea61f033948630192a7a6793248 | f8df644c91ca236cfa4c8b2ecec618236d76ad31 | refs/heads/master | 2020-05-03T01:25:15.911960 | 2019-03-29T08:16:48 | 2019-03-29T08:16:48 | 178,336,779 | 4 | 3 | null | false | 2019-10-22T22:28:06 | 2019-03-29T05:13:40 | 2019-04-01T15:14:51 | 2019-10-22T22:28:05 | 2,773 | 2 | 1 | 2 | JavaScript | false | false | from django.contrib import admin
from django.urls import path,re_path
from super_admin import views
urlpatterns = [
path('index/', views.index,name="table_index"),
re_path('(?P<app_name>\w+)/(?P<table_name>\w+)/add/', views.table_obj_add,name="table_objs_add"),
re_path('(?P<app_name>\w+)/(?P<table_name>\w+... | UTF-8 | Python | false | false | 640 | py | 64 | urls.py | 39 | 0.632813 | 0.632813 | 0 | 12 | 52.333333 | 126 |
LH1151418000/meiduo2 | 3,100,966,420,609 | 639cc8de3af04c23f4af45de6fd03f90732f5c0b | 5fc1132efc80b0c15bd507afe453090f4b390e1e | /meiduo_mall/celery_tasks/sms/tasks.py | c8cf935122306aa2d04c224c25387007a7e9cb39 | [] | no_license | https://github.com/LH1151418000/meiduo2 | c9c302fee61fbaaf2f026b79b693751a50d35974 | f557bd15a62eb482cef40cee4383308659992d6c | refs/heads/main | 2023-01-19T19:59:22.843823 | 2020-12-03T03:09:08 | 2020-12-03T03:09:08 | 317,078,617 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from ronglian_sms_sdk import SmsSDK
from celery_tasks.main import celery_app
# 创建发送短信任务
@celery_app.task(name="sms_send")
def sms_send(mobile, sms_code):
sms = SmsSDK('8aaf0708723b53c901724954cb8c03f7', '01413ea023b7420dafe75c5ece801c51',
'8aaf070872499534017258fb6de10960')
sms.sendMessage('1... | UTF-8 | Python | false | false | 377 | py | 6 | tasks.py | 6 | 0.725762 | 0.531856 | 0 | 11 | 31.818182 | 88 |
stcstores/stcadmin | 17,532,056,520,313 | 9e4cdfb9f48cf86bbc1a9ab54a99ce414246d1c1 | 446fc0b792dafeca16cd817d09e644d7d621d51c | /shipping/tests/test_models/test_ShippingPrice_model.py | ab97d1b891c77a9017a1d69b213e13c90e20fa6a | [] | no_license | https://github.com/stcstores/stcadmin | 083ac83261872d401088c30d5454c986416c0dbb | ba51d4e304b1aeb296fa2fe16611c892fcdbd471 | refs/heads/master | 2023-08-29T23:13:44.652923 | 2023-08-29T13:33:01 | 2023-08-29T13:33:01 | 78,753,311 | 0 | 0 | null | false | 2023-09-14T09:08:28 | 2017-01-12T14:25:26 | 2022-01-05T10:21:06 | 2023-09-14T09:08:26 | 9,560 | 0 | 0 | 2 | Python | false | false | import pytest
from django.db import IntegrityError
from shipping import models
@pytest.fixture
def shipping_service(shipping_service_factory):
return shipping_service_factory.create()
@pytest.fixture
def country(country_factory):
return country_factory.create()
@pytest.fixture
def region(region_factory):... | UTF-8 | Python | false | false | 8,180 | py | 577 | test_ShippingPrice_model.py | 432 | 0.733374 | 0.713447 | 0 | 262 | 30.221374 | 86 |
BGCX261/zora-na-pruzi-hg-to-git | 781,684,088,059 | 7e922d2a2ad7b14fbf5f747783390795468f4e96 | fb0e99751068fa293312f60fedf8b6d0b9eae293 | /zora_na_pruzi/stroj/svg/vytvořím_svg_příklad.py | faef8fe4863df038f6fd24c080979c93744cfed1 | [] | no_license | https://github.com/BGCX261/zora-na-pruzi-hg-to-git | d9628a07e3effa6eeb15b9b5ff6d75932a6deaff | 34a331e17ba87c0de34e7f0c5b43642d5b175215 | refs/heads/master | 2021-01-19T16:52:06.478359 | 2013-08-07T19:58:42 | 2013-08-07T19:58:42 | 41,600,435 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/usr/bin/env python3
# Copyright (c) 2012 Домоглед <domogled@domogled.eu>
# @author Петр Болф <petr.bolf@domogled.eu>
'''
Hen je program, který ...
'''
print('Jak udělám SVG soubor')
from zora_na_pruzi.strojmir.xml.svg import E
def davaj_svg():
svg = E.SVG()
svg.titulek = 'TITULEK'
svg.popisek = 'p... | UTF-8 | Python | false | false | 882 | py | 296 | vytvořím_svg_příklad.py | 238 | 0.623529 | 0.598824 | 0 | 36 | 22.611111 | 77 |
abdiswork/Data-Science | 14,156,212,234,621 | 02a19c86354244e97309812f058d099ac6af9426 | 981e8942e0f914f51c5744422615c3b966816a77 | /career-track/Python for Data Professional/Part1/practice-loop.py | 054d477bdabb0ed88202468bffc805bfa675fd46 | [] | no_license | https://github.com/abdiswork/Data-Science | a7d883089f67e3ada2b30ec3dba64d93aceb7998 | a2f0d02f609742c8d1c486827dab168897742db4 | refs/heads/main | 2023-08-29T19:03:46.600065 | 2021-11-04T08:05:52 | 2021-11-04T08:05:52 | 423,764,012 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | list_cash_flow = [
2500000, 5000000, -1000000, -2500000, 5000000, 10000000,
-5000000, 7500000, 10000000, -1500000, 25000000, -2500000
]
total_pengeluaran, total_pemasukan = 0, 0
for dana in list_cash_flow:
if dana > 0:
total_pemasukan += dana
else:
total_pengeluaran += dana
total_pengeluaran *= ... | UTF-8 | Python | false | false | 371 | py | 59 | practice-loop.py | 57 | 0.695418 | 0.450135 | 0 | 13 | 27.615385 | 57 |
Mort6s/DP-MFSC | 1,365,799,638,823 | d5be4f8ff4c60c87a0dab456f263ba608cd19dd9 | df8563dca06dd41a5e9a4ddbf44b631e78c72313 | /Main.py | a38d7d13f5e440fa7cf7201f4add2a88e6f9c49f | [] | no_license | https://github.com/Mort6s/DP-MFSC | b62560a0df48cd037570f860d61bc6c04c6a9eae | e6a67de138d93986536cda97469b84776abe469b | refs/heads/master | 2020-07-29T20:33:17.208758 | 2019-09-21T11:21:09 | 2019-09-21T11:21:09 | 209,948,763 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 13 21:33:24 2017
@author: 84664
"""
from __future__ import division
import sys
sys.path.append('conf')
import dp_conf as conf
import PreMining as PM
import Mining as M
import numpy as np
import ConsolidatedFrequency as CF
import utility
import datetime
import os
def get... | UTF-8 | Python | false | false | 4,271 | py | 18 | Main.py | 8 | 0.616483 | 0.608991 | 0 | 122 | 34 | 141 |
tdaylan/PyAutoFit | 1,769,526,527,417 | e05baf37fabb5e0c57de8225d9a00dd86b47254e | eac06815e958fe429e3c697c2837aee0aad048b0 | /setup.py | f053e8a1ec7483938323f79776369076e0c259c0 | [
"MIT"
] | permissive | https://github.com/tdaylan/PyAutoFit | 7c76c6e49f73423781a23d8c6ea374ae9a302303 | 58242a4ce83c03dd58624336822988d52a440ba4 | refs/heads/master | 2020-04-09T00:04:40.486821 | 2018-11-20T14:52:51 | 2018-11-20T14:52:51 | 159,852,436 | 1 | 0 | null | true | 2018-11-30T16:49:05 | 2018-11-30T16:49:04 | 2018-11-20T14:53:24 | 2018-11-20T14:54:10 | 105 | 0 | 0 | 0 | null | false | null | from codecs import open
from os.path import abspath, dirname, join
from subprocess import call
from setuptools import Command, find_packages, setup
from autofit import __version__
this_dir = abspath(dirname(__file__))
with open(join(this_dir, 'README.md'), encoding='utf-8') as file:
long_description = file.read(... | UTF-8 | Python | false | false | 2,001 | py | 30 | setup.py | 12 | 0.609695 | 0.601199 | 0 | 69 | 28 | 80 |
zhanglianghui/PyFun | 7,310,034,357,557 | 853e98117ec035249e3e42e529e6a723ffd772aa | 31132e2fdd17c4412547e8b9e3e172d5983af455 | /leetcode/binary-tree-level-sum.py | fc0f9b6282f0d90fe767386936dccedb55661474 | [] | no_license | https://github.com/zhanglianghui/PyFun | 0e3c65067253f60a624577a5e857d0e98c7aad52 | 99285e5654980d6d405bf640870e8f0281057fbc | refs/heads/master | 2020-03-28T15:07:28.741868 | 2018-10-11T02:28:32 | 2018-10-11T02:28:32 | 148,558,696 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from queue import Queue
from tree_sample import Tree_Sample
class TreeNode:
def __init__(self, val):
self.val = val
self.left, self.right = None, None
class Solution:
"""
@param root: the root of the binary tree
@param level: the depth of the target level
@return: An integer
... | UTF-8 | Python | false | false | 1,587 | py | 25 | binary-tree-level-sum.py | 24 | 0.479207 | 0.472809 | 0 | 69 | 21.652174 | 53 |
ShahrOZe69/AmazonScraper | 15,822,659,557,533 | 2a4818eb85533f867ec23ae94800fcedb3bafa0d | f3257b637f3d99b030a08153584822a21bb0ac38 | /AmazonScraperV2/AmazonScraper.py | 4068fc2349667241c0d1ef7658e8b4e52e29907b | [] | no_license | https://github.com/ShahrOZe69/AmazonScraper | 7bb3c4bea89ad909e06e8ba424084cd57b8c3224 | e1ea0cc1eeb45e0f8fed16e6ef3ddf1a558cb6f7 | refs/heads/main | 2023-04-25T21:07:46.581173 | 2021-05-26T06:33:16 | 2021-05-26T06:33:16 | 370,930,074 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from requests_html import HTMLSession
import requests_html
from bs4 import BeautifulSoup
import random
from file_reader import read_from_xlsx
import time
import pandas as pd
from pprint import pprint
from ProxySnatcher import getFreshProxies
"""INITIAL WORK"""
asins = read_from_xlsx('ASINs.xlsx')['ASIN/ISBN... | UTF-8 | Python | false | false | 2,715 | py | 7 | AmazonScraper.py | 4 | 0.65267 | 0.640147 | 0 | 97 | 25.927835 | 175 |
Aasthaengg/IBMdataset | 4,887,672,804,235 | 9fe357079f9dd840ee068f3f59bf511bf38f3ab0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03289/s584214867.py | 0dbd797c6750c353a41ac212d98cbaa7f4841fb3 | [] | no_license | https://github.com/Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | S = input().rstrip()
cnt = 0
for s in S[2:-1]:
if s == "C":
cnt += 1
else:
if not s.islower():
print("WA")
exit()
if cnt == 1 and S[0] == "A" and S[1].islower() and S[-1].islower():
print("AC")
else:
print("WA") | UTF-8 | Python | false | false | 267 | py | 202,060 | s584214867.py | 202,055 | 0.430712 | 0.400749 | 0 | 13 | 19.615385 | 67 |
alikanet/pyUtils | 9,131,100,512,548 | a77b8e014d7f1b7da0e4abaa1c0851a675e7394e | 25d1f3a7aeda1a1cd4b9bd38325c7470f080ba82 | /encryptDialog.py | 22ce95e082194bc1d66dc1b1ad6e257b7d634750 | [] | no_license | https://github.com/alikanet/pyUtils | 6026c3d59291bf6605af1a3cad1a2b0b6cfcf6ed | 5f122de19ef77954c3c5d5e4d2362899130962cd | refs/heads/master | 2022-07-29T14:49:40.034743 | 2020-05-18T07:10:16 | 2020-05-18T07:10:16 | 255,798,305 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_encryptDlg(object):
def setupUi(self, encryptDlg):
encryptDlg.setObjectName("encryptDlg")
encryptDlg.resize(660, 129)
self.buttonBox = QtWidgets.QDialogButtonBox(encryptDlg)
self.buttonBox.setGeometry(QtCore.QRect(560, 90, 81, 41)... | UTF-8 | Python | false | false | 2,765 | py | 20 | encryptDialog.py | 10 | 0.689693 | 0.659675 | 0 | 59 | 45.864407 | 75 |
stvnfrnk/kangaroo | 962,072,676,169 | 1619c1f67d83c595667bc609c23528efad4bfb3e | d02f268ba00d685293ee7667844f690ec9a7f27f | /codewars/python3/get_the_middle_character.py | f6463ba780f85e595076dcf77820827f52f5961e | [] | no_license | https://github.com/stvnfrnk/kangaroo | e0560c0f510869921abbe87090b9b99e0dabd43b | 5734c982c7edeb5906a3c28befe27f3bd685df9a | refs/heads/master | 2018-02-08T19:46:05.595908 | 2017-10-23T16:44:10 | 2017-10-23T16:44:10 | 80,402,630 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | #!/Users/stevenfranke/anaconda/bin/python3
'''
Your job is to return the middle character of the word.
If the word's length is odd, return the middle character.
If the word's length is even, return the middle 2 characters.
'''
def get_middle(s):
if type(s) == str:
if len(s) % 2 != 0:
mid = i... | UTF-8 | Python | false | false | 698 | py | 7 | get_the_middle_character.py | 6 | 0.537249 | 0.504298 | 0 | 33 | 20.121212 | 61 |
Altercg/Pyqt5 | 7,000,796,694,900 | 4164b655e6919e3fdb78e4fa95600bc3ca349b33 | 19d622c873a6b23393022daeb22f854dccf7684c | /tableview.py | 10547dc3a208c8673a6b5430499106fa4b1299c5 | [] | no_license | https://github.com/Altercg/Pyqt5 | c85c21c348061f4fda7c73adfa0b7834e1d5fa85 | c1e1c7754a73e59d3c1d0378698b521eeae22bb4 | refs/heads/master | 2022-04-22T16:02:31.749472 | 2020-04-16T13:01:24 | 2020-04-16T13:01:24 | 254,829,321 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | '''
显示二维表数据(QTableView控件)
数据源 Model
需要创建QTableView实例和一个数据源(Model),然后将两者关联
MVC:Model Viewer Controller MVC的目的是将后端的数据和前端页面的耦合度降低
QTableView的子类,扩展的表格控件(QTableWidget)
每一个Cell(单元格)是一个QTableWidgetItem
tablewidget = QTableWidget()
tablewidget.setRowCount(4) # 设置行数
tablewidget.setColumnCount(3) ... | UTF-8 | Python | false | false | 5,199 | py | 14 | tableview.py | 13 | 0.689904 | 0.667288 | 0 | 122 | 34.163934 | 97 |
kyouko-taiga/yaffel-py | 12,747,462,961,337 | e2b1cf73100f75080da510de5c28a40fd31bcf78 | 6bd914f982930b20ebe36753959e2061ba1bffbf | /yaffel/exceptions.py | 0d63745e9c5da51d16788f707b9daf7a994bb61a | [
"Apache-2.0"
] | permissive | https://github.com/kyouko-taiga/yaffel-py | 7d214855f2f277088b93216d0d0ff94664c32b29 | e663c2dd61a147a238c9d8c6524eb228dda79994 | refs/heads/master | 2016-08-04T07:47:12.951070 | 2015-04-09T13:54:29 | 2015-04-09T13:54:29 | 20,404,076 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # This source file is part of yaffel-py
# Main Developer : Dimitri Racordon (kyouko.taiga@gmail.com)
#
# Copyright 2014 Dimitri Racordon
#
# 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
#
# ... | UTF-8 | Python | false | false | 1,102 | py | 7 | exceptions.py | 6 | 0.729583 | 0.722323 | 0 | 30 | 35.733333 | 76 |
Lee8150951/Python-Learning | 7,859,790,179,925 | c3aefa38c2c66c8f1bf9f52caa0ff8856f226011 | 88c868ef54bfac6a654d68a593ef0c10a8ec877c | /day07/02-Parameter.py | 2a2b295a18749662b1179244567943a0100cfcde | [] | no_license | https://github.com/Lee8150951/Python-Learning | 83ea946760dbcc3853b7362f6c35cf0edf8c8d7e | 79b85116d10f3b4abfab5e9ec13839d66651d0ab | refs/heads/master | 2023-02-02T10:31:42.715788 | 2020-12-20T07:06:24 | 2020-12-20T07:06:24 | 320,474,416 | 1 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # P122练习
# 练习8-3
def make_shirt_1(size, string):
print(f"Size:\"{size}\";String:\"{string}\"")
make_shirt_1(string = 'Python', size = 'L')
# 练习8-4
def make_shirt_2(string = 'Python'):
print(f"I love {string}")
make_shirt_2()
make_shirt_2("JavaScript")
# 练习8-5
def describe_city(city = 'Shanghai', country = 'Chin... | UTF-8 | Python | false | false | 481 | py | 37 | 02-Parameter.py | 35 | 0.634409 | 0.604301 | 0 | 16 | 28.125 | 56 |
melvinlim/bjcount | 19,327,352,841,019 | 65ffe117e6a5d40a9f50dffb807557872cb14db5 | cde3651297a58b7ab081735813dc68a5d7551a76 | /settings.py | 3706a96a5ca0bc4f4fd652a06841838bc6858b79 | [] | no_license | https://github.com/melvinlim/bjcount | 35dc75bee8da36f5faf43ac01558e2f697458da9 | ce74644147e9781e4f42dee6b5b9a96a21c1a90c | refs/heads/master | 2021-08-24T07:47:33.280848 | 2017-12-08T18:14:44 | 2017-12-08T18:14:44 | 112,386,872 | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | class Settings(object):
def __init__(self,canSitOut=False,alwaysTakeInsurance=False,modifiedStrategy=False,simplifiedStrategy=False,allowSurrender=False,allowDouble=True):
self.canSitOut=canSitOut
self.alwaysTakeInsurance=alwaysTakeInsurance
self.modifiedStrategy=modifiedStrategy
self.simplifiedStrategy=simpli... | UTF-8 | Python | false | false | 401 | py | 8 | settings.py | 8 | 0.857855 | 0.857855 | 0 | 8 | 49.125 | 148 |
duanegtr/tl-cogs | 15,556,371,583,678 | 01117fe89293b683f3145825d89b600bc0fb82bf | 1bd4719cd26fa9fcd008caea225018d3c18e4edb | /welcomer/__init__.py | 205e5e7c64a9a20b43ed1f0316cb87551cfee84b | [
"MIT"
] | permissive | https://github.com/duanegtr/tl-cogs | 37fc5be8a8d99b39f77e0a7e80f40337627bb612 | ffde1452a75ad42b4f6511b612ce486e96fcd6de | refs/heads/master | 2023-09-04T15:28:42.238702 | 2021-11-05T22:48:02 | 2021-11-05T22:48:02 | 291,639,185 | 3 | 4 | MIT | true | 2021-04-25T05:54:36 | 2020-08-31T06:57:17 | 2021-04-19T08:41:24 | 2021-04-25T05:54:35 | 1,749 | 2 | 4 | 0 | Python | false | false | from .welcomer import Welcomer
async def setup(bot):
cog = Welcomer(bot=bot)
await cog.crtoken()
await cog.load_menu_module()
bot.add_cog(cog) | UTF-8 | Python | false | false | 159 | py | 114 | __init__.py | 81 | 0.679245 | 0.679245 | 0 | 7 | 21.857143 | 32 |
fagan2888/Geoquery-project | 14,207,751,816,894 | 3163998a6950ca33322ff0dc6b694741509fd2b0 | 0634b0057d18627b20756f6a4ebdbe672d40938b | /source/test.py | a4c416f46c7c91ad906930f57f88e3b359ac36aa | [] | no_license | https://github.com/fagan2888/Geoquery-project | 5fc99f6a3eb3eb45d7410fd0af74200ad9569f42 | 399dcb45de35f6bbcaa609ff19f91fcde6e8b920 | refs/heads/master | 2022-04-23T02:53:10.245617 | 2020-04-12T11:17:29 | 2020-04-12T11:17:29 | null | 0 | 0 | null | null | null | null | null | null | null | null | null | null | null | null | null | # from reportlab.pdfgen import canvas
# from reportlab.lib.pagesizes import A4, letter
# import os
# import webbrowser
# import seaborn as sns
# from folium.plugins import FastMarkerCluster
# import folium
#
#
#
# def mapa(df):
# latlong = df[['lat', 'lng']]
# mi = folium.Map(location=latlong, zoom_start=16, co... | UTF-8 | Python | false | false | 2,456 | py | 1 | test.py | 1 | 0.608961 | 0.553971 | 0 | 77 | 30.896104 | 114 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.