hexsha stringlengths 40 40 | size int64 2 991k | ext stringclasses 2
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 208 | max_stars_repo_name stringlengths 6 106 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses list | max_stars_count int64 1 33.5k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 208 | max_issues_repo_name stringlengths 6 106 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses list | max_issues_count int64 1 16.3k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 208 | max_forks_repo_name stringlengths 6 106 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses list | max_forks_count int64 1 6.91k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 2 991k | avg_line_length float64 1 36k | max_line_length int64 1 977k | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
73322ba4acecd9a81c2962202b0e9fa04d3774cd | 3,408 | ex | Elixir | lib/mavlink/udp_in_connection.ex | beamuav/elixir-mavlink | 1db95ccb7e631f89159ff1d0927fe7d5722107be | [
"MIT"
] | 5 | 2019-08-10T08:21:38.000Z | 2021-05-27T23:51:05.000Z | lib/mavlink/udp_in_connection.ex | beamuav/elixir-mavlink | 1db95ccb7e631f89159ff1d0927fe7d5722107be | [
"MIT"
] | 15 | 2019-08-18T08:47:05.000Z | 2021-05-24T07:05:18.000Z | lib/mavlink/udp_in_connection.ex | beamuav/elixir-mavlink | 1db95ccb7e631f89159ff1d0927fe7d5722107be | [
"MIT"
] | null | null | null | defmodule MAVLink.UDPInConnection do
@moduledoc """
MAVLink.Router delegate for UDP connections
"""
require Logger
import MAVLink.Frame, only: [binary_to_frame_and_tail: 1, validate_and_unpack: 2]
alias MAVLink.Frame
defstruct [
address: nil,
port: nil,
socket: nil]
@type t :: %MAVL... | 41.060241 | 140 | 0.655223 |
73323ce347062745b6e77b2295c51040e7545fb1 | 1,119 | exs | Elixir | clients/sheets/mix.exs | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/sheets/mix.exs | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | clients/sheets/mix.exs | linjunpop/elixir-google-api | 444cb2b2fb02726894535461a474beddd8b86db4 | [
"Apache-2.0"
] | null | null | null | defmodule GoogleApi.Sheets.V4.Mixfile do
use Mix.Project
@version "0.4.0"
def project do
[app: :google_api_sheets,
version: @version,
elixir: "~> 1.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
package: package(),
deps... | 22.836735 | 106 | 0.581769 |
7332661392aa0a5c53396b6cbbb812ed7dcc3c7a | 4,944 | ex | Elixir | bricks/test/lib/genservers.ex | jjl/bricks.ex | 318db55c0b316fe88c701a962d8a3fd24019130e | [
"Apache-2.0"
] | null | null | null | bricks/test/lib/genservers.ex | jjl/bricks.ex | 318db55c0b316fe88c701a962d8a3fd24019130e | [
"Apache-2.0"
] | null | null | null | bricks/test/lib/genservers.ex | jjl/bricks.ex | 318db55c0b316fe88c701a962d8a3fd24019130e | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2018 James Laver
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | 24.117073 | 80 | 0.657362 |
73328f90c07cc2d4bfc372bc840a79e223836be7 | 1,517 | ex | Elixir | clients/compute/lib/google_api/compute/v1/model/networks_update_peering_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/compute/lib/google_api/compute/v1/model/networks_update_peering_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/compute/lib/google_api/compute/v1/model/networks_update_peering_request.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 32.276596 | 99 | 0.752142 |
733290f712796769dcce0ecc8a9f130f8cf44c11 | 784 | exs | Elixir | 2016/day05/test/day05/password_test.exs | matt-thomson/advent-of-code | feff903151284240a9d3f0c84cdfe52d8d11ef06 | [
"MIT"
] | null | null | null | 2016/day05/test/day05/password_test.exs | matt-thomson/advent-of-code | feff903151284240a9d3f0c84cdfe52d8d11ef06 | [
"MIT"
] | null | null | null | 2016/day05/test/day05/password_test.exs | matt-thomson/advent-of-code | feff903151284240a9d3f0c84cdfe52d8d11ef06 | [
"MIT"
] | null | null | null | defmodule Day05.PasswordTest do
use ExUnit.Case
alias Day05.Password
test "selects the password character from a hash for part one" do
assert Password.char_one(<<0, 0, 8, 100>>) == "8"
assert Password.char_one(<<0, 0, 12, 100>>) == "c"
end
test "selects the password character from a hash for part ... | 29.037037 | 72 | 0.608418 |
7332bcefef35f5019aec6b0373b011a448ffc200 | 405 | ex | Elixir | lib/ambry_web/live/components/search_box.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 12 | 2021-09-30T20:51:49.000Z | 2022-01-27T04:09:32.000Z | lib/ambry_web/live/components/search_box.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 76 | 2021-10-01T05:45:11.000Z | 2022-03-28T04:12:39.000Z | lib/ambry_web/live/components/search_box.ex | doughsay/ambry | c04e855bf06a6b00b8053c6eacb2eac14a56a37c | [
"MIT"
] | 2 | 2021-10-04T19:27:28.000Z | 2022-01-13T22:36:38.000Z | defmodule AmbryWeb.Components.SearchBox do
@moduledoc false
use AmbryWeb, :live_component
@impl Phoenix.LiveComponent
def handle_event("search", %{"search" => %{"query" => query}}, socket) do
case String.trim(query) do
"" ->
{:noreply, socket}
query ->
{:noreply, push_redirect... | 23.823529 | 98 | 0.654321 |
7332f733ba74e80cca2272b51c733e67ed07a6cf | 714 | ex | Elixir | lib/openapi_compiler/component/schema.ex | jshmrtn/openapi-compiler | 72ce58321bcaf7310b1286fa90dd2feaa2a7b565 | [
"MIT"
] | 3 | 2021-09-07T13:13:44.000Z | 2022-01-16T22:25:11.000Z | lib/openapi_compiler/component/schema.ex | jshmrtn/openapi-compiler | 72ce58321bcaf7310b1286fa90dd2feaa2a7b565 | [
"MIT"
] | 26 | 2020-03-31T17:26:58.000Z | 2020-04-01T17:32:21.000Z | lib/openapi_compiler/component/schema.ex | jshmrtn/openapi-compiler | 72ce58321bcaf7310b1286fa90dd2feaa2a7b565 | [
"MIT"
] | 1 | 2020-10-27T13:32:07.000Z | 2020-10-27T13:32:07.000Z | defmodule OpenAPICompiler.Component.Schema do
@moduledoc false
defmacro define_module(context, mode) do
quote location: :keep, bind_quoted: [context: context, mode: mode] do
module_key = :"components_schema_#{mode}_module"
%OpenAPICompiler.Context{schema: schema} = %{^module_key => module} = contex... | 28.56 | 83 | 0.627451 |
7333068e1bcc39831ee45eafebb85c2c45a4eecf | 2,521 | ex | Elixir | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_list_display_video360_advertiser_link_proposals_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_list_display_video360_advertiser_link_proposals_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_list_display_video360_advertiser_link_proposals_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.19697 | 238 | 0.769139 |
7333954a5b40e6e6a6c8d102a178222d036346b3 | 143 | ex | Elixir | web/controllers/dashboard_controller.ex | ikeikeikeike/panglao | 6d3f6515d9f1ceb9a2e771ae2d54c222cedbf538 | [
"MIT"
] | 1 | 2017-02-18T21:20:17.000Z | 2017-02-18T21:20:17.000Z | web/controllers/dashboard_controller.ex | ikeikeikeike/panglao | 6d3f6515d9f1ceb9a2e771ae2d54c222cedbf538 | [
"MIT"
] | null | null | null | web/controllers/dashboard_controller.ex | ikeikeikeike/panglao | 6d3f6515d9f1ceb9a2e771ae2d54c222cedbf538 | [
"MIT"
] | null | null | null | defmodule Panglao.DashboardController do
use Panglao.Web, :controller
def index(conn, _params) do
render conn, "index.html"
end
end
| 17.875 | 40 | 0.741259 |
7333b6ddd38e09b3cc9e6e60a2324c333ac1fff1 | 411 | exs | Elixir | apps/realtime/config/dev.exs | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 8 | 2018-07-06T14:44:10.000Z | 2021-08-19T17:24:25.000Z | apps/realtime/config/dev.exs | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 12 | 2018-07-15T18:43:04.000Z | 2022-02-10T16:07:47.000Z | apps/realtime/config/dev.exs | bus-detective/bus_detective_ng | ef54684d4f640384bd20a4d5550ff51ab440190b | [
"MIT"
] | 1 | 2018-07-13T17:30:20.000Z | 2018-07-13T17:30:20.000Z | use Mix.Config
config :realtime,
feeds: %{
"SORTA" => %{
trip_updates_url: "http://developer.go-metro.com/TMGTFSRealTimeWebService/TripUpdate/TripUpdates.pb",
vehicle_positions_url: "http://developer.go-metro.com/TMGTFSRealTimeWebService/vehicle/VehiclePositions.pb"
}
}
file = Path.join(Path.d... | 25.6875 | 113 | 0.727494 |
7333ca8ed1ae27593e2712f4d2ac23305541b4f9 | 7,249 | exs | Elixir | .credo.exs | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | null | null | null | .credo.exs | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | 25 | 2021-05-21T02:23:37.000Z | 2021-07-09T09:22:32.000Z | .credo.exs | junan/elixir_google_scraper | d032f3a9d5a30e354f1e6d607434670334936630 | [
"MIT"
] | null | null | null | # This file contains the configuration for Credo and you are probably reading
# this after creating it with `mix credo.gen.config`.
#
# If you find anything wrong or unclear in this file, please report an
# issue on GitHub: https://github.com/rrrene/credo/issues
#
%{
#
# You can have as many configs as you like in ... | 38.152632 | 107 | 0.604773 |
7333d8c78ff04322a28c450292115272a03d2b6f | 3,195 | exs | Elixir | apps/service_broadcast/test/broadcast/event/handler_test.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 12 | 2020-01-27T19:43:02.000Z | 2021-07-28T19:46:29.000Z | apps/service_broadcast/test/broadcast/event/handler_test.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 81 | 2020-01-28T18:07:23.000Z | 2021-11-22T02:12:13.000Z | apps/service_broadcast/test/broadcast/event/handler_test.exs | jdenen/hindsight | ef69b4c1a74c94729dd838a9a0849a48c9b6e04c | [
"Apache-2.0"
] | 10 | 2020-02-13T21:24:09.000Z | 2020-05-21T18:39:35.000Z | defmodule Broadcast.Event.HandlerTest do
use ExUnit.Case
use Placebo
import AssertAsync
import Events, only: [transform_define: 0, dataset_delete: 0]
import Definition, only: [identifier: 1]
alias Broadcast.ViewState
@instance Broadcast.Application.instance()
setup do
on_exit(fn ->
[ViewStat... | 27.543103 | 95 | 0.599061 |
7333e1a64f8cd70080d68dc9defa1de16c68b77e | 357 | exs | Elixir | test/phoenix_starter/users/user_role_test.exs | newaperio/phoenix_starter | 02f2f5550a94b940bb4e9c61042b032f54af8b72 | [
"MIT"
] | 3 | 2021-03-19T10:39:02.000Z | 2021-07-25T19:54:09.000Z | test/phoenix_starter/users/user_role_test.exs | newaperio/phoenix_starter | 02f2f5550a94b940bb4e9c61042b032f54af8b72 | [
"MIT"
] | 204 | 2020-11-27T06:00:31.000Z | 2022-03-25T08:08:16.000Z | test/phoenix_starter/users/user_role_test.exs | newaperio/phoenix_starter | 02f2f5550a94b940bb4e9c61042b032f54af8b72 | [
"MIT"
] | null | null | null | defmodule PhoenixStarter.Users.UserRoleTest do
use PhoenixStarter.DataCase
alias PhoenixStarter.Users.UserRole
test "roles/0" do
assert UserRole.roles() == [:admin, :ops_admin, :user]
end
test "role/1" do
assert %UserRole{} = UserRole.role(:admin)
assert_raise ArgumentError, fn ->
UserRo... | 19.833333 | 58 | 0.697479 |
7333eda9ae0a3a85a44fe682bcd0b6f9df1dbe16 | 3,940 | ex | Elixir | lib/banchan_web/router.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | lib/banchan_web/router.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | lib/banchan_web/router.ex | riamaria/banchan | c4f8bd9374acaf0a8bb2c501e2ae1eb78f96579f | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | defmodule BanchanWeb.Router do
use BanchanWeb, :router
import BanchanWeb.UserAuth
import Phoenix.LiveDashboard.Router
alias BanchanWeb.EnsureRolePlug
pipeline :browser do
plug :accepts, ["html"]
plug :fetch_session
plug :fetch_live_flash
plug :put_root_layout, {BanchanWeb.LayoutView, :root}... | 33.965517 | 221 | 0.709137 |
7333f65acae4d651881676e35ccc13b7aacb64d8 | 1,531 | ex | Elixir | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/empty.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/empty.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/firebase_rules/lib/google_api/firebase_rules/v1/model/empty.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 36.452381 | 345 | 0.758328 |
73341b9016876571359c0bd7b9c9d94563f91b68 | 2,040 | exs | Elixir | test/central_web/controllers/logging/error_log_controller_test.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 6 | 2021-02-08T10:42:53.000Z | 2021-04-25T12:12:03.000Z | test/central_web/controllers/logging/error_log_controller_test.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | null | null | null | test/central_web/controllers/logging/error_log_controller_test.exs | icexuick/teiserver | 22f2e255e7e21f977e6b262acf439803626a506c | [
"MIT"
] | 2 | 2021-02-23T22:34:00.000Z | 2021-04-08T13:31:36.000Z | defmodule CentralWeb.Logging.ErrorLogControllerTest do
use CentralWeb.ConnCase, async: true
alias Central.Logging
alias Central.Helpers.GeneralTestLib
setup do
GeneralTestLib.conn_setup(~w(logging.error.show admin.dev))
end
defp create_test_error(conn) do
assert_raise ArithmeticError,
... | 32.903226 | 80 | 0.715686 |
73342f0b594ce6975642d76d9e4f63fe08a93591 | 1,529 | exs | Elixir | test/url_gen_test.exs | X-Plane/weather-mirror | 7db39c342ef33fa9688751ce661ab5ff8e6ebb6c | [
"MIT"
] | 6 | 2019-09-08T15:45:52.000Z | 2022-03-18T07:08:03.000Z | test/url_gen_test.exs | X-Plane/weather-mirror | 7db39c342ef33fa9688751ce661ab5ff8e6ebb6c | [
"MIT"
] | null | null | null | test/url_gen_test.exs | X-Plane/weather-mirror | 7db39c342ef33fa9688751ce661ab5ff8e6ebb6c | [
"MIT"
] | 1 | 2019-12-12T13:29:52.000Z | 2019-12-12T13:29:52.000Z | defmodule WeatherMirror.UrlGenTest do
use ExUnit.Case, async: true
import WeatherMirror.UrlGen, only: [gfs: 1, wafs: 1, metar: 1]
# 2019-02-13 02:37Z --- 6 hours ago will cross the date boundary
@early DateTime.from_unix!(1_550_025_476)
# 2019-02-12 17:32Z
@mid DateTime.from_unix!(1_549_992_766)
# 2019-0... | 50.966667 | 140 | 0.734467 |
73343922ba38d5802392eb5b2b4e786c060bddae | 84 | exs | Elixir | test/asteroid_web/views/layout_view_test.exs | tanguilp/asteroid | 8e03221d365da7f03f82df192c535d3ba2101f4d | [
"Apache-2.0"
] | 36 | 2019-07-23T20:01:05.000Z | 2021-08-05T00:52:34.000Z | test/asteroid_web/views/layout_view_test.exs | tanguilp/asteroid | 8e03221d365da7f03f82df192c535d3ba2101f4d | [
"Apache-2.0"
] | 19 | 2019-08-23T19:04:50.000Z | 2021-05-07T22:12:25.000Z | test/asteroid_web/views/layout_view_test.exs | tanguilp/asteroid | 8e03221d365da7f03f82df192c535d3ba2101f4d | [
"Apache-2.0"
] | 3 | 2019-09-06T10:47:20.000Z | 2020-09-09T03:43:31.000Z | defmodule AsteroidWeb.LayoutViewTest do
use AsteroidWeb.ConnCase, async: true
end
| 21 | 39 | 0.833333 |
73343c54a996ef2e250e7fc583d0294947d2b2d6 | 1,280 | exs | Elixir | test/models/tp_threshold_test.exs | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | test/models/tp_threshold_test.exs | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | test/models/tp_threshold_test.exs | zombalo/cgrates_web_jsonapi | 47845be4311839fe180cc9f2c7c6795649da4430 | [
"MIT"
] | null | null | null | defmodule CgratesWebJsonapi.TpThresholdTest do
use CgratesWebJsonapi.ModelCase
alias CgratesWebJsonapi.TpThreshold
alias CgratesWebJsonapi.Repo
import CgratesWebJsonapi.Factory
@valid_attrs %{tenant: "some content", custom_id: "true", max_hits: "10",
filter_ids: "some content", activation_i... | 32 | 101 | 0.675781 |
73344d7b665e7890699767458a47f05c8f1d9e52 | 268 | exs | Elixir | day02/el_a.exs | mason-bially/aoc-2019 | f1cefa455b967d9d23dcd092be6242f8ff539c7a | [
"MIT"
] | 1 | 2019-12-13T22:44:09.000Z | 2019-12-13T22:44:09.000Z | day02/el_a.exs | mason-bially/aoc-2019 | f1cefa455b967d9d23dcd092be6242f8ff539c7a | [
"MIT"
] | null | null | null | day02/el_a.exs | mason-bially/aoc-2019 | f1cefa455b967d9d23dcd092be6242f8ff539c7a | [
"MIT"
] | 1 | 2019-12-05T21:06:06.000Z | 2019-12-05T21:06:06.000Z | Code.require_file("el.ex", __DIR__)
memory = Day02.read_intcode("day02/input.txt")
memory = :array.set(1, 12, memory)
memory = :array.set(2, 2, memory)
memory = Day02.run_program(%{memory: memory, pc: 0})
result = :array.get(0, memory)
IO.inspect(result) # 6568671
| 24.363636 | 52 | 0.701493 |
7334c3036235f8217e378de15d466a617ec479bb | 2,302 | exs | Elixir | test/controllers/user_controller_test.exs | bschmeck/ex_gnarl | 25d6961795f10a2d49efd1a29167a771ef9772f1 | [
"MIT"
] | null | null | null | test/controllers/user_controller_test.exs | bschmeck/ex_gnarl | 25d6961795f10a2d49efd1a29167a771ef9772f1 | [
"MIT"
] | 1 | 2017-04-21T17:02:56.000Z | 2017-04-21T17:02:56.000Z | test/controllers/user_controller_test.exs | bschmeck/ex_gnarl | 25d6961795f10a2d49efd1a29167a771ef9772f1 | [
"MIT"
] | null | null | null | defmodule ExGnarl.UserControllerTest do
use ExGnarl.ConnCase
alias ExGnarl.User
@valid_attrs %{email: "some content"}
@invalid_attrs %{}
test "lists all entries on index", %{conn: conn} do
conn = get conn, user_path(conn, :index)
assert html_response(conn, 200) =~ "Listing users"
end
test "rend... | 34.358209 | 98 | 0.675934 |
7334e91d3228055a679b2892e125e7354752430a | 1,193 | ex | Elixir | Seminarie 3/brot.ex | evansaboo/elixir-programming | 57408424914003091003430500473546c94354d9 | [
"MIT"
] | null | null | null | Seminarie 3/brot.ex | evansaboo/elixir-programming | 57408424914003091003430500473546c94354d9 | [
"MIT"
] | null | null | null | Seminarie 3/brot.ex | evansaboo/elixir-programming | 57408424914003091003430500473546c94354d9 | [
"MIT"
] | null | null | null | defmodule Brot do
# This is the client version.
def start(mandel) do
{:ok, spawn(fn -> init(mandel) end)}
end
defp init(mandel) do
self = self()
brot(mandel, self)
end
defp brot(mandel, self) do
send(mandel, {:req, self})
receive do
{:pos, pr, pos, c, m} ->
i = mandelbr... | 18.936508 | 58 | 0.575021 |
7334ebbcb9a6bddb5ab48cf773398ea4da7aee70 | 570 | ex | Elixir | plugins/ucc_chat/lib/ucc_chat_web/flex_bar/tab/mention.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_chat/lib/ucc_chat_web/flex_bar/tab/mention.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | plugins/ucc_chat/lib/ucc_chat_web/flex_bar/tab/mention.ex | josephkabraham/ucx_ucc | 0dbd9e3eb5940336b4870cff033482ceba5f6ee7 | [
"MIT"
] | null | null | null | defmodule UccChatWeb.FlexBar.Tab.Mention do
use UccChatWeb.FlexBar.Helpers
alias UccChat.Mention
alias UcxUcc.TabBar.Tab
def add_buttons do
TabBar.add_button Tab.new(
__MODULE__,
~w[channel direct im],
"mentions",
~g"Mentions",
"icon-at",
View,
"mentions.html",
... | 20.357143 | 58 | 0.647368 |
7334f99d0d139c59fc3ef8970bd801f6b1b6e9d2 | 2,822 | ex | Elixir | clients/games/lib/google_api/games/v1/model/room_p2_p_status.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/room_p2_p_status.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/games/lib/google_api/games/v1/model/room_p2_p_status.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 48.655172 | 435 | 0.74876 |
7334fae6d90857cf7fe6d2b99b112fd926d357dc | 203 | exs | Elixir | test/queerlink_web/controllers/page_controller_test.exs | Queertoo/Queerlink | 0a7726460cda63fc4ab342a2fe1d1155caa3d6d4 | [
"MIT"
] | 38 | 2015-11-07T23:54:26.000Z | 2021-04-09T04:14:25.000Z | test/queerlink_web/controllers/page_controller_test.exs | Queertoo/Queerlink | 0a7726460cda63fc4ab342a2fe1d1155caa3d6d4 | [
"MIT"
] | 2 | 2015-11-23T15:00:34.000Z | 2015-11-26T09:59:26.000Z | test/queerlink_web/controllers/page_controller_test.exs | Queertoo/Queerlink | 0a7726460cda63fc4ab342a2fe1d1155caa3d6d4 | [
"MIT"
] | 6 | 2015-11-26T00:25:22.000Z | 2020-03-04T22:13:59.000Z | defmodule QueerlinkWeb.PageControllerTest do
use QueerlinkWeb.ConnCase
test "GET /", %{conn: conn} do
conn = get conn, "/"
assert html_response(conn, 200) =~ "Welcome to Phoenix!"
end
end
| 22.555556 | 60 | 0.689655 |
733523f7131ada03090a1f8612c6f902ab18cf8e | 524 | ex | Elixir | lib/glimesh/release.ex | FROSADO/glimesh.tv | d395e89bcf8ab33ccb723ad603c0a6fb6d4ca139 | [
"MIT"
] | null | null | null | lib/glimesh/release.ex | FROSADO/glimesh.tv | d395e89bcf8ab33ccb723ad603c0a6fb6d4ca139 | [
"MIT"
] | null | null | null | lib/glimesh/release.ex | FROSADO/glimesh.tv | d395e89bcf8ab33ccb723ad603c0a6fb6d4ca139 | [
"MIT"
] | null | null | null | defmodule Glimesh.Release do
@app :glimesh
def migrate do
load_app()
for repo <- repos() do
{:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrator.run(&1, :up, all: true))
end
end
def rollback(repo, version) do
load_app()
{:ok, _, _} = Ecto.Migrator.with_repo(repo, &Ecto.Migrato... | 20.153846 | 91 | 0.646947 |
73353a02790994d1c5a3198f075120df0f1b4c2e | 609 | exs | Elixir | test/spec_compliance/fetching_data_test.exs | peillis/ash_json_api | f63ccacebc049eba8d37b8b58181fb46a4a0ea8c | [
"MIT"
] | 11 | 2020-09-21T22:03:42.000Z | 2022-02-02T23:48:11.000Z | test/spec_compliance/fetching_data_test.exs | peillis/ash_json_api | f63ccacebc049eba8d37b8b58181fb46a4a0ea8c | [
"MIT"
] | 44 | 2020-05-02T04:37:42.000Z | 2021-06-25T14:38:44.000Z | test/spec_compliance/fetching_data_test.exs | peillis/ash_json_api | f63ccacebc049eba8d37b8b58181fb46a4a0ea8c | [
"MIT"
] | 9 | 2020-08-25T20:23:34.000Z | 2022-02-14T04:40:10.000Z | defmodule AshJsonApiTest.FetchingData do
use ExUnit.Case
use Plug.Test
@moduletag :json_api_spec_1_0
@tag :spec_must
# JSON:API 1.0 Specification
# --------------------------
# A server MUST support fetching resource data for every URL provided as:
# a self link as part of the top-level links object
... | 33.833333 | 89 | 0.674877 |
73353fdc84c0cff703060cead7af1875d16775d3 | 333 | ex | Elixir | lib/consul.ex | grufino/consul-elixir | 1486291da0d873a46faf6bec25aaccaa37872ce3 | [
"MIT"
] | 11 | 2018-10-30T03:55:42.000Z | 2021-02-06T18:23:47.000Z | lib/consul.ex | grufino/consul-elixir | 1486291da0d873a46faf6bec25aaccaa37872ce3 | [
"MIT"
] | null | null | null | lib/consul.ex | grufino/consul-elixir | 1486291da0d873a46faf6bec25aaccaa37872ce3 | [
"MIT"
] | 3 | 2019-11-27T06:43:52.000Z | 2020-05-24T08:18:34.000Z | defmodule Consul do
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
supervisor(Task.Supervisor, [[name: Consul.WatchSupervisor]])
]
opts = [strategy: :one_for_one, name: Consul.Supervisor]
Supervisor.start_link(children, opt... | 20.8125 | 67 | 0.696697 |
733555fa415ff350a6150c9df043c2d82bf048b7 | 1,243 | ex | Elixir | clients/datastream/lib/google_api/datastream/v1/model/avro_file_format.ex | renovate-bot/elixir-google-api | 1da34cd39b670c99f067011e05ab90af93fef1f6 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/datastream/lib/google_api/datastream/v1/model/avro_file_format.ex | swansoffiee/elixir-google-api | 9ea6d39f273fb430634788c258b3189d3613dde0 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/datastream/lib/google_api/datastream/v1/model/avro_file_format.ex | dazuma/elixir-google-api | 6a9897168008efe07a6081d2326735fe332e522c | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 29.595238 | 76 | 0.760257 |
73355affc5b0500e6e44f8dacaceef2720411198 | 445 | exs | Elixir | apps/man_api/priv/repo/migrations/20190417121851_update_contracts_form3.exs | edenlabllc/man.api.public | 010016c5ecc209413a56ee1f8e9e6fa31da8de18 | [
"MIT"
] | null | null | null | apps/man_api/priv/repo/migrations/20190417121851_update_contracts_form3.exs | edenlabllc/man.api.public | 010016c5ecc209413a56ee1f8e9e6fa31da8de18 | [
"MIT"
] | null | null | null | apps/man_api/priv/repo/migrations/20190417121851_update_contracts_form3.exs | edenlabllc/man.api.public | 010016c5ecc209413a56ee1f8e9e6fa31da8de18 | [
"MIT"
] | null | null | null | defmodule Man.Repo.Migrations.UpdateContractsForm3 do
use Ecto.Migration
alias Man.Templates.API
def change do
API.update_template_body!("CRPF", Application.app_dir(:man_api, "priv/static/CRPF.html.eex"))
API.update_template_body!("CRPF appendix", Application.app_dir(:man_api, "priv/static/CRPF_append... | 37.083333 | 115 | 0.761798 |
73356af0d13fc3a437955d65987bfc958004e52a | 898 | ex | Elixir | lib/rocketpay_web/router.ex | lucassm02/rocket-pay | af9ccbb68bc5d79793703e32bdb1d41f57e29682 | [
"MIT"
] | null | null | null | lib/rocketpay_web/router.ex | lucassm02/rocket-pay | af9ccbb68bc5d79793703e32bdb1d41f57e29682 | [
"MIT"
] | null | null | null | lib/rocketpay_web/router.ex | lucassm02/rocket-pay | af9ccbb68bc5d79793703e32bdb1d41f57e29682 | [
"MIT"
] | null | null | null | defmodule RocketpayWeb.Router do
use RocketpayWeb, :router
pipeline :api do
plug(:accepts, ["json"])
end
scope "/api", RocketpayWeb do
pipe_through(:api)
get("/:filename", WelcomeController, :index)
post("/:users", UserController, :create)
end
# Enables LiveDashboard only for development... | 28.967742 | 70 | 0.708241 |
73357892c63ce3d3f0a8babebf490281d7d8490d | 2,150 | exs | Elixir | test/controllers/todo_controller_test.exs | Baransu/todos | a1ce771b35dc0f30efd043c283b513b52eba4657 | [
"BSD-3-Clause"
] | null | null | null | test/controllers/todo_controller_test.exs | Baransu/todos | a1ce771b35dc0f30efd043c283b513b52eba4657 | [
"BSD-3-Clause"
] | null | null | null | test/controllers/todo_controller_test.exs | Baransu/todos | a1ce771b35dc0f30efd043c283b513b52eba4657 | [
"BSD-3-Clause"
] | null | null | null | defmodule Todos.TodoControllerTest do
use Todos.ConnCase
alias Todos.Todo
@valid_attrs %{
description: "some content",
title: "some content"}
@invalid_attrs %{}
setup %{conn: conn} do
{:ok, conn: put_req_header(conn, "accept", "application/json")}
end
test "lists all entries on index", %{co... | 32.089552 | 98 | 0.653953 |
73358562a8531d123bce2afa5e41cb334c200e46 | 1,821 | ex | Elixir | clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_record_key.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_record_key.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/dlp/lib/google_api/dlp/v2beta1/model/google_privacy_dlp_v2beta1_record_key.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 35.705882 | 124 | 0.773202 |
73359d1a2d48ebc3efebdf0d4453b4586eec116d | 1,131 | exs | Elixir | parser_sdk/config/config.exs | flixbi/element-parsers | b92ef1cff139130acbac4f40d0d48568a3de6590 | [
"MIT"
] | 1 | 2021-11-10T18:06:59.000Z | 2021-11-10T18:06:59.000Z | parser_sdk/config/config.exs | SeppPenner/element-parsers | 8a2594e0f15ca7177f6782d0441f25e3e55b8416 | [
"MIT"
] | null | null | null | parser_sdk/config/config.exs | SeppPenner/element-parsers | 8a2594e0f15ca7177f6782d0441f25e3e55b8416 | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
use Mix.Config
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the paren... | 36.483871 | 73 | 0.751547 |
7335aedab1046c7844f7fa0b53ebbead0df01d71 | 9,410 | ex | Elixir | lib/elixir/lib/supervisor/spec.ex | anshul77/elixir | c190f09d5cbb1e79b510ea4332c65a7717aa9eb8 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/supervisor/spec.ex | anshul77/elixir | c190f09d5cbb1e79b510ea4332c65a7717aa9eb8 | [
"Apache-2.0"
] | null | null | null | lib/elixir/lib/supervisor/spec.ex | anshul77/elixir | c190f09d5cbb1e79b510ea4332c65a7717aa9eb8 | [
"Apache-2.0"
] | null | null | null | defmodule Supervisor.Spec do
@moduledoc """
Outdated functions for building child specifications.
The functions in this module are deprecated and they do not work
with the module-based child specs introduced in Elixir v1.5.
Please see the `Supervisor` documentation instead.
Convenience functions for defin... | 32.448276 | 105 | 0.672795 |
7335f7ce7b0d4f1659cbf817418ca177d0c02e35 | 3,092 | ex | Elixir | lib/oli/delivery/attempts/scoring.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | 45 | 2020-04-17T15:40:27.000Z | 2022-03-25T00:13:30.000Z | lib/oli/delivery/attempts/scoring.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | 944 | 2020-02-13T02:37:01.000Z | 2022-03-31T17:50:07.000Z | lib/oli/delivery/attempts/scoring.ex | chrislawson/oli-torus | 94165b211ab74fac3e7c8a14110a394fa9a6f320 | [
"MIT"
] | 23 | 2020-07-28T03:36:13.000Z | 2022-03-17T14:29:02.000Z | defmodule Oli.Delivery.Attempts.Scoring do
alias Oli.Delivery.Evaluation.Result
alias Oli.Resources.ScoringStrategy
@doc """
Calculates a result from a list of maps that contain a score and out_of.
This can be used either by passing in the strategy id or directly passing
in the scoring strategy string id.... | 30.613861 | 80 | 0.665265 |
73360d3ff52b217819d6107defe75f0ac5b8d6a9 | 2,756 | ex | Elixir | lib/plaid/transactions/transaction.ex | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | 16 | 2021-03-09T02:29:32.000Z | 2022-03-13T07:18:03.000Z | lib/plaid/transactions/transaction.ex | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | 5 | 2021-04-24T20:38:14.000Z | 2022-03-19T22:03:09.000Z | lib/plaid/transactions/transaction.ex | ethangunderson/elixir-plaid | 53aa0a87a4a837df6a2d15684870e7a58a003db6 | [
"MIT"
] | 2 | 2021-06-11T02:15:01.000Z | 2022-03-15T18:39:59.000Z | defmodule Plaid.Transactions.Transaction do
@moduledoc """
[Plaid Transaction schema.](https://plaid.com/docs/api/transactions)
"""
@behaviour Plaid.Castable
alias Plaid.Castable
alias Plaid.Transactions.Transaction.{Location, PaymentMeta}
@type t :: %__MODULE__{
account_id: String.t(),
... | 32.046512 | 76 | 0.652758 |
7336264f3c2f836b5ca6e852ae6f1cff156c056f | 947 | ex | Elixir | lib/ecto_role/timer.ex | mithereal/ecto-role | 2cecb9ceee5e16e834fa9ee12e72df9b438bec5c | [
"MIT"
] | 2 | 2019-05-23T10:14:46.000Z | 2020-01-26T23:30:54.000Z | lib/ecto_role/timer.ex | mithereal/ecto-role | 2cecb9ceee5e16e834fa9ee12e72df9b438bec5c | [
"MIT"
] | 2 | 2018-01-28T22:00:20.000Z | 2018-04-16T17:35:35.000Z | lib/ecto_role/timer.ex | mithereal/ecto-role | 2cecb9ceee5e16e834fa9ee12e72df9b438bec5c | [
"MIT"
] | 2 | 2018-02-14T18:55:12.000Z | 2018-04-16T17:34:52.000Z | defmodule EctoRole.Timer do
use GenServer
require Logger
@name __MODULE__
defstruct tick_interval: 500, ticker_ref: :none
def init(args) do
{:ok, args}
end
def start_link(id) do
GenServer.start_link(__MODULE__, [id], name: @name)
end
def handle_cast(:start_timer, %{tick_interval: tick_int... | 24.282051 | 96 | 0.680042 |
73368d41e6b757a86dbb08ca98e8d444100260b6 | 1,060 | ex | Elixir | lib/absinthe/phase/document/validation/only_one_subscription.ex | se-apc/absinthe | a95f8d7658091f99e2ebf5af659bfcfaecc97423 | [
"MIT"
] | null | null | null | lib/absinthe/phase/document/validation/only_one_subscription.ex | se-apc/absinthe | a95f8d7658091f99e2ebf5af659bfcfaecc97423 | [
"MIT"
] | 2 | 2018-08-02T13:35:38.000Z | 2018-08-02T13:36:42.000Z | lib/absinthe/phase/document/validation/only_one_subscription.ex | se-apc/absinthe | a95f8d7658091f99e2ebf5af659bfcfaecc97423 | [
"MIT"
] | null | null | null | defmodule Absinthe.Phase.Document.Validation.OnlyOneSubscription do
@moduledoc false
# Validates document to ensure that the only variables that are used in a
# document are defined on the operation.
alias Absinthe.{Blueprint, Phase}
use Absinthe.Phase
use Absinthe.Phase.Validation
@doc """
Run the ... | 24.090909 | 83 | 0.633962 |
7336abd8c7da9c030b93acd1bf5dc83b12a87d3e | 58 | ex | Elixir | lib/sippet/transports/udp.ex | enzoqtvf/elixir-sippet | 8f35eac41d6242b682446ec445229a694b4061d9 | [
"BSD-3-Clause"
] | 5 | 2018-08-02T15:41:23.000Z | 2020-12-07T15:50:45.000Z | lib/sippet/transports/udp.ex | team-telnyx/elixir-sippet | 32de78b585132004edcb285b16c7bcd5d8f2afb6 | [
"BSD-3-Clause"
] | null | null | null | lib/sippet/transports/udp.ex | team-telnyx/elixir-sippet | 32de78b585132004edcb285b16c7bcd5d8f2afb6 | [
"BSD-3-Clause"
] | null | null | null | defmodule Sippet.Transports.UDP do
@moduledoc false
end
| 14.5 | 34 | 0.810345 |
7336d30b07208aa29a0ae256c7f7a0a43419639b | 1,089 | ex | Elixir | lib/todo_api_web/controllers/todo_controller.ex | westrik/todo-ex | 6ab0c61b91d3e76239e77e988e51aa0b06f30408 | [
"MIT"
] | 1 | 2020-11-12T08:26:51.000Z | 2020-11-12T08:26:51.000Z | lib/todo_api_web/controllers/todo_controller.ex | westrik/todo-ex | 6ab0c61b91d3e76239e77e988e51aa0b06f30408 | [
"MIT"
] | null | null | null | lib/todo_api_web/controllers/todo_controller.ex | westrik/todo-ex | 6ab0c61b91d3e76239e77e988e51aa0b06f30408 | [
"MIT"
] | null | null | null | defmodule TodoApiWeb.TodoController do
use TodoApiWeb, :controller
alias TodoApi.Todos
alias TodoApi.Todos.Todo
action_fallback TodoApiWeb.FallbackController
def index(conn, _params) do
todos = Todos.list_todos()
render(conn, "index.json", todos: todos)
end
def create(conn, %{"todo" => todo_pa... | 24.75 | 73 | 0.627181 |
7336d9e5a042fd40974de462023151e8b81e2939 | 689 | ex | Elixir | lib/elixoids/application.ex | devstopfix/elixoids | df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d | [
"MIT"
] | 5 | 2016-07-05T13:42:33.000Z | 2020-12-07T14:12:16.000Z | lib/elixoids/application.ex | devstopfix/elixoids | df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d | [
"MIT"
] | 70 | 2016-06-04T11:31:27.000Z | 2020-11-21T20:00:09.000Z | lib/elixoids/application.ex | devstopfix/elixoids | df4f2ba9ddb3d13c3c86e57f100c3d57fa64ed8d | [
"MIT"
] | 1 | 2016-07-05T17:10:05.000Z | 2016-07-05T17:10:05.000Z | defmodule Elixoids.Application do
@moduledoc false
use Application
@port Application.get_env(:elixoids, :cowboy_port)
def start(_start_type, _start_args) do
children = [
{Registry, name: Registry.Elixoids.Collisions, keys: :unique},
{Registry, name: Registry.Elixoids.Games, keys: :unique},
... | 29.956522 | 68 | 0.69521 |
73370c2654c86657b782d7ef244da856b3265f7e | 7,257 | ex | Elixir | lib/makeup/lexer/combinators.ex | kw7oe/makeup | c281c8e08b0c38c258f681eb6831d7b6d86af698 | [
"BSD-2-Clause"
] | null | null | null | lib/makeup/lexer/combinators.ex | kw7oe/makeup | c281c8e08b0c38c258f681eb6831d7b6d86af698 | [
"BSD-2-Clause"
] | null | null | null | lib/makeup/lexer/combinators.ex | kw7oe/makeup | c281c8e08b0c38c258f681eb6831d7b6d86af698 | [
"BSD-2-Clause"
] | null | null | null | defmodule Makeup.Lexer.Combinators do
@moduledoc """
Common components useful in many lexers.
"""
import NimbleParsec
@doc """
Wraps the given combinator into a token of the given `ttype`.
Instead of a combinator, the first argument can also be a string literal.
"""
def token(literal, token_type) wh... | 30.620253 | 101 | 0.672592 |
73370cef47a59d2205d268f581b6a444e6111b42 | 1,437 | ex | Elixir | web/controllers/cdn_controller.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | 2 | 2016-11-16T17:24:21.000Z | 2019-02-15T05:38:27.000Z | web/controllers/cdn_controller.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | web/controllers/cdn_controller.ex | rob05c/tox | f54847ca058ad24b909341ad65d595a4069d2471 | [
"Apache-2.0"
] | null | null | null | defmodule Tox.CdnController do
use Tox.Web, :controller
alias Tox.Cdn
def index(conn, _params) do
cdns = Repo.all(Cdn)
render(conn, "index.json", cdns: cdns)
end
def create(conn, %{"cdn" => cdn_params}) do
changeset = Cdn.changeset(%Cdn{}, cdn_params)
case Repo.insert(changeset) do
{... | 25.660714 | 72 | 0.592206 |
733742cc6e05e7c4b3fd977a9906070e3f81a38a | 1,081 | exs | Elixir | test/user_friendly_formatter_test.exs | secomind/pretty_log | 2fe58d2850344ca9118112bed232fbd266f25f06 | [
"Apache-2.0"
] | 5 | 2019-10-18T15:07:15.000Z | 2021-04-20T22:46:22.000Z | test/user_friendly_formatter_test.exs | secomind/pretty_log | 2fe58d2850344ca9118112bed232fbd266f25f06 | [
"Apache-2.0"
] | 2 | 2021-04-07T14:28:55.000Z | 2021-12-23T13:31:49.000Z | test/user_friendly_formatter_test.exs | secomind/pretty_log | 2fe58d2850344ca9118112bed232fbd266f25f06 | [
"Apache-2.0"
] | 3 | 2019-10-08T10:17:37.000Z | 2021-09-11T01:31:44.000Z | defmodule PrettyLog.UserFriendlyFormatterTest do
use ExUnit.Case
alias PrettyLog.UserFriendlyFormatter
doctest PrettyLog.UserFriendlyFormatter
test "formats a warning log entry" do
assert :erlang.iolist_to_binary(
UserFriendlyFormatter.format(
:warn,
"This is a te... | 31.794118 | 94 | 0.557817 |
7337887f701157d1b9c512eed25fa569115ed852 | 1,429 | ex | Elixir | test/support/data_case.ex | jinjagit/api | c1a176d8c318e05810bc1635706c56395819191e | [
"MIT"
] | null | null | null | test/support/data_case.ex | jinjagit/api | c1a176d8c318e05810bc1635706c56395819191e | [
"MIT"
] | 10 | 2020-09-28T06:37:48.000Z | 2021-12-22T15:04:38.000Z | test/support/data_case.ex | jinjagit/api | c1a176d8c318e05810bc1635706c56395819191e | [
"MIT"
] | null | null | null | defmodule LiquidVoting.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every... | 26.462963 | 77 | 0.685094 |
7337bf30afef6d8abf5ff88277095d8c104ad2bf | 1,966 | exs | Elixir | clients/binary_authorization/mix.exs | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | clients/binary_authorization/mix.exs | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/binary_authorization/mix.exs | myskoach/elixir-google-api | 4f8cbc2fc38f70ffc120fd7ec48e27e46807b563 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 29.343284 | 181 | 0.672431 |
7337d2fb50fa87beb107dffc38777e1c7f2d887d | 85 | exs | Elixir | apps/exth_crypto/test/exth_crypto/cipher_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 152 | 2018-10-27T04:52:03.000Z | 2022-03-26T10:34:00.000Z | apps/exth_crypto/test/exth_crypto/cipher_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 270 | 2018-04-14T07:34:57.000Z | 2018-10-25T18:10:45.000Z | apps/exth_crypto/test/exth_crypto/cipher_test.exs | wolflee/mana | db66dac85addfaad98d40da5bd4082b3a0198bb1 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 25 | 2018-10-27T12:15:13.000Z | 2022-01-25T20:31:14.000Z | defmodule ExthCrypto.CipherTest do
use ExUnit.Case
doctest ExthCrypto.Cipher
end
| 17 | 34 | 0.823529 |
7337dcf3956b686ac390d7ec4557e7c990d6a34a | 2,786 | exs | Elixir | home_page_local/test/home_page_web/controllers/category_controller_test.exs | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 8 | 2019-06-02T05:02:36.000Z | 2021-08-11T04:23:10.000Z | home_page_local/test/home_page_web/controllers/category_controller_test.exs | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 7 | 2019-05-15T08:32:51.000Z | 2020-06-10T07:46:43.000Z | home_page_local/test/home_page_web/controllers/category_controller_test.exs | tlk-emb/CMS_koji | 40a93073128bfad7fdfa987c69d4a8759752064f | [
"Apache-2.0"
] | 1 | 2019-06-02T05:02:47.000Z | 2019-06-02T05:02:47.000Z | defmodule HomePageWeb.CategoryControllerTest do
use HomePageWeb.ConnCase
alias HomePage.Pages
@create_attrs %{title: "some title"}
@update_attrs %{title: "some updated title"}
@invalid_attrs %{title: nil}
def fixture(:category) do
{:ok, category} = Pages.create_category(@create_attrs)
category
... | 31.303371 | 89 | 0.674803 |
7337de6ade966a19992933a4f2d5d3638a4f25f4 | 283 | exs | Elixir | test/grizzly/zwave/commands/powerlevel_test_node_get_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 76 | 2019-09-04T16:56:58.000Z | 2022-03-29T06:54:36.000Z | test/grizzly/zwave/commands/powerlevel_test_node_get_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 124 | 2019-09-05T14:01:24.000Z | 2022-02-28T22:58:14.000Z | test/grizzly/zwave/commands/powerlevel_test_node_get_test.exs | smartrent/grizzly | 65a397ea7bfedb5518fe63a3f058a0b6af473e39 | [
"Apache-2.0"
] | 10 | 2019-10-23T19:25:45.000Z | 2021-11-17T13:21:20.000Z | defmodule Grizzly.ZWave.Commands.PowerlevelTestNodeGetTest do
use ExUnit.Case, async: true
alias Grizzly.ZWave.Commands.PowerlevelTestNodeGet
test "creates the command and validates params" do
params = []
{:ok, _command} = PowerlevelTestNodeGet.new(params)
end
end
| 25.727273 | 61 | 0.766784 |
7337df58193cb2c8a27c4fa7e6f22dd3ceb08969 | 1,885 | exs | Elixir | test/scheduler/schedule/schedule_test.exs | utrustdev/commanded-scheduler | 7532f192d39df2d0b7d1d500973ceaa8ec987ed3 | [
"MIT"
] | 31 | 2017-11-25T00:18:12.000Z | 2022-03-03T20:11:17.000Z | test/scheduler/schedule/schedule_test.exs | utrustdev/commanded-scheduler | 7532f192d39df2d0b7d1d500973ceaa8ec987ed3 | [
"MIT"
] | 12 | 2018-01-09T21:18:30.000Z | 2021-09-06T10:35:43.000Z | test/scheduler/schedule/schedule_test.exs | utrustdev/commanded-scheduler | 7532f192d39df2d0b7d1d500973ceaa8ec987ed3 | [
"MIT"
] | 13 | 2018-02-08T15:15:11.000Z | 2020-08-13T12:25:18.000Z | defmodule Commanded.ScheduleTest do
use Commanded.Scheduler.RuntimeCase
import Commanded.Assertions.EventAssertions
import Commanded.Scheduler.Factory
alias Commanded.Scheduler.{
Router,
ScheduleOnce,
ScheduledOnce,
ScheduleRecurring,
ScheduledRecurring,
}
describe "schedule once" do
... | 30.901639 | 105 | 0.715119 |
7337f57a0d859ad40d7370a57ff8730de747143d | 466 | exs | Elixir | test/push_ex_web/config_test.exs | pushex-project/push.ex | a6d4b18face39dd84d01a887dce60db2d0001d37 | [
"MIT"
] | 78 | 2018-12-02T23:58:37.000Z | 2021-09-30T18:52:45.000Z | test/push_ex_web/config_test.exs | pushex-project/push.ex | a6d4b18face39dd84d01a887dce60db2d0001d37 | [
"MIT"
] | 23 | 2018-11-27T14:57:20.000Z | 2021-09-24T16:14:43.000Z | test/push_ex_web/config_test.exs | pushex-project/push.ex | a6d4b18face39dd84d01a887dce60db2d0001d37 | [
"MIT"
] | 3 | 2019-01-30T02:08:37.000Z | 2021-09-03T20:53:35.000Z | defmodule PushExWeb.ConfigTest do
use ExUnit.Case, async: false
alias PushExWeb.Config
describe "close_connections?/0" do
test "it is false by default" do
assert Config.close_connections?() == false
end
test "it can be set to true or false" do
Config.close_connections!(true)
asser... | 23.3 | 49 | 0.690987 |
7338048d0e724845b156b23b16338dca8e028173 | 9,773 | ex | Elixir | lib/kazan/watcher.ex | ahovgaard/kazan | a93ea241ae9d94f327f741875ff43f509f72b2c6 | [
"MIT"
] | null | null | null | lib/kazan/watcher.ex | ahovgaard/kazan | a93ea241ae9d94f327f741875ff43f509f72b2c6 | [
"MIT"
] | null | null | null | lib/kazan/watcher.ex | ahovgaard/kazan | a93ea241ae9d94f327f741875ff43f509f72b2c6 | [
"MIT"
] | null | null | null | defmodule Kazan.Watcher do
@moduledoc """
Watches for changes on a resource. This works by creating a HTTPoison ASync request.
The request will eventually timeout, however the Watcher handles recreating the request
when this occurs and requesting new events that have occurred since the last *resource_version*... | 29.436747 | 97 | 0.624373 |
733822840991ca081a1a9cc6be191353b9256dff | 974 | exs | Elixir | demo/config/config.exs | git-toni/lv-states | 588652ae698efc7193dc25a8e4a68b5201aa09bd | [
"MIT"
] | 3 | 2021-07-07T09:10:11.000Z | 2022-03-18T10:28:14.000Z | demo/config/config.exs | git-toni/lv-states | 588652ae698efc7193dc25a8e4a68b5201aa09bd | [
"MIT"
] | 12 | 2021-07-06T21:08:21.000Z | 2021-09-27T11:11:19.000Z | demo/config/config.exs | git-toni/lv-states | 588652ae698efc7193dc25a8e4a68b5201aa09bd | [
"MIT"
] | null | null | null | # This file is responsible for configuring your application
# and its dependencies with the aid of the Mix.Config module.
#
# This configuration file is loaded before any dependency and
# is restricted to this project.
# General application configuration
use Mix.Config
# Configures the endpoint
config :demo, DemoWeb.... | 33.586207 | 86 | 0.767967 |
7338433ad45a7ed0ae51702b462fb7d946c8e49f | 1,518 | ex | Elixir | lib/coderjobs_web/helpers/twbs4_form_helper.ex | johndavedecano/CoderJobs | a185c3129f92430d8e72184f359c16f93f24c43b | [
"MIT"
] | 28 | 2017-11-20T02:01:17.000Z | 2021-05-08T16:52:58.000Z | lib/coderjobs_web/helpers/twbs4_form_helper.ex | johndavedecano/CoderJobs | a185c3129f92430d8e72184f359c16f93f24c43b | [
"MIT"
] | 1 | 2018-12-05T06:07:36.000Z | 2018-12-09T17:33:28.000Z | lib/coderjobs_web/helpers/twbs4_form_helper.ex | johndavedecano/CoderJobs | a185c3129f92430d8e72184f359c16f93f24c43b | [
"MIT"
] | 3 | 2017-12-21T03:29:39.000Z | 2019-08-11T02:56:08.000Z | defmodule CoderjobsWeb.Helpers.Twbs4FormHelper do
import Phoenix.HTML.Tag
import Phoenix.HTML.Form
def twbs4_error_tag(form, field) do
if error = form.errors[field] do
{message, _} = error
IO.inspect message
content_tag :div, humanize(field) <> " " <> message, class: "invalid-feedback"
... | 33 | 84 | 0.660079 |
73384a72b3bfeaddd8f5d0a0eea955e713b705cb | 1,183 | ex | Elixir | apps/painting/lib/painting/storage/disk.ex | danmarcab/deep_painting | 860c7d02bd6b112fffa199f715e61d895cba6623 | [
"Apache-2.0"
] | null | null | null | apps/painting/lib/painting/storage/disk.ex | danmarcab/deep_painting | 860c7d02bd6b112fffa199f715e61d895cba6623 | [
"Apache-2.0"
] | 11 | 2020-01-28T22:19:10.000Z | 2022-03-11T23:18:18.000Z | apps/painting/lib/painting/storage/disk.ex | danmarcab/deep_painting | 860c7d02bd6b112fffa199f715e61d895cba6623 | [
"Apache-2.0"
] | null | null | null | defmodule Painting.Storage.Disk do
@moduledoc """
Painting.Storage.Disk implements Painting.Storage storing data in disk. Data stays after application restarts.
"""
use GenServer
@behaviour Painting.Storage
def start(storage, opts \\ []) do
file_name = Keyword.get(opts, :file_name, Application.app_di... | 23.196078 | 128 | 0.652578 |
73386c99e648a28a4b27323b57677935685defcd | 14,437 | ex | Elixir | lib/phoenix/socket/transport.ex | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | 1 | 2021-03-14T17:50:24.000Z | 2021-03-14T17:50:24.000Z | lib/phoenix/socket/transport.ex | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | null | null | null | lib/phoenix/socket/transport.ex | misfo/phoenix | 04464429d9b958e331b2ffe0f0f5926690ab3b56 | [
"MIT"
] | 2 | 2020-08-02T04:00:17.000Z | 2020-10-07T16:07:37.000Z | defmodule Phoenix.Socket.Transport do
@moduledoc """
API for building transports.
This module describes what is required to build a Phoenix transport.
The transport sits between the socket and channels, forwarding client
messages to channels and vice-versa.
A transport is responsible for:
* Implement... | 34.704327 | 113 | 0.67424 |
73389818646d7001c8a76d5129c725f2ddb54906 | 1,525 | ex | Elixir | test/support/data_case.ex | nickel/ticote | ba35d1d11772c068e2ef29064d135e30dcf8ff5a | [
"MIT"
] | null | null | null | test/support/data_case.ex | nickel/ticote | ba35d1d11772c068e2ef29064d135e30dcf8ff5a | [
"MIT"
] | null | null | null | test/support/data_case.ex | nickel/ticote | ba35d1d11772c068e2ef29064d135e30dcf8ff5a | [
"MIT"
] | null | null | null | defmodule Ticote.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
we enable the SQL sandbox, so changes done to th... | 26.293103 | 77 | 0.685246 |
73389998e971e9fee02294ea451524cc6562e654 | 629 | ex | Elixir | lib/kepler/users/user.ex | SAAF-Alex-and-Ashton-Forces/kepler | 06cea361e5972b5ebe4e19f70793d921aca25664 | [
"MIT"
] | null | null | null | lib/kepler/users/user.ex | SAAF-Alex-and-Ashton-Forces/kepler | 06cea361e5972b5ebe4e19f70793d921aca25664 | [
"MIT"
] | null | null | null | lib/kepler/users/user.ex | SAAF-Alex-and-Ashton-Forces/kepler | 06cea361e5972b5ebe4e19f70793d921aca25664 | [
"MIT"
] | null | null | null | defmodule Kepler.Users.User do
use Ecto.Schema
use Pow.Ecto.Schema
use PowAssent.Ecto.Schema
@primary_key {:id, :binary_id, autogenerate: true}
@foreign_key_type :binary_id
schema "users" do
field :name, :string
field :username, :string
pow_user_fields()
timestamps()
end
@impl PowAss... | 24.192308 | 88 | 0.73132 |
733899b7baedfc081ede1618df92978ac1ed1f64 | 4,609 | ex | Elixir | lib/oracleex.ex | MikeAlbertFleetSolutions/oracleex | 71c096af28531d3e8f52a7ba6eebfa369f0759fa | [
"Apache-2.0"
] | 1 | 2020-02-28T15:13:32.000Z | 2020-02-28T15:13:32.000Z | lib/oracleex.ex | MikeAlbertFleetSolutions/oracleex | 71c096af28531d3e8f52a7ba6eebfa369f0759fa | [
"Apache-2.0"
] | null | null | null | lib/oracleex.ex | MikeAlbertFleetSolutions/oracleex | 71c096af28531d3e8f52a7ba6eebfa369f0759fa | [
"Apache-2.0"
] | null | null | null | defmodule Oracleex do
@moduledoc """
Interface for interacting with an Oracle Server via an ODBC driver for Elixir.
It implements `DBConnection` behaviour, using `:odbc` to connect to the
system's ODBC driver. Requires an Oracle ODBC driver, see
[README](readme.html) for installation instructions.
"""
a... | 41.151786 | 96 | 0.687134 |
7338b078d5f72d57d95f001cd08ecbdd984d3a1d | 2,583 | exs | Elixir | test/risk_logic_test.exs | dmyers87/lowendinsight | 5c5426d521a97d8a754261da5328ebeb52beb1fa | [
"BSD-3-Clause"
] | 9 | 2020-04-07T17:22:15.000Z | 2022-01-29T21:56:07.000Z | test/risk_logic_test.exs | dmyers87/lowendinsight | 5c5426d521a97d8a754261da5328ebeb52beb1fa | [
"BSD-3-Clause"
] | 49 | 2020-03-03T16:18:50.000Z | 2021-05-29T13:48:04.000Z | test/risk_logic_test.exs | dmyers87/lowendinsight | 5c5426d521a97d8a754261da5328ebeb52beb1fa | [
"BSD-3-Clause"
] | 3 | 2020-05-14T16:26:03.000Z | 2022-01-24T22:03:40.000Z | # Copyright (C) 2020 by the Georgia Tech Research Institute (GTRI)
# This software may be modified and distributed under the terms of
# the BSD 3-Clause license. See the LICENSE file for details.
defmodule RiskLogicTest do
use ExUnit.Case, async: true
doctest RiskLogic
test "confirm contributor critical" do
... | 29.689655 | 73 | 0.710801 |
7338b9d3db171b303cb92542363b2a2832a056f7 | 1,079 | ex | Elixir | lib/neko/rules/simple_rule/worker.ex | Boogiep0p/neko-achievements | d26c969b9ebd88060d6278ccb9dc01e746cb002b | [
"MIT"
] | null | null | null | lib/neko/rules/simple_rule/worker.ex | Boogiep0p/neko-achievements | d26c969b9ebd88060d6278ccb9dc01e746cb002b | [
"MIT"
] | null | null | null | lib/neko/rules/simple_rule/worker.ex | Boogiep0p/neko-achievements | d26c969b9ebd88060d6278ccb9dc01e746cb002b | [
"MIT"
] | null | null | null | defmodule Neko.Rules.SimpleRule.Worker do
@moduledoc false
use GenServer
require Logger
#------------------------------------------------------------------
# Client API
#------------------------------------------------------------------
def start_link(state \\ []) do
GenServer.start_link(__MODULE__... | 23.456522 | 69 | 0.499537 |
7338bbc1c45bbb4e5f1b6add9232692a01b88d65 | 101 | exs | Elixir | elixir/.formatter.exs | TreywRoberts/web-homework | d19b17dd384341d9e6e7e3174372673584289b83 | [
"MIT"
] | 14 | 2018-11-28T11:33:47.000Z | 2021-09-12T08:30:40.000Z | elixir/.formatter.exs | TreywRoberts/web-homework | d19b17dd384341d9e6e7e3174372673584289b83 | [
"MIT"
] | 1 | 2019-07-01T22:57:18.000Z | 2019-07-01T22:57:18.000Z | elixir/.formatter.exs | TreywRoberts/web-homework | d19b17dd384341d9e6e7e3174372673584289b83 | [
"MIT"
] | 3 | 2019-08-07T06:41:34.000Z | 2022-03-22T16:02:06.000Z | # Used by "mix format"
[
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
]
| 20.2 | 70 | 0.534653 |
7338c9f5e86612b6abe3ace8cd32fc916c5d5cba | 1,760 | ex | Elixir | clients/content/lib/google_api/content/v2/model/orders_get_test_order_template_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2021-12-20T03:40:53.000Z | 2021-12-20T03:40:53.000Z | clients/content/lib/google_api/content/v2/model/orders_get_test_order_template_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | 1 | 2020-08-18T00:11:23.000Z | 2020-08-18T00:44:16.000Z | clients/content/lib/google_api/content/v2/model/orders_get_test_order_template_response.ex | pojiro/elixir-google-api | 928496a017d3875a1929c6809d9221d79404b910 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.2 | 165 | 0.740341 |
7338d03eb2312d260183dbfbf787859dc3c4b7d5 | 1,821 | exs | Elixir | clients/sql_admin/mix.exs | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/mix.exs | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | clients/sql_admin/mix.exs | jechol/elixir-google-api | 0290b683dfc6491ca2ef755a80bc329378738d03 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 27.179104 | 100 | 0.653487 |
7338f6243af3e1516818f336994cda9de39df85f | 8,735 | ex | Elixir | lib/binance_futures.ex | dwarvesf/ex_binance | ed55e4b363c1cca54401b3b7d0e76c34e8797877 | [
"MIT"
] | null | null | null | lib/binance_futures.ex | dwarvesf/ex_binance | ed55e4b363c1cca54401b3b7d0e76c34e8797877 | [
"MIT"
] | null | null | null | lib/binance_futures.ex | dwarvesf/ex_binance | ed55e4b363c1cca54401b3b7d0e76c34e8797877 | [
"MIT"
] | null | null | null | defmodule Dwarves.BinanceFutures do
alias Binance.Rest.HTTPClient
require Logger
# Server
@spec ping ::
{:error,
{:http_error, HTTPoison.Error.t()}
| {:poison_decode_error, Poison.ParseError.t()}
| map}
| {:ok, false | nil | true | binary | list | number |... | 25.766962 | 145 | 0.56806 |
733947d391a9e4de25573197c1ab929399e87929 | 3,306 | exs | Elixir | mix.exs | naramore/highstorm | 1150ffd48e147b1a5e4f507e59eb788dc7d824c4 | [
"MIT"
] | null | null | null | mix.exs | naramore/highstorm | 1150ffd48e147b1a5e4f507e59eb788dc7d824c4 | [
"MIT"
] | null | null | null | mix.exs | naramore/highstorm | 1150ffd48e147b1a5e4f507e59eb788dc7d824c4 | [
"MIT"
] | null | null | null | defmodule Highstorm.MixProject do
use Mix.Project
@in_production Mix.env() == :prod
@version "0.0.1"
@author "naramore"
@source_url "https://github.com/naramore/highstorm"
@description """
Datalog
"""
def project do
[
app: :highstorm,
version: @version,
elixir: "~> 1.11",
... | 23.446809 | 80 | 0.540835 |
73396d36610b22eaaaaf873e46ebfa3eaf624771 | 767 | ex | Elixir | lib/postgrex/result.ex | MSch/postgrex | 92ca73697094205a6cd4274c10b4bda986ab4f20 | [
"Apache-2.0"
] | null | null | null | lib/postgrex/result.ex | MSch/postgrex | 92ca73697094205a6cd4274c10b4bda986ab4f20 | [
"Apache-2.0"
] | null | null | null | lib/postgrex/result.ex | MSch/postgrex | 92ca73697094205a6cd4274c10b4bda986ab4f20 | [
"Apache-2.0"
] | null | null | null | defmodule Postgrex.Result do
@moduledoc """
Result struct returned from any successful query. Its fields are:
* `command` - An atom of the query command, for example: `:select` or
`:insert`;
* `columns` - The column names;
* `rows` - The result set. A list of tuples, each tuple corres... | 33.347826 | 78 | 0.621904 |
7339dbe47aee39efa87554b3f3db7db8a9c69c7e | 3,740 | ex | Elixir | lib/ex_ical/parser.ex | clekstro/ex_ical | 9f26d92291daac7a21a6749db365021d894d79fc | [
"MIT"
] | 23 | 2016-03-18T11:30:24.000Z | 2019-05-27T17:23:35.000Z | lib/ex_ical/parser.ex | hiro-riveros/ex_ical | 34276ad2475b3491630fd75d8c27a4f1de48ed88 | [
"MIT"
] | 16 | 2016-06-11T05:15:00.000Z | 2019-05-10T11:57:50.000Z | lib/ex_ical/parser.ex | hiro-riveros/ex_ical | 34276ad2475b3491630fd75d8c27a4f1de48ed88 | [
"MIT"
] | 17 | 2016-05-20T11:59:37.000Z | 2021-01-24T07:14:14.000Z | defmodule ExIcal.Parser do
@moduledoc """
Responsible for parsing an iCal string into a list of events.
This module contains one public function, `parse/1`.
Most of the most frequently used iCalendar properties can be parsed from the
file (for example: start/end time, description, recurrence rules, and more... | 38.958333 | 123 | 0.621658 |
7339ebb22e8e7bff106475d261e9bc7fffec7185 | 7,045 | ex | Elixir | deps/mime/lib/mime.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | 1 | 2019-11-11T21:48:20.000Z | 2019-11-11T21:48:20.000Z | deps/mime/lib/mime.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | 2 | 2021-03-09T09:26:25.000Z | 2021-05-09T08:58:51.000Z | deps/mime/lib/mime.ex | matin360/TaksoWebApp | 4dd8fef625ecc2364fe1d6e18e73c96c59d15349 | [
"MIT"
] | null | null | null | defmodule MIME do
@moduledoc """
Maps MIME types to its file extensions and vice versa.
MIME types can be extended in your application configuration
as follows:
config :mime, :types, %{
"application/vnd.api+json" => ["json-api"]
}
After adding the configuration, MIME needs to be recompi... | 27.627451 | 92 | 0.571611 |
7339f9529f2412304fa80f66f64d03c8376dbcdc | 485 | ex | Elixir | brainiac/lib/brainiac.ex | sullivanse13/otp_p2 | 4af73170c9ad7b42ec5469cd279a3ce3b73c5e86 | [
"MIT"
] | null | null | null | brainiac/lib/brainiac.ex | sullivanse13/otp_p2 | 4af73170c9ad7b42ec5469cd279a3ce3b73c5e86 | [
"MIT"
] | null | null | null | brainiac/lib/brainiac.ex | sullivanse13/otp_p2 | 4af73170c9ad7b42ec5469cd279a3ce3b73c5e86 | [
"MIT"
] | 5 | 2021-07-08T19:04:14.000Z | 2021-07-13T15:03:19.000Z | defmodule Brainiac do
def start_game(name) do
{:ok, _} = DynamicSupervisor.start_child(Brainiac.DynamicSupervisor, {Brainiac.Server, name})
end
def maybe_end_game(_name, :playing), do: :ok
def maybe_end_game(name, _) do
DynamicSupervisor.terminate_child(Brainiac.DynamicSupervisor, GenServer.whereis(na... | 26.944444 | 97 | 0.740206 |
733a0cfbb893e896b691e8d393c3538c577cf10c | 205 | ex | Elixir | lib/galnora.ex | kortirso/galnora | e10a4a9bacc1be0a68a1ac191b7fa9b335988cb6 | [
"MIT"
] | null | null | null | lib/galnora.ex | kortirso/galnora | e10a4a9bacc1be0a68a1ac191b7fa9b335988cb6 | [
"MIT"
] | null | null | null | lib/galnora.ex | kortirso/galnora | e10a4a9bacc1be0a68a1ac191b7fa9b335988cb6 | [
"MIT"
] | null | null | null | defmodule Galnora do
@moduledoc false
use Application
@doc """
Starts the Galnora Application (and its Supervision Tree)
"""
def start(_type, _args) do
Galnora.Supervisor.start
end
end
| 15.769231 | 59 | 0.707317 |
733a0ed2ce34e32822a150dc0de66ae8beb156ab | 2,183 | ex | Elixir | lib/cryptozaur/drivers/bithumb_rest.ex | DenisGorbachev/crypto-cli | 94e5097ff24237fbc5fdd3fea371a5c9a1f727e4 | [
"MIT"
] | 5 | 2018-09-19T09:13:15.000Z | 2021-10-20T23:29:57.000Z | lib/cryptozaur/drivers/bithumb_rest.ex | DenisGorbachev/crypto-cli | 94e5097ff24237fbc5fdd3fea371a5c9a1f727e4 | [
"MIT"
] | 6 | 2018-07-29T05:33:02.000Z | 2018-09-18T20:42:19.000Z | lib/cryptozaur/drivers/bithumb_rest.ex | DenisGorbachev/crypto-cli | 94e5097ff24237fbc5fdd3fea371a5c9a1f727e4 | [
"MIT"
] | 3 | 2018-07-24T05:55:04.000Z | 2018-09-19T09:14:08.000Z | defmodule Cryptozaur.Drivers.BithumbRest do
use GenServer
require OK
import OK, only: [success: 1, failure: 1]
import Logger
import Cryptozaur.Utils
@timeout 600_000
@http_timeout 60000
@base_url "https://api.bithumb.com"
def start_link(state, opts \\ []) do
GenServer.start_link(__MODULE__, stat... | 26.621951 | 197 | 0.635822 |
733a143a518aee5df4d869ece56f1d0bb590d5ec | 3,089 | ex | Elixir | lib/guss/storage_v2_signer.ex | gullitmiranda/guss | feaf14a251ee2673ddff4b1a76fdf626705ffb46 | [
"MIT"
] | 3 | 2018-11-29T01:04:51.000Z | 2020-01-29T17:55:37.000Z | lib/guss/storage_v2_signer.ex | gullitmiranda/guss | feaf14a251ee2673ddff4b1a76fdf626705ffb46 | [
"MIT"
] | 3 | 2018-12-14T00:33:44.000Z | 2020-02-24T03:53:28.000Z | lib/guss/storage_v2_signer.ex | gullitmiranda/guss | feaf14a251ee2673ddff4b1a76fdf626705ffb46 | [
"MIT"
] | 3 | 2019-08-24T21:01:07.000Z | 2020-02-20T18:43:23.000Z | defmodule Guss.StorageV2Signer do
@moduledoc """
Sign a `Guss.Resource` using the Cloud Storage V2 Signing Process for Service Accounts.
This module generates the _string to sign_ for a ` Guss.Resource`,
and signs it using the given `private_key`. The signature is then
added to the URL, along with any requir... | 31.845361 | 92 | 0.682098 |
733a149e1b1a54a63cf8963970b9a0868e69155f | 49 | exs | Elixir | apps/my_app/config/config.exs | robmckinnon/phoenix-umbrella-with-node-js-example | 48cce2d9d9fc4564bc5983840c66d09c6594462d | [
"MIT"
] | 44 | 2017-11-12T17:12:55.000Z | 2022-03-29T18:21:08.000Z | apps/ex_figment/config/config.exs | rishenko/ex_figment | 7cb578a0da26dd50a947f6c155adc0c69a37ad4b | [
"Apache-2.0"
] | 7 | 2017-09-11T12:17:36.000Z | 2017-09-25T13:15:21.000Z | apps/ex_figment/config/config.exs | rishenko/ex_figment | 7cb578a0da26dd50a947f6c155adc0c69a37ad4b | [
"Apache-2.0"
] | 4 | 2019-04-15T08:03:30.000Z | 2021-12-15T16:00:02.000Z | use Mix.Config
import_config "#{Mix.env}.exs"
| 8.166667 | 30 | 0.693878 |
733a470083a28f4b04a9d289a5bcf5fd8cc844e6 | 836 | ex | Elixir | lib/exceptional.ex | gballet/exceptional | 2ae2c08023382c6bbe7b135e9adec1e63a0a1fc3 | [
"MIT"
] | 284 | 2016-08-28T13:04:13.000Z | 2022-03-28T18:30:58.000Z | lib/exceptional.ex | gballet/exceptional | 2ae2c08023382c6bbe7b135e9adec1e63a0a1fc3 | [
"MIT"
] | 23 | 2016-09-12T03:28:59.000Z | 2021-06-25T15:18:09.000Z | lib/exceptional.ex | gballet/exceptional | 2ae2c08023382c6bbe7b135e9adec1e63a0a1fc3 | [
"MIT"
] | 10 | 2017-02-09T03:48:15.000Z | 2019-12-23T08:30:03.000Z | defmodule Exceptional do
@moduledoc ~S"""
Top-level `use` aliases
In almost all cases, you want:
use Exceptional
If you only want the operators:
use Exceptional, only: :operators
If you only want named functions:
use Exceptional, only: :named_functions
If you like to live extremely ... | 23.222222 | 76 | 0.694976 |
733a57c35009eaa4331dffb6b4f7a2f3640bca84 | 2,486 | exs | Elixir | test/events_tools_web/controllers/status_controller_test.exs | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 2 | 2017-10-06T01:14:35.000Z | 2017-11-18T16:44:44.000Z | test/events_tools_web/controllers/status_controller_test.exs | community-tools/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 6 | 2017-10-06T00:04:59.000Z | 2017-10-06T00:09:27.000Z | test/events_tools_web/controllers/status_controller_test.exs | apps-team/community-tools | 40b0e6cc9234b44593d2ab60bb2303d7224deb30 | [
"Apache-2.0"
] | 1 | 2017-10-06T01:17:35.000Z | 2017-10-06T01:17:35.000Z | defmodule CommunityToolsWeb.StatusControllerTest do
use CommunityToolsWeb.ConnCase
alias CommunityTools.Status
@create_attrs %{summary: "some summary", title: "some title"}
@update_attrs %{summary: "some updated summary", title: "some updated title"}
@invalid_attrs %{summary: nil, title: nil}
def fixture... | 35.514286 | 96 | 0.691472 |
733a5e75ee97e0c9c702a5dc0b1115c864eb48e1 | 2,436 | exs | Elixir | test/seren_web/controllers/composer_controller_test.exs | allen-garvey/seren | f61cb7edcd7d3f927d2929db14b2a4a1578a3925 | [
"MIT"
] | 4 | 2019-10-04T16:11:15.000Z | 2021-08-18T21:00:13.000Z | apps/seren/test/seren_web/controllers/composer_controller_test.exs | allen-garvey/phoenix-umbrella | 1d444bbd62a5e7b5f51d317ce2be71ee994125d5 | [
"MIT"
] | 5 | 2020-03-16T23:52:25.000Z | 2021-09-03T16:52:17.000Z | test/seren_web/controllers/composer_controller_test.exs | allen-garvey/seren | f61cb7edcd7d3f927d2929db14b2a4a1578a3925 | [
"MIT"
] | null | null | null | defmodule SerenWeb.ComposerControllerTest do
use SerenWeb.ConnCase
alias Seren.Player
alias Seren.Player.Composer
@create_attrs %{name: "some name"}
@update_attrs %{name: "some updated name"}
@invalid_attrs %{name: nil}
def fixture(:composer) do
{:ok, composer} = Player.create_composer(@create_attr... | 30.45 | 104 | 0.642447 |
733ac4578504a3e6080f3605b61ae47fea808f93 | 637 | ex | Elixir | ControlStructures.ex | IgorVieira/learning-elixir | 6f1136723cba79bce0fd746790cc2fea78b08c61 | [
"MIT"
] | null | null | null | ControlStructures.ex | IgorVieira/learning-elixir | 6f1136723cba79bce0fd746790cc2fea78b08c61 | [
"MIT"
] | null | null | null | ControlStructures.ex | IgorVieira/learning-elixir | 6f1136723cba79bce0fd746790cc2fea78b08c61 | [
"MIT"
] | null | null | null | # If and Unless
if String.valid?("Hello") do
IO.puts "Valid string!"
else
IO.puts "Invalid string."
end
# Unless
unless is_integer("Hell") do
IO.puts "Not an Int"
end
# Case
pie = 3.14
case "cherry pie" do
^pie -> IO.puts "Not so tasty"
pie -> IO.puts "I bet #{pie} is tasty"
end
# Cond
cond do
2 + 2 ... | 15.536585 | 46 | 0.576138 |
733ad026102eb431d42102b3705296558e21a356 | 9,540 | ex | Elixir | lib/phoenix_datatables/query.ex | smartmetals/phoenix_datatables | 40c9074742ee7643327ac735defa9960abc50250 | [
"MIT"
] | 12 | 2017-10-20T21:08:33.000Z | 2021-11-08T13:04:43.000Z | lib/phoenix_datatables/query.ex | smartmetals/phoenix_datatables | 40c9074742ee7643327ac735defa9960abc50250 | [
"MIT"
] | 8 | 2017-11-07T19:53:02.000Z | 2021-01-18T22:15:35.000Z | lib/phoenix_datatables/query.ex | smartmetals/phoenix_datatables | 40c9074742ee7643327ac735defa9960abc50250 | [
"MIT"
] | 7 | 2018-07-03T08:18:17.000Z | 2020-05-28T03:06:02.000Z | defmodule PhoenixDatatables.Query do
@moduledoc """
Functions for updating an `Ecto.Query` based on Datatables request parameters.
"""
import Ecto.Query
use PhoenixDatatables.Query.Macros
alias Ecto.Query.JoinExpr
alias PhoenixDatatables.Query.Attribute
alias PhoenixDatatables.QueryException
alias Pho... | 29.8125 | 100 | 0.636583 |
733af695b5498a562ed97e11b7922655536a7da7 | 2,289 | ex | Elixir | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_conversation_turn.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_conversation_turn.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | clients/dialogflow/lib/google_api/dialogflow/v2/model/google_cloud_dialogflow_cx_v3_conversation_turn.ex | mcrumm/elixir-google-api | 544f22797cec52b3a23dfb6e39117f0018448610 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.79661 | 176 | 0.7737 |
733b1d6f664f922fe2a9e88559f5a79199bc57ae | 1,477 | ex | Elixir | lib/twitter_web/views/error_helpers.ex | SkullDarth/upnid-challenge-twitter-api | 799f2bfa8864848423eeddc24d3a5993152eb464 | [
"MIT"
] | 2 | 2019-12-05T21:37:48.000Z | 2020-01-02T02:43:33.000Z | lib/twitter_web/views/error_helpers.ex | SkullDarth/upnid-challenge-twitter-api | 799f2bfa8864848423eeddc24d3a5993152eb464 | [
"MIT"
] | null | null | null | lib/twitter_web/views/error_helpers.ex | SkullDarth/upnid-challenge-twitter-api | 799f2bfa8864848423eeddc24d3a5993152eb464 | [
"MIT"
] | null | null | null | defmodule TwitterWeb.ErrorHelpers do
@moduledoc """
Conveniences for translating and building error messages.
"""
use Phoenix.HTML
@doc """
Generates tag for inlined form input errors.
"""
def error_tag(form, field) do
Enum.map(Keyword.get_values(form.errors, field), fn error ->
content_tag(... | 32.822222 | 76 | 0.670278 |
733b55b7f5aa3c2ddfd99ae082210d7d69891074 | 2,131 | ex | Elixir | clients/slides/lib/google_api/slides/v1/model/page_background_fill.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/page_background_fill.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | null | null | null | clients/slides/lib/google_api/slides/v1/model/page_background_fill.ex | GoNZooo/elixir-google-api | cf3ad7392921177f68091f3d9001f1b01b92f1cc | [
"Apache-2.0"
] | 1 | 2018-07-28T20:50:50.000Z | 2018-07-28T20:50:50.000Z | # Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | 39.462963 | 375 | 0.752229 |
733b6aa1d95451f01284a71272ce1d75a63c18af | 781 | exs | Elixir | test/soft_delete_migration_test.exs | netflakes/ecto_soft_delete | e2d0afab30ad0cd87cc2234766ec5bf056bcf70b | [
"MIT"
] | 97 | 2016-09-30T20:05:44.000Z | 2022-03-29T19:09:27.000Z | test/soft_delete_migration_test.exs | netflakes/ecto_soft_delete | e2d0afab30ad0cd87cc2234766ec5bf056bcf70b | [
"MIT"
] | 110 | 2017-07-21T20:21:26.000Z | 2022-03-10T17:34:51.000Z | test/soft_delete_migration_test.exs | netflakes/ecto_soft_delete | e2d0afab30ad0cd87cc2234766ec5bf056bcf70b | [
"MIT"
] | 18 | 2017-12-19T22:30:49.000Z | 2021-07-20T22:09:51.000Z | defmodule Ecto.SoftDelete.Migration.Test do
use ExUnit.Case
use Ecto.Migration
alias Ecto.SoftDelete.Test.Repo
import Ecto.SoftDelete.Migration
alias Ecto.Migration.Runner
setup meta do
:ok = Ecto.Adapters.SQL.Sandbox.checkout(Repo)
{:ok, runner} = Runner.start_link({self(), Repo, __MODULE__, meta[... | 27.892857 | 129 | 0.685019 |
733b7ec073ea092bb222a80d580377daf9862596 | 27 | ex | Elixir | lib/raft/util.ex | lerencao/raft.ex | f8fc21874354073d1831f9ad0cc933128392935b | [
"MIT"
] | 5 | 2016-05-23T16:28:53.000Z | 2016-08-17T09:56:00.000Z | lib/raft/util.ex | lerencao/raft.ex | f8fc21874354073d1831f9ad0cc933128392935b | [
"MIT"
] | 5 | 2016-05-27T03:01:11.000Z | 2016-07-06T15:22:19.000Z | lib/raft/util.ex | lerencao/raft.ex | f8fc21874354073d1831f9ad0cc933128392935b | [
"MIT"
] | null | null | null | defmodule Raft.Util do
end
| 9 | 22 | 0.814815 |
733b8611a2efb32ffd734c13d51fb6155a995ef4 | 1,822 | ex | Elixir | lib/hello_genserver/application.ex | sreecodeslayer/hello-phoenix-genserver | a30b95af71cacb7df53222bd34dcbae682b98282 | [
"MIT"
] | 1 | 2020-01-31T20:38:34.000Z | 2020-01-31T20:38:34.000Z | lib/hello_genserver/application.ex | sreecodeslayer/hello-phoenix-genserver | a30b95af71cacb7df53222bd34dcbae682b98282 | [
"MIT"
] | null | null | null | lib/hello_genserver/application.ex | sreecodeslayer/hello-phoenix-genserver | a30b95af71cacb7df53222bd34dcbae682b98282 | [
"MIT"
] | null | null | null | defmodule HelloGenserver.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc false
use Application
require Logger
@name "hello-genserver"
def start(_type, _args) do
# List all child processes to be supervised
children = [
#... | 25.661972 | 96 | 0.660263 |
733b99649614c227ab80c57126d55803ab670c70 | 14,195 | ex | Elixir | lib/phoenix_live_view/utils.ex | forkkit/phoenix_live_view | 4ef219cd72db8a3cf58a90f7f118ef9c6eda503f | [
"MIT"
] | null | null | null | lib/phoenix_live_view/utils.ex | forkkit/phoenix_live_view | 4ef219cd72db8a3cf58a90f7f118ef9c6eda503f | [
"MIT"
] | null | null | null | lib/phoenix_live_view/utils.ex | forkkit/phoenix_live_view | 4ef219cd72db8a3cf58a90f7f118ef9c6eda503f | [
"MIT"
] | null | null | null | defmodule Phoenix.LiveView.Utils do
# Shared helpers used mostly by Channel and Diff,
# but also Static, and LiveViewTest.
@moduledoc false
alias Phoenix.LiveView.Rendered
alias Phoenix.LiveView.Socket
# All available mount options
@mount_opts [:temporary_assigns, :layout]
@max_flash_age :timer.secon... | 29.634656 | 106 | 0.644945 |
733bb4da26800929bac49a384483d361e333444a | 2,719 | ex | Elixir | lib/etherscan/util.ex | devlin-Smith/etherscan | c56d6f3f8eefa49c9ac8884461387a3af44fac03 | [
"MIT"
] | 14 | 2017-10-20T03:10:44.000Z | 2021-10-04T03:00:07.000Z | lib/etherscan/util.ex | devlin-Smith/etherscan | c56d6f3f8eefa49c9ac8884461387a3af44fac03 | [
"MIT"
] | 5 | 2017-10-20T03:36:37.000Z | 2018-03-25T00:58:01.000Z | lib/etherscan/util.ex | devlin-Smith/etherscan | c56d6f3f8eefa49c9ac8884461387a3af44fac03 | [
"MIT"
] | 4 | 2018-03-25T00:49:18.000Z | 2019-11-28T00:33:06.000Z | defmodule Etherscan.Util do
@moduledoc false
@denominations [
wei: 1,
kwei: 1000,
mwei: 1_000_000,
gwei: 1_000_000_000,
shannon: 1_000_000_000,
nano: 1_000_000_000,
szabo: 1_000_000_000_000,
micro: 1_000_000_000_000,
finney: 1_000_000_000_000_000,
milli: 1_000_000_000_000_00... | 24.495495 | 89 | 0.619345 |
733be2a5d4c440f4efc0bd3de357b66e53b29e27 | 1,877 | ex | Elixir | clients/cloud_tasks/lib/google_api/cloud_tasks/v2/model/list_queues_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | null | null | null | clients/cloud_tasks/lib/google_api/cloud_tasks/v2/model/list_queues_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-12-18T09:25:12.000Z | 2020-12-18T09:25:12.000Z | clients/cloud_tasks/lib/google_api/cloud_tasks/v2/model/list_queues_response.ex | MasashiYokota/elixir-google-api | 975dccbff395c16afcb62e7a8e411fbb58e9ab01 | [
"Apache-2.0"
] | 1 | 2020-10-04T10:12:44.000Z | 2020-10-04T10:12:44.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 37.54 | 293 | 0.736281 |
733c20074b138268ad5494530b6bfac698c6976e | 1,014 | exs | Elixir | test/parser/get_rpc_methods_test.exs | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 3 | 2017-11-29T05:07:35.000Z | 2019-12-18T17:16:41.000Z | test/parser/get_rpc_methods_test.exs | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 1 | 2021-12-02T19:35:28.000Z | 2022-03-29T09:40:52.000Z | test/parser/get_rpc_methods_test.exs | smiyabe/cwmp_ex | 9db322497aa3208b5985ccf496ada5286cde3925 | [
"Artistic-2.0"
] | 2 | 2017-11-29T05:07:30.000Z | 2020-11-10T07:10:42.000Z | defmodule CWMP.Protocol.Parser.GetRPCMethodsTest do
use ExUnit.Case, async: true
@sample """
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3... | 34.965517 | 108 | 0.712032 |
733c4e539820d0da85512640e33b93a88f54f544 | 1,969 | exs | Elixir | mix.exs | coder-from-hell/instream | f062e924b74a403e0f41b5374d9ed0e00ae59507 | [
"Apache-2.0"
] | null | null | null | mix.exs | coder-from-hell/instream | f062e924b74a403e0f41b5374d9ed0e00ae59507 | [
"Apache-2.0"
] | null | null | null | mix.exs | coder-from-hell/instream | f062e924b74a403e0f41b5374d9ed0e00ae59507 | [
"Apache-2.0"
] | null | null | null | defmodule Instream.MixProject do
use Mix.Project
@url_github "https://github.com/mneudert/instream"
def project do
[
app: :instream,
name: "Instream",
version: "2.0.0-dev",
elixir: "~> 1.7",
aliases: aliases(),
deps: deps(),
description: "InfluxDB driver for Elixir"... | 22.375 | 90 | 0.530726 |
733c54a2df0389a1f765adc12f49203df44d3438 | 1,314 | ex | Elixir | test/support/test_helpers.ex | inspired-consulting/liquex | 2ba530727aa87a93dbe9b981b4a90e962b34f4a3 | [
"MIT"
] | 19 | 2020-02-29T01:37:11.000Z | 2022-03-15T06:45:20.000Z | test/support/test_helpers.ex | inspired-consulting/liquex | 2ba530727aa87a93dbe9b981b4a90e962b34f4a3 | [
"MIT"
] | 19 | 2020-09-02T19:35:08.000Z | 2022-03-31T21:42:16.000Z | test/support/test_helpers.ex | inspired-consulting/liquex | 2ba530727aa87a93dbe9b981b4a90e962b34f4a3 | [
"MIT"
] | 4 | 2020-10-20T08:22:43.000Z | 2022-01-19T17:21:32.000Z | defmodule Liquex.TestHelpers do
@moduledoc false
import ExUnit.Assertions
def assert_parse(doc, match),
do: assert({:ok, ^match, "", _, _, _} = Liquex.Parser.Base.parse(doc))
def assert_match_liquid(path) do
{:ok, archive} = Hrx.load(path)
object_json = get_file_contents(archive, ".json")
li... | 27.957447 | 74 | 0.617199 |
733c92c98c6bb037f6912a0ab159a24f39274e74 | 202 | ex | Elixir | lib/elixir_jobs/ecto_enums.ex | savekirk/elixir_jobs | d7ec0f088a1365f3ae5cbbd6c07c2b3fdde9a946 | [
"MIT"
] | null | null | null | lib/elixir_jobs/ecto_enums.ex | savekirk/elixir_jobs | d7ec0f088a1365f3ae5cbbd6c07c2b3fdde9a946 | [
"MIT"
] | null | null | null | lib/elixir_jobs/ecto_enums.ex | savekirk/elixir_jobs | d7ec0f088a1365f3ae5cbbd6c07c2b3fdde9a946 | [
"MIT"
] | null | null | null | defmodule ElixirJobs.EctoEnums do
import EctoEnum
defenum JobType, :job_type, [:unknown, :full_time, :part_time, :freelance]
defenum JobPlace, :job_place, [:unknown, :onsite, :remote, :both]
end
| 28.857143 | 76 | 0.742574 |
733c9875b0c8f8ff14cda1f5bf983afcb9ede4ec | 1,180 | exs | Elixir | mix.exs | coverflex-tech/elixlsx | ddc4284bd1ef24103487210709ca5b54cc54c78b | [
"MIT"
] | null | null | null | mix.exs | coverflex-tech/elixlsx | ddc4284bd1ef24103487210709ca5b54cc54c78b | [
"MIT"
] | null | null | null | mix.exs | coverflex-tech/elixlsx | ddc4284bd1ef24103487210709ca5b54cc54c78b | [
"MIT"
] | 1 | 2021-07-13T16:21:25.000Z | 2021-07-13T16:21:25.000Z | defmodule Elixlsx.Mixfile do
use Mix.Project
@source_url "https://github.com/xou/elixlsx"
@version "0.4.2"
def project do
[
app: :elixlsx,
version: @version,
elixir: "~> 1.3",
package: package(),
description: "Elixlsx is a writer for the MS Excel OpenXML format (`.xlsx`).",
... | 21.454545 | 84 | 0.525424 |
733c9c2f494a29a23241a3c151f2ec755c1177dc | 602 | exs | Elixir | mix.exs | erpuno/asic | 75e79bade217b4b978fe01a412d33dd6e1e72129 | [
"0BSD"
] | null | null | null | mix.exs | erpuno/asic | 75e79bade217b4b978fe01a412d33dd6e1e72129 | [
"0BSD"
] | null | null | null | mix.exs | erpuno/asic | 75e79bade217b4b978fe01a412d33dd6e1e72129 | [
"0BSD"
] | null | null | null | defmodule ASiC.Mixfile do
use Mix.Project
def project() do
[
app: :asic,
version: "0.4.1",
elixir: "~> 1.8",
description: "ASiC Document Container ISO 21320-1",
package: package(),
deps: deps()
]
end
def package do
[
files: ~w(doc src mix.exs LICENSE),
... | 17.2 | 60 | 0.516611 |
733d13a3830d6a54113d7de9931839fc144f4d97 | 4,244 | exs | Elixir | test/integrations/confirm_account_test.exs | MatthieuSegret/yummy-phoenix-graphql | f0b258293697b0b120ef8e8a3b3905043c998617 | [
"MIT"
] | 122 | 2017-11-24T11:28:17.000Z | 2022-02-25T17:05:20.000Z | test/integrations/confirm_account_test.exs | MatthieuSegret/yummy-phoenix-graphql | f0b258293697b0b120ef8e8a3b3905043c998617 | [
"MIT"
] | 6 | 2018-01-11T22:07:44.000Z | 2021-11-21T15:41:42.000Z | test/integrations/confirm_account_test.exs | MatthieuSegret/yummy-phoenix-graphql | f0b258293697b0b120ef8e8a3b3905043c998617 | [
"MIT"
] | 25 | 2018-04-01T02:43:21.000Z | 2022-02-15T03:22:54.000Z | defmodule YummyWeb.Integrations.ConfirmAccountTest do
use YummyWeb.IntegrationCase, async: false
use Bamboo.Test, shared: true
alias Yummy.Repo
alias Yummy.Accounts.User
setup do
user =
insert(
:user,
confirmed_at: nil,
confirmation_code: "123123",
confirmation_sent... | 31.437037 | 99 | 0.618992 |
733d2da36727631f26c1367d7057203c2617bd80 | 101 | ex | Elixir | lib/hai_elixir.ex | shawnHartsell/hai-elixir | 384383fa4e69f541a41247d4454b73eba31486e2 | [
"MIT"
] | null | null | null | lib/hai_elixir.ex | shawnHartsell/hai-elixir | 384383fa4e69f541a41247d4454b73eba31486e2 | [
"MIT"
] | null | null | null | lib/hai_elixir.ex | shawnHartsell/hai-elixir | 384383fa4e69f541a41247d4454b73eba31486e2 | [
"MIT"
] | null | null | null | defmodule HaiElixir do
import HaiElixir.Cli
def main(args) do
run(args)
end
end
| 12.625 | 24 | 0.633663 |
733d8a33aa2c836d11b75b0e76bdc3def0c6a408 | 1,371 | ex | Elixir | test/support/data_case.ex | ryan-senn/ryan | 84bf5303a5aa384562e79d0a68364b2009b92ea5 | [
"MIT"
] | 1 | 2019-07-31T13:43:21.000Z | 2019-07-31T13:43:21.000Z | test/support/data_case.ex | ryan-senn/ryan | 84bf5303a5aa384562e79d0a68364b2009b92ea5 | [
"MIT"
] | null | null | null | test/support/data_case.ex | ryan-senn/ryan | 84bf5303a5aa384562e79d0a68364b2009b92ea5 | [
"MIT"
] | null | null | null | defmodule Ryan.DataCase do
@moduledoc """
This module defines the setup for tests requiring
access to the application's data layer.
You may define functions here to be used as helpers in
your tests.
Finally, if the test case interacts with the database,
it cannot be async. For this reason, every test ru... | 25.388889 | 77 | 0.676878 |
733dbddb28a9c2be22e4d37c4f1691b88b776274 | 2,085 | ex | Elixir | apps/utils/lib/helpers/encoding.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 322 | 2018-02-28T07:38:44.000Z | 2020-05-27T23:09:55.000Z | apps/utils/lib/helpers/encoding.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 643 | 2018-02-28T12:05:20.000Z | 2020-05-22T08:34:38.000Z | apps/utils/lib/helpers/encoding.ex | AndonMitev/EWallet | 898cde38933d6f134734528b3e594eedf5fa50f3 | [
"Apache-2.0"
] | 63 | 2018-02-28T10:57:06.000Z | 2020-05-27T23:10:38.000Z | # Copyright 2019 OmiseGO Pte Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 33.095238 | 94 | 0.696403 |
733dd5dfd93227e12c8f64e3e3cd6baba6fb754e | 4,565 | ex | Elixir | clients/composer/lib/google_api/composer/v1/model/environment_config.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1/model/environment_config.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | clients/composer/lib/google_api/composer/v1/model/environment_config.ex | jamesvl/elixir-google-api | 6c87fb31d996f08fb42ce6066317e9d652a87acc | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 58.525641 | 364 | 0.741512 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.