blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1653adcd639aea577f20745ed3d2c6d64c463a27 | 6815a830af1c062ac0b9a0853f68613aebb6cad0 | /src/data_loader.py | bd5fab72544be22cb516c472c03c8d50faa1be0b | [] | no_license | zhangyuanxun/SenTag | 31d752373c5f0eed0aceeb75d04528d593351bcb | a6f7286bfadda757f6350abde4b893e238f05763 | refs/heads/master | 2023-07-31T18:26:31.109871 | 2021-09-17T04:38:06 | 2021-09-17T04:38:06 | 398,359,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,687 | py | import torch
import os
from torch.utils.data import TensorDataset, RandomSampler
from torch.utils.data.distributed import DistributedSampler
from data_processor import SenTagProcessor, InputFeatures
from torch.utils.data import DataLoader, RandomSampler
from torch.utils.data.distributed import DistributedSampler
import... | [
"bigfishinriver@gmail.com"
] | bigfishinriver@gmail.com |
c98f149bd94f32fc457a90250420211834c8d90c | a3d2620bbf25002c7b182600c2e40f8f06555e91 | /django_time/lab13/order/migrations/0007_remove_product_product_views.py | c68818c51d3abadc681f55d7596f477885ffcfe3 | [] | no_license | alejo8591/backend-lab | 782736a82933f705f825a1194369bfe13e86c0ec | 4a02a9552083a7c877e91b0f8b81e37a8650cf54 | refs/heads/master | 2016-09-03T03:53:43.878240 | 2015-11-26T06:35:38 | 2015-11-26T06:35:38 | 3,911,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('order', '0006_product_product_views'),
]
operations = [
migrations.RemoveField(
model_name='product',
... | [
"alejo8591@gmail.com"
] | alejo8591@gmail.com |
7a6d87f4f491ad0cf3c707fa4d0e729447a8c71e | 8c3f5a1c667229ff52bfff782972c02de3dd51c8 | /03_django/09_django_axios/venv/Scripts/django-admin.py | 5b1301853de58e40f354b99c0326cb58e2dedff9 | [] | no_license | 01090841589/learn | 575e2ef9abd09c7d4e8dfd0a31569c5214924fda | f6bb5e1b6aea6fe4d727a5aebeb53c0a96b8da5d | refs/heads/master | 2023-01-12T20:55:01.511209 | 2019-11-20T05:02:28 | 2019-11-20T05:02:28 | 195,938,042 | 2 | 0 | null | 2023-01-07T17:54:37 | 2019-07-09T05:23:04 | Python | UTF-8 | Python | false | false | 167 | py | #!d:\learn\03_django\09_django_axios\venv\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"ckaskfl94@naver.com"
] | ckaskfl94@naver.com |
7fcbae0318d10be6d5e8a8db900b4df393a11b13 | bbe3900666902d8a1c593ffec4011e0864f35574 | /countsPlot.py | e910867dfc22434ddaaa68a4074ae809d31ab941 | [] | no_license | asitP9/50-Plots-To-Practice | 176eb63e48347187286654d4574c3801c53f1104 | 486760bf110759c80019e38b1d0dd54a9028dca5 | refs/heads/master | 2023-03-24T13:02:21.381736 | 2021-03-19T12:57:06 | 2021-03-19T12:57:06 | 324,911,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,103 | py | import pandas as pd
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import seaborn as sns
import warnings; warnings.filterwarnings(action="once")
# PLOT 5: Counts Plot
# Useful for:
# Draw a scatterplot where one variable is categorical.
# In this plot we calculate the size of overlapping p... | [
"panda9asit@gmail.com"
] | panda9asit@gmail.com |
859f76487999c3131e2999480657c5a071eb6317 | cb1930e5b8d7646977398fd190d1419ea6312493 | /db-demo/manage_doc/tests/__init__.py | 069397bb144fa853f5fc6fc95db49430a4931284 | [] | no_license | nmrenyi/CodeDancePedia | 5114767bd0306d31d9e582bea24c4c8e41dae560 | c76ffcb530ccf95ecacfd448c600eb207c9152f7 | refs/heads/main | 2023-02-14T13:48:34.767193 | 2021-01-09T12:27:07 | 2021-01-09T12:27:07 | 328,149,812 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | """Identify this directory as a python module
"""
| [
"2018011423@secoder.net"
] | 2018011423@secoder.net |
01994540ff9ece71215b866941314e6004992e91 | 0c6100dc16291986fab157ed0437f9203f306f1b | /1101- 1200/1124.py | d5f6e0e4c103af58a54d2712db288e17c2355229 | [] | no_license | Matuiss2/URI-ONLINE | 4c93c139960a55f7cc719d0a3dcd6c6c716d3924 | 6cb20f0cb2a6d750d58b826e97c39c11bf8161d9 | refs/heads/master | 2021-09-17T09:47:16.209402 | 2018-06-30T08:00:14 | 2018-06-30T08:00:14 | 110,856,303 | 13 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | def f(l1, l2, r1, r2):
# Processo
dx = l1 - r1 - r2
dy = l2 - r1 - r2
if dx < 0 or dy < 0:
return False # Se a soma dos raios for maior que um dos lados retorna falso, elimina vários casos
return dx * dx + dy * dy >= (r1 + r2) * (r1 + r2) and min(l1, l2) >= 2 * max(r1, r2)
# Valor bo... | [
"noreply@github.com"
] | Matuiss2.noreply@github.com |
e4496d87c6e711422644b3a521fabd7483f21960 | 209288cf19441accc1d1ce4793d724b8f219059f | /Community.py | e7a1e51bd90e89e908c79122e72181b3b1978a08 | [] | no_license | haxdds/virality | 70b822ea3ff8f878c106d2ec0c9cd096efb50831 | 70f8675ffc793649aeee3d36df4e05ba17e47685 | refs/heads/master | 2022-10-06T18:45:40.220819 | 2020-06-03T22:03:51 | 2020-06-03T22:03:51 | 269,171,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | from PopulationEngine import *
class Community:
def __init__(self, populations, open_borders=True):
self.populations = []
self.populations.extend(populations)
self.open_borders = open_borders
| [
"haxdds@gmail.com"
] | haxdds@gmail.com |
79904298b1ddb8782e1dff1368111deb9431142a | ec91ef9ff13c68f87913b4c161540d820bed3cae | /y2020/day13.py | d563371ba989603eec8c1030ad69232a78e006bc | [] | no_license | nairarunraj/advent_of_code | 152333f482b9f32e6d1dca8b954eecd47737b77d | 9fc6ce6bb3e484c7f36acba9b48dcc90490b5e29 | refs/heads/main | 2023-02-06T14:47:53.701702 | 2020-12-26T06:45:28 | 2020-12-26T06:45:28 | 324,496,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,491 | py | """
--- Day 13: Shuttle Search ---
"""
import math
from y2020.file_utils import get_input_data
def puzzle1(input_file) -> int:
input_content = get_input_data(input_file)
time_start = int(input_content[0])
bus_ids = [int(id) for id in input_content[1].split(',') if id.isdigit()]
min_wait_time = math... | [
"arunraj@msn.com"
] | arunraj@msn.com |
cf3461518f250d2956783b301edcf4231944f5b5 | dba6b1eb887b80c7a1283aa38513c6b2f245190f | /02_word2vec/mixins.py | 7348642e171c0230564bfd109d3b274fe9170bcf | [] | no_license | YuoMamoru/tf_stady | 51d93c780941ba5ae44fbb1e06442de812af4996 | 5ab67923b5f67fc56391cfe764eb8e1bb9562aff | refs/heads/master | 2021-06-30T06:26:30.981808 | 2020-03-31T07:23:31 | 2020-03-31T07:23:31 | 192,885,410 | 0 | 0 | null | 2020-11-18T21:57:22 | 2019-06-20T08:55:47 | Python | UTF-8 | Python | false | false | 3,959 | py | import os
import time
import tensorflow as tf
from tensorflow.compat import v1 as tfv1
class BoardRecorderMixin:
"""Mixin to store log on tensorboard and to store model.
When this mixin, you should call `open_writer()` and `open_session()`
in this order.
Attributes:
saver (tensorflow.comapt... | [
"myuo@cam.hi-ho.ne.jp"
] | myuo@cam.hi-ho.ne.jp |
aba1c15d1e6153f8438e1f359f6ef134d4ebe991 | 6db82561f71cbb8581204f410768e1fa494d9d1f | /safeslinger-demo/python/syncKeyNodes.py | 5434975ea75a527d90b05a21fad2899b6a66255a | [
"MIT"
] | permissive | Girlboyd/SafeSlinger-AppEngine | c8af70e2a400101ac524359102d9e3801a09941c | e5338a2312111bd5cbd94853bea50b67320e78e9 | refs/heads/openkeychain-master | 2021-07-21T06:04:09.494798 | 2021-07-17T09:03:52 | 2021-07-17T09:03:52 | 101,548,383 | 1 | 0 | MIT | 2021-07-17T09:03:53 | 2017-08-27T11:40:15 | Python | UTF-8 | Python | false | false | 8,019 | py | # The MIT License (MIT)
#
# Copyright (c) 2010-2015 Carnegie Mellon University
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the ... | [
"mwfarb@cmu.edu"
] | mwfarb@cmu.edu |
a8268dc1866a9d76d6f0cbc042ff2a7442cfcafa | 645424b26721cb939661fccec79c789584d5189e | /Python Data Representations/File difference.py | 953e988dd0c43d50953caba018f701d3b542a09b | [] | no_license | zhuozhi-ge/Intro-to-Scripting-in-Python-Specialization | efcea700c999a3ddda8ed40f436c475d3d2ec63d | 46c4bdd1f8b526f1ab99197b4651c12912123715 | refs/heads/main | 2022-12-27T11:20:08.693388 | 2020-10-17T19:52:18 | 2020-10-17T19:52:18 | 304,954,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,021 | py |
"""
Project for Week 4 of "Python Data Representations".
Find differences in file contents.
Be sure to read the project description page for further information
about the expected behavior of the program.
"""
IDENTICAL = -1
def singleline_diff(line1, line2):
"""
Inputs:
line1 - first s... | [
"noreply@github.com"
] | zhuozhi-ge.noreply@github.com |
2915c8f8ea3f9fe7950a09bfd0bf510b0d8ad65d | e5e6d84b55e5c9b9542664d4ad86a6d94056a8a2 | /phonemodelapi/migrations/0009_auto_20200414_1953.py | c6e193701da738ee3c13bb3ac3745164217149b6 | [] | no_license | adrianarciszewski95/phone-model-api | b2f35a3534deecf705f102010a871f710744984a | 7951058300cb7cddc469e9e2cb989d3037e2f222 | refs/heads/master | 2022-12-07T08:50:09.478564 | 2020-04-24T17:42:18 | 2020-04-24T17:42:18 | 252,253,356 | 0 | 0 | null | 2022-11-22T05:29:39 | 2020-04-01T18:18:13 | Python | UTF-8 | Python | false | false | 832 | py | # Generated by Django 3.0.4 on 2020-04-14 17:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('phonemodelapi', '0008_auto_20200414_1951'),
]
operations = [
migrations.AlterField(
model_name='phone',
name='blueto... | [
"adrian.arciszewski@gmail.com"
] | adrian.arciszewski@gmail.com |
aa9806c16ca87d95c733f5ed73dd1ed85d0670b7 | 32cb6e84622da0c6683f22d1a9fafff39c262744 | /room_reservation_api/room_reservation_api/rooms/migrations/0007_auto_20210815_1618.py | 2de0c5abceb6557aca164bf9c8bd419224990dfe | [
"MIT"
] | permissive | spavlyuk80/room_reservation | aff0af81dcb8cf67add437f593dd6c98c00f072c | bf3dadf216b146430927f6d5e5ad67bde3a9d41f | refs/heads/main | 2023-07-08T06:06:19.010833 | 2021-08-15T21:16:51 | 2021-08-15T21:16:51 | 396,124,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | # Generated by Django 3.2.6 on 2021-08-15 16:18
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('rooms', '0006_alter_room_unique_together'),
]
operations = [
migrations.RemoveField(
model_name='reservation',
... | [
"s.pavlyuk@gmail.com"
] | s.pavlyuk@gmail.com |
bb02514e4e44722f691e3de8784fab89c79f2dd0 | c116a7ab1fb1ec460f526cf8cefe0abd9eac1584 | /py/lib/utils/metrics.py | 589ada85cb53607b1ba8cb38042382b3b9c77d89 | [
"Apache-2.0"
] | permissive | ckunlun/LightWeightCNN | 99a60b41d27a05bae6ad6ba7d2d537010f47726e | b3bed250520971c80bbc170958ff7f5b698be7cc | refs/heads/master | 2022-10-09T02:24:54.620610 | 2020-06-08T08:34:25 | 2020-06-08T08:34:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | # -*- coding: utf-8 -*-
"""
@date: 2020/4/27 下午8:25
@file: metrics.py
@author: zj
@description:
"""
import torch
from thop import profile
from torchvision.models import AlexNet
from models.squeeze_net import SqueezeNet
from models.squeeze_net_bypass import SqueezeNetBypass
def compute_num_flops(model):
input ... | [
"505169307@qq.com"
] | 505169307@qq.com |
e70a068130ae4c1a640857700d6c9a244817b4da | d823b5b5cd7b19dabc6646f3197edcd8a1f23f86 | /server/dive_utils/models.py | e987a636ef36dd133af6daa8a771d9dcfe0fef62 | [
"Apache-2.0"
] | permissive | Bryan-Culver/dive | 4f3fb967a0c8493cf9b1e51f9eb1ba545a28b3e3 | bbc7b88aa7093c0d167112d701c430e1f85cff67 | refs/heads/main | 2023-04-04T07:08:23.099415 | 2021-04-15T19:21:46 | 2021-04-15T19:21:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,167 | py | from typing import Any, Dict, List, Optional, Tuple, Union
from pydantic import BaseModel, Field
from typing_extensions import Literal
class GeoJSONGeometry(BaseModel):
type: str
# support point, line, or polygon,
coordinates: Union[List[float], List[List[float]], List[List[List[float]]]]
class GeoJSON... | [
"noreply@github.com"
] | Bryan-Culver.noreply@github.com |
dd90e4abab18cd0c485bdf0ef88bd5ee4a0550f7 | a5ca62faaaf54731d26039a9c69d90566d163e91 | /desk/urls.py | ea4ee4cb9dbeae05047f37711859b33f5fc71724 | [] | no_license | starlightvi/desk_project | 553910e2924da4d4056758e4c8ee5ea6311b3c4a | e10bab35c9b938518628eabf8dfe76589e743300 | refs/heads/master | 2022-11-30T12:10:44.844453 | 2020-03-07T05:29:58 | 2020-03-07T05:29:58 | 245,071,819 | 0 | 0 | null | 2022-11-22T05:22:30 | 2020-03-05T04:52:36 | Python | UTF-8 | Python | false | false | 1,184 | py | """desk URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"laughsakshi05@gmail.com"
] | laughsakshi05@gmail.com |
f05936400257bca3ea40462271a88afd33d0d209 | 3998b542210815af0cccf112958ec9f2c12c80f8 | /json/json-print-pretty.sh | 8f74296dd91105ff3e4f31cbdd55a9b5c9befd2a | [] | no_license | xuanngo2001/python-examples | 1d641c4650eff2f4797f63bd1cd301aac4c70aa3 | 8ce8a80689531483e9e9d98315d50f28fedf4610 | refs/heads/master | 2022-01-30T15:22:42.333328 | 2022-01-01T05:19:01 | 2022-01-01T05:19:01 | 244,750,268 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | sh | #!/usr/bin/python3
import json
import sys
# Use open() to read the json file and
# then parse it using json.load()
# which saves the results in the dictionary called json_content.
json_filename = sys.argv[1]
with open(json_filename, "r") as fp:
json_content = json.load(fp)
# Print pretty.
print(json.dump... | [
"xuan.ngo@example.com"
] | xuan.ngo@example.com |
cd53f33d0f2f78ada7927428f31c16f2ff2a4f81 | 8f282d3571ac60c59d25781028aafeb9406bbcb6 | /PandasThomas Final/evaluate.py | 9a90c227e69e165d55cd6837e968c17763d02af3 | [] | no_license | aliseyfi/IBMWatsonDeepQA-2 | c7fd03a8e9ac3a8dfce5a093694b252cedfe3a90 | 3445463024b5b891b3736e40b4e8a2d82bb8e4c4 | refs/heads/master | 2020-12-30T14:56:52.057394 | 2017-05-20T04:20:33 | 2017-05-20T04:20:33 | 91,094,991 | 1 | 4 | null | 2017-05-20T04:20:34 | 2017-05-12T13:37:00 | Python | UTF-8 | Python | false | false | 1,464 | py | ## Evaluate.py
# evaluates:
# - precision
# - recall
# inputs:
# - relevant: number of documents in dataset relevant to a particular query
# - retrieved: number of results returned for a query
# - relevant_retrieved: number of relevant documents returned by a query
# USE:
# - from command line, call the script li... | [
"haaga.joe@gmail.com"
] | haaga.joe@gmail.com |
cc544637946f44e51df214d0873f981691434ff9 | 1181547b2e3beb8a403de16dd85304eb34c2382b | /drf_bzedu/urls.py | 4d964359654de8784c1ac1060954e3fc3b39304b | [] | no_license | toolman996/drf_edu6 | e17b4c3724d7b7ef8472b46078019196a7ad8583 | 2ea8deb32c2a121c1d559c0a123215e08b80d05d | refs/heads/master | 2022-11-18T03:35:57.993419 | 2020-07-19T16:06:22 | 2020-07-19T16:06:22 | 280,901,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | """drf_bzedu URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"1938785959@qq.com"
] | 1938785959@qq.com |
2a707a0db38568f0cb432e88a0812c1ec443d4ea | a4d08e85118bc392254d6fdaac7e37fa9c584699 | /vlnce_baselines/nonlearning_agents.py | a4f68dc63dfe9d675739d769e2a6d4c952e6ec86 | [
"MIT"
] | permissive | roy860328/VLN-CE | 42f48d760d4ae3146d3eecfa813a9a742f07941e | e78257b54e7c376d1bb479510fea9009b3e13bc8 | refs/heads/master | 2022-11-14T20:08:25.213342 | 2020-07-09T03:21:01 | 2020-07-09T03:21:01 | 276,922,001 | 0 | 0 | MIT | 2020-07-03T14:42:28 | 2020-07-03T14:42:27 | null | UTF-8 | Python | false | false | 3,046 | py | import json
from collections import defaultdict
import numpy as np
from habitat import Env, logger
from habitat.config.default import Config
from habitat.core.agent import Agent
from habitat.sims.habitat_simulator.actions import HabitatSimActions
from tqdm import tqdm
def evaluate_agent(config: Config):
split = ... | [
"jkrantz@zagmail.gonzaga.edu"
] | jkrantz@zagmail.gonzaga.edu |
55bc765f2a5614073dcc33b1956bac232d9e27db | db52e7d3bcc78b60c8c7939bc95f07cab503b3d7 | /GUI for NMT/runnmtui.py | bb81a21cd0de211568f7108da7ff99f4b1fb6ab0 | [
"BSD-3-Clause"
] | permissive | krzwolk/GroundHog | e2d495254f5794fdbc5a0de51cf49c76e51fdc6a | 3d3e6ec9b30f3ae22bda28914c637c10050a472b | refs/heads/master | 2020-12-24T18:55:18.983124 | 2016-02-09T17:20:05 | 2016-02-09T17:20:05 | 51,382,746 | 0 | 0 | null | 2016-02-09T17:09:35 | 2016-02-09T17:09:35 | null | UTF-8 | Python | false | false | 210 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Description:
"""
from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
from nmtui import main
main()
| [
"krzysztof@wolk.pl"
] | krzysztof@wolk.pl |
977f97f9a8cef2de3094d6067822cd499d44282a | 10bea3cfd019e6408ad2667bfb506b176321b2ec | /triangulation.py | 6baa3ae30f36080a3aef0649799760544c7cdbe5 | [] | no_license | tlaz4/triangulate | 6ddbcb08aa0f63a5cad87ff773d5ec023e5c8418 | b0a768273099bb44805d1f8de4ba6d1f5ffc4d91 | refs/heads/master | 2023-01-11T15:35:51.546678 | 2020-11-13T16:23:12 | 2020-11-13T16:23:12 | 312,475,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,917 | py | from enum import Enum
import random
# a enum class we can use to represent colors
class Color(Enum):
RED = 1
BLUE = 2
YELLOW = 3
# our node class
# a node has a color, and also if it is a border node (colours cant change)
class Node:
def __init__(self, name, color=None, is_border=False):
self.color = color
se... | [
"tlazaren@ualberta.ca"
] | tlazaren@ualberta.ca |
215e2f9e020f4d3fe0e0eb86d3487d57954d8615 | a0cfcfad6f9aad71a51739f1dcb2273bda5fef0a | /epub2txt.py | f1f2f53156b4cc6d1f0413e170c509b092d836ef | [
"MIT"
] | permissive | shawwn/bookcorpus | ddd7975a066f271fcffb57e5c77b84bf1b62a5cc | 4a7b724c65f0cff65b24424294040f0ad469f8c8 | refs/heads/master | 2022-12-03T00:25:50.978398 | 2020-08-27T14:18:31 | 2020-08-27T14:18:31 | 290,752,993 | 0 | 0 | MIT | 2020-08-27T11:04:48 | 2020-08-27T11:04:47 | null | UTF-8 | Python | false | false | 5,092 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import sys
import urllib
try:
from urllib import unquote
except:
from urllib.parse import unquote
import zipfile
import xml.parsers.expat
import html2text
from glob import glob
class ContainerParser():
def __init__(self, xmlcontent=None):
self.... | [
"sosk@preferred.jp"
] | sosk@preferred.jp |
58ab99091b44092fb90863bbeae19ba89488bfc5 | 4f8604185d60baf3a9e5630e8b1a6e7dff2ad0ff | /Project_Files/Maxcut_Analysis/code/localsearch.py | 478be4c041a863de06021e858e1f67341221cfd1 | [] | no_license | andy9kv/Projects | 1e2f0def7e49750d407e30560d8ca6777145a3f3 | 077ec2d0917cb2bd2846126e3dafb9e5565bddca | refs/heads/master | 2021-06-03T22:05:00.938265 | 2021-03-24T06:15:29 | 2021-03-24T06:15:29 | 127,996,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,903 | py |
# -------------------------------------------------------------------
# Andrew Morato
# CS 631 Term Project
# May 5, 2020
# Max-Cut: Local Search Implementation
# -------------------------------------------------------------------
'''
----------- A Maximum-Cut Approximation via Local Search -----------
Local Sear... | [
"noreply@github.com"
] | andy9kv.noreply@github.com |
9bad380d1be1c4ee15612b78894c0dcea4cc9d25 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep003_7_10/Gather3_W_fix3blk_C_change/train/pyr_3s/L7/step10_a.py | 030a17a2615a8bb52e57dc6be508bb22e9741a0d | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79,177 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
73291d8cd9435495212a27a0ba10628845f3a516 | 013322b93478b26ee6f333b2745b63617a010207 | /elementary/the-vampires.py | 7304b11fbc1bab5300d278cf9dc9c2399d47767f | [] | no_license | a-aksyonov/checkio-missions-soltions | 73408caec77630c161090577f3f900ed5169886a | 8c7b8a8de2f8f93e2dd6ab2c0a2e16a36b0ce597 | refs/heads/main | 2023-03-21T15:04:15.358272 | 2021-03-12T14:48:31 | 2021-03-12T14:52:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,593 | py | class Warrior:
def __init__(self, health=50, attack=5):
self.health = health
self.attack = attack
def do_attack(self, whom: 'Warrior'):
whom.attacked(self.attack)
def attacked(self, attack):
self.health -= attack
return attack
def __str__(self):
return ... | [
"aleksander.a.aksyonov@gmail.com"
] | aleksander.a.aksyonov@gmail.com |
256a7ddfba37eb808339ceb2846b338beba828fe | 30e8e9365725fbdd7b0ee6660595eb8fa97b4a16 | /Semi-Supervised Learning_GAN/code.py | a17a4879c9e6758d1716dbf6fe64f475233c9117 | [] | no_license | moileehyeji/Discussion | edf0945c75a45998b13f4a4fa214587ed9bc5a75 | d502f45edadb178f14a21201707a6b1651932499 | refs/heads/main | 2023-05-06T15:15:00.567930 | 2021-06-04T05:59:20 | 2021-06-04T05:59:20 | 373,735,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,125 | py |
# https://github.com/eriklindernoren/PyTorch-GAN/blob/master/implementations/sgan/sgan.py
import argparse
import os
import numpy as np
import math
import torchvision.transforms as transforms
from torchvision.utils import save_image
from torch.utils.data import DataLoader
from torchvision import datasets
... | [
"noreply@github.com"
] | moileehyeji.noreply@github.com |
360f5843d9d43ed42cf7fc5d16fab594dc9d9c81 | 162e936cdbc362a18fa16e1d9579e8937671a13c | /attention_decoder.py | 40104d65db443cd1051c9dc3026f7ab045054e5b | [] | no_license | samanwayadas-creator/RNNnetworkRepo | 6b8c2ec2b3355c1fd52af1c79f5aeab3f31856f3 | 459bb79c41789030d989715ba1efd5ff7040cd59 | refs/heads/main | 2023-04-30T09:53:50.283073 | 2021-05-12T10:41:14 | 2021-05-12T10:41:14 | 366,680,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,636 | py | # This codes is from
# https://github.com/datalogue/keras-attention/blob/master/models/custom_recurrents.py
import tensorflow as tf
from keras import backend as K
from keras import regularizers, constraints, initializers, activations
from keras.layers.recurrent import Recurrent
from mycode.tdd import _time_distributed... | [
"75118243+samanwayadas-creator@users.noreply.github.com"
] | 75118243+samanwayadas-creator@users.noreply.github.com |
1ebc9b85acc627c596e93c39314f2c43801a3cf8 | a7fc742757e3fbb4d7f16b42eac10617827d9a6d | /src/datasets/data_utils.py | 574c5e7a77f5f6f576e7065ca0507e28a955560f | [] | no_license | nguyenthaibinh/pytorch_time | e43de1b41251f4389c84b1ea766614a63c25cb6b | d10d0eb7ce3cb7a228eabeffce63c4629e1fe905 | refs/heads/main | 2023-06-04T20:18:17.404550 | 2021-06-22T23:49:13 | 2021-06-22T23:49:13 | 350,553,760 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,857 | py | import torch
import numpy as np
import torch.utils.data
from datasets.normalization import NScaler, MinMax01Scaler, MinMax11Scaler, StandardScaler, ColumnMinMaxScaler
def normalize_dataset(data, normalizer, column_wise=False):
if normalizer == 'max01':
if column_wise:
minimum = data.min(axis=0,... | [
"binhnguyen@Binhs-MacBook-Pro.local"
] | binhnguyen@Binhs-MacBook-Pro.local |
9f374ac5ba55d6484042ddc78d4680576240c9bc | 22177aac1d63cf40bd568f8a6ed9eac7d0d3c6f7 | /analysis/distance.py | a1f41fec3126ea8a540fe5883664efdeb00f0837 | [] | no_license | sjonany/c-elegans-connectome-opt | 4ad498d4722b188657323b165ea3895a060f53e3 | b2ec4b2201c4b6ba5b7800d316e86f111c84e6dc | refs/heads/master | 2022-04-14T07:46:35.215299 | 2020-03-05T18:15:25 | 2020-03-05T18:15:25 | 241,530,404 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | """
Different distance metrics for comparing two types of dynamics
"""
import numpy as np
import dynamics
def preprocess_pop_dyn(pop_dyn, eval_ts):
"""
Preprocess population V(t) for evaluation.
All the other methods in this file assumes they only have to compare two time series
of equal length'
Param
- pop_dyn.... | [
"sjonany@gmail.com"
] | sjonany@gmail.com |
c179df1f5be67debc967ed9ed3faf02058627130 | 9cd89f51da5496a4939a60e6cd172f07704c66a7 | /ssrf.py | 831f818fbdf8ea9fcba746501280da537d139603 | [] | no_license | pikpikcu/Bug-Bounty-Toolz | 452252daa655e9cef5c293d578c9134d39b27684 | 811e90d8cb9c34d762671196b4006fab4d9b7ffa | refs/heads/master | 2022-12-05T06:00:01.636356 | 2020-08-29T14:02:27 | 2020-08-29T14:02:27 | 291,358,074 | 3 | 2 | null | 2020-08-29T22:20:53 | 2020-08-29T22:20:52 | null | UTF-8 | Python | false | false | 2,124 | py | # m4ll0k - github.com/m4ll0k
import requests
import urllib3
import sys
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
injectable_headers = [
"Proxy-Host","Request-Uri","X-Forwarded","X-Forwarded-By","X-Forwarded-For",
"X-Forwarded-For-Original","X-Forwarded-Host","X-Forwarded-Server","X... | [
"noreply@github.com"
] | pikpikcu.noreply@github.com |
612092b4f72d417312fef2b2bd3fca1e320ba9e6 | 69352ca04b6403b7bf8bc80f73231b77c14882ed | /lsRecursivo.py | ed335fdee33488591dda2ed6d29762739d21683c | [] | no_license | t2x/pythonTarefas | a1fb3982ea72ad1003bf7c3ecc40f40627c4a762 | 9322d79bed88be27eaae6e06ce9cf76614e36c5e | refs/heads/master | 2021-01-22T16:05:41.138025 | 2016-08-28T10:27:02 | 2016-08-28T10:27:02 | 65,427,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | import os
for x, diretorios, arquivos in os.walk(os.getcwd()):
for diretorio in diretorios:
print ('\nDiretorio: %s' %(diretorio))
for arquivo in arquivos:
print ('Arquivo: %s' %(arquivo))
| [
"noreply@github.com"
] | t2x.noreply@github.com |
a74b092a468de49c8bc506b98a8a0ff2bf39b929 | 2ce18a0d8e106065b57136927e3e73b4fa82f8fa | /list-comprehension/changing-generators.py | 29c62ce4f684f20d09f39b639c0d5fa5b0a8ddf9 | [] | no_license | ColinFendrick/python-data-science-toolbox | 3eac02f3e65cf7e63f7c297f06a35ee7cbe92216 | 83a3d4614ef825302f1881b5b9a59e65db583a00 | refs/heads/master | 2021-01-02T19:06:18.395930 | 2020-02-17T17:07:44 | 2020-02-17T17:07:44 | 239,757,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | lannister = ['cersei', 'jaime', 'tywin', 'tyrion', 'joffrey']
lengths = (len(person) for person in lannister)
for value in lengths:
print(value)
| [
"colin.fendrick@gmail.com"
] | colin.fendrick@gmail.com |
5b96b98122a2782bb9492808fa86015dbce11b7a | 8b5d68c9398186cae64dbcc5b293d62d69e1921d | /src/python/knowledge_base/readers/structured_data_reader.py | 7036de83e51c53d32b65ca69040eabecd3cc8e46 | [
"Apache-2.0"
] | permissive | reynoldsm88/Hume | ec99df21e9b9651ec3cacfb8655a510ba567abc9 | 79a4ae3b116fbf7c9428e75a651753833e5bc137 | refs/heads/master | 2020-07-24T21:28:39.709145 | 2019-07-10T15:43:24 | 2019-07-10T15:43:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | import json
class StructuredDataReader:
def __init__(self):
pass
def read(self, kb, structured_kb_file):
print "StructuredDataReader READ"
with open(structured_kb_file) as f:
structured_kb = json.load(f)
kb.structured_kb = structured_kb
| [
"hqiu@bbn.com"
] | hqiu@bbn.com |
f12290dd7119bc2eeba7985121817050568e339f | 1f7b72e3f1b51b6ae6a5704ed6046b7bc8e3becf | /leelawadee_mbed/scripts/base_control.py | cae3675f74e64db9c94529b01f1e5ef4bce52f00 | [
"BSD-2-Clause"
] | permissive | SweiLz/Leelawadee | 5cc635ba04be4312a229a492f95ddbd2806b42ab | 41992668a27fa83ddd6599838632f489da7fde09 | refs/heads/master | 2020-03-20T15:25:52.501052 | 2018-09-23T10:26:18 | 2018-09-23T10:26:18 | 137,512,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,571 | py | #!/usr/bin/env python
import rospy
import tf
import sys
import serial
import math
from geometry_msgs.msg import Twist
from nav_msgs.msg import Odometry
class BaseControl(object):
def __init__(self):
self.baseId = rospy.get_param("~base_id", "base_footprint")
self.odomId = rospy.get_param("~odom_id... | [
"sweilz.w@gmail.com"
] | sweilz.w@gmail.com |
d6102aa9569bec4a4f838c6080268302b5ce86bd | 077d59385de1d7816ec81b719ebadd0517fc15e0 | /redis_deploy_v3/deploy_redis_instance.py | 28bb3d64dca8ff3e216385eaef261205691a0fef | [] | no_license | xyaxlz/redis | 96a287d1b758209b0358e29ff041d83b022179b0 | 8faa29edd8dc14e477dd81f188b9c5c89e06c0d3 | refs/heads/master | 2021-03-07T11:19:41.304132 | 2020-03-10T09:42:41 | 2020-03-10T09:42:41 | 246,261,593 | 0 | 1 | null | 2020-07-22T02:28:03 | 2020-03-10T09:42:12 | Python | UTF-8 | Python | false | false | 10,296 | py | '''
# ============================================================================
# FileName: deploy_redis_instance.py
# Desc:
# HomePage:
# Created: 2017-09-13 10:55:49
# Version: 0.0.1
# LastChange: 2017-09-22 10:16:21
# History:
# ====================================... | [
"xyaxlz@hotmail.com"
] | xyaxlz@hotmail.com |
1a329ea8b2e8fde9c9df6ee1fd947b58d49244a3 | f42affa951cd292e42fa47b4f4c5bfdab5c21eeb | /paddle.py | 5a3c751610cf1e19d060b380d81001011fc1d8fc | [] | no_license | thepixelboy/pong-game | 27e5432c9ee0080d2db3f2909591a0d2ef8d35c5 | d79fea5f8fd85dc06b906375587514a317d32bae | refs/heads/main | 2023-05-06T22:22:03.107087 | 2021-05-30T12:11:50 | 2021-05-30T12:11:50 | 372,206,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | from turtle import Turtle
DEFAULT_MOVE = 20
class Paddle(Turtle):
def __init__(self, position):
super().__init__()
self.position = position
self.create_paddle()
def create_paddle(self):
self.shape("square")
self.color("white")
self.penup()
self.shapesize(stretch_wid=5, stretch_le... | [
"34570952+thepixelboy@users.noreply.github.com"
] | 34570952+thepixelboy@users.noreply.github.com |
e0fa87ad0b0a3305fa1bdd419d80307191f63c89 | 48c038e381aa0e276ee08d7bd93479522597b561 | /apps/courses/migrations/0018_auto_20200416_2339.py | de2188ce541ab17a00962d43d069d5f4e6dd9a62 | [] | no_license | niuniu20160626/JiewuOnline | 263afbbbb98225264e387fd77e4b12d429377101 | 51fa260df654a8e59cf694fc1c8b095b217093a0 | refs/heads/master | 2023-05-04T22:15:41.962693 | 2021-05-30T07:56:44 | 2021-05-30T07:56:44 | 341,800,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | # Generated by Django 3.0.3 on 2020-04-16 23:39
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0017_auto_20200403_1743'),
]
operations = [
migrations.AddField(
model_name='course',
nam... | [
"1714885031@qq.com"
] | 1714885031@qq.com |
d029186d44f62f98b226e4323b39b616d5f990a0 | fb97ccbd6aa0933f991c429c0e30081ce0f1fd90 | /Python/_interview_cake/9_valid_bst.py | 596335f493c2f0de60817cd5c0c1ec068d7cae43 | [] | no_license | 01-Jacky/PracticeProblems | a6c9b1dabc794ca52624870e48dcb84b1b69af67 | 5714fdb2d8a89a68d68d07f7ffd3f6bcff5b2ccf | refs/heads/master | 2022-03-23T12:24:13.834902 | 2019-12-31T08:11:19 | 2019-12-31T08:11:19 | 81,617,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | """
Validate a BST
1)
Max of left sub tree must be < than root value
Min of right sub tree must be > than root value
"""
def is_bst(root, min=float('-inf'), max=float('inf')):
if root is None:
return True
return min < root.value < max and \
is_bst(root.left, min, root.value) and \
... | [
"hklee310@gmail.com"
] | hklee310@gmail.com |
094ddddd588c202f3cfb7f5250d1077f3c78965a | 9d73d7cd7b30e16f60cd829b7a1635a37362ce45 | /src/sinar_social_audit_2020/relation.py | 6c9588e79f740693616540ff7057f3c1ca3d5931 | [] | no_license | Jeffrey04/social-audit-2020 | bba363aa022cb03671d29f328e5e2718acb9046e | 789e5a27b5daed46bf32cdde6d04f82c1a9a7b7d | refs/heads/master | 2023-01-19T22:34:56.914771 | 2020-11-29T17:56:22 | 2020-11-29T17:56:22 | 316,717,568 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,750 | py | import numpy as np
import pandas as pd
from IPython.display import HTML, display
from scipy.stats import chi2, chi2_contingency, t
def distinct_vs_distinct(a, b, a_ranked):
_df = pd.merge(
a,
b,
left_index=True,
right_index=True,
)
data = []
for a_value in a_ranked:
... | [
"mycyberpet@yahoo.com"
] | mycyberpet@yahoo.com |
d27f3ee7222cd598c00ba6c5e8894aade44b261b | feb270f812395847731e5f8c8ddae7b79e6aafcf | /pl_examples/domain_templates/reinforce_learn_Qnet.py | 502f60942029be75d8cb823fd8cdc23e1fd1d1e6 | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | cuent/pytorch-lightning | 73868ab5a5481c4669d52fa416fd67921e67ca19 | b50ad528e69618d831aa01ee69f29b4f2a6a3e84 | refs/heads/master | 2023-01-29T12:43:42.369077 | 2020-12-04T04:49:57 | 2020-12-04T04:49:57 | 265,444,832 | 0 | 0 | Apache-2.0 | 2020-05-26T17:37:52 | 2020-05-20T03:55:15 | null | UTF-8 | Python | false | false | 12,283 | py | """
Deep Reinforcement Learning: Deep Q-network (DQN)
This example is based on https://github.com/PacktPublishing/Deep-Reinforcement-Learning-Hands-On-
Second-Edition/blob/master/Chapter06/02_dqn_pong.py
The template illustrates using Lightning for Reinforcement Learning. The example builds a basic DQN using the
clas... | [
"noreply@github.com"
] | cuent.noreply@github.com |
7a460d9abfd96d7fe1447f44197a372f74d342bc | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_overcompensating.py | 2a2eb667f086df830e2666df3c95521102fec4ca | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py |
from xai.brain.wordbase.verbs._overcompensate import _OVERCOMPENSATE
#calss header
class _OVERCOMPENSATING(_OVERCOMPENSATE, ):
def __init__(self,):
_OVERCOMPENSATE.__init__(self)
self.name = "OVERCOMPENSATING"
self.specie = 'verbs'
self.basic = "overcompensate"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
4de5be0509d68bec0203f5772c3c2fd114fe9988 | 46453e983c03639d06f4fe3d5784bcdfe1ecc356 | /FCN8VGG16Model.py | 38844b0dbdda3caf543e37495cc8dab1522aa9c7 | [] | no_license | kheffah/tensorflow_FCN8Workflow | a18b39a90cce4d0198e42c2cb7d6c8d72c766062 | 8625dedaaa7640f6ae27b24c3d1f93bc917a213b | refs/heads/master | 2022-04-30T21:51:29.007131 | 2022-04-01T00:41:09 | 2022-04-01T00:41:09 | 100,846,203 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 19,026 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed May 30 16:20:24 2017
@author: mohamedt
Utilities to run FCN8 on a set of images
"""
# Append relevant paths
import os
import sys
def conditionalAppend(Dir):
""" Append dir to sys path"""
if Dir not in sys.path:
sys.path.append(Dir)
c... | [
"mtageld@emory.edu"
] | mtageld@emory.edu |
59e619a9fa42c03d894ec74a465d10095094baeb | b4f487228db96114c52750c1cd72a7119230526a | /uliweb/i18n/pygettext.py | 6569b9a317aa089a0a40e0f8f28fdd80d7f930dc | [
"BSD-2-Clause"
] | permissive | limodou/uliweb3 | 6a400bd1c0047d8ecc8dbb3c16c01671f033153e | bca802c320bd09cc317b2db2574bd4bc7ca1d388 | refs/heads/master | 2023-03-04T18:35:53.921848 | 2023-02-25T08:16:42 | 2023-02-25T08:16:42 | 148,398,667 | 19 | 4 | BSD-2-Clause | 2023-02-25T08:16:43 | 2018-09-12T00:43:24 | Python | UTF-8 | Python | false | false | 32,831 | py | #! /usr/bin/env python
# coding=utf-8
# Originally written by Barry Warsaw <barry@zope.com>
#
# Minimally patched to make it even more xgettext compatible
# by Peter Funk <pf@artcom-gmbh.de>
#
# 2002-11-22 J?gen Hermann <jh@web.de>
# Added checks that _() only contains string literals, and
# command line args are resol... | [
"limodou@gmail.com"
] | limodou@gmail.com |
ae8b7cc13b1b8289646d8727db1a31c83cbf4fba | b83f8a9d7cfae19ea5a9a05a5f839c8128f274b4 | /dbapp/models.py | d5960ec43b9ad96247888fe5734e904826850457 | [] | no_license | shrey333/TechFest | e4efa72a74b7fcc248c61fe84f7fe0dea1747897 | 45fe514087800d159f7cfe41c623de0bf4bbbb69 | refs/heads/master | 2021-03-01T22:39:01.687458 | 2020-07-22T10:35:17 | 2020-07-22T10:35:17 | 245,817,739 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | from django.db import models
class Newsletter(models.Model):
email = models.EmailField(primary_key=True)
class Department(models.Model):
department = models.CharField(max_length=40, primary_key=True)
description = models.CharField(max_length=2000)
class Event(models.Model):
event_id = models.AutoF... | [
"h3ydra@github.com"
] | h3ydra@github.com |
4eec8f1293e36a833ba1422c305e9b04b591f310 | 631c9c37f9b6a99715e07e74307081e44e18108f | /python-annotator/sparse_vec_similarity.py | b2775c8f3e00deb769ed23dbb0bdecb260834758 | [
"BSD-2-Clause"
] | permissive | bubble-07/AnimeReal | 6fd92932329762fd5cdc91c3f6c204babee95744 | b12193f10d231ee85a2a86ec2defeca0b5a4e240 | refs/heads/master | 2020-08-07T14:51:05.939577 | 2019-10-07T22:06:48 | 2019-10-07T22:06:48 | 213,493,973 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,843 | py | #Smol little module which computes a tensorflow function
#which takes as input a vector in N-dimensional space,
#and returns an interpolation between the two closest (signed) basis vectors
#in such a way that the function as a whole is continuous
import tensorflow as tf
#Same deal as below, but we also pick a random ... | [
"ajg137@case.edu"
] | ajg137@case.edu |
49bc77ce424a5e843a0efd139f965926d23732af | 3790a29fc02c081b41828b75ad2196556677af0e | /DiscordCookieWars/Bot.py | ea3e587078fc8e6f62a2bd41db8cd3e3cd7f7fc7 | [] | no_license | Mo0dy/DiscordCookieWars | 59d2463c061f559da6a863b55acf499452a02ef7 | 78576dfe6ee07c5df3455796a74825430f18b4f7 | refs/heads/master | 2020-04-12T05:26:22.010140 | 2019-01-15T15:20:02 | 2019-01-15T15:20:02 | 162,327,088 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,236 | py | import RecourceManager
import Player
import os
import Building
import Unit
from Building import buildings_table
from Unit import units_per_building, units_table
import discord
from Utility import get_time_str, get_resource_str
import Menu
# the paths the playersaves will be saved at. The save method will append the n... | [
"felix.muehlenberend@gmail.com"
] | felix.muehlenberend@gmail.com |
7065f48b116000b307e007c1e4dd340cc34a815d | f1173ad1f402e91ffeecabc4ffc2e29a3bafecb5 | /module/flux/waf_tvd.py | 997ff945d23a8a2d422289e66cbf2489a662c1a8 | [] | no_license | EsSamdel/eulerPy | dc1a0c5ce898961caa2bc37fe84f4429e58060b5 | a0502c1a2143a4f539b7f9bab12b68f5cc09d75b | refs/heads/master | 2016-09-11T04:59:03.396849 | 2015-08-26T16:30:20 | 2015-08-26T16:30:20 | 41,434,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,642 | py | # :: Weighted Average Flux with Total Variation Disminishing ::
""" :: WARMING : this solver do not work ::
"""
from ..globalVar import *
from ..riemannSolver import *
from .flux_euler import *
from .hllc import *
from .laxwendroff import *
#-------------------------------------------------------------
def wafTvd(U,... | [
"simon.delmas@inria.fr"
] | simon.delmas@inria.fr |
213c602a6ad8cf64a48d051ea9e49ea5de568015 | 4c637edd511929e661da46d362309d65c576e839 | /Employee_Portal/apps.py | 4d43929e9b8bfa49c3770c83a5c6d8c7451186a7 | [] | no_license | nikitavedpathak/EmployeeManagementSystem | e25968f073943f336d9f95215d428b225ccc5e5a | 9672eaf46613a62a14d77a54b9762310d3109939 | refs/heads/master | 2020-04-02T12:23:16.959449 | 2018-10-24T03:10:14 | 2018-10-24T03:10:14 | 154,431,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | from django.apps import AppConfig
class EmployeePortalConfig(AppConfig):
name = 'Employee_Portal'
| [
"nikita.vedpathak@gmail.com"
] | nikita.vedpathak@gmail.com |
e47ffbe388e751c8b63ce019f8084f5c9bbb4e7a | dca5fe58b5283376d149f352ce31f1b98778a8df | /src/Hyperactive/hyperactive/model/metrics.py | 5ef0de4bebae25d140e294f505a63194520d61b5 | [
"MIT"
] | permissive | rjb1212/LDWPSO-CNN | 8a422d25242c73bf40fe91599aef4a5da4fae349 | 717616c9c3d43efd0041e65e7a16f8201779b340 | refs/heads/master | 2023-03-04T20:02:00.438163 | 2021-02-07T09:47:00 | 2021-02-07T09:47:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | scores = [
"accuracy_score",
"balanced_accuracy_score",
"average_precision_score",
"f1_score",
"precision_score",
"recall_score",
"jaccard_score",
"roc_auc_score",
"explained_variance_score",
"r2_score",
]
losses = [
"brier_score_loss",
"log_loss",
"max_error",
"... | [
"iputatsuki@gmail.com"
] | iputatsuki@gmail.com |
2d88bc95c33ca122b918a8aa62b137983d32fe2f | 8fbc7e1c0db8e9cb9e5cf373ba9cde8b09e4151e | /Labs_Sem5/DataBase/lab/lab/sales/Database.py | 96da5eab682bee7ce37dff092ada26d552cc6245 | [] | no_license | 13LD/KPI-Study | 0f208acac1f00b1576268ad1ab50976c13624768 | 74e3eadc27e21e779798bcbc60515e009038a353 | refs/heads/master | 2021-01-17T07:11:26.115172 | 2016-12-27T21:14:42 | 2016-12-27T21:14:42 | 54,645,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,265 | py | from xml.dom import minidom
import sys
from pymongo import MongoClient
from bson.objectid import ObjectId
from bson.code import Code
from bson.son import SON
import time
from models import User, Product, Department, Sale, userFromDict, productFromDict, departmentFromDict
class DB(object):
def __init__(self):
... | [
"tompla96@ukr.net"
] | tompla96@ukr.net |
416e231b62cac474ab4a60f2a0eca12a37650160 | dd543cbf0f2bfccb687e3b60a063527280164d14 | /Elementary/First Word (simplified)/mission.py | 9e381cc15d08e64ef9b1fc1fdf156d5998c02e8a | [] | no_license | eugennix/chekio | 5900e85459baee08bb5ecd3787c1bbb48d51ca75 | 4b07593f44fa522e05a3b1c9b009446250837bbe | refs/heads/master | 2020-08-02T20:08:27.120041 | 2019-09-28T11:40:24 | 2019-09-28T11:40:24 | 211,491,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | def first_word(text: str) -> str:
"""
returns the first word in a given text.
"""
words = text.split()
return words[0]
if __name__ == '__main__':
print("Example:")
print(first_word("Hello world"))
# These "asserts" are used for self-checking and not for an auto-testing
ass... | [
"eugennix@gmail.com"
] | eugennix@gmail.com |
d99d576a058ef5956106984d6bfadfa650d180fb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03167/s367868270.py | 31abb3c30c5fcaa1420f7b86a38e2c7adaa479cf | [] | no_license | 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 | UTF-8 | Python | false | false | 541 | py | from collections import deque
h,w=map(int,input().split())
maze=[[i for i in input()] for _ in range(h)]
que=deque([[0,0]])
visited=[[0 for _ in range(w)] for _ in range(h)]
visited[0][0]=1
while que:
n=que.popleft()
x,y=n[0],n[1]
if n==(h-1,w-1):
break
for i, j in [(1,0), (0,1)]:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
81fe7eadd2418caa75ad8188bf1b5777398c7eb8 | 24f664aa2344d4f5d5e7b048ac4e85231715c4c8 | /datasets/github/scrape_repos/indexer.py | dd7a16e3b4940538eab982c9b84e8157e3e56d50 | [] | no_license | speycode/clfuzz | 79320655e879d1e0a06a481e8ec2e293c7c10db7 | f2a96cf84a7971f70cb982c07b84207db407b3eb | refs/heads/master | 2020-12-05T13:44:55.486419 | 2020-01-03T14:14:03 | 2020-01-03T14:15:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,203 | py | # Copyright 2018, 2019 Chris Cummins <chrisc.101@gmail.com>.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"chrisc.101@gmail.com"
] | chrisc.101@gmail.com |
646aedf7a130c27300fb9f4a0e1e999385f86318 | f4aa1885d4121e131c2a580183c6312aeefa8147 | /ch12/likes_app_virtualenv/src/django-likes/likes/test_utils/test_app/apps.py | fc04070e8336f17e3b2402586653623e6bb51f67 | [
"MIT"
] | permissive | PacktPublishing/Django-3-Web-Development-Cookbook-Fourth-Edition | 8f09d1ea9b13e8a66fc489fc09c9a5ee8f9968cf | 9371e0ea6f4dc61567bf28299cf57146519e274c | refs/heads/master | 2023-02-20T02:36:51.226985 | 2023-01-30T08:39:30 | 2023-01-30T08:39:30 | 201,903,680 | 189 | 117 | MIT | 2023-02-10T22:45:42 | 2019-08-12T09:54:54 | Python | UTF-8 | Python | false | false | 90 | py | from django.apps import AppConfig
class TestAppConfig(AppConfig):
name = 'test_app'
| [
"aidasbend@yahoo.com"
] | aidasbend@yahoo.com |
19459d77ce9005b3c4834b55c364381a6c71467f | 56737def25628186aa1b2cbbc01d16850d67cfd3 | /lagou/lagouspider.py | 6336c9fc9e8ba0b61d0b3a18ef4c260d57190dd7 | [] | no_license | Rao-jia-wei/- | 8cbc58ba6f3c06fe6deb616b6d10bee0e9f101f7 | 818eadfe519a83afda03629f098e8615f51b9097 | refs/heads/master | 2020-04-24T08:35:52.670531 | 2017-07-31T05:44:22 | 2017-07-31T05:44:22 | 93,386,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,458 | py | # -*- coding:utf-8 -*-
# date:2017-7-11
# anthor:Alex
'''
拉钩网爬虫,按照职业关键词和城市为主要参数提取信息
文件分为3块,本文件是爬虫块,负责主要爬虫功能;
Setting.py是设置文件,主要负责构造headers;
Savedata.py是数据处理文件,负责将提取到数据存储到(Excel表格)数据库中
'''
import requests
import json
from urllib.parse import quote
from config import myheaders
from bs4 import BeautifulSoup
from savedat... | [
"zlwork2014@gmail.com"
] | zlwork2014@gmail.com |
4b5bce28b6e6d55943ce5a79d60d391c08717efe | 6c690f1fc23048ec74e2fc64c339450bc006fd13 | /src/path_mapping/src/path_planning_node.py | 721913d6abf2728bd01050938b004bda1a3c6c42 | [
"MIT"
] | permissive | romleiaj/pacman_ws | 25eff98c9b7a0f56dd8bf686bf5a648e748de264 | 168e3fe22a94457ea6540268bc41bf4e6380b7eb | refs/heads/master | 2020-07-21T13:53:45.592220 | 2020-04-10T20:33:09 | 2020-04-10T20:33:09 | 206,884,801 | 2 | 1 | null | 2020-01-31T14:25:21 | 2019-09-06T22:47:22 | Python | UTF-8 | Python | false | false | 8,366 | py | #! /usr/bin/python
import rospy
from tf.transformations import euler_from_quaternion
import yaml
import Queue
import cv2
import pdb
import os
import message_filters
import numpy as np
import skimage.graph
from scipy import signal
from cv_bridge import CvBridge, CvBridgeError
from sensor_msgs.msg import Image
from nav_... | [
"romleiaj@clarkson.edu"
] | romleiaj@clarkson.edu |
f0820380d3df02af5efef6da9b531fd8fdc12a6f | 7089bf87ba756fc5dc5c8065db5d30536726a942 | /backend.py | 436b5d2b538d0b322b46acb23f31fbda47141f10 | [] | no_license | kevinpanaro/college-menus-backend | a342af968f2e5cdd3098081b179efd2fbd32eab1 | 7ddd4ba9ce74ad75be72fa41d974d84cccb211db | refs/heads/master | 2021-01-13T02:24:03.077855 | 2015-03-02T21:13:02 | 2015-03-02T21:13:02 | 31,286,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,381 | py | import os, shutil, datetime, subprocess, re, sys
from scrapers.harvardtojsontoday import harvardtoday
from scrapers.harvardtojson import harvardtomorrow
from scrapers.tuftstojson import tuftstomorrow
from scrapers.tuftstojsontoday import tuftstoday
from webserver import s3_upload
# constants
date_today_folder = dat... | [
"panaro.kevin@gmail.com"
] | panaro.kevin@gmail.com |
ea4cbc25a0bfbe90ecf8ec05ae852c89bd6af356 | c8af1e9fd779d9c02ae82e318042b010a2791670 | /Algorithm-1/update.py | 155a76e41eeb3159aa7076a48957f56b11a19731 | [] | no_license | ashishedu98/IoT-ML | cefc4bd2c127a7014ba1e1fe75d5989aeaacfaab | 9ae8713f66fef605d7ed6cc1cae5fb00d550eca0 | refs/heads/master | 2020-08-16T16:19:50.289007 | 2019-10-16T10:44:11 | 2019-10-16T10:44:11 | 215,518,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | import face_recognition
import cv2
import numpy as np
import pickle
person_name=person_encoding=input("enter person's name")
person_encoding+="encoding"
known_face_encodings=[]
known_face_names=[]
try:
file_open=open(person_encoding,"rb")
known_face_encodings=pickle.load(file_open)
file_open.clo... | [
"noreply@github.com"
] | ashishedu98.noreply@github.com |
ab575baf490fda95031b2f5688a47b4869525d35 | 7d172bc83bc61768a09cc97746715b8ec0e13ced | /odoo/migrations/0006_auto_20170628_0402.py | 09a34635f361cf04be7b163f3380f627c20f235a | [] | no_license | shivam1111/jjuice | a3bcd7ee0ae6647056bdc62ff000ce6e6af27594 | 6a2669795ed4bb4495fda7869eeb221ed6535582 | refs/heads/master | 2020-04-12T05:01:27.981792 | 2018-11-08T13:00:49 | 2018-11-08T13:00:49 | 81,114,622 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-06-28 04:02
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('odoo', '0005_auto_20170618_1356'),
]
operations = [
migrations.AlterModelTable(
... | [
"shivam1111@gmail.com"
] | shivam1111@gmail.com |
7a1bdecdb60387888e0e3f53a7bb9dba47fbd863 | b6a073ff3ba92b968dead5e088c67c8b5c4f9bb9 | /src/store/urls.py | 2ede7c174a8a71b14ef500eea2b6173e2d0aea94 | [] | no_license | Biprash/E-comm | f6fe76ba40d156b8a2ab6d6b7f76aa31f9bc42f7 | 9a54bf9752fbee5f8136a0d8bc281ef21a85bc8a | refs/heads/main | 2023-02-13T17:48:19.290906 | 2021-01-14T12:31:54 | 2021-01-14T12:31:54 | 329,027,876 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from django.urls import path
from store import views
urlpatterns = [
path('', views.home, name='store'),
path('cart/', views.cart, name='cart'),
path('checkout/', views.checkout, name='checkout'),
path('update-item/', views.updateItem, name='update-item'),
path('process-order/', views.processOrder,... | [
"biprashgautam@gmail.com"
] | biprashgautam@gmail.com |
c7210848cdcba71d539e5c85481101f3bc50dbfd | 91a4ae654510716ba281299b1297acf15945dd90 | /CompMat/hmc/H2/3-21G/testSubprocess.py | 733eb2d6ce2d7729bb96191e99751bb68e3e0453 | [] | no_license | je117er/project | a8b0cde23810b89da4e226184613ba8389faee73 | c1801c95b4b1fda1b212eb28dee76da8532d39f0 | refs/heads/master | 2022-12-27T15:37:41.368311 | 2020-10-01T02:56:44 | 2020-10-01T02:56:44 | 299,289,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | import subprocess
command = 'g16 H2.com.tmp'
process = subprocess.Popen(command.split(), stdout=subprocess.PIPE)
output, error = process.communicate()
| [
"chuthiminhhang_t62@hus.edu.vn"
] | chuthiminhhang_t62@hus.edu.vn |
ace37ff10fc593ff551992e0b65900a9501b6d8a | e53c7d270e26bd0fac9dedadff9b4a4ff99110ec | /posts/views.py | 7d49db83c9a42fea1d31c85f873eff532ba7c0cb | [] | no_license | kydzoster/django-message_board | 34b33c0c240bd1dbb21bb0500db791411cca8cc6 | df8f038fc94b02e9ec9c51b8aab8307e1bc75848 | refs/heads/master | 2022-08-01T09:54:13.686456 | 2020-05-27T14:17:34 | 2020-05-27T14:17:34 | 267,337,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | from django.shortcuts import render
# Create your views here.
from django.views.generic import ListView
from .models import Post
class HomePageView(ListView):
model = Post
template_name = 'home.html'
context_object_name = 'all_posts_list' | [
"kydzoster@gmail.com"
] | kydzoster@gmail.com |
21b35171a378b949de37691e9c21741029291968 | e2a21aefe6e0d4255dd97d72a9886f8f0bc74247 | /demo/biaobai.py | 17c05e39af2352e0b4bb6981aa4e30f3a1fe6318 | [] | no_license | yushuang823/python-learn | 72f45318067d6b118d3bd820f9aff6bf08e589eb | 14700f96e8e19403a88e056052ab5c37b3b5b9da | refs/heads/master | 2020-03-26T01:10:58.229890 | 2019-11-06T15:51:40 | 2019-11-06T15:51:40 | 144,355,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | if __name__ == '__main__':
import time
words = input('Please input the words you want to say!:')
# 例子:words = "Dear lili, Happy Valentine's Day! Lyon Will Always Love You Till The End! ♥ Forever! ♥"
for item in words.split(): # 此方法以空格为分隔符进行切片
# 要想实现打印出字符间的空格效果,此处添加:item = item+' '
lett... | [
"yushuang823@gmail.com"
] | yushuang823@gmail.com |
f26136bc4e117054bc7de66bd89bce35c7b987bc | 6d4f04f041124e97bc034e536c23272d498c6147 | /nemo/collections/nlp/data/language_modeling/megatron/__init__.py | ce04266870bf61f2332abebde960e4be5f43b982 | [
"Apache-2.0"
] | permissive | ggrunin/NeMo | 1f863411709a53b67d2c2c8d33fe62a304b544e1 | 6df448c7d77809b6c414cbc867586341bab7eff8 | refs/heads/master | 2022-02-04T17:59:06.549981 | 2022-02-03T02:05:10 | 2022-02-03T02:05:10 | 209,142,769 | 0 | 0 | Apache-2.0 | 2019-09-17T19:44:35 | 2019-09-17T19:44:35 | null | UTF-8 | Python | false | false | 1,105 | py | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"noreply@github.com"
] | ggrunin.noreply@github.com |
6982511bbe62e0c51d3b438cfc2074dd25be7f5c | 000016cb50737f5a5e223ec41422dcc395efef78 | /models/VGGUnet.py | acbcde38a870487756e78496bfeea2211363fffe | [
"MIT"
] | permissive | wmkouw/cc-smoothprior | 5b82aacf992622ad1c25d5a3e781a5014d16b9cc | 653079f201c8bce570dacb3479f4270ebe0de953 | refs/heads/master | 2020-03-31T08:06:23.641039 | 2019-09-06T08:21:58 | 2019-09-06T08:21:58 | 152,045,917 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,750 | py | from keras.models import *
from keras.layers import *
from keras.applications.vgg16 import VGG16
def VGGUnet(n_classes,
input_height=256,
input_width=256,
opt='RMSprop',
loss='categorical_crossentropy'):
assert input_height%32 == 0
assert input_width%32 == 0
img_input = Input(shape=(input_height, in... | [
"wmkouw@gmail.com"
] | wmkouw@gmail.com |
4cb207df25c8c81e8296f8c68cf9164077be6e2c | 3e4ec2516432ec7962c4d1fa51499e2458720865 | /Lecture3/homework/task9.py | 32300a35cb284ea10d498bf3a70b49119477482e | [] | no_license | SergeDmitriev/infopulse_university | 612c9bcf524e712e464283af494d437c6eee4a66 | 5fa98ee4ea34d190b4027e52a8fefc6363d31c9e | refs/heads/master | 2020-03-07T18:08:52.928825 | 2018-05-08T20:31:23 | 2018-05-08T20:31:23 | 127,629,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,233 | py | # Даны четыре действительных числа: x1, y1, x2, y2. Напишите функцию distance(x1, y1, x2, y2),
# вычисляющую расстояние между точкой (x1, y1) и (x2, y2).
# Считайте четыре действительных числа от пользователя и выведите результат работы этой функции.
print('task9: ')
# def distance():
# try:
# x1 = x2 = y1... | [
"s.dmitriev@e-tender.biz"
] | s.dmitriev@e-tender.biz |
71cce14885727a3cdd886d054a109bf170f13c16 | 8d47d0bdf0f3bcc8c8f82e7624e391ba2353efe1 | /netjson_api/api/users.py | 9e09a72bfc7e1c939827947b2745c2b6f9623590 | [
"Apache-2.0"
] | permissive | cosgrid001/cosgrid_hh | 48328bbfae69f9978b82fe2c94799fbf8bc978b2 | 9b4dbf3c9c134f0c08c7d0330a3d0e69af12a8f4 | refs/heads/master | 2020-01-23T21:03:04.242315 | 2016-12-11T05:39:33 | 2016-12-11T05:39:33 | 74,579,908 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,238 | py |
import logging
import httplib2
import requests
from cloud_mongo import trail
from netjson_api.api import groups
LOG = logging.getLogger(__name__)
class User:
def __init__(self, id, username=None, email=None, groups=None):
self.id = id
self.username = username
self.email = email
s... | [
"cosgrid001@gmail.com"
] | cosgrid001@gmail.com |
8a16bd8b34b5718b2c663bc475f264c52b7e85d1 | 9b7f9176a8b20ec992caed17b159ebd040960c7d | /HotelComment.py | 564ab0a19bade8d13df7db99fe60f2317af93bd1 | [] | no_license | czz1233/ctrip | cbc0d6d1b9b5eaacdb01efb512cc6d9f162d51ba | 524764ab667db84222f650426647b08d419b50d9 | refs/heads/master | 2020-05-19T18:26:26.229748 | 2019-05-06T08:28:52 | 2019-05-06T08:28:52 | 185,155,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,641 | py | from time import sleep
import requests
import json
import pymysql
hotel_id = '375265'
base_url = 'http://m.ctrip.com/restapi/soa2/14605/gethotelcomment?_fxpcqlniredt=09031089110364396442'
def request_data(pageIndex): # 向网页发出请求
post_data = {
"hotelId": hotel_id,
"pageIndex": pageIndex,
"... | [
"863335016@qq.com"
] | 863335016@qq.com |
f90ddcb1787ba8379f99aa99635d76b0dead4608 | 08a15b8d4f62212f0a688d424da53416647ea95c | /water-density/gcmc-md/sim-params/run-cont.py | edf72966d271857eaec88154351a31119c13e7e0 | [
"MIT"
] | permissive | essex-lab/grand-paper | 0752e7822ecf8772c127bef2d4074ca44bf8cdc3 | d781190d130c10e75781bbcc036d050565754e74 | refs/heads/master | 2022-11-27T10:38:11.143630 | 2020-07-31T10:42:03 | 2020-07-31T10:42:03 | 270,698,543 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,113 | py | """
run-cont.py
Marley Samways
This script is to run GCMC/MD on a simulation box of pure water, sampling the entire system.
This is not how GCMC/MD would normally be run, but this is done in order to assess whether
the system will sample the correct density, where fluctuations in density arise from changes
in the numb... | [
"mls2g13@soton.ac.uk"
] | mls2g13@soton.ac.uk |
880c92407ed0e33ca2b46ba05991622c1508bf8d | 928c181db06cb16256c2d06795a8f6bfd80c5a19 | /test_run_projects/pyd7a-master/examples/throughput_test.py | 195744996c7d62c7512748049fc2da37c93b78a9 | [
"Apache-2.0"
] | permissive | abkaya/II-Ambient-Intelligence- | db309690bdd84eb6b6f49c57e76e2892dad057b3 | ec8fda3e40d9c853e327606fa935b705e36e2668 | refs/heads/master | 2021-03-30T16:47:10.488444 | 2017-06-16T12:12:00 | 2017-06-16T12:12:00 | 85,169,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,449 | py | import argparse
import time
import sys
from collections import defaultdict
from d7a.alp.command import Command
from d7a.alp.interface import InterfaceType
from d7a.alp.operations.status import InterfaceStatus
from d7a.d7anp.addressee import Addressee, IdType
from d7a.dll.access_profile import AccessProfile, CsmaCaMod... | [
"willem.renders@student.uantwerpen.be"
] | willem.renders@student.uantwerpen.be |
532cc1b82ca19449130c4bf43f23ce279f10b7f8 | dbb320f62c06433b2ca92ee3dd51a6bde8527143 | /Camelcase_matching.py | 6912fa083c2c6b74f30f07e1d6341c1e9d4adc1e | [
"MIT"
] | permissive | pranavdave893/Leetcode | 3c051f4510d8907f04534b27c1fa76602f205852 | 1f30ea37af7b60585d168b15d9397143f53c92a1 | refs/heads/master | 2021-06-10T12:12:34.782733 | 2021-03-22T00:37:44 | 2021-03-22T00:37:44 | 140,044,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | class Solution(object):
def camelMatch(self, queries, pattern):
"""
:type queries: List[str]
:type pattern: str
:rtype: List[bool]
"""
for query in queries:
i = 0
pt_ptr = 0
while i < len(query)-1:
if query... | [
"pranavdave893@gmail.com"
] | pranavdave893@gmail.com |
d0ae70451d70c0b7ffb35207c06faf07fc9c01d9 | 5801d65a93670ee89fc92fc59c3948765f8c028f | /loan_management/loan_management/doctype/customer_expenses/customer_expenses.py | 7c1e3f0b7e1fa4eb980bd78431ed0448b4f6de7a | [
"MIT"
] | permissive | staumoepeau/customer_loan | a9205476aa4646ba08f8531c27ecd43a21165f12 | bb9f42160bc1e17085f000b15810892337dd0465 | refs/heads/master | 2021-01-22T04:23:16.804892 | 2018-11-27T21:09:28 | 2018-11-27T21:09:28 | 92,459,369 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018, Sione Taumoepeau and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class CustomerExpenses(Document):
pass
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
7c8aad11b40e62353a8a55cf0e3bbf543d9479f1 | b2d08ef85bfae62dc3d649734b3289ba5be9bff0 | /xpxchain/util/hashlib/keccak/__init__.py | a8c27e6214d30a7fdc638c16e6c148bdb794e5d0 | [
"Apache-2.0"
] | permissive | proximax-storage/python-xpx-chain-sdk | b105c992bbfdd16de125f76d9ae3692439361386 | 7b1497db233daf2d34cf655827a46ae0b800f638 | refs/heads/master | 2021-11-22T12:29:48.509908 | 2021-08-18T13:56:08 | 2021-08-18T13:56:08 | 203,532,845 | 1 | 1 | Apache-2.0 | 2021-08-18T13:56:09 | 2019-08-21T07:42:01 | Python | UTF-8 | Python | false | false | 960 | py | """
hashlib
=======
Keccak (pre-standard SHA3) crytographic hash functions.
License
-------
Copyright 2019 NEM
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
... | [
"ahuszagh@ahuszagh.localdomain"
] | ahuszagh@ahuszagh.localdomain |
1b58bcc041c950032bc515e1a6a245c2947335cf | 5f42752406d2d1cad8315ae0eb4eebcfc56ffadf | /env/bin/epylint | 16509d93dcd37988f071d463f733ff3c9e31156c | [] | no_license | Formerly/SlackWechatBot | 38800daf84d39ffba0178a66b2892b9cdef969be | c2bd1f2b6c2cfdad7662cf4cb68c558fe497d2fe | refs/heads/master | 2022-04-25T03:12:58.325198 | 2020-04-14T06:04:04 | 2020-04-14T06:04:04 | 255,336,796 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | #!/Users/BlackHumor/Desktop/slack/PythOnBoardingBot/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_epylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_epylint())
| [
"black.humor.ios@gmail.com"
] | black.humor.ios@gmail.com | |
57800186771cb6665475f9ebaa02f58d2a3cb52f | a570561df345c055a8763aefb63a153ed2a4d002 | /django/paper_tracker/papers/urls.py | 9a3fbdfcd3d4f5104ea9f1c501953d1a8478b644 | [
"MIT"
] | permissive | kmod/paper_tracker | 7b089613172788360d5401434e58a31740062577 | 43dc10286e8ea3d38b888403091d18549a8106d6 | refs/heads/master | 2020-12-24T12:34:32.130210 | 2016-11-29T22:52:36 | 2016-11-29T22:52:36 | 72,976,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^papers$', views.papers_index, name='papers_index'),
url(r'^$', views.collections_index, name='collections_index'),
url(r'^collection/(?P<collection_id>[0-9]+)/$', views.collection, name='collection'),
url(r'^paper/new$', views... | [
"kevmod@gmail.com"
] | kevmod@gmail.com |
65305a01384ea32bb247143cae6b02dce06f52d0 | b09b608c894d5eabaa19f5d647a4ecaa70c39627 | /src/Adapters/CassandraAdapter.py | 121322cb887f777f4ccef863810499cd08957aea | [] | no_license | nicholasjgreen/Pycroservice | ea71e179d6f411245334262b4fae9dd09bdbf95e | fbbfcd9e3e058bf4f135469a800f0a58f8cbe50c | refs/heads/master | 2020-03-10T05:27:31.233543 | 2018-04-20T02:50:00 | 2018-04-20T02:50:00 | 129,218,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | from cassandra.cluster import Cluster
from cassandra.auth import PlainTextAuthProvider
import os
def get_cassandra_cluster():
auth_provider = PlainTextAuthProvider(username='cassandra', password='cassandra')
cluster = Cluster([os.getenv('cass_hostname', 'localhost')], auth_provider=auth_provider)
return c... | [
"nick.green@xero.com"
] | nick.green@xero.com |
7da20ed3a11276496304f199be1048088bdbd8f9 | 18cda538af9a8869a711c5a5d8d5ccf986ed79ff | /images_age_gender_detection.py | 16360c21fb24eabc64a7b4b99786f65d0f6ccdcb | [] | no_license | erristottle/Facial-Recognition | 8af3b63087ad81c01ff6ce9d5289f0c040eb9795 | 4807fddceb41182b4e5a27da8a685d23bfe7835e | refs/heads/main | 2023-05-04T06:11:43.387372 | 2021-05-26T16:52:45 | 2021-05-26T16:52:45 | 371,106,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,331 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 5 17:26:08 2021
@author: chris
"""
#Importing libraries
import cv2
import face_recognition
#Load image to detect
image_to_detect = cv2.imread('C:\\Users\\chris\\Documents\\Learning\\Udemy\\Computer Vision - Face Recognition Quick Starter in Python\\code\\... | [
"noreply@github.com"
] | erristottle.noreply@github.com |
c61f568c38152c3b01f6ed7006264f8822f5fbf1 | 669904ea19e51eed39f2ddb4307704add5cf242e | /Demo90/routes/__init__.py | 35a08cfb9e6e78b34ff6462d049b66333936f214 | [
"MIT"
] | permissive | De-Risking-Strategies/SensorFusionPublic | 49e258875bbe2435cae674e296d5343ba429bc64 | caa6ef7a5ac8991ee12ce2d5ad9b28e2b2b8ed38 | refs/heads/master | 2023-02-15T11:23:48.286366 | 2021-01-07T19:41:56 | 2021-01-07T19:41:56 | 328,815,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | #Sensor Fusion ROUTES Package
print(f'Invoking ___init__.py for {__name__}')
| [
"drewanderson@gmail.com"
] | drewanderson@gmail.com |
c2a5bcff0bcc1420d7abd3fe87de544b2d01d220 | 5a7a3447d434a458a7bb63f2aa11b64c284d5492 | /thread-ing/thread-test.py | 837138ed0f016cd25779cf75bbc034ccf39bbfbd | [] | no_license | woshimayi/mypython | 35792e12036a7a05f12d3ef7006637b2b03f0e2e | 7f1eb38e8585bf6d2f21d3ad0f64dace61425875 | refs/heads/master | 2023-09-01T08:59:12.301836 | 2023-08-30T05:30:54 | 2023-08-30T05:30:54 | 130,017,052 | 4 | 0 | null | 2018-12-02T16:18:14 | 2018-04-18T06:50:36 | HTML | UTF-8 | Python | false | false | 1,130 | py | #!/usr/bin/env python
# encoding: utf-8
'''
@author: woshimayi
@license: (C) Copyright 2015-2049, Node Supply Chain Manager Corporation Limited.
@contact: xxxxxxxx@qq.com
@software: garner
@file: thread-test.py
@time: 2020/8/6 17:12
@desc:
'''
import threading
import time
exitFlag = 0
class myThrea... | [
"woshidamayi@Gmail.com"
] | woshidamayi@Gmail.com |
ea8a1c3a2e37234439372a3a5c133130f15982a9 | 12fd48db95990cf8de544c9ce6a3fadfab90c6eb | /Aplication_GUI/save_as_gui.py | 2371f00ca932ac55b1bded81eb01957a308e3ecb | [] | no_license | NadavShwartz93/DBTableScanner | 79a7b18dde01d1e4683d79837cc304d637134027 | 1364682ff7660eba770e55ac7c1289781eec9b4f | refs/heads/main | 2022-12-26T18:11:05.643619 | 2020-10-10T18:18:43 | 2020-10-10T18:18:43 | 302,587,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,311 | py | import tkinter as tk
from tkinter import filedialog
import tkinter.messagebox as msg_box
import write_excel_file as wef
import os
import Aplication_GUI.select_tables_gui as stg
class SaveAs(tk.Tk):
def __init__(self):
tk.Tk.__init__(self)
# Hide jumping window.
self.withdraw(... | [
"noreply@github.com"
] | NadavShwartz93.noreply@github.com |
9ceb92f8ae36ddece815d511358afd4049702021 | 65dd8c6844391d83d49ce3b209fd180fd452cc1f | /bot/google.py | e79d2c768c69d74dc4046b7365813a4a57639e20 | [] | no_license | sureshkpiitk/chat_bot | f9acea87b9a8f0fd6a080551d32dad47b4b205c0 | 62afdee2ad9a238f68cac5981dc6737b1cc6ca99 | refs/heads/master | 2020-08-24T05:33:32.011860 | 2019-10-22T09:05:31 | 2019-10-22T09:05:31 | 216,769,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | import requests
from bs4 import BeautifulSoup
def search(query):
url = f'https://www.google.com/search?query={query}'
response = requests.get(url)
# print(response.text)
soup = BeautifulSoup(response.text, 'html.parser')
# print(soup)
a = soup.find_all('div', attrs={'class': "kCrYT"})
# p... | [
"suresh.prajapat@joshtalks.com"
] | suresh.prajapat@joshtalks.com |
8210e782e0ef7b62813144446fecefae30d8590a | 19d7f0fc6a62ba365758e4ca735dedd678f48c8f | /prediction.py | 0e835010878d573209317e1c5c64cadceadeb7d1 | [
"MIT"
] | permissive | VASST/AECAI.CNN-US-Needle-Segmentation | 38a7b5f8e04793796305b6f04b5fc7bb653ab438 | c2600917f8b9f13627473776d037506e58cc97c4 | refs/heads/master | 2020-06-08T03:21:49.784630 | 2019-07-11T17:08:26 | 2019-07-11T17:08:26 | 193,148,916 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,378 | py | import numpy as np
import matplotlib.pyplot as plt
from tensorflow.keras.models import load_model
import tensorflow as tf
from segmentation import segment_image
'''
An event handler for keyboard interaction. Used for browsing images and predicted centroids.
PARAMS:
- event: the keyboard press event
'''
def key_presse... | [
"bvanberl@uwo.ca"
] | bvanberl@uwo.ca |
65601b51b502185369568ea88430e693795020cf | 99b0e0c930ab2910a6789f821981954a66f6c154 | /ayah_audio_project/ayah_audio_project/urls.py | dd696c3c08b32db8c92a7ed1b4cfc62dcf4b91f3 | [] | no_license | FatimaAlmashi/quraani_bot | abdfc48541511957a5282aa63761b437d5bbd38d | 6505514d471377668ebf39cddcfe8f8e3c5e9fc8 | refs/heads/main | 2023-05-13T08:11:33.302790 | 2021-06-01T09:25:42 | 2021-06-01T09:25:42 | 372,467,232 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | """ayah_audio_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | [
"fatimaalmashi@Fatimas-MacBook-Pro.local"
] | fatimaalmashi@Fatimas-MacBook-Pro.local |
98dd3b28ce420c29f5299dd09bca0615e6357e03 | c22d6f5fd11b2c7746bf4dd1de1efde80164ccd9 | /build/camera_sub/cmake/camera_sub-genmsg-context.py | e79c5016fb501a50b007d69c11251416082a760a | [] | no_license | jellylidong/ros_ws | b8a801854ff92b2c90baacd448a2abcb56e836fd | ca1400156831c9fbdc6f771490fd5fee55756644 | refs/heads/master | 2021-01-01T05:26:22.232716 | 2016-05-03T01:04:39 | 2016-05-03T01:04:39 | 56,802,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/vcoder/ros_ws/src/camera_sub/msg/Num.msg;/home/vcoder/ros_ws/src/camera_sub/msg/MPerson.msg"
services_str = ""
pkg_name = "camera_sub"
dependencies_str = "std_msgs"
langs = "gencpp;genlisp;genpy"
dep_include_paths_str = "camera_sub;/home/vcoder/... | [
"jellylidong2nd@gmail.com"
] | jellylidong2nd@gmail.com |
af38dbd54af136dad935d622d610edb67e8f7427 | 7ddb2eb66ad1be911e45c32a70a677eb6a6cf994 | /Глава 13 Обнаружение и отслеживание объектов/optical_flow.py | b05e6cf7b87c1a357858d423e7862a46497549c5 | [] | no_license | ChernenkoSergey/Artificial-Intelligence-with-Python-Book | e1209fc097aa25e424cf12926589262592c09eec | e24917084a440b1160b374dc8418edd936ce4928 | refs/heads/master | 2020-04-01T19:52:56.398952 | 2018-10-18T07:17:39 | 2018-10-18T07:17:39 | 153,576,223 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,384 | py | import cv2
import numpy as np
# Define a function to track the object
def start_tracking():
# Initialize the video capture object
cap = cv2.VideoCapture(0)
# Define the scaling factor for the frames
scaling_factor = 0.40
# Number of frames to track
num_frames_to_track = 5
# Skipping fact... | [
"noreply@github.com"
] | ChernenkoSergey.noreply@github.com |
79ba99a32c86ffbeb00dbc5001be5561b34bbade | d64b1270dda55f5a49a84860729b2e1dd5c5bc37 | /Hangman_Project.py | 7c63041501133780e05a950ad8e5c4f99786e4b1 | [] | no_license | HOcarlos/Hangman_Game | fb46a6b2a478eb2a32ad21bbdd465ce13910a2ff | 21571d546746ce117c10b4bd76439ae1e9303a7e | refs/heads/master | 2023-02-22T01:35:53.619182 | 2021-01-27T23:14:13 | 2021-01-27T23:14:13 | 333,585,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | from os import system
import random
from hangman_words import word_list
word_list = word_list
chosen_word = random.choice(word_list)
word_length = len(chosen_word)
end_of_game = False
lives = 6
from hangman_art import stages
stages = stages
display = []
for _ in range(word_length):
display += "_"
while not end... | [
"carlos.ho96@outlook.com"
] | carlos.ho96@outlook.com |
d86207b5e670b325df9b9349b9b14a45a03030f9 | a679a7d30f132441fd65d90000c1daeb390a4ab5 | /tests/test_strformat_pybrace.py | 4f93167429011f80b9ca64f6b03e0a92d1959f09 | [
"MIT"
] | permissive | llimeht/i18nspector | 0c4c9d6420fd5f050c45941df4b6cb9ad882c367 | 593e5d1adc5f21765051203fc0e6c16775e60258 | refs/heads/master | 2023-09-04T11:49:40.196374 | 2021-10-26T17:09:32 | 2021-10-26T17:09:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,953 | py | # Copyright © 2016-2018 Jakub Wilk <jwilk@jwilk.net>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the “Software”), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, mer... | [
"jwilk@jwilk.net"
] | jwilk@jwilk.net |
2ee62dbb609561cd40c8b3eed48dc67b821366cf | 00d4bf7b905204237446dc8e94dca3a600fa76d5 | /FacilitiesApp/migrations/0003_auto_20200313_1922.py | 30c22e1ddc8a072ca24733daeec2d75b04fb8df4 | [] | no_license | hann1010/Facilities0Pre1 | 763021f9e3512868fffe872adacc1b8a2dbfd62c | 972129fc37d74d9939f75c78a763966965c0dbeb | refs/heads/master | 2021-07-24T19:09:33.057733 | 2021-01-20T16:58:22 | 2021-01-20T16:58:22 | 239,363,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | # Generated by Django 3.0.3 on 2020-03-13 17:22
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('FacilitiesApp', '0002_au... | [
"hanna.paivasto@gmail.com"
] | hanna.paivasto@gmail.com |
006b5d8d70c0ae5ee6cb08e155ba23220a9b54a5 | 09eed7b76076d1b3c5af9045c036b17e93ce7983 | /prblm_2.py | 6260e3033261a90077909e04808978d439555e6a | [] | no_license | juggal/python-prblms | 9dd2362f2b61f842819711fba16cd2e01e1d1dd1 | b0096cbd72cb0ba13c3aedc8c07d33106b90c626 | refs/heads/master | 2020-03-18T07:18:22.248435 | 2018-05-22T16:34:16 | 2018-05-22T16:34:16 | 134,441,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | num = int(input("Enter any number:"))
check = int(input("Enter another no:"))
if num % 4 == 0:
print('Number is divisible by 4')
if num % 2 == 0:
print("Even")
else:
print("Odd")
if check % num == 0:
print("It divides evenly")
else:
print("It does not divides evenly")
| [
"noreply@github.com"
] | juggal.noreply@github.com |
15d55ffdba45a169bb36a65aa44a92e7aa1d415e | 24f111697b70a8e15a2c6629264efe62f31cfc87 | /venv/bin/pyrsa-keygen | ac8516986a6061ed0f30d7b0a1d6b99d67d534c2 | [] | no_license | camaro1200/UMLFinalProject | 182f375c35ea73e4972e5923e64d2daf09ee69af | 4e747ad1d9850feddce388fd16a29d00a446034d | refs/heads/main | 2023-02-03T16:19:36.424083 | 2020-12-20T22:26:55 | 2020-12-20T22:26:55 | 323,176,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | #!/Users/pavelshaburov/PycharmProjects/UMLFinalProject/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import keygen
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(keygen())
| [
"pavelshaburov@192-168-0-108.local"
] | pavelshaburov@192-168-0-108.local | |
26a8e7dd07b21f480488e1f4a850785dfd0f4f0d | f98c174d9011ed29cd8d304f0e4d7042b00d0233 | /automaton/lib/autoplatform.py | 40fe96107a47a44e1797c0eae35c56deb42b1d0e | [
"MIT"
] | permissive | nemec/Automaton | 10755e544a2004b31b55bf213c516001955a89f1 | eea2f89dc10031fba45c80eb63053480dfc3543f | refs/heads/master | 2020-12-24T15:04:49.102660 | 2016-01-04T20:23:35 | 2016-01-04T20:23:35 | 703,746 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,318 | py | import platform as pl
import os
# pylint: disable-msg=C0103
# This module deals with platform-specific paths
# Set the platform we are currently running on
if pl.system().lower().startswith('windows'):
platform = 'windows'
elif pl.system().lower().startswith('darwin'):
platform = 'mac'
else:
platform = 'linux'
... | [
"djnemec@gmail.com"
] | djnemec@gmail.com |
afb78213b6b7a098c79cada1633fcf560bcdde47 | f156f2d94c1334b60afaab93fedb25da937af7a5 | /world/models.py | 90bbe5d05af7a6b3c2c4eb9441a8121432a07ae1 | [] | no_license | zeroam/geodjango | 74e0484263b23a024f453ec5c7fa68da3a2ccbc5 | b56a79ac22a126f11bbf6addbc734b6714f516cb | refs/heads/master | 2020-04-19T09:32:28.141513 | 2019-01-29T07:58:18 | 2019-01-29T07:58:18 | 168,114,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | from django.contrib.gis.db import models
class WorldBorder(models.Model):
# Regular Django fields corresponding to the attributes in the world borders shapefile.
name = models.CharField(max_length=50)
area = models.IntegerField()
pop2005 = models.IntegerField('Polulation 2005')
fips = models.CharFi... | [
"imdff0803@gmail.com"
] | imdff0803@gmail.com |
d70057826d20d1c2123c88d7b0b4fc2374b67a16 | 49536aafb22a77a6caf249c7fadef46d63d24dfe | /tensorflow/tensorflow/python/kernel_tests/matrix_solve_op_test.py | 46c0c0de944b57256fb9fa5f616169edea2a8e3b | [
"Apache-2.0"
] | permissive | wangzhi01/deeplearning-1 | 4e5ad93f0d9ecd302b74352f80fe1fa6ae70bf0d | 46ab82253d956953b8aa98e97ceb6cd290e82288 | refs/heads/master | 2020-05-28T03:14:55.687567 | 2018-09-12T16:52:09 | 2018-09-12T16:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,173 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"hanshuobest@163.com"
] | hanshuobest@163.com |
6f223943a491c8139f39d8f8d1b6dde70883cc63 | 8a43a8cedf43bb1d57444e027e21e796646353f9 | /scripts/input_output.py | 1f9e46ce7fdad868b99adc77fe28f0b81cb45484 | [
"MIT"
] | permissive | AleZandona/INF | e0251bff2c2b60f002b428fd477d1af779c5e6c9 | a765042fd45dbe88b544eb2611dee171a0939caa | refs/heads/master | 2021-01-11T08:14:34.574259 | 2016-12-17T11:12:39 | 2016-12-17T11:12:39 | 76,640,270 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | ## This code is written by Davide Albanese <albanese@fbk.eu>
import numpy as np
import csv
def load_data(filename):
f = open(filename, 'r')
csv_r = csv.reader(f, delimiter='\t')
var_names = csv_r.next()[1:]
sample_names, data = [], []
for row in csv_r:
sample_names.append(row[0])
da... | [
"zandona@fbk.eu"
] | zandona@fbk.eu |
e139da2d75014ded8f81f19dacbd4db486197d9c | 686e9440ee53951d25e6322f61ebb0519185fed0 | /stack.py | 81eaa741d23b2fba961f1b2d58911d225391436c | [
"Apache-2.0"
] | permissive | ajaycode/datastructures_algorithms | b83adb658f8f2fcc76b207714a8389b0fbe72b24 | 19d3c46d2e3fa11f49108ad7c3c8d39e365e31ed | refs/heads/master | 2021-01-12T17:44:38.553357 | 2016-10-22T16:03:48 | 2016-10-22T16:03:48 | 71,635,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | from linked_list import *
class Stack (object):
def __init__(self):
self.linked_list = LinkedList ()
def stack_size (self):
return self.linked_list.size_of_linked_list()
def is_empty (self):
return self.linked_list.size_of_linked_list() == 0
def push (self, data):
sel... | [
"writeajay@gmail.com"
] | writeajay@gmail.com |
4856c08775ebd8c8ebc0b11d9265cb5e04a3b322 | 5caa06b4b8cf484a24e24d332e0ad0b91fc0a269 | /algo7.py | b71e5a2c751b00faeaef356327f6180a661d058c | [] | no_license | dtchou802/python-practice | e657836cd57fa6b1a38bbdfdf818ea897a15a1d0 | f63c9f4658109295db7a71a0a34c9b2d8c0d2068 | refs/heads/master | 2020-03-26T15:27:35.820044 | 2019-03-25T06:17:05 | 2019-03-25T06:17:05 | 145,044,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,704 | py | import heapq
import random
from math import floor
#import numpy
from queue import PriorityQueue
def heapSortA(array):
n = len(array)
for rt in range(n,-1,-1):
heapify(array, rt, n)
for rt in range(n-1,0,-1):
array[rt], array[0] = array[0], array[rt]
heapify(array, 0, rt)
pri... | [
"dtchou802@gmail.com"
] | dtchou802@gmail.com |
ff0eb4a00eedd4258a9b4bf393dcaac7aa1b9685 | 1e159a38cbeeffdebfbafd9c3ae7ba2935d0c869 | /digitrec.py | 003fa1f275910c76be982091bcf5e6e8c0d259f1 | [] | no_license | t-web/digitrecognizer-DNN | 3b9eac04469b64b54f47d99de13a5ebdc7271d39 | 49c9cfa1fcda06990e23dd38a18974d59fcb53b7 | refs/heads/master | 2021-06-21T18:27:11.037067 | 2017-08-24T14:38:46 | 2017-08-24T14:38:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,187 | py | import tensorflow as tf
import numpy as np
import pandas as pd
move_average_decay=0.99
learning_rate_decay=0.99
learning_rate_base = 0.8
regularization = 0.0001
batch_size=64
train_data=pd.read_csv("./data/train.csv")
test_data=pd.read_csv("./data/test.csv")
labels1=train_data.label.values
labels=[]
for i... | [
"418732021@qq.com"
] | 418732021@qq.com |
c1bdfdcb599da2a3b1f05ed75faccf5f29d32652 | fa679f25a12710a992ef07ae0ba48e61fa5f428e | /matploat/ma_pic1.py | b29a2e00d160f78786691bfc79dcf3767670a6b6 | [] | no_license | LPLhock/huobi_swap | 78548521cf9235c328da82a6e5b0b0d4a0f9b165 | 50a89a41dfc8fffc2ca3006de65bf18ca10c2011 | refs/heads/master | 2022-11-22T18:14:13.636526 | 2020-07-23T00:57:17 | 2020-07-23T00:57:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,421 | py | from api.huobi.huobi_request_swap import HuobiSwapRequest
import asyncio
import pandas as pd
import mplfinance as mpf
import matplotlib as mpl
from cycler import cycler
from matplotlib import pyplot as plt
import talib
# 图形参数控制
import pylab as pl
import numpy as np
from datetime import datetime
from utils import trend_... | [
"dreams1234"
] | dreams1234 |
ae76361f30084524d821dcce3cac912445b33bd3 | 1f358109fc901c36bb43473a49aae14cf43c41b3 | /aiotelebot/objects.py | 942144ee3753ec3b49ecea979e6cccf160c0a606 | [
"MIT"
] | permissive | nlm/aiotelebot | 42870d373a3f92e7a2a9ae584a9debdcc250ecbc | 7998f6208b4837493e3c2d51073416605b0493ce | refs/heads/master | 2021-06-07T22:02:13.539577 | 2016-10-26T12:17:05 | 2016-10-26T12:17:05 | 71,926,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | from collections import namedtuple
def object_defaults(obj):
return {key: None for key in obj._fields}
TelegramUpdate = namedtuple('TelegramUpdate',
['update_id', 'message', 'edited_message',
'inline_query', 'chosen_inline_result',
... | [
"github@xephon.org"
] | github@xephon.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.